Are citations triggered everytime ? #4066
-
|
chunks = llm_response.grounding_metadata.grounding_chunks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: The Hello! That's an excellent question. The If the model can answer the question using its own internal knowledge, it will not invoke a grounding tool, and therefore the It is a good practice to check if [1] Grounding with Vertex AI Search |
Beta Was this translation helpful? Give feedback.
Response from ADK Answering Agent (experimental, answer may be inaccurate)
TLDR: The
grounding_chunksare provided only when the model's response is based on information retrieved from external data sources. They are not returned when the model answers from its internal memory.Hello! That's an excellent question.
The
grounding_metadataattribute, which contains thegrounding_chunks, is populated only when the model determines that it needs to consult an external data source to provide a high-quality answer. This happens when the query requires up-to-date information or specific knowledge that isn't part of the model's internal training data. The model then uses a grounding tool, such as…