What good is a confident answer if the system pulled the wrong document? That question is central to every RAG evaluation. Teams ship a retrieval-augmented generation pipeline, watch a demo answer a few questions beautifully, and then discover in production that half the failures come from retrieval and the other half from the model. The only way to tell them apart is to measure them apart. This article covers the metrics that do that work, where they came from, and where they quietly mislead you.
Why one score can never be enough
A RAG system has two moving parts. A retriever fetches passages, and a generator writes an answer from them. When the output is wrong, the cause could be either side. A correct answer can emerge from missing context because the model guessed. A wrong answer can emerge from perfect context because the model ignored it.
That is why component-level metrics matter. Retrieval metrics score the quality of the fetched passages. Generation metrics score whether the written answer is grounded and relevant. Evaluating them together produces a single number that hides the diagnosis. Evaluating them separately tells you which half of the pipeline to fix.
The original retrieval-augmented generation paper by Lewis and colleagues, published on arXiv in 2020, framed the task around end-to-end accuracy on knowledge-intensive tasks. That framing was appropriate for a research contribution, but it leaves practitioners without a debugging signal. Production teams need the split view.
The retrieval side: ranking metrics that predate RAG by decades

Nothing about retrieval evaluation is new. Information retrieval) researchers have scored ranked lists for decades, and RAG simply inherited their toolkit.
| Metric | What it measures | Best used when |
|---|---|---|
| Recall@k | Share of relevant passages found in the top k | You cannot afford to miss evidence |
| Precision@k | Share of the top k passages that are relevant | Context windows are tight |
| MRR | How high the first relevant passage ranks | One good passage answers the question |
| nDCG | Rank-weighted relevance across the whole list | Some passages are more useful than others |
Recall@k answers a blunt question: did the retriever find the evidence at all? If the answer requires a specific policy clause and the clause never appears in the top ten results, no generator can save you. Recall is usually the first metric to check because a miss is unrecoverable.
Precision@k asks the opposite. Of the passages you handed the model, how many were actually useful? Low precision wastes context and invites distraction. It matters most when you retrieve many passages into a small window.
Mean reciprocal rank (MRR) rewards putting the best passage first. It is a natural fit for question answering, where one passage usually carries the answer.
Normalized discounted cumulative gain (nDCG) handles graded relevance, so a partially useful passage counts for something. The metric comes from Järvelin and Kekäläinen’s 2002 paper on cumulated gain-based evaluation of IR techniques, and it remains the standard when relevance is not binary.
A practical note from people who build these systems: pick your k before you compare runs. Recall@5 and recall@20 tell different stories, and a retriever that looks weak at five may look excellent at fifty. Fix k to what your generator actually receives, then report honestly.
The generation side: overlap metrics and their limits
Once passages are retrieved, the generator writes something. The oldest way to score that text is to compare it against a reference answer using word overlap.
BLEU, introduced by Papineni and colleagues in 2002, was built for machine translation. ROUGE, from Lin’s 2004 work, was built for summarization. Both are cheap, deterministic, and widely reported. Neither was designed for open-ended question answering, and both correlate weakly with human judgment when many correct phrasings exist.
This is the most common mistake in RAG evaluation: reporting ROUGE against a single gold answer and treating the number as truth. A correct answer phrased differently scores badly. A fluent answer that copies the reference while ignoring the retrieved context scores well. Overlap metrics reward surface similarity, not correctness.
Use them as a smoke signal. If ROUGE collapses between two runs, something changed. Do not use it as your headline quality number.
RAG-specific metrics: faithfulness and relevance
The metrics that matter most for RAG were proposed specifically for it. The RAGAS framework, introduced by Es and colleagues on arXiv in 2023, named three: faithfulness, answer relevance, and context relevance.
Faithfulness asks whether every claim in the answer is supported by the retrieved context. This is the anti-hallucination metric. Answer relevance asks whether the response actually addresses the question asked. Context relevance asks whether the retrieved passages were pertinent in the first place.
These three map neatly onto the failure modes practitioners see most. A faithful but irrelevant answer means the retriever fetched the wrong thing and the model dutifully summarized it. A relevant but unfaithful answer means the model knew what was asked and invented the details anyway.
The catch is how these metrics get scored. Most implementations use an LLM as judge, prompting a model to grade the answer against the context. That approach is flexible and cheap relative to human annotation, but it is sensitive to prompt wording and to the judge model’s version. Change the judge, and your scores move even though your system did not. Treat LLM-judge scores as internal comparisons between runs on the same judge, never as absolute benchmarks you can quote across teams.
Building an evaluation set that reflects your traffic
Metrics are only as good as the questions you run them on. A frequent failure is evaluating on a handful of hand-picked queries that the team already knows work. That produces flattering numbers and no insight.
A better approach is to sample real user questions, then label them. For each question, record which passages are relevant, and write or approve a reference answer. This is slow, and it is the single highest-leverage investment in the whole evaluation program. A structured method for doing this is laid out in this guide to designing an evaluation set for enterprise assistants, which covers sampling strategy and labeling discipline.
Two practical tips from teams that have done it:
- Stratify by difficulty. Include questions with no answer in the corpus. Refusal behavior is a metric too.
- Version your labels. When the corpus changes, relevance judgments go stale. Re-check a sample after every major document refresh.
There is a second discipline that saves enormous time: keeping the evaluation set and the prompts that drive the system under the same version control, so a prompt change and a score change can be traced to each other. That workflow is described in more depth in this piece on keeping prompts and evaluations in sync, and it prevents the classic situation where nobody can explain why the numbers moved last Tuesday.
Benchmarks: useful context, incomplete coverage
Public benchmarks give you a reference point, but they were not built as complete RAG suites.
BEIR, from Thakur and colleagues in 2021, tests retrieval across many domains and is a solid way to compare embedding models on heterogeneous data. KILT, from Petroni and colleagues in 2021, covers knowledge-intensive tasks with provenance, which makes it closer to the RAG shape. Neither tests your corpus, your query distribution, or your generator’s prompt.
Use benchmarks to choose components. Use your own labeled set to judge the assembled system. Confusing the two is how teams end up with a retriever that wins on a leaderboard and loses on their support tickets.
Human evaluation is still the reference point
Every serious RAG paper reports human judgments alongside automatic metrics. The protocols vary widely in annotator count and agreement measurement, which limits cross-study comparison, but the underlying point holds: humans remain the ground truth that automatic metrics approximate.
A workable middle path for production teams is a small, regular human review. Sample twenty outputs a week. Have a reviewer mark each as grounded, relevant, and correct. Track the trend. When the automatic metrics disagree with the human review, trust the humans and investigate the metric.
Common mistakes and what actually works
The pattern across teams is remarkably consistent. Here is what goes wrong, and what replaces it.
| Mistake | What works instead |
|---|---|
| Reporting one blended score | Report retrieval and generation metrics separately |
| Evaluating on cherry-picked questions | Sample from real traffic, including unanswerable queries |
| Quoting LLM-judge scores as absolutes | Compare runs on the same judge and prompt |
| Using ROUGE as the headline metric | Use overlap metrics only as a smoke signal |
| Skipping retrieval metrics entirely | Track recall@k first; a miss cannot be recovered |
The habits that hold up are unglamorous. Fix k. Label a real evaluation set. Version prompts and tests together. Review a small human sample every week. Watch for regressions when the corpus changes. None of it is exciting, and all of it beats a dashboard full of numbers nobody trusts.
For teams tracking how evaluation practice is shifting as tooling matures, the broader news coverage on evaluation and model quality is worth following, since conventions here move faster than the underlying metrics do. (News)
Conclusion
RAG evaluation metrics are not a single score to optimize. They are a diagnostic toolkit. Retrieval metrics like recall@k, precision@k, MRR, and nDCG tell you whether the right evidence arrived. Generation metrics like faithfulness and answer relevance tell you whether the model used it honestly. Overlap metrics like BLEU and ROUGE are legacy smoke detectors, useful for spotting change and poor at measuring quality. Build a labeled set from real questions, score the two halves separately, keep a human in the loop, and treat every LLM-judge number as a relative signal rather than a verdict. Do that, and the next time the system gives a confident wrong answer, you will know exactly which half to fix.
FAQ
What is the most important RAG evaluation metric?
There is no single most important metric, but recall@k deserves to be checked first. If the retriever never surfaces the evidence, no generator can produce a grounded answer. Once retrieval is healthy, faithfulness becomes the metric to watch, because it captures whether the answer is actually supported by the retrieved context.
Can I just use ROUGE or BLEU to evaluate RAG?
You can, but the result will mislead you. Both metrics were designed for summarization and machine translation, and they reward word overlap with a reference answer. A correct answer phrased differently scores poorly, and a fluent answer that ignores the context can score well. Use them to detect sudden changes between runs, not to judge quality.
How does an LLM-as-judge metric actually work?
The evaluator prompts a language model with the question, the retrieved context, and the generated answer, then asks it to grade specific properties such as faithfulness or relevance. It is fast and flexible, but scores shift when the prompt or the judge model version changes. Compare runs only against the same judge setup.
How many questions do I need in an evaluation set?
There is no fixed number, but coverage matters more than volume. A few hundred well-labeled questions sampled from real traffic, including unanswerable ones, will teach you more than thousands of synthetic queries. Re-check a sample of labels whenever the underlying document corpus changes significantly.
Should retrieval and generation be scored together or separately?
Separately, at least at first. A blended score hides whether a failure came from missing evidence or from a model that ignored good evidence. Component metrics localize the problem. Once both halves are healthy, an end-to-end score becomes a useful summary rather than a diagnostic dead end.
Why do my evaluation scores change when nothing in the system changed?
The usual culprits are a judge model update, a prompt tweak somewhere in the pipeline, or a corpus refresh that made old relevance labels stale. Keeping prompts and evaluation sets under version control makes these shifts traceable instead of mysterious.







