The full resource name of the chunk. Format: projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}/branches/{branch}/documents/{documentId}/chunks/{chunk_id}.
This field must be a UTF-8 encoded string with a length limit of 1024 characters.
id
string
Unique chunk ID of the current chunk.
content
string
Content is a string from a document (parsed content).
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:[][;base64],
annotationContents[]
string
Output only. Annotation contents if the current chunk contains annotations.
Output only. The annotation metadata includes structured content in the current chunk.
relevanceScore
number
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 SearchResponse.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-12 UTC."],[[["The Chunk resource captures raw metadata of items for recommendation or search in chunk mode."],["Each Chunk includes a unique ID, content string, and document metadata, among other fields."],["The `relevanceScore` field indicates chunk relevance, with a higher score showing greater relevance, only being populated on `SearchResponse`."],["The resource name of a chunk has a strict format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}/branches/{branch}/documents/{documentId}/chunks/{chunk_id}`, with a length limit of 1024 characters."],["The available methods for interacting with Chunks are `get` for retrieving a single chunk, and `list` for retrieving multiple chunks."]]],[]]