FactChunk
Stay organized with collections
Save and categorize content based on your preferences.
JSON representation |
{
"chunkText": string,
"source": string,
"index": integer,
"sourceMetadata": {
string: string,
...
}
} |
Fields |
chunkText |
string
Text content of the fact chunk. Can be at most 10K characters long.
|
source |
string
Source from which this fact chunk was retrieved. If it was retrieved from the GroundingFacts provided in the request then this field will contain the index of the specific fact from which this chunk was retrieved.
|
index |
integer
The index of this chunk. Currently, only used for the streaming mode.
|
sourceMetadata |
map (key: string, value: string)
More fine-grained information for the source reference.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-03 UTC.
[[["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-03-03 UTC."],[[["The provided data structure represents a fact chunk in JSON format, designed for organizing and retrieving factual information."],["Each fact chunk includes `chunkText`, the actual text content, which is limited to a maximum of 10,000 characters."],["The `source` field indicates where the fact chunk originated, either a specific index within provided grounding facts or from an external source."],["An `index` field is provided for ordering and stream management, and `sourceMetadata` is used to provide further details about the fact's origin."]]],[]]