RAG and retrieval evaluation: faithfulness, groundedness, retrieval metrics

How to tell whether a retrieval-augmented system failed at finding the evidence or at using it, with every metric worked on released human labels. A child of Topic: evaluation-and-llm-judges. Reading: 27 min, plus 4 in closed details. Data as of October 2026.
The idea in one sentenceA RAG answer can fail at finding the evidence or at using it, so grade the two halves apart: the retrieved passages against labels of which passages hold the answer, the answer against the passages it was actually given, and only then the answer against the truth; every RAG metric compares two of five things, and which two decides what it can see.

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.

qrels: the relevance labels of a test set, query to passage to grade.
hit@k: 1 if any labelled passage is in the top k; recall@k is the share of the labelled passages that are.
Faithfulness (also groundedness): the share of the answer's claims that the retrieved passages support.
Claim decomposition: splitting an answer into atomic claims before checking each; itself an LLM step.
NLI: natural-language inference, a classifier saying whether a premise entails, contradicts or is neutral to a hypothesis.
Context precision / recall: judge-graded stand-ins for retrieval metrics: are relevant passages ranked first; do the passages cover the reference answer.
Nugget: one atomic fact a good answer must contain (TREC RAG's unit of correctness).
Citation recall / precision: do a sentence's citations entail it; is each citation needed.
In one screen: question, measure, what it needs, what it is blind to
QuestionMeasureNeedsBlind to
Did the evidence reach the prompt?recall@k and hit rate@k, at the prompt's k and at the reranker's input depthpassage labels (qrels)order inside the top k
Is the best evidence on top?nDCG@10, MRRgraded labels for nDCG; binary for MRRcoverage below the cutoff
How much of the prompt is noise?precision@kpassage labelsorder, and missing evidence
Is every claim in the answer supported by the passages?faithfulness, also called groundednesspassages and answer; a judge or a trained detectorwhether the passages are true or current
Does the answer address the question?answer relevancequestion and answerwhether the answer is correct
Do the citations point at passages that support the sentence?citation precision and recallanswer with citations, and the passagesclaims left uncited
Is the answer right?correctness against a reference, or the share of reference nuggets coveredreference answers or nuggetswhich half failed

Each metric is one comparison; faithfulness never looks at the truth, correctness never looks at the passages

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.

Split the halves: one score hides which one failed

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.

The one habit
For every wrong answer, first ask whether a passage that holds the answer was in the prompt. That one bit gives the failure to the retriever (not in the prompt) or to the generator (in the prompt, and still wrong) before anybody touches a component.

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:

  1. A real claim, a real retriever. SciFact test claim 54, "AMP-activated protein kinase (AMPK) activation increases inflammation-related fibrosis in the lungs", goes to BM25 over the 5,183 SciFact abstracts (our run, k1 = 0.9, b = 0.4), which returns a ranked list.
  2. The top 3 reach the generator. Three abstracts about AMPK, none about the lung, go into the prompt of Qwen2.5-1.5B-Instruct with RAGTruth's instruction to say "Unable to answer" if the passages do not settle it. It answers "Supported".
  3. Score end to end: wrong. SciFact's annotators label the claim CONTRADICT, from a paper showing that metformin, an AMPK activator, reverses lung fibrosis in mice. One more miss in the accuracy number; which half to fix is not in it.
  4. Score the retrieval half: failed. SciFact's qrels name one relevant abstract, "Metformin reverses established lung fibrosis in a bleomycin model"; BM25 ranked it at 5, below the cut. So hit@3 = 0, precision@3 = 0, RR@3 = 0: the evidence never reached the prompt.
  5. Score the generation half: failed too. The answer quotes passage 1 on JAK1 and 14-3-3 proteins in endothelial cells and fibroblasts and says it shows AMPK "leads to increased inflammation-related fibrosis"; none of the three passages mentions lung fibrosis, so the answer is unfaithful, and the instructed answer was "Unable to answer". Fix retrieval first: a better generator could at best refuse; it cannot find what it was not given.
  6. Fix the half that failed. Same claim, same generator, retrieval swapped for BM25 plus the MiniLM dense run fused by RRF (our hybrid). The labelled abstract rises to rank 2: hit@3 = 1, precision@3 = 1/3, RR = 1/2. Retrieval now passes.
  7. The bug moved. The answer still says "Supported", so a single accuracy number would say the retrieval change did nothing. Split, it did: the answer even cites passage 2 ("metformin, an AMPK activator, reverses established lung fibrosis"), then calls that support for a claim that AMPK activation increases fibrosis, an Evident Conflict in RAGTruth's terms. The next fix is the generator: a stronger model, or an instruction to check the direction of the effect.

Six generators, the same three passages

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?

  1. A real question. MS MARCO's "carry on cast still alive", one of RAGTruth's 989 question-answering items. The instruction: answer strictly from the three passages, or reply "Unable to answer based on given passages."
  2. Retrieve. The three passages RAGTruth kept from MS MARCO's ten Bing results. Nobody has looked at labels yet.
  3. Generate. The chosen generator writes its answer from the three passages (temperature 0.7, as released). Switch the generator to see the other five.
  4. Score end to end. Against MS MARCO's reference answer, which names six actors, the answer is correct or wrong: one bit. Our reading of the chosen answer is under the card.
  5. Score the retrieval half. MS MARCO's annotator marked passage 2 as the one the answer was written from (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.
  6. Score the generation half. RAGTruth's annotated spans light up in the answer; the reading under the card says what each span is, or what an answer without spans still gets wrong.
  7. Which half failed. For the three wrong answers, the generator: retrieval delivered the answer-bearing passage, and the answer contradicted it, ignored it or left half of it out. The fix is the prompt, the model or the instruction, not the retriever. For the three correct ones, neither half, against the passages and the reference.
  8. And the world. Both halves can pass and the answer still be wrong today: passage 2 dates from about 2014, and four of the six (June Whitfield, Barbara Windsor, Leslie Phillips, Julian Holloway) have died since, per Wikipedia on 4 October 2026. Faithfulness checks the answer against the passages, never the passages against the world; corpus freshness is a third thing to test.
Where each label in the animation comes from

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:

Same 264 questions, same passages: the generator alone decides the outcome

"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.

Triage a wrong answer, cheapest check first

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.

Triage a wrong answer in five questions, cheapest first

The retrieval half: what changes when the reader is a generator

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):

  1. One query, the top 100 as a field. NFCorpus query "grapes" has 196 labelled passages. BM25's top 100 is folded into rows of ten, rank 1 at the front left; the 15 labelled passages among them stand up.
  2. The prompt's cut, k = 10. 9 of the first ten are labelled: precision@10 = 0.9 and hit@10 = 1, yet recall@10 = 9/196 = 0.046. With 196 labels, recall@10 cannot exceed 10/196 (0.051): when a query has many labels, hit rate and recall tell different stories.
  3. nDCG@10 discounts each hit by its rank. A hit's gain is divided by log2(rank + 1): rank 1 keeps all of it, rank 10 keeps 0.29. Summed, DCG@10 = 4.113; the ideal list (ten labelled passages on top) scores 4.544, so nDCG@10 = 0.905.
  4. The reranker's depth, k = 100. All ten rows: 15 of 196, recall@100 = 0.077. The 6 labelled passages below rank 10 are what a reranker reading this list could still lift into the prompt; nothing else can get there.
  5. The dense run on the same query. MiniLM's top 100: only 2 labelled passages in its first ten, but 22 in the hundred (recall@100 0.112; nDCG@10 0.130).
  6. Read both depths. At the prompt BM25 wins, 9 against 2; at the reranker's depth the dense run wins, 22 against 15 (the RRF hybrid keeps 9 and reaches 24). Recall read at one depth hides either a ranking miss or a retrieval miss.

Over all queries, at both depths

Predict: on FiQA, where forum questions paraphrase the posts, how much recall@100 does a 22M-parameter dense model add over BM25: about 2 points, 10, or 17? Pick FiQA below.
  • Measure recall twice, at the prompt's k and at the reranker's depth (often 50 to 150), or a retrieval miss and a ranking miss look the same.
  • Recall@k has no value for an unanswerable question (no relevant passage to divide by): leave those out of the average and score abstention on them instead.
  • hit@k (success@k, and "recall@k" in some papers) matches recall@k only when each query has one relevant passage; the naming is defined on Evaluation metrics, section 6, so check which one a paper means before comparing.
  • precision@k is capped by the labels: with one relevant passage per query, precision@10 cannot exceed 0.1; raising k can only raise recall and usually lowers precision.
  • nDCG@10 is the standard for comparing rerankers and BEIR's and MTEB's headline number; MRR fits single-answer lookups. Say the gain: linear (gain = grade) in trec_eval, BEIR and MTEB, exponential (2grade − 1) in some learning-to-rank libraries; they differ on graded labels.
  • ANN recall is not retrieval recall. ANN recall measures an approximate index against exact search over the same embeddings; retrieval recall measures the system against human labels. A perfect index cannot fix an embedding model that puts the right passage far from the query (Vector indexes owns ANN recall).

Recall keeps rising past the prompt's k: read it at the prompt and at the reranker's depth

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.

Five retrievers on three sets, scored and reproduced

BM25 (two parameter sets and the rank_bm25 package), a small dense model and their RRF hybrid, scored against the qrels:

The five systems, exactly

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.

Defaults reproduce published numbers, independently
The dense run matches MTEB's published all-MiniLM-L6-v2 results to the fourth decimal on all three sets; our BM25 lands within 0.004 of Anserini's flat regressions (a Python reimplementation, not Lucene's exact analyzer). The BEIR paper's own BM25 (0.665, 0.325, 0.236) indexed title and text as separate fields, a slightly different system.
  • The winner depends on the corpus. BM25 edges the dense model on SciFact (nDCG@10 0.676 against 0.645), where claims reuse the abstracts' terms, and loses badly on FiQA (0.239 against 0.369), where questions paraphrase. Test on your corpus (and the SciFact gap is within noise, as Comparing two systems shows).
  • Fusion wins everywhere here. The RRF hybrid is best on all three sets (0.719, 0.356, 0.373) and lifts SciFact recall@100 from 0.925 to 0.962: the two retrievers miss different passages.
  • "BM25" is not one system. 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.
  • Recall and hit rate tell different stories when labels are many. NFCorpus has 38 labelled passages per query on average, so BM25's recall@10 is 0.152 while 68% of queries have at least one relevant passage in the top 10 (hit@10 0.684); precision@10 can never approach 1 on SciFact (1.1 labels per query).

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).

Faithfulness: split into claims, verify each, apply a rule

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?

  1. The passages and the answer. One real answer from RAGTruth to "carry on cast still alive", beside the passage that holds the answer; passages 1 and 3 are about other actors.
  2. Split into claims. A judge (or a sentence splitter) turns the answer into atomic claims. This step is itself an LLM call, and a different split changes the denominator and sometimes the verdicts; a sentence that only restates the question is dropped (TruLens drops such trivial sentences too).
  3. Verify each claim against the passages. Supported, contradicted, or simply not there. Whether it is true in the world never enters.
  4. Apply each instrument's rule. All three rules agree (2/3 = 0.67), because the bad claim contradicts the passage: every checker catches a contradiction. RAGTruth marks the same sentence as an Evident Conflict.
faithfulness = claims in the answer supported by the passages / claims in the answer

Three kinds of checker

  • An LLM judge per claim (RAGAS, DeepEval, TruLens): flexible, but the split and the verdict are both judge calls, so the judge's biases enter twice.
  • An NLI or fact-checking model: the claim is the hypothesis and the passages the premise. ALCE used TRUE, a T5-11B fine-tuned for entailment; RAGAS's 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.
  • A trained span detector: marks where in the answer the unsupported text is, not only whether. RAGTruth's fine-tuned Llama-2-13B is the reference point (below).

Three things faithfulness is not

  • Not correctness. GPT-4's answer to the same question is perfectly faithful and four of its six "still alive" are now wrong, because the passage dates from about 2014 (June Whitfield died in 2018, Barbara Windsor in 2020, Leslie Phillips in 2022 and Julian Holloway in 2025, per Wikipedia as read on 4 October 2026). Freshness and source checks are a separate test.
  • Not completeness. Llama-2-7B's answer names three of the six and has no marked span, so faithfulness passes it; only a correctness or context-recall check catches the gap.
  • Not the same as "true". RAGTruth's annotators flagged whether each hallucinated span was nevertheless true in the world (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.

How a faithfulness judge fails

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:

  • Decomposition decides the score. Claim-level factuality scores are "sensitive to the decomposition method used" (Wanner et al., 2024): a split that drops a qualifier turns a faithful sentence unfaithful and charges the generator for the judge's error.
  • Leniency is a setting. DeepEval's default passes unsupported claims and TruLens counts abstentions as grounded, by design. Read the prompt before reading the number.
  • Prompted judges over-flag. On RAGTruth's QA responses, prompted GPT-4-turbo found 90.6% of hallucinated answers but only 33.2% of the answers it flagged were hallucinated (F1 45.6; span F1 32.6). A 13B model fine-tuned on the labels reached 68.2 and 58.2.
  • Judges grade their own family up. FACTS Grounding uses three judges from three labs because, measured, each rated its own family's responses 3.23% higher on average (Jacovi et al., Jan 2025).
  • Long contexts. With 20 passages the judge's prompt is long, and judges degrade with length as generators do. We found no clean measurement of faithfulness-judge accuracy against context length (unconfirmed); measure it on your own lengths before trusting a single judge there.
  • Unpinned judges. Upgrading the judge model moves every generation metric; treat it as a new instrument and recalibrate on the gold slice.
RAGTruth's detector baselines: response-level and span-level F1

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.

DetectorResponse F1, QAResponse F1, all tasksSpan F1, QASpan F1, all tasks
Prompted GPT-3.5-turbo30.852.912.112.8
Prompted GPT-4-turbo45.663.432.628.3
SelfCheckGPT (GPT-3.5-turbo)43.758.8n/an/a
LMvLM (GPT-4-turbo)30.149.4n/an/a
Llama-2-13B fine-tuned on RAGTruth68.278.758.252.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.

Choosing the checker

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.

Hallucination-detection benchmarks and their best detectors, dated

These measure the detectors, not the generators: each holds model outputs labelled faithful or not against their sources.

BenchmarkWhat it holdsBest 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).

Answer relevance, context precision and context recall: judged, and how they fail

Answer relevance

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.

Context precision

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:

context precision@K = Σk=1..K (precision@k × vk) / (relevant passages in the top K)
vk
the judge's 0 or 1 verdict on the passage at rank k

It is the average precision of the judged list, so irrelevant passages ranked below every relevant one do not lower it.

Predict: one relevant passage at rank 1, then nine misses, k = 10. What are precision@10 and context precision@10? Press "One hit, nine misses".
The worked example, every metric

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.

Padding the prompt is invisible to context precision; precision@k catches it

Click a slot to cycle its grade (0 to 3). Relevant passages not in this list count toward recall and IDCG.

Context recall

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.

Citation accuracy: does each cited passage support its sentence?

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).

Three statements, three citations: recall 2/3, precision 2/3

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.

Same names, different instruments, and how well they track people

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)FaithfulnessAnswer relevanceRetrieval-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).

Agreement with people, in more detail: WikiEval, ARES, TREC 2024
  • On easy ground they look good. RAGAS reported agreement with human annotators on its 50-question WikiEval set of 0.95 for faithfulness, 0.78 for answer relevance and 0.70 for context relevance, against 0.72, 0.52 and 0.63 for a direct GPT score (Table 1).
  • Fine-tuned judges rank systems better. ARES reported Kendall's τ with true system rankings 0.065 higher than RAGAS for context relevance and 0.132 higher for answer relevance on KILT and SuperGLUE tasks.
  • Automatic evaluation ranks systems well and individual answers poorly. For TREC 2024, run-level τ between fully automatic and manual nugget scoring was 0.783 on the 21 topics first judged (Pradeep et al., Nov 2024); on support, GPT-4o and assessors agreed exactly on 56% of judgments made from scratch, 72% after post-editing (arXiv 2504.15205).

The best automatic metric reaches 61.93 of a 70.09 human ceiling; nugget scoring ranks systems far better than single answers

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.

Building a RAG eval set: real questions, two labels each

A few hundred well-made items beat ten thousand synthetic ones.

  1. Mine real questions from logs, support tickets and subject-matter experts. Synthetic questions come out longer and more literal: one September 2026 comparison on a production corpus found real queries averaged 6.8 words against 15.7 for generated ones, and that tuning on the synthetic set picked a retriever with up to 8 times the latency of the fastest (Kucia and Gawlik, arXiv 2609.14579, preprint).
  2. Label each question twice: the relevant passage ids with grades (for the retrieval half) and a reference answer, or a list of nuggets (for the generation half). Expert time is the bottleneck; spend it here. Labelling only the top results of one system biases the labels toward that system; pool the top 10 of several systems, as TREC does.
  3. Bootstrap coverage with generation, then filter by hand. RAGAS's generator builds a knowledge graph over your chunks (entities, keyphrases, similarity links) and by default draws a third each of single-hop specific, multi-hop abstract and multi-hop specific questions (docs). Unfiltered, generated questions quote the chunk's own phrasing and are easy for lexical retrieval by construction.
  4. Include the hard cases on purpose: unanswerable questions (score abstention, not recall), multi-hop questions, ambiguous ones, near-duplicate documents, and questions whose answer changed over time.
  5. Version it. Re-chunking the index invalidates passage-id labels; re-label or map them. Never tune on the held-out slice.

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.

Comparing two RAG systems fairly

Predict: on SciFact, BM25's nDCG@10 is 0.676 and the dense model's 0.645. On how many of the 300 claims does BM25 do better? Pick "BM25 against dense".

The rules that keep a comparison fair:

  • Paired, with an interval. Report the per-query difference and its interval, not two means; which test and how many questions you need is on Eval statistics.
  • Labels pooled from both systems. Unjudged passages count as irrelevant, so a new system that finds good passages nobody labelled is under-scored; judge the pooled top results of both before comparing.
  • The same prompt budget. The same k and the same token budget: a system given more passages wins recall by construction and may lose precision and faithfulness.
  • The same pinned judge, prompt and version for every generation metric, ideally from a third model family (judges rate their own family up).
  • Both halves, plus cost and latency. A change can move the bug between halves with accuracy unchanged, as the hybrid did for SciFact claim 54 in the animation.

A 0.03 gap in the means is 68 wins against 70 losses: not a result on 300 queries

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).

Long context against RAG is the same comparison

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.

Two more findings for the long-context arm
  • More retrieved passages is not monotone (Jin et al.), and LaRA found no single winner between RAG and long context; both are owned by Agentic retrieval, section 8. So evaluate recall@k and end-to-end accuracy together across k, not recall alone.
  • Neither wins everywhere: Self-Route (EMNLP 2024 Industry) found long context ahead on average when budget allowed, and routing each query to RAG or long context by the model's own judgement kept quality at 65% lower cost on Gemini-1.5-Pro (the paper's prose; its Table 1, used by the owner page, gives 38.4% of long context's tokens).

Agentic RAG

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.