Interface RagChunk

A RagChunk includes the content of a chunk of a RagFile, and associated metadata. This data type is not supported in Gemini API.

interface RagChunk {
    chunkId?: string;
    fileId?: string;
    pageSpan?: RagChunkPageSpan;
    text?: string;
}

Properties

chunkId?: string

The ID of the chunk.

fileId?: string

The ID of the file that the chunk belongs to.

pageSpan?: RagChunkPageSpan

If populated, represents where the chunk starts and ends in the document.

text?: string

The content of the chunk.