To evaluate an agentic RAG system, score three things on a golden set built from real user questions: what it retrieved, what it said, and the decisions it made along the way. Retrieval gets context precision, context recall and, when you have labeled documents, MRR and nDCG. Generation gets faithfulness and answer relevance. The agent layer, which plain RAG evals skip, gets query planning, the choice to retrieve or answer, multi-hop completeness and tool choice. Agnost AI builds that golden set from production conversations, including the failures it flagged, and runs experiments on it on every change; Ragas, DeepEval and TruLens supply open-source metrics, and LangSmith, Arize and Braintrust host datasets and experiments.

This guide is about testing before you ship a change. For watching a RAG agent once it is live, see the best RAG monitoring tools.

Disclosure: We make Agnost AI. Agnost builds eval datasets from production conversations, runs experiments on them on every change, and monitors production. It does not compute ranking metrics like nDCG. Facts about Ragas, DeepEval, TruLens, Arize, LangSmith, Braintrust and the benchmarks come from their own docs, papers and repos, checked on December 1, 2026.

How is agentic RAG evaluation different from classic RAG evaluation?

Classic RAG runs one retrieval and one generation, so you score two steps. Agentic RAG decides what to search, searches several times, calls other tools, and decides when it has enough, so most of its failures are decisions, not bad chunks.

Failures you will only catch with agentic checks:

  • Answered from memory. The question needed a lookup, and the agent answered from model knowledge without searching.
  • Stopped one hop early. "Which plan includes SSO, and what does it cost in EUR?" The agent finds the plan, never searches the price list, and guesses the price.
  • Bad decomposition. It searches the whole question as one query, gets a blend of half-relevant chunks, and answers from those.
  • Wrong tool. It searches the docs index for an account-specific question that needed the billing API.
  • Search loops. It rewrites the same query eight times, burning latency and tokens, and ends with what it found on the first try.
  • Ignored evidence. The right passage was retrieved in step 3 and the final answer contradicts it.

A per-step faithfulness score can look fine on every one of these. You need to judge the whole run.

Which retrieval metrics should I use?

Use context precision and context recall for every case, and MRR or nDCG when you have labeled which documents are relevant.

  • Context precision. Are the relevant chunks ranked above the irrelevant ones? Ragas defines it as the retriever's ability "to rank relevant chunks higher than irrelevant ones", with reference and reference-free variants. DeepEval's Contextual Precision checks the same ordering.
  • Context recall. How much of the evidence needed for the reference answer was retrieved. Ragas and DeepEval both score it against an expected answer.
  • MRR (mean reciprocal rank). One over the rank of the first relevant document, averaged across questions. Good when one document answers the question.
  • nDCG@k. Discounted cumulative gain at k, normalized by the best possible ranking, so it rewards putting the most relevant documents first and handles graded relevance. BRIGHT and BrowseComp-Plus both report nDCG@10 for retrievers.
  • Evidence recall over the run. For agents, measure recall across all searches, not just the last one. BrowseComp-Plus defines recall as how many human-verified evidence documents the agent retrieved during its entire interaction.

Code beats judges here. If your golden set lists the document IDs that answer each question, recall@k, MRR and nDCG are exact and free. Use an LLM judge for context relevance only when you don't have document labels.

Which generation metrics should I use?

Use faithfulness and answer relevance on every case, and answer correctness when you have a reference answer.

  • Faithfulness. The share of claims in the answer that the retrieved context supports. Ragas scores it as supported claims divided by total claims; TruLens calls it groundedness; DeepEval and Phoenix have Faithfulness metrics.
  • Answer relevance. Does the answer address the question? Ragas generates questions from the answer and compares them with the original; DeepEval and TruLens use a judge.
  • Correctness. Does the answer match the reference answer or the key facts you listed? This catches the case where the agent faithfully summarized the wrong documents.
  • Noise sensitivity. Ragas measures how often the system gives incorrect answers when it uses relevant or irrelevant retrieved documents. Useful when your retriever returns a lot of near-misses.

Faithfulness alone is a trap: an answer can be fully grounded in a stale or wrong document. Pair it with correctness. For the production version of these checks, see LLM hallucination detection in production.

What do I add to evaluate the agent's decisions?

Add four checks: query planning, retrieve-or-answer, multi-hop completeness and tool choice, plus step efficiency. These are the scores that separate agentic RAG evaluation from RAG evaluation.

Decision Question to ask How to score Library metrics
Query planning Did it split the question into the right searches? Judge against expected sub-questions DeepEval Plan Quality, Plan Adherence; TruLens PlanQuality
Retrieve or answer Did it search when it needed to, and abstain when the corpus had no answer? Code: was a search called; judge: did it admit missing info Label per case
Multi-hop completeness Did it retrieve evidence for every hop? Evidence recall over the whole run BrowseComp-Plus style recall
Tool choice Right tool, right arguments? Code match on tool name and key arguments Ragas Tool Call Accuracy, Tool Call F1; DeepEval Tool Correctness; Phoenix tool selection
Efficiency How many steps and searches? Count, compare with a budget DeepEval Step Efficiency; TruLens ExecutionEfficiency
Goal Did the user get what they asked for? Judge, binary Ragas Agent Goal Accuracy; DeepEval Task Completion

For trajectories, decide how strict to be. LangSmith's open-source agentevals package matches a trajectory against a reference in strict, unordered, subset or superset mode, and also has an LLM judge that needs no reference. Arize AX has agent trajectory evaluations where the reference is optional. Strict matching breaks when a valid alternative path exists, so most teams use subset matching on the must-have steps (the price list was searched) and a judge for the rest.

Counting search calls matters more than it looks. In the BrowseComp-Plus paper, GPT-5 with a BM25 retriever averaged 23.23 search calls and 55.9 percent accuracy; with Qwen3-Embedding-8B it averaged 21.74 calls and 70.12 percent. A better retriever made the agent both more accurate and cheaper, which you only see if you count calls.

Which public benchmarks test agentic RAG?

Use public benchmarks to choose a model and retriever, not to decide whether your agent works on your documents.

Benchmark What it tests Size Main metric
FRAMES (Google DeepMind, 2024) Factuality, retrieval and reasoning; each question needs 2 to 15 Wikipedia articles 824 questions Accuracy
HotpotQA (2018) Multi-hop QA; distractor and fullwiki settings 113k QA pairs Answer and supporting-fact scores
MuSiQue (2021) 2 to 4 hop questions built to resist shortcuts About 25k F1
2WikiMultiHopQA (2020) Multi-hop with reasoning-path evidence About 193k examples Answer plus evidence (reasoning path)
BRIGHT (2024) Retrieval that needs reasoning, not keyword match About 1,400 queries nDCG@10
CRAG (Meta, 2024) RAG over mock web and knowledge-graph APIs, 5 domains 4,409 QA pairs Score: perfect 1, acceptable 0.5, missing 0, incorrect -1
BrowseComp (OpenAI, 2025) Hard-to-find facts on the open web 1,266 problems Accuracy
BrowseComp-Plus (2025) Deep research agents on a fixed corpus, so retrieval is measurable 830 queries, 100,195 docs Accuracy, evidence recall, search calls

Two cautions. First, contamination: the FRAMES authors note that models may have seen some of its information during pretraining, and BrowseComp ships a canary string and asks people not to publish examples. Second, transfer: BRIGHT showed an embedding model scoring 59.0 on MTEB and 18.3 nDCG@10 on BRIGHT. A retriever that wins one benchmark can lose on another, and your corpus is another benchmark nobody has run. FRAMES is also a reminder of why agentic retrieval is worth evaluating at all: the authors report accuracy rising from 0.408 with single-step retrieval to 0.66 with multi-step retrieval.

How do I build a golden set from production questions?

Build it from the questions users actually ask, weighted toward the ones that went wrong. Synthetic questions generated from your documents are useful for coverage, but they ask what the documents answer, which hides your content gaps.

  1. Sample real questions across your top intents, 20 to 50 per intent to start. Strip personal data.
  2. Add every production failure you confirmed: wrong answers, user corrections, escalations, answers to questions the corpus couldn't cover. These are the cases most likely to break again.
  3. Add the hard shapes on purpose: questions that need two or three documents, questions with no answer in the corpus (the right output is "I don't know"), questions where an old and a new policy both exist, and account-specific questions that need a tool, not the docs.
  4. Label each case with the document IDs that answer it, the reference answer or 3 to 5 key facts, the tools that must be called, and the expected behavior when the answer is missing.
  5. Freeze the corpus snapshot with the set. If the index changes under the test, a pass or fail no longer means what it meant.
  6. Fill gaps with synthetic cases. Ragas' TestsetGenerator builds a knowledge graph from your documents and includes multi-hop query synthesizers. DeepEval's Synthesizer generates goldens from documents or contexts, with multi-context evolutions.
  7. Refresh weekly from new production failures, and retire cases that no longer match how people ask.

Here is one case written out, in a neutral format:

{ "id": "billing-sso-price-eur", "question": "Which plan has SSO and what does it cost per month in euros?", "source": "production, flagged: user corrected the price", "expected_documents": ["plans-feature-matrix@2026-11", "price-list-eur@2026-11"], "must_call_tools": ["search_docs"], "key_facts": ["SSO is on the Business plan", "Business is EUR 45 per seat per month"], "if_missing": "say the price isn't listed and offer to connect sales" } 

And a judge rule for the agent layer, in plain English:

Fail if the answer states a price, limit or date that does not appear in any document retrieved during the run. Fail if the question has two parts and the run retrieved evidence for only one of them. Pass if the agent says the information isn't available and the expected documents list is empty.

This case is scored three ways: code checks that both documents were retrieved and the tool was called, a judge checks the rule, and a correctness check compares the key facts.

Which tools evaluate agentic RAG?

Tool RAG metrics Agent and tool metrics Datasets from production traces License / price (Dec 1, 2026)
Agnost AI Plain-English rules judged per message; pass/fail and scores Plain-English rules over whole conversations Yes, from production conversations including failures it flagged Proprietary; evals on every plan, Free to 100K events, Pro $499/mo
Ragas Context precision, context recall, faithfulness, response relevancy, noise sensitivity Tool Call Accuracy, Tool Call F1, Agent Goal Accuracy, Topic Adherence No (library); TestsetGenerator for synthetic Apache-2.0, free
DeepEval Contextual precision, recall, relevancy, faithfulness, answer relevancy Tool Correctness, Argument Correctness, Task Completion, Step Efficiency, Plan Quality, Plan Adherence Library; Synthesizer for synthetic Apache 2.0, free (Confident AI hosted platform separate)
TruLens RAG triad: context relevance, groundedness, answer relevance Agent GPA evaluators: plan quality and adherence, tool selection and calling, efficiency Library MIT, free; maintained by Snowflake
Arize (Phoenix, AX) Faithfulness, Retrieval Relevance (incl. tool spans that return knowledge) Tool selection and invocation evals; AX trajectory evals Phoenix: add spans to datasets; AX: rules add examples by eval label or filter Phoenix ELv2, self-hosted; AX Free, Pro $50/mo
LangSmith Correctness, groundedness, relevance, retrieval relevance agentevals trajectory match and judge Automation rules add runs or threads to datasets Developer free; Plus $39/seat/mo
Braintrust autoevals context precision, recall, relevancy, faithfulness, answer relevancy Custom scorers Add logs to datasets; bulk dataset pipelines Starter free; Pro $249/mo

How to choose:

  • Metrics in your own test code: Ragas or DeepEval. DeepEval has the widest set of agent metrics; Ragas has the strongest synthetic multi-hop generation. TruLens if you want the RAG triad and Agent GPA under MIT.
  • Hosted datasets and experiments: LangSmith if you are on LangChain or LangGraph, Arize if retrieval analysis and embeddings matter most, Braintrust for a fast experiment UI and CI. LangSmith and Arize AX both document rules that add production traces to datasets automatically.
  • Production and evals in one loop: Agnost AI. For more on running these in CI vs on live traffic, see LLM evals in CI vs production, and for general frameworks, LLM evaluation frameworks compared.

Where Agnost fits for agentic RAG

Agnost AI connects the golden set to production, so the set keeps growing from the failures that actually happen.

  • Production first. Agnost reads conversations and OpenTelemetry traces from LlamaIndex, Haystack, LangChain/LangGraph, the OpenAI Agents SDK, Vercel AI SDK, Mastra, Pydantic AI and others. Plain-English rules ("answers a two-part question with evidence for only one part") are judged on every production conversation, and it flags user frustration and groups questions by intent. See patterns and online evals.
  • Datasets from those conversations. The conversations behind a pattern, including the failures Agnost flagged, become eval dataset rows: the input, the expected answer and a link back to the trace. You can edit, add or import rows.
  • Suggested evaluators. For each pattern Agnost suggests an evaluator, an LLM judge or a deterministic Python check. Accept it, edit it or write your own.
  • Experiments on every change. Agnost runs the agent against the dataset in isolated Agnost sandboxes on every change and compares each run with the last.
  • Fixes. Auto Improve turns a recurring production failure into a proposed change and opens a pull request once an experiment shows it works, for a person to merge (improvements).

Evals are on every plan; Free includes 10,000 eval runs a month. Agnost does not compute ranking metrics such as MRR or nDCG and does not analyze embeddings, so keep Ragas, DeepEval or your own code for retriever scores. LangSmith and Arize AX also add production traces to datasets with rules; what Agnost adds is that the failures it detects itself feed the dataset, and monitoring, datasets, experiments and fixes live in one tool. The loop is described in turning production failures into regression tests.

An agentic RAG evaluation checklist

  • Golden set from real questions, weighted toward confirmed failures, with a frozen corpus snapshot
  • Cases that need several documents, cases with no answer, cases with stale and current sources
  • Document IDs labeled per case so recall@k, MRR and nDCG are computed by code
  • Faithfulness and correctness on every answer, with a calibrated judge
  • Tool name and argument checks by code; plan quality by judge
  • Search calls and steps counted against a budget
  • Every prompt, model, retriever or index change run as an experiment against the last version
  • The suite runs in CI on every pull request
  • Production monitored with the same rules, and new failures added weekly

Related reading

Frequently asked questions

How do I evaluate an agentic RAG system (multi-step retrieval with tools)?

Score it at three levels on a golden set built from real user questions. Retrieval: context precision and recall, plus MRR or nDCG when you have labeled relevant documents. Generation: faithfulness to the retrieved context and answer relevance. Agent decisions: whether it retrieved when it should have, how it split the question into searches, whether it followed every hop, which tool it picked and how many steps it took. Ragas, DeepEval and TruLens provide open-source metrics for all three; Agnost AI, LangSmith, Arize and Braintrust run them as datasets and experiments.

What metrics should I use to evaluate agentic RAG?

Context precision (relevant chunks ranked above irrelevant ones), context recall (how much of the needed evidence was retrieved), MRR and nDCG@k for ranking, faithfulness (claims supported by the context), answer relevance, and answer correctness against a reference. For the agent, add evidence recall across the whole run, tool call accuracy, plan quality, step efficiency and the number of search calls. Ragas, DeepEval and TruLens each implement a version of most of these.

Which benchmarks test agentic or multi-hop RAG?

FRAMES (824 questions that need 2 to 15 Wikipedia articles each), HotpotQA, MuSiQue and 2WikiMultiHopQA for multi-hop question answering, BRIGHT for reasoning-heavy retrieval scored with nDCG@10, CRAG for RAG with mock search APIs, and BrowseComp-Plus, which gives deep research agents a fixed corpus of 100,195 documents so retrieval can be measured. Public scores tell you about the model and retriever, not your corpus, so build your own golden set too.

How do I build a golden set for agentic RAG from production questions?

Sample real user questions across your top intents, add every question where the agent failed in production, and label each with the documents that answer it and a reference answer or key facts. Include questions that need several documents, questions your corpus can't answer, and questions with stale or conflicting sources. Freeze the corpus snapshot with the set, and add new failures each week.

Can I evaluate agentic RAG with LLM-as-a-judge?

Yes, for faithfulness, answer relevance and plan quality, which are hard to score with code. Calibrate the judge on 50 to 100 cases you labeled yourself first. Use code where you can: exact match on document IDs for retrieval recall, deterministic checks on tool names and arguments, and step counts.

Does Agnost AI evaluate RAG agents?

Yes. Agnost AI builds eval datasets from real production conversations, including the failures it flagged, suggests an evaluator for each failure pattern, and runs experiments in isolated Agnost sandboxes on every change, comparing each run with the last. Evals are on every plan; Free includes 10,000 eval runs a month. The same plain-English rules also judge live production conversations. It does not compute embedding or ranking metrics such as nDCG, so use Ragas or DeepEval for those.

Originally published on agnost.ai.