Actions6
- File Search Actions
Overview
This node interacts with Gemini File Search Stores, specifically supporting operations to manage and query these stores. The 'List Documents' operation lists documents within a specified FileSearchStore, supporting pagination through page size and page token parameters. This is useful for retrieving and browsing documents stored in a cloud-safe file search system, for example, to display document lists or process document metadata in workflows.
Use Case Examples
- Listing documents in a FileSearchStore to display in a dashboard.
- Paginating through documents in a store to process or analyze them in batches.
Properties
| Name | Meaning |
|---|---|
| Store Name | Full resource name of the FileSearchStore to list documents from, e.g., fileSearchStores/STORE_ID. |
| Page Size | Maximum number of documents to return per page, with a maximum limit of 20. |
| Page Token | Token from a previous list call used to paginate results and retrieve the next page of documents. |
Output
JSON
documents- Array of document objects returned from the FileSearchStore listing.nextPageToken- Token to retrieve the next page of documents if more are available.
Dependencies
- Requires an API key credential for Gemini API authentication to access the File Search service.
Troubleshooting
- Ensure the 'Store Name' is correctly formatted as the full resource name, e.g., fileSearchStores/STORE_ID.
- Page Size should not exceed 20; otherwise, the API may reject the request or truncate results.
- If pagination is used, ensure the 'Page Token' is from a valid previous response to avoid errors.
- Common errors include authentication failures if the API key is missing or invalid, and 404 errors if the specified store does not exist.
Links
- Gemini File Search Documentation - Official documentation for managing and querying Gemini File Search Stores.