Explain faithfulness vs answer relevance in RAG evaluation with concrete examples
Define faithfulness and answer relevance in the context of RAG evaluation (RAGAS framework). Give one concrete example of a response that is high on faithfulness but low on relevance, and one that is high on relevance but low on faithfulness.
Faithfulness checks every claim is entailed by the retrieved context; relevance checks the answer addresses the question. They measure against different reference points and move independently.
Imagine an open-book exam. Faithfulness asks: did the student write only things that were actually in the textbook they were handed? If they invented a fact that is not on the page, faithfulness drops, even if the fact happens to be true. Answer relevance asks a different question: did the student actually answer what was asked? A student can copy a perfectly accurate paragraph straight from the book (high faithfulness) yet completely miss the question (low relevance). Or they can nail exactly what was asked from memory (high relevance) while writing things that are nowhere in the book they were given (low faithfulness). The two graders look at different things, so a good answer has to please both at once.
Detailed answer & concept explanation~8 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
5 min: two definitions and their distinct reference points, the supported over total faithfulness formula, both independent-case examples, and the failure modes of the LLM judge that computes it.
Real products, models, and research that use this idea.
- RAGAS computes faithfulness by prompting an LLM judge to extract atomic claims, then entailment-check each against the retrieved context.
- TruLens ships a groundedness feedback function that mirrors RAGAS faithfulness, scoring per-claim support from source passages.
- LangSmith and DeepEval both expose faithfulness and answer relevance as separate first-class RAG metrics rather than one blended score.
- Patronus and Galileo surface faithfulness alongside context precision so teams can localise whether retrieval or generation failed.
- Modern judge stacks pin Claude Opus 4.7 or GPT-5.5 at temperature zero to keep the claim-level entailment scores reproducible.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow does the LLM judge actually compute the faithfulness score step by step?
QIf faithfulness is high but answer relevance is low, where in the pipeline is the bug?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Treating faithfulness and relevance as one quality score. A grounded answer can miss the question, and an on-point answer can be ungrounded, so collapsing them hides the real failure.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.