Hit rate and recall@k measure presence in the top-k, MRR measures the rank of the first hit, NDCG scores graded ordering with a position discount, and faithfulness judges the generated answer, not retrieval.
Imagine a librarian fetching books for your question. Hit rate asks: did at least one useful book land in the stack? Recall@k asks: of all the useful books, what fraction made the stack? MRR asks: how near the top of the stack was the first useful one — top of the pile is best. NDCG is the picky judge who also cares how useful each book is and rewards putting the most useful ones highest. Faithfulness is a different judge entirely: it ignores the fetching and instead checks whether your final spoken answer actually matches what those books said.
Concept explanation~2 min read
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Concept explanation~2 min read
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.
2–4 min · Everything important, quickly.
First split the five into four retrieval metrics and one generation metric. Walk presence (hit rate, recall@k), then position (MRR), then graded ordering (NDCG), giving the distinguishing property of each. Define faithfulness as an answer-grounding LLM-judge metric. Close on why the split is diagnostic: high retrieval but low faithfulness localizes the bug to the generator.
Real products, models, and research that use this idea.
- RAGAS computes faithfulness, answer relevance, and context precision/recall as a standard RAG evaluation suite.
- BEIR and MTEB benchmark dense retrievers primarily with NDCG@10 across diverse retrieval tasks.
- Production RAG dashboards commonly track hit rate and MRR per query segment to localize retrieval regressions.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Lumping faithfulness in with the ranking metrics. Faithfulness judges the generated answer against the context; the other four judge whether and where the retriever surfaced relevant documents.
60-second 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.