JOURNAL / EVALUATION & RETRIEVAL

How to evaluate RAG.
Find the failure, not just the score.

A useful test tells you whether the system found the right evidence, used it faithfully, and knew when to stop. One answer score cannot tell that whole story.

Two researchers examine a sample at a laboratory bench while another works at a computer.EVIDENCE / RETRIEVAL / SYMPLOKA
TEST THE WHOLE CHAIN

A polished answer can still be built on a missing source.

Retrieval and generation fail in different ways. Keep their evidence visible, so the next change fixes a cause instead of hiding a symptom.

01 / FOLLOW THE EVIDENCE

A final answer hides where the pipeline went wrong.

A retrieval-augmented generation system selects material from a collection and asks a model to answer using that context. If the answer is wrong, the search may have missed a relevant passage; the passage may have been split badly or ranked too low; the source may be stale; or the model may have ignored or misread evidence it did receive. For a plain-language walkthrough of the system, start with what RAG is and how its stages fit together ↗.

Those failures call for different fixes. Record what was retrieved and what the model saw alongside its answer. RAGChecker’s NeurIPS paper takes the same diagnostic approach by measuring retrieval and generation as separate modules as well as examining the full response.

Do not ask only “Was the answer good?” Ask “Which evidence arrived, what did the system do with it, and what should it have done instead?”

02 / BUILD A TEST SET THAT MEANS SOMETHING

Start with real questions and a human-readable expected result.

Collect representative questions from the task the system is meant to support. For each one, note the relevant source or passage, the facts a good answer should include, and whether the right response is to abstain. Keep this evaluation set separate from examples used to tune prompts, retrieval, or a model.

Routine questionsCan the system find a direct answer in a current, authoritative source?
Different wordingDoes retrieval survive a paraphrase, synonym, typo, or a question phrased in the way a real visitor would ask it?
More than one sourceDoes the answer combine the required passages without dropping a condition or inventing a connection?
No answer or a conflictDoes it say what is unknown when the collection is silent, stale, or contradictory?
Access boundariesCan a user retrieve only material they are allowed to see? Treat authorization as an application rule and test it directly.

Include the corpus version and the question’s expected outcome with every case. Without those details, a changed source collection can make yesterday’s score difficult to interpret.

03 / SEPARATE THE QUESTIONS

Measure retrieval, grounding, and usefulness on their own terms.

Did retrieval find the evidence?With relevant passages labelled, Recall@k asks how often they appear in the first k results. Precision@k asks how much of that result set is relevant. MRR or nDCG can reflect how high useful passages rank. These measures depend on your labels and the passage-splitting scheme.
Did the answer follow the evidence?Check whether answer claims are supported by the retrieved context, whether citations point to the claims they accompany, and whether important details were omitted or added without support.
Did it handle uncertainty correctly?Test questions with missing, conflicting, or out-of-date material. A fluent guess should not pass a case whose expected outcome is “not enough evidence.”
Did it help complete the task?For the intended workflow, track corrections, human review, latency, and cost alongside answer quality. A technically grounded answer can still be the wrong shape for the job.

There is no universal RAG score. A retrieval metric diagnoses a search stage; a grounding measure checks a relationship between text and evidence; a task review asks whether the system helped a person. Keep the labels distinct.

04 / COMPARE CHANGES FAIRLY

Hold the questions steady while you change one part.

Run a baseline, save the retrieved passages and answers, then change one meaningful variable: document parsing, chunk size, embedding model, ranking, context length, prompt, or generator. Re-run the same cases and inspect examples where the result improved and where it regressed.

Report results by case type as well as in aggregate. A mean can hide a retrieval method that helps common questions but fails on rare terminology, multi-part questions, or missing evidence. BEIR’s heterogeneous information-retrieval benchmark was designed to examine retrieval across different datasets and domains; its central lesson for a product team is to check the range of the task, not only a comfortable slice of it.

Version the corpus, index, model, prompt, and test set. That small record makes comparisons reproducible and helps explain why an answer changed after a release.

05 / USE AUTOMATION WITH JUDGMENT

An automated grader can scale inspection. It cannot define quality for you.

Model-based evaluators can help label large batches for properties such as relevance or support. First check their decisions against human-reviewed examples from your own domain, including borderline cases. Inspect disagreements and keep a small set of human checks when the prompt, model, or content changes.

RAGChecker reports stronger correlation with human judgments than the metrics it compared in its own meta-evaluation. That is evidence about the paper’s study, not a guarantee that one metric or grader is reliable for every corpus, language, and task.

Use an evaluator to point toward examples worth reviewing. Keep the rubric, evidence, and final judgment inspectable. See how to validate an LLM judge ↗.

06 / TURN FAILURES INTO A PLAN

Match the symptom to the layer that can fix it.

Right source missing from the resultsInspect ingestion, parsing, query wording, filters, and ranking before changing the language model.
Right source present, answer unsupportedCheck context ordering, prompt instructions, answer construction, and whether citations are verified against their passages.
Answer is accurate but incompleteCheck whether all required claims were retrieved, whether the question needs more than one passage, and whether the rubric rewards the missing details.
Answer sounds sure when evidence is absentMake abstention an explicit expected outcome and test it on questions the indexed sources cannot answer.

For how the search representation is built, read what embeddings are and how vector search ranks passages ↗. For the design choice between finding current information and changing a model’s behavior, read RAG or fine-tuning? ↗. For agent workflows, continue with how to evaluate an AI agent ↗ or how to read a benchmark ↗.

RESEARCH & OPEN TOOLSRu et al., RAGChecker: A Fine-grained Framework for Diagnosing Retrieval-Augmented Generation, NeurIPS 2024 ↗Amazon Science, RAGChecker source code and metric documentation ↗Thakur et al., BEIR: A Heterogeneous Benchmark for Zero-shot Evaluation of Information Retrieval Models ↗Es et al., RAGAS: Automated Evaluation of Retrieval Augmented Generation ↗