AAI Agentic Handbook
Ranking & Generation

Grounding & groundedness checks

Budding levelReviewed Oct 2026In 10 interview questionsIn 2 posts

Making the model answer from supplied sources (retrieved docs, tool results) rather than memory, and checking that it did.

In plain English

A grounded answer is one built from evidence you gave the model, such as retrieved documents or a database lookup, instead of from what it half-remembers from training (Parametric knowledge). You ask for it in the instructions, you give the model good evidence, and then you check the answer against that evidence. Grounding is the main defence against Hallucination in Retrieval-Augmented Generation (RAG) systems.

Analogy

An open-book exam where the rule is 'only answer from the textbook, and give page numbers'.

Common pitfall

Believing an instruction like 'only use the context' grounds the model. Without a measured faithfulness check you have a hope, not a guarantee; models still blend in training knowledge, especially when the context is thin.

How it actually works

Grounding has three parts and all three must exist. Supply: retrieval or tools put the right evidence in context; if recall is bad, nothing else saves you. Instruct: the system prompt restricts the model to the sources, requires citations, and defines what to do when evidence is missing (see Abstention & relevance thresholds). Verify: a post-check measures Faithfulness, usually an NLI model or an LLM-as-judge that splits the answer into claims and checks each against cited chunks; unsupported claims are removed, flagged, or trigger a retry. Native citation features (Anthropic Citations, OpenAI file search annotations) return character spans and make the verify step cheaper. Grounding does not make sources correct: a grounded answer from a stale document is still wrong, so freshness and Chunk metadata matter as much as the prompt.

What I'd ship on day one

System prompt: answer only from tagged sources, cite ids for every factual sentence, say you cannot find it when sources are insufficient. Use the provider's native citations if available. Post-check with an LLM judge or NLI model; block answers with faithfulness < 0.8 or any uncited numeric claim. Show sources in the UI.

Worked example

Insurance claims assistant: 'Is water damage from a burst pipe covered under policy HO-3 for claim 88213?'. Retrieval returns the policy's Section I perils clause and the claim's adjuster notes. The answer cites both: 'Covered as sudden and accidental discharge [S2 §I.B.12]; gradual seepage over 14+ days is excluded [S2 §I.2.c]; adjuster notes say the leak was found same day [S4].' The verifier checks each of the three claims; all are entailed, so it ships. When the question was about a policy whose text was not indexed, the bot replied that it could not find the policy instead of quoting a generic HO-3.

In the interview

Say: grounding is supply, instruct, verify; most teams do the middle one only. I show the verify step with a faithfulness metric and a threshold that blocks or flags, and I separate 'retrieval missed' from 'model ignored evidence' using an oracle run. Follow-up to expect: 'how much does the verifier cost?' Roughly one small-model call per answer, 10–20% of the main generation cost.

User
App
Retriever
LLM
Verifier
1
QuestionUser → App
2
Search policy + claimApp → Retriever
3
6 chunks, ids S1–S6Retriever → App
4
Sources + 'cite or abstain'App → LLM
5
Answer with [S2] [S4]LLM → App
6
Claims vs cited spansApp → Verifier
7
3/3 supportedVerifier → App
8
Answer + sourcesApp → User
Supply, instruct, verify: the last hop is the one most systems skip

Numbers worth knowing

Verifier cost
10–20% of generation costsmall judge model checking 3–8 claims per answer
Faithfulness gate
≥ 0.8–0.9 supported-claim ratioregulated or customer-facing answers; tune on human-labelled sample
Verifier added latency
300–800 mssmall model, run after streaming completes or on the final answer

How to decide

WhenDo this
Customer-facing answers with legal or financial consequenceBlock-on-fail verifier plus visible citations
Internal productivity toolAsync verifier that samples 5–10% and feeds error analysis
Context is empty or below a retrieval-score floorAbstain before calling the LLM

Cost maths

Main answer: 5k input + 400 output at $3/$15 per M = $0.021. Verifier on a small model at $0.80/$4 per M (illustrative, Oct 2026): 5k in + 150 out ≈ $0.0046, ~22% overhead. Sampling 10% instead of 100% cuts it to ~2%.

Operating it

Time to scale up when…
  • Unsupported-claim rate > 5% on sampled traffic: move verifier from sampled to blocking
  • Verifier latency pushes p95 past the SLO: run it on a smaller model or after streaming
  • Regulated tenant onboarded: blocking verifier and audit log required
What to monitor
  • Faithfulness score on sampled answers; alert if the 7-day mean drops below 0.85
  • Share of answers with zero citations; alert > 3%
  • Retrieval-empty rate (no chunk above score floor); alert on a > 50% rise

When it goes wrong

What users saw

An airline's website chatbot told a customer he could claim a bereavement fare refund retroactively; the policy said otherwise

How it was caught

The customer was refused, sued, and in Moffatt v. Air Canada (BC Civil Resolution Tribunal, 2024) the airline was held liable for its chatbot's statement

Root cause

The answer was not tied to the actual policy text and nothing checked it against the published policy

Fix

General lesson: ground answers in the current policy, cite it, verify claims against it, and abstain when the policy is not retrieved; the company is responsible for what its bot says

Sources

  1. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks — Lewis et al., 2020paper
  2. Citations — Anthropic, 2025docs
  3. Ragas: Automated Evaluation of Retrieval Augmented Generation — Es et al., 2023paper

Check yourself

Three questions. Every option is explained once you answer.

1ConceptWhich three parts must all exist for an answer to be grounded?
2ScenarioAn internal productivity assistant where wrong answers are cheap and latency matters. How do you verify grounding?
3CalculationMain answer costs $0.021; a small-model verifier costs ~$0.0046 per answer. What is verifier overhead if you check a 10% sample?