A plausible AI response can still contain fabricated facts or citations. Grounding anchors output in external information rather than relying on the model’s parametric memory alone. Retrieval-augmented generation (RAG) does this by retrieving relevant evidence before generating a response. section 3.3 section 11.6.6
Build grounding into the response workflow:
- Retrieve relevant documents or call an authoritative data source, then give the results to the model as evidence for its response. section 11.6.6 section 2.8.3
- Include citations so users can verify claims, and have the system say “I don’t know” when grounded information is unavailable. section 11.6.6
- Test with adversarial queries that may trigger hallucinations, and measure the grounding defect rate over time. section 11.6.6
Weather assistant
A weather assistant can use a function call to fetch current conditions from an external API. A JSON schema describes the function to the model; the returned data supplies the facts, while the model interprets the query and formulates the response. section 2.8.3
Grounding improves traceability, but it does not guarantee correctness. Legal RAG systems can still fabricate citations. For high-stakes legal workflows, verify citations against authoritative databases and require human review before output reaches a court. In health care and legal advice, relevant sources can include current clinical guidelines, case law, and regulations. section 1.2.1 section 3.3.4







