Actions6
- File Search Actions
Overview
This node interacts with Gemini File Search Stores, enabling users to manage and query file search stores in a cloud-safe manner. It supports operations such as creating and deleting stores, uploading files, listing and deleting documents, and querying the store with a question to retrieve relevant information. This node is useful for scenarios where users need to organize, search, and retrieve information from large collections of documents stored in Gemini File Search Stores, such as knowledge bases, document repositories, or research archives.
Use Case Examples
- A user can create a new file search store to organize documents related to a project.
- A user can upload files to a specific store to make them searchable.
- A user can query a file search store with a question to get answers based on the stored documents, optionally including citations.
Properties
| Name | Meaning |
|---|---|
| Store Name | Full resource name of the store to query, e.g., fileSearchStores/STORE_ID. |
| Question | The question to answer using the File Search store. |
| Model | The model used to answer the question, with options 'gemini-2.5-flash' and 'gemini-2.5-pro'. |
| Include Citations | Boolean flag to include citations in the answer. |
Output
JSON
text- The answer text generated by the model based on the query.groundingMetadata- Optional grounding metadata containing citations if 'Include Citations' is true and metadata is available.
Dependencies
- Requires an API key credential for Gemini API authentication to interact with the Gemini File Search service.
Troubleshooting
- Error if the resource is not 'fileSearch' as only File Search resource is supported.
- Error if the operation is unsupported for the File Search resource.
- Error if the binary property for file upload is not found or empty.
- Error if the upload URL is not returned by the upload start response.