Evaluating retrieval
For engineers
Measuring retrieval and answer quality separately with labelled questions, retrieval metrics, faithfulness checks and LLM judges
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
A labelled question has two gold passages. The retriever returns one of them in its top 5. What is recall@5 for this question?
Check yourself · 2 of 5
What does a faithfulness score measure in a RAG pipeline?
Check yourself · 3 of 5
An answer states the correct refund window but omits that refunds go only to the original card. Which rubric check fails?
Check yourself · 4 of 5
What is the best first source of questions for a new RAG eval set?
Check yourself · 5 of 5
Why save a trace for each question during an eval run?
Topics
- Recall at k, precision and MRR4 min read · Scoring whether the right passages were retrieved and how high they ranked, and reading the numbers before touching the prompt
- Faithfulness and context relevance metrics4 min read · Scoring whether answers stick to retrieved text and whether retrieved text was relevant, with LLM judges calibrated against human labels
- End-to-end answer correctness4 min read · Correctness against gold answers, completeness, citation accuracy and refusal accuracy scored together on the final output
- Building a question set with gold passages4 min read · Collecting real user questions, labelling the passages that answer them, adding unanswerable and adversarial cases, and synthetic data with care
- Running RAG evals on every pipeline change4 min read · Frameworks such as Ragas, traces per question, and re-running the suite when chunking, embeddings, prompts or models change
Start here
- Ragas documentation (opens in a new tab)DocsFree
Definitions and usage of faithfulness, context precision, context recall and answer correctness metrics.
- RAGAS: Automated Evaluation of Retrieval Augmented Generation (opens in a new tab)PaperFree
The paper that defines reference-free faithfulness, answer relevance and context relevance scoring.
- BEIR: A Heterogeneous Benchmark for Zero-shot Evaluation of Information Retrieval Models (opens in a new tab)PaperFree
Shows how retrieval is scored with labelled queries and ranked metrics, and why one dataset's score does not transfer.
110 questions · last verified 2026-12