Resource: Chunk
Chunk captures all raw metadata information of items to be recommended or searched in the chunk mode.
| JSON representation | 
|---|
{ "name": string, "id": string, "content": string, "documentMetadata": { object (  | 
              
| Fields | |
|---|---|
name | 
                
                   
 The full resource name of the chunk. Format:  This field must be a UTF-8 encoded string with a length limit of 1024 characters.  | 
              
id | 
                
                   
 Unique chunk ID of the current chunk.  | 
              
content | 
                
                   
 Content is a string from a document (parsed content).  | 
              
documentMetadata | 
                
                   
 Metadata of the document from the current chunk.  | 
              
derivedStructData | 
                
                   
 Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.  | 
              
pageSpan | 
                
                   
 Page span of the chunk.  | 
              
chunkMetadata | 
                
                   
 Output only. Metadata of the current chunk.  | 
              
dataUrls[] | 
                
                   
 Output only. Image Data URLs if the current chunk contains images. Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[  | 
              
annotationContents[] | 
                
                   
 Output only. Annotation contents if the current chunk contains annotations.  | 
              
annotationMetadata[] | 
                
                   
 Output only. The annotation metadata includes structured content in the current chunk.  | 
              
relevanceScore | 
                
                   
 Output only. Represents the relevance score based on similarity. Higher score indicates higher chunk relevance. The score is in range [-1.0, 1.0]. Only populated on   | 
              
Methods | 
            |
|---|---|
                
 | 
              
                Gets a Document. | 
            
                
 | 
              
                Gets a list of Chunks. |