Interface RagChunk

A RagChunk includes the content of a chunk of a RagFile, and associated metadata.

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

Properties

Properties

pageSpan?: RagChunkPageSpan

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

text?: string

The content of the chunk.