A RagChunk includes the content of a chunk of a RagFile, and associated metadata.
textstring
The content of the chunk.
fileIdstring
The id of the file that the chunk belongs to.
chunkIdstring
The id of the chunk.
If populated, represents where the chunk starts and ends in the document.
| JSON representation |
|---|
{
"text": string,
"fileId": string,
"chunkId": string,
"pageSpan": {
object ( |
PageSpan
Represents where the chunk starts and ends in the document.
firstPageinteger
Page where chunk starts in the document. Inclusive. 1-indexed.
lastPageinteger
Page where chunk ends in the document. Inclusive. 1-indexed.
| JSON representation |
|---|
{ "firstPage": integer, "lastPage": integer } |