Evals & Observability·Question 24 of 83Intermediate

How do you measure faithfulness - whether the model's answer is actually grounded in retrieved context?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Faithfulness (groundedness) asks: is every factual claim in the answer supported by the retrieved context? It's the anti-hallucination metric for RAG, distinct from correctness - an answer can be faithful to a wrong document, or unfaithful yet accidentally correct from parametric memory. In RAG you usually want faithfulness, because supported-by-sources is what you promised the user.

Full worked answer with diagram

Faithfulness (groundedness) asks: is every factual claim in the answer supported by the retrieved context? It's the anti-hallucination metric for RAG, distinct from correctness - an answer can be faithful to a wrong document, or unfaithful yet accidentally correct from parametric memory. In RAG you usually want faithfulness, because supported-by-sources is what you promised the user.

The standard measurement is claim-level judge grading:

  1. Decompose the answer into atomic factual claims (an LLM does this reliably).
  2. Verify each claim against the retrieved chunks: a judge call per claim (or batched) with verdicts supported / contradicted / not found, forced to quote the supporting span - quoting is a strong honesty device, and it makes verdicts auditable.
  3. Score = fraction of claims supported. Report contradicted separately from not-found; contradictions are the scarier failure class.

This decompose-then-verify pattern (as in RAGAS's faithfulness metric and NLI-based approaches before it) is far more reliable than one holistic "is this grounded? 1-10" judge call, which glosses over single fabricated details in an otherwise-grounded answer - and single fabricated details are precisely the dangerous case.

Design details that matter: exempt non-factual content (hedges, formatting, the question restated) from claim extraction; decide policy for "common knowledge" claims not in the context (strict mode fails them - right for legal/medical; lenient mode allows them - right for chat); and build adversarial cases where the context deliberately lacks the answer or contradicts popular knowledge, to test whether the model follows context or its priors.

Two traps to name: verifying with the same model that generated the answer inflates scores (self-preference - use another family); and optimising faithfulness alone drives the system toward vacuous hedging - an answer saying nothing is perfectly faithful. Always pair it with answer relevance/completeness. And calibrate the whole judge pipeline against ~50 human-labelled examples before wiring it into CI.

Worth sketching. Splitting the three verdicts on the page is what separates you from candidates who say "we ask a judge if it is grounded".

flowchart TD
    A["Answer"] --> D["Decompose into<br/>atomic factual claims"]
    D --> V["Judge each claim against<br/>the retrieved chunks"]
    V -->|"supported"| S["Must quote the span"]
    V -->|"contradicted"| X["The scarier class,<br/>reported separately"]
    V -->|"not found"| N["Strict or lenient,<br/>by domain policy"]
    S --> F["Score = supported / claims"]
    X --> F
    N --> F
    F --> R["Pair with relevance, or<br/>pure hedging scores 100%"]

What a good answer covers

  • Faithfulness (groundedness) asks: is every factual claim in the answer supported by the retrieved context?
  • It's the anti-hallucination metric for RAG, distinct from correctness - an answer can be faithful to a…
  • In RAG you usually want faithfulness, because supported-by-sources is what you promised the user
  • Decompose the answer into atomic factual claims (an LLM does this reliably)
  • Verify each claim against the retrieved chunks

Key terms: claim-level judge grading · Decompose · Verify each claim · Score · adversarial cases

Interviewer follow-ups to expect

  1. How would you cheaply monitor faithfulness on live traffic where there's no reference answer?

  2. A claim is supported by chunk A but contradicted by chunk B in the same context - what should the metric do?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep