Zenaique

Match each retriever-evaluation metric to what it actually measures

Match pairs·Medium·4.0 · 0·~2 min·Relevant atAmazonApple
Attempt it
Recall@k
Hit rate
MRR
NDCG
Faithfulness (LLM-as-judge)
TL;DR

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.

Memory aid
Sign in for the mnemonic that makes this stick. See Pro pricing.
Easy to grasp

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.

Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.

Sign in for 5 free unlocks/day or go Pro for unlimited. See Pro pricing.

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.

QWhy is hit rate often the most operationally relevant retrieval metric for RAG specifically?
Sign in or go Pro to see the approach for this follow-up.
QWhen would NDCG and MRR disagree about which retriever is better?
Sign in or go Pro to see the approach for this follow-up.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

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.

Sign in or go Pro to see all red flags and common mistakes. See Pro pricing.

60-second night-before-the-interview bullets. Scan these on the way to the call.

Sign in for 5 unlocks/day or go Pro for unlimited revision sheets. See Pro pricing.

Primary sources. Skim if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
Which metric best measures whether a RAG answer is grounded in the retrieved context?
MCQ·Medium