Gemini File Search icon

Gemini File Search

Manage and query Gemini File Search Stores (cloud-safe)

Overview

This node manages and interacts with Gemini File Search Stores, specifically supporting operations like creating and deleting stores, uploading files, listing documents, deleting documents, and querying the store. The 'Delete Document' operation allows users to delete a specific document from a File Search Store, optionally forcing deletion of related chunks and objects. This is useful for maintaining and managing document collections within a cloud-safe file search environment, such as removing outdated or irrelevant documents.

Use Case Examples

  1. Deleting a document from a File Search Store by specifying its full resource name.
  2. Force deleting a document along with its related chunks and objects to ensure complete removal.

Properties

Name Meaning
Document Name Full resource name of the Document to delete (e.g., fileSearchStores/STORE_ID/documents/DOC_ID)
Force If true, also delete related chunks and objects

Output

JSON

  • `` - Response from the API after attempting to delete the document, typically an empty object or confirmation of deletion.

Dependencies

  • Requires an API key credential for authentication with the Gemini API service.

Troubleshooting

  • Ensure the 'Document Name' is correctly formatted and points to an existing document; otherwise, the API will return an error.
  • If 'Force' is set to true, be aware that related chunks and objects will also be deleted, which might have unintended consequences if not intended.
  • Common errors include authentication failures if the API key is invalid or missing, and HTTP errors if the document does not exist or the user lacks permissions.

Links

Discussion