RagChunk

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

Fields
text string

The content of the chunk.

fileId string

The id of the file that the chunk belongs to.

chunkId string

The id of the chunk.

pageSpan object ( PageSpan )

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

JSON representation
 { 
 "text" 
 : 
 string 
 , 
 "fileId" 
 : 
 string 
 , 
 "chunkId" 
 : 
 string 
 , 
 "pageSpan" 
 : 
 { 
 object (  PageSpan 
 
) 
 } 
 } 

PageSpan

Represents where the chunk starts and ends in the document.

Fields
firstPage integer

Page where chunk starts in the document. Inclusive. 1-indexed.

lastPage integer

Page where chunk ends in the document. Inclusive. 1-indexed.

JSON representation
 { 
 "firstPage" 
 : 
 integer 
 , 
 "lastPage" 
 : 
 integer 
 } 
Create a Mobile Website
View Site in Mobile | Classic
Share by: