Gemini File Search Documents icon

Gemini File Search Documents

Manage and query documents in Gemini File Search stores

Document → Get

AI-generated

Summary

Fetch a document by its full resource name from a Gemini File Search store.

Inputs

  • documentName (required) — The full resource name of the document to retrieve, such as fileSearchStores/my-store-123/documents/doc-abc

Output shape

a single document record

Returns the matching document object defined by the store's document schema; errors are thrown unless the workflow continues on failure.

Examples

Example 1: Retrieve a specific document from a store

Set Document Name to the exact resource path, e.g., fileSearchStores/my-store-123/documents/doc-abc

Example 2: Search for a document with a partial name using continueOnFail

Provide a partial name in Document Name and enable continueOnFail to handle missing results

Discussion