You need: the ranked-list metrics themselves, recall@k, MRR and nDCG with its two gains (Evaluation metrics, section 6, owns the definitions and a one-list calculator); what an LLM judge is and how it is calibrated (LLM-as-judge); how a RAG system is built (Topic: rag-and-retrieval). Everything here is worked on released human labels: BEIR qrels, 1,584 RAGTruth answers with annotated spans, and MS MARCO's marks of which passage holds the answer.
| Question | Measure | Needs | Blind to |
|---|---|---|---|
| Did the evidence reach the prompt? | recall@k and hit rate@k, at the prompt's k and at the reranker's input depth | passage labels (qrels) | order inside the top k |
| Is the best evidence on top? | nDCG@10, MRR | graded labels for nDCG; binary for MRR | coverage below the cutoff |
| How much of the prompt is noise? | precision@k | passage labels | order, and missing evidence |
| Is every claim in the answer supported by the passages? | faithfulness, also called groundedness | passages and answer; a judge or a trained detector | whether the passages are true or current |
| Does the answer address the question? | answer relevance | question and answer | whether the answer is correct |
| Do the citations point at passages that support the sentence? | citation precision and recall | answer with citations, and the passages | claims left uncited |
| Is the answer right? | correctness against a reference, or the share of reference nuggets covered | reference answers or nuggets | which half failed |
Upper arcs grade the passages (the retrieval half), lower arcs grade the answer (the generation half). Recall@k needs passage labels (qrels); context precision and context recall replace them with a reference answer and a judge; faithfulness and citation accuracy compare the answer with the passages only; correctness and nugget recall compare it with a reference only. No single arc says which half failed; the pair of halves does.
End-to-end accuracy is a product of stage shares, A = rK · pk|K · g (found in the first stage's top K, kept in the k that reach the prompt, answered correctly), so the same accuracy can come from a weak retriever or a weak generator; The retrieval pipeline measures that split on its running example (section 9). Here it is done on single answers, with human labels for each half.
Here it is on one claim, with a label for each half: SciFact's qrels say which abstract holds the evidence, SciFact's CONTRADICT label says what the right answer is. Fig. 1 runs it twice, first with BM25, then with retrieval fixed:
The same split on a question six generators answered from the same three passages. Before scores each answer end to end; After also scores the retrieval half against a human mark of which passage holds the answer, and the generation half against human-marked hallucinated spans. Predict first: for the "carry on cast" question, how many of the six generators fail because of retrieval?
is_selected). So hit@3 = 1, precision@3 = 1/3, RR = 1/2: the evidence reached the prompt, whatever the answer says. This half is identical for all six generators.Which passage holds the answer is MS MARCO v1.1's is_selected flag (the MS MARCO annotator wrote the reference answer from it) and SciFact's qrels; hallucinated spans are RAGTruth's annotations; end-to-end correctness is our reading of each answer against MS MARCO's reference answer and SciFact's CONTRADICT label, shown in the caption so it can be checked. The first question comes from RAGTruth, whose three passages per question were taken from MS MARCO; the second from SciFact, retrieved by our own BM25 and hybrid runs. The SciFact answers were generated for this page by Qwen2.5-1.5B-Instruct, greedy, with RAGTruth's QA instruction (src/gen_case.py).
None, and not by luck. Of RAGTruth's 989 MS MARCO questions, 276 match MS MARCO v1.1 by text, and in all 264 whose three passages could be matched, at least one passage carries MS MARCO's answer mark (exactly one in 200 questions, two in 51, all three in 13). Retrieval on those contexts scores hit@3 = 1.0, precision@3 = 0.431 and MRR = 0.651 for every model, so every difference between the bars is the generator's:
"Hallucinated": RAGTruth marked any span. "Refused": only the instructed "Unable to answer based on given passages" (under 150 characters). "Answered, then disclaimed": answers, then appends that sentence anyway (a Llama-2-7B habit). measured by src/ragtruth_marco.py.
Each "no" names what to fix: a corpus gap is not a retriever bug; outside the first stage's top K is a retrieval miss (chunking, hybrid search, query rewriting); found at rank 40 when the prompt takes 10 is a ranking miss, visible only if recall is measured at the reranker's depth too; a wrong answer from the right passage is the generator's (prompt, model, context format, distraction by irrelevant passages); a refusal when the context sufficed, or an answer when it did not, is an abstention miss (instructions); both halves passing on a stale source is a corpus miss.
The metrics are the ranked-list metrics of information retrieval (precision@k, recall@k, MRR, MAP and nDCG with its two gain definitions, worked on one list in section 6 of Evaluation metrics), computed per query and averaged; TREC's trec_eval and its Python binding pytrec_eval are the reference implementations, and BEIR and MTEB use them. What RAG changes is where to read them. We ran five retrievers over three BEIR test sets (Thakur et al., NeurIPS 2021 Datasets and Benchmarks): SciFact (5,183 abstracts, 300 scientific claims), NFCorpus (3,633 medical documents, 323 queries, graded labels 1 and 2) and FiQA-2018 (57,638 financial forum posts, 648 questions).
Fig. 2 reads the metrics on one query's real ranked lists, from our runs on NFCorpus (graded labels, many per query):
trec_eval, BEIR and MTEB, exponential (2grade − 1) in some learning-to-rank libraries; they differ on graded labels.Recall@k for k = 1 to 100 against the released qrels, computed in your browser from the stored ranks of every labelled passage; measured on our runs (src/beir_run.py, src/paired.py). FiQA: BM25 recall@100 0.538, dense 0.706, hybrid 0.711, so the dense model adds about 17 points. On SciFact a reranker reading BM25's top 100 has 12.5 more points of recall to work with (0.800 to 0.925) than the prompt ever sees, and none beyond 0.925.
BM25 (two parameter sets and the rank_bm25 package), a small dense model and their RRF hybrid, scored against the qrels:
The systems: BM25 reimplemented the way Anserini's "flat" regression runs it (title and text as one field, Lucene's English stopwords, Porter stemming, k1 = 0.9, b = 0.4), the same BM25 with k1 = 1.2 and b = 0.75, the rank_bm25 package as installed, a small dense retriever (all-MiniLM-L6-v2, 22M parameters, cosine), and a hybrid fusing BM25 and dense with reciprocal rank fusion (k = 60). All runs took under 15 minutes on a laptop CPU, two threads. Code: src/beir_run.py.
rank_bm25 as installed (no stemming, no stopwords, k1 = 1.5, b = 0.75) scores 0.652 on SciFact and 0.217 on FiQA, against 0.676 and 0.239 for the Lucene-style run; moving k1 and b alone takes FiQA from 0.239 to 0.253. Quote the implementation and parameters with the score.The Score a real retrieval run tab recomputes every metric at any cutoff and opens single queries where the lexical and dense runs disagree.
Answers and spans: RAGTruth, as released. The claim split and the verdicts are ours, made as a RAGAS-style judge is prompted to make them, and agree with RAGTruth's span labels; the scores are each instrument's documented rule applied to those verdicts, not runs of the tools (illustrative split, derived scores).
RAGAS's own example: the passage says Einstein was born on 14 March 1879 in Germany; the answer says "Einstein was born in Germany on 20th March 1879". The judge splits it into "born in Germany" (supported) and "born on 20th March 1879" (not supported), so faithfulness = 1/2 = 0.5 (RAGAS docs). Every faithfulness metric runs these steps; they differ in the checker and in the rule that turns verdicts into a score. Predict: which instruments fail an answer that is true but not in the passages?
FaithfulnesswithHHEM uses Vectara's HHEM-2.1-Open, a flan-t5-base classifier; MiniCheck-FT5 (770M) scored 74.7% balanced accuracy on LLM-AggreFact against GPT-4's 75.3%, at about $0.24 against $107 for the benchmark (Tang et al., EMNLP 2024). Cheap and deterministic.implicit_true): 846 of the 2,927 question-answering spans were (28.9%; the model filled the gap from memory, correctly). A faithfulness metric fails them: right for a system that must answer from its sources, wrong if you only care about accuracy.A faithfulness metric is an LLM judge with a fixed prompt, so it inherits position, verbosity and self-preference biases and drift across versions; LLM-as-judge owns the catalogue and the calibration method. What is specific to faithfulness:
RAGTruth (Niu et al., ACL 2024, arXiv v2, Tables 5 and 6). A response-level detector says whether an answer contains any hallucination; a span-level one must find where.
| Detector | Response F1, QA | Response F1, all tasks | Span F1, QA | Span F1, all tasks |
|---|---|---|---|---|
| Prompted GPT-3.5-turbo | 30.8 | 52.9 | 12.1 | 12.8 |
| Prompted GPT-4-turbo | 45.6 | 63.4 | 32.6 | 28.3 |
| SelfCheckGPT (GPT-3.5-turbo) | 43.7 | 58.8 | n/a | n/a |
| LMvLM (GPT-4-turbo) | 30.1 | 49.4 | n/a | n/a |
| Llama-2-13B fine-tuned on RAGTruth | 68.2 | 78.7 | 58.2 | 52.7 |
The prompted judges have high recall and low precision on QA: they call too many faithful answers hallucinated. A 13B model fine-tuned on the labels beats them, which is the paper's point and a reason the field moved to trained detectors.
Hallucination-detection benchmarks score the checkers themselves. On easy, synthetic perturbations (HaluBench) detectors look nearly solved; on natural errors of strong models (FaithBench) they were at chance until judges got examples. Your traffic is the second kind, so choose the checker on a benchmark of natural errors before trusting it. The practical answer in 2026 is a small trained detector for the bulk (cheap, deterministic, span-level) and a calibrated frontier judge, or a person, for the disputed slice. The Hallucination spans tab shows six models' answers to eight questions with every RAGTruth span marked.
These measure the detectors, not the generators: each holds model outputs labelled faithful or not against their sources.
| Benchmark | What it holds | Best reported detector |
|---|---|---|
| RAGTruth (ACL 2024) | 17,790 responses of six 2023 models (QA, data-to-text, summarisation), every hallucinated span marked with one of four types; 43.1% of responses have at least one. | Fine-tuned Llama-2-13B: response F1 78.7, span F1 52.7, above prompted GPT-4-turbo (63.4, 28.3). |
| LLM-AggreFact (MiniCheck, EMNLP 2024) | Ten grounding datasets (eleven on the leaderboard), a claim against its grounding document, balanced accuracy. | Leaderboard (last updated Sep 2025): Bespoke-MiniCheck-7B 77.4, Claude-3.5 Sonnet 77.2, Granite Guardian 3.3 76.5. |
| HaluBench (Patronus, Lynx, Jul 2024) | About 15,000 context, question, answer triples from FinanceBench, DROP, COVID-QA, PubMedQA, HaluEval and RAGTruth, with perturbed answers. | Lynx-70B 87.4% accuracy against GPT-4o 86.5% and Claude-3-Sonnet 78.8%. |
| FaithBench (Oct 2024) | 660 summaries from ten models over 66 source passages, labelled by annotators (including "questionable" and "benign"). | All detectors near 50% balanced accuracy in the paper (best, MiniCheck-DeBERTa-L, 54.95%). FaithJudge, a few-shot judge given human-labelled examples, later reached 84.0% with o3-mini-high (arXiv 2505.04847, EMNLP 2025 Industry). |
| Vectara HHEM-2.1-Open (model card) | The checker inside RAGAS's HHEM variant and Vectara's hallucination leaderboard. | Model card: RAGTruth-QA balanced accuracy 74.28% against GPT-4's 74.11% (vendor figure). |
Does the answer address the question? It says nothing about truth: Llama-2-13B's answer above is about whether Kenneth Williams is alive, true, and irrelevant. RAGAS measures it backwards: an LLM writes N questions the answer would answer (N = 3 by default), and the score is their mean cosine similarity to the real question in embedding space; in RAGAS's code, not its docs, the score is set to 0 when the judge flags every generated question as noncommittal ("I don't know"; _answer_relevance.py, February 2026). DeepEval measures it forwards, as the share of the answer's statements relevant to the question. A long answer with one relevant sentence can score well on the first and badly on the second.
RAGAS's context precision asks whether the relevant passages were ranked above the irrelevant ones, with relevance judged per passage against the reference answer (or against the response when there is none); TruLens's context relevance asks only whether each passage is relevant. On the worked example below (three relevant passages A, B and C, before and after a cross-encoder reranker), binary verdicts give the first-stage list (relevant at ranks 2 and 4) (1/2 + 2/4) / 2 = 0.5 and the reranked list (ranks 1, 2 and 4) (1 + 1 + 3/4) / 3 = 0.917:
It is the average precision of the judged list, so irrelevant passages ranked below every relevant one do not lower it.
The starting list is the worked example from the earlier RAG evaluation page: a query with three relevant passages A (grade 3), B (2) and C (1). First stage: X, B, Y, C, Z in the top 5 and A at rank 8, so recall@5 = 2/3, precision@5 = 0.4, RR = 1/2, and nDCG@5 = (2/1.585 + 1/2.322) / (3 + 2/1.585 + 1/2) = 1.693 / 4.762 = 0.355. Reranked: A, B, X, C, Y, so recall@5 = 1, precision@5 = 0.6, RR = 1 and nDCG@5 = 4.693 / 4.762 = 0.985. The reranker could rescue A only because the first stage had it within the 20 it was given. Checked by src/recompute.py.
The share of the reference answer's claims that the retrieved passages could support: the judged cousin of retrieval recall, usable when you have reference answers but no passage labels. A reference answer with 4 claims of which the passages support 3 scores 0.75: a quarter of what a correct answer needs never reached the generator. It fails where the reference is incomplete (a passage holding a fact the reference omits earns nothing) and wherever the claim split or the judge errs, as for faithfulness.
When the system cites, check the citations themselves. ALCE (Gao et al., EMNLP 2023) splits the answer into statements, each citing a set of passages Ci, and uses an NLI model (TRUE, a T5-11B fine-tuned for entailment) as the checker. Citation recall of a statement is 1 if it cites at least one passage and the cited passages, concatenated, entail it; averaged over statements. Citation precision of a citation is 0 if it is "irrelevant": it does not entail the statement on its own, and the other citations entail the statement without it; averaged over citations. Redundant but supporting citations are not penalised.
ALCE's headline: on ELI5, even the best models of 2023 lacked complete citation support about half the time. Citation checks are the cheapest groundedness test in production, because they need no reference answer and the NLI check is a small model; their blind spot is a claim left uncited (S3). TREC RAG grades the same thing as "support": does each cited segment support its sentence (full, partial, none).
illustrative. [3] neither entails S2 alone nor is needed, so it is irrelevant; S3 cites nothing, so its recall is 0. Citation recall = 2/3 over statements; citation precision = 2/3 over the three citations.
Every framework has a "faithfulness" and an "answer relevance", and they do not mean the same thing: name the instrument, its version and its judge model beside every score, as you would the harness beside a benchmark score (Eval harnesses). Definitions read from each project's docs and code; versions are volatile:
| Framework (version, date) | Faithfulness | Answer relevance | Retrieval-side checks |
|---|---|---|---|
| RAGAS (Es et al., EACL 2024 demos; ragas 0.4.3, 13 Jan 2026) | Supported claims / claims; unsupported fails. FaithfulnesswithHHEM uses HHEM-2.1-Open as checker. | Backwards: N = 3 generated questions, mean cosine to the real one; 0 if all noncommittal. | Context precision (average precision of judged chunks), context recall, noise sensitivity, context entities recall. |
| DeepEval (docs; deepeval 4.2.8, 2 Oct 2026) | Truthful claims / claims: truthful if it "does not contradict any facts presented in the retrieval_context"; unsupported is "borderline" and passes unless penalize_ambiguous_claims=True. | Forwards: relevant statements / statements. | Contextual precision (same form), recall, relevancy. Default threshold 0.5. |
| TruLens RAG triad (docs; trulens 2.14.0, 3 Sep 2026; maintained by Snowflake) | Groundedness: sentences (nltk), trivial ones dropped, each judged 0 to 3, normalised and averaged. "Abstentions will be considered as grounded." | Judge, 0 to 3. | Context relevance per chunk, 0 to 3. |
| ARES (Saad-Falcon et al., NAACL 2024) | Binary judge: DeBERTa-v3-Large (304M) fine-tuned on synthetic data written by FLAN-T5 XXL. | Binary fine-tuned judge. | Context relevance, binary; all three corrected by prediction-powered inference over about 150 human labels. |
| TREC RAG (2024 track; 2025 overview) | Support of each cited segment (full, partial, none), assessors or an LLM. | Nugget recall over "vital" and "okay" facts; "Vital Strict" primary. | Relevance judgments on the runs (nDCG@30 in 2025). |
Three disagreements change numbers on the same item: unsupported but uncontradicted claims (RAGAS fails them, DeepEval's default passes them: the Llama-2-13B case in the stepper above, 0 against 1; RAGTruth's annotators side with RAGAS); abstentions (TruLens counts a refusal as grounded, RAGAS has no claims to check, and an end-to-end check counts it wrong when the answer was in the passages: in RAGTruth's QA set, 36 bare refusals were made with an answer-bearing passage in context); and answer relevance run in opposite directions.
No head-to-head of the frameworks. No study we found runs RAGAS, DeepEval and TruLens on the same items and reports their agreement (unconfirmed gap as of October 2026); the nearest is a July 2026 preprint on 96 business questions (arXiv 2607.07302) finding claim recall tracking humans at about 0.7 and the faithfulness metrics only weakly. Measure your own: a few hundred hand-labelled items, the metric's agreement with them, and its error rates to correct the pass rate (LLM-as-judge).
First panel: Pearson correlation with 280 human pairwise judgments of overall quality: RAGChecker's claim-level metric 61.93, RAGAS answer similarity 48.31, TruLens answer relevance 35.15, ARES answer relevance 17.81 (RAGChecker, Ru et al., arXiv v2, 17 Aug 2024; annotators agreed with each other 90.95% of the time). Second panel: Kendall's τ between automatic and human nugget scoring in TREC 2024 RAG, Vital Strict ("The Great Nugget Recall", SIGIR 2025): ranking 36 topics' runs against post-edited nuggets 0.887, against fully manual nuggets 0.727; per topic about 0.5. Published figures; separate axes.
A few hundred well-made items beat ten thousand synthetic ones.
Label quality and agreement are on Human evaluation and annotation; turning the set into a release gate on Production eval engineering; watching retrieval quality on live traffic, and golden-set size in CI, on RAG in production.
The rules that keep a comparison fair:
One bar per query, sorted: nDCG@10 of the second system minus the first. measured; the 95% interval is a paired bootstrap over queries (10,000 resamples, seed 0, src/paired.py), derived. SciFact, BM25 against dense: interval −0.067 to +0.005, so "BM25 beats dense on SciFact" is not established; against the hybrid +0.043 (+0.020 to +0.065), 74 wins and 20 losses. Even the two BM25 implementations differ beyond noise on SciFact (−0.024, −0.046 to −0.002).
When a corpus fits in a million-token window, "do we need retrieval at all?" is answered on your own questions: both arms on the same golden set, with the same correctness check, at your corpus size, with cost and latency beside accuracy. Retrieval metrics apply only to the RAG arm; the long-context arm is scored end to end plus faithfulness against the whole window. Position inside the window matters (Lost in the Middle; Long-context and multimodal benchmarks owns it and the effective-length benchmarks), and the measured trade-off, including Self-Route's routing between the two, is on Agentic retrieval, long context and memory.
When the model calls retrieval as a tool in a loop, the per-call metrics still apply to each search, and the trajectory needs its own checks: did it search when it should (and not when it should not), how good were its reformulated queries, how many calls until it had enough, and are the final citations verified against what it actually read. Agent and trajectory evaluation owns grading trajectories; public agentic benchmarks are on Agentic benchmarks.
Five retrievers run on three BEIR test sets on this machine, scored against each set's released qrels, every number below recomputed in your browser from the stored ranks of the labelled passages. Pick a set and a cutoff; then open single queries to see where the systems disagree. The Reading's retrieval half section draws the conclusions.
16 queries per set, chosen where the lexical and the dense run disagree on whether a labelled passage is in the top 10, plus queries both find at different ranks and queries both miss (shortest queries first in each group). Labelled passages are shaded; the number is the qrels grade.
RAGTruth (Niu et al., ACL 2024; arXiv v2, 17 May 2024) had six 2023 models answer, summarise and write from given sources, then had annotators mark every hallucinated span in all 17,790 responses with one of four types. Below: eight of its MS MARCO questions, all six answers each, every span as annotated, and the MS MARCO mark of which passage holds the answer. The table under it is the whole released set, recomputed from response.jsonl.
Hover or tap a marked span for the annotator's note. A dotted outline marks spans RAGTruth flags implicit_true: absent from the passages but true in the world.
response.jsonl has 42 (its 51 spans match the paper). Every other count in Tables 2 and 3, and all six per-model implicit_true counts in Table 10, match the release exactly (src/ragtruth_stats.py).How well detectors find these spans (RAGTruth's baselines, response and span F1) is in the Reading's Faithfulness section, in a closed block.
Links open in a new tab, with reading times. Notion pages give their own reading time; papers are timed for a working read of the parts that matter here.
Five retrievers on SciFact, NFCorpus and FiQA-2018 scored against the qrels at any cutoff, reproducing Anserini's BM25 and MTEB's MiniLM numbers; 16 queries per set where the systems disagree.
Eight RAGTruth questions, six models' answers each, every annotated span with its type and note; the whole released set recomputed, with one correction to the paper.
The overview: an eval as a measuring instrument; the graders compared; the human ceiling and kappa; how evals break. Tab: Judge atlas.
Every generation metric here is a judge: its biases, calibration against a gold slice, juries, fine-tuned judges.
Model-level and app-level harnesses, including where RAG evals run in CI.
Golden sets as release gates, shadow deploys and A/B tests for retrieval changes.
Error bars and paired tests for two retrievers on the same queries; how many questions you need.
Writing relevance and faithfulness rubrics, annotator agreement, auditing gold labels.
Grading an agent's searches and actions, not only its final answer.
A child of Topic: agentic-harnesses since 24 October 2026. Runtime groundedness checks as a post-call rail, evaluated as classifiers.
The stack these metrics split: the stage map, the two recalls, who decides what to read.
Chunking, BM25, RRF, reranking, and section 9: where an answer gets lost, A = rK pk|K g, measured.
Dense models and MTEB, the retrievers the recall curves compare.
ANN recall against exact search, and what it does to retrieval quality.
Agent loops, and long context against retrieval as measured, Self-Route included.
Retrieval monitoring, golden-set size in CI, re-indexing and freshness.
Lost in the Middle, RULER, HELMET's RAG category, effective length.
Section 6 owns the ranked-list metrics: precision@k, recall@k, MRR, MAP, nDCG and its two gains, with a one-list calculator.
The 2020 paper that named the pattern.
The span-labelled corpus behind the animation and the spans tab.
Reference-free faithfulness, answer relevance and context relevance, with WikiEval.
Current definitions with a worked example per metric.
Fine-tuned lightweight judges corrected with prediction-powered inference.
Context relevance, groundedness, answer relevance on one trace.
Faithfulness, answer relevancy and the three contextual metrics, with their prompts.
Citation recall and precision with an NLI checker.
Claim-level diagnostics for both halves, checked against human preferences.
Nugget and support evaluation at scale, with LLM and NIST assessors.
Zero-shot retrieval over 18 datasets; BM25 as the robust baseline.
Small fact-checkers matching GPT-4 on grounding at a fraction of the cost.
Clean explanations of recall@k, MRR and nDCG.
Why high metric scores can still hide wrong answers.
A survey of the metric and tooling landscape.