ADK Grounding Specialist (Python Edition)
Philosophy & Architecture
Grounding connects agents to external sources to reduce hallucinations and provide citations.
Grounding Patterns
- •Google Search (Real-Time):
- •Use
GoogleSearchToolfor news, weather, and up-to-the-minute facts.
- •Use
- •Vertex AI Search (Enterprise):
- •Use
VertexAiSearchToolto query private PDFs, docs, and intranets. - •Requires a configured Data Store in Google Cloud.
- •Use
- •Agentic RAG:
- •Dynamic query construction and metadata filtering (e.g., Vector Search 2.0).
Implementation
- •Configure grounding via the
LlmAgenttools list. - •Ensure the agent is instructed to use grounding for specific types of queries.
- •Read
references/grounding.mdfor tool configuration details.
Success Criteria
- •Valid citation metadata in agent responses.
- •Correct configuration of Vertex AI Search
data_store_id. - •High grounding accuracy as measured by
hallucinations_v1metrics.