Interface GroundingChunkRetrievedContext

Context retrieved from a data source to ground the model's response. This is used when a retrieval tool fetches information from a user-provided corpus or a public dataset. This data type is not supported in Gemini API.

interface GroundingChunkRetrievedContext {
    documentName?: string;
    ragChunk?: RagChunk;
    text?: string;
    title?: string;
    uri?: string;
}

Properties

documentName?: string

Output only. The full resource name of the referenced Vertex AI Search document. This is used to identify the specific document that was retrieved. The format is projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}.

ragChunk?: RagChunk

Additional context for a Retrieval-Augmented Generation (RAG) retrieval result. This is populated only when the RAG retrieval tool is used.

text?: string

The content of the retrieved data source.

title?: string

The title of the retrieved data source.

uri?: string

The URI of the retrieved data source.