Gemini File Search icon

Gemini File Search

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

Overview

This node interacts with Gemini File Search Stores, allowing users to manage and query file search resources in a cloud-safe environment. Specifically, the 'Upload' operation enables uploading files from binary data into a specified FileSearchStore. This is useful for scenarios where users want to add documents or files to a searchable store for later retrieval or querying, such as uploading PDFs, images, or other file types to a cloud-based file search system.

Use Case Examples

  1. Uploading a PDF document from binary data to a FileSearchStore for indexing and later search.
  2. Adding an image file to a FileSearchStore to enable content-based retrieval using Gemini's file search capabilities.

Properties

Name Meaning
Store Name Full resource name of the FileSearchStore to upload into, specifying the target store for the file upload.
Binary Property Name of the binary property that contains the file to upload, indicating which binary data from the input will be uploaded.
File Display Name Optional display name for the created document, which will be visible in citations and helps identify the uploaded file.
MIME Type Optional MIME type of the uploaded file, used to specify the file format (default is 'application/octet-stream').

Output

JSON

  • * - Response from the Gemini File Search API after uploading the file, typically including metadata about the uploaded document.

Dependencies

  • Requires an API key credential for Gemini API authentication to perform HTTP requests to the Gemini File Search service.

Troubleshooting

  • Ensure the specified binary property exists and contains valid data; otherwise, an error 'Binary property not found or empty' will be thrown.
  • Verify the 'Store Name' is correctly formatted as a full resource name (e.g., fileSearchStores/STORE_ID).
  • Check that the API key credential is valid and has permissions to upload files to the specified FileSearchStore.
  • If the upload URL is not returned by the initial upload start request, the operation will fail; ensure network connectivity and API availability.

Links

Discussion