Agent Evals vs RAG Evals: Different Suites Explained — professional topic visual

Agent Evals vs RAG Evals: Different Suites Explained

A RAG eval asks one thing: given this question and this evidence, was the answer grounded and useful? An agent eval asks something messier: given this goal and this set of tools, did the run end in the right state, by allowed steps, within budget? Agent evals vs RAG evals is really a comparison between grading a *response* and grading a *trajectory*, and mixing them up produces dashboards that look rigorous and diagnose nothing.

If your product retrieves documents and then answers, build the RAG suite first. If it calls tools that change something in the world, or loops until it decides it is done, you need a second suite with different datasets, different graders, and different failure vocabulary. Many real products need both, layered.

The unit under test is different

For RAG, the unit is a single question-context-answer triple. You can score it in isolation, in any order, and rerun it freely. For an agent, the unit is a run: a sequence of model decisions, tool calls, tool results, and a final state. Order matters, side effects matter, and an early mistake can poison everything after it.

That difference drives every other design choice. A RAG dataset row is mostly text. An agent dataset row needs an initial environment, a goal, and a definition of “done” that can be checked by something other than reading the final message.

What a row looks like in each suite

A RAG eval row for a billing-docs assistant:

{
  "id": "rag-0142",
  "question": "How long do I have to dispute an invoice?",
  "reference": "30 days from the invoice date.",
  "tags": ["policy", "numeric"],
  "must_cite": ["billing-policy-v7#disputes"]
}

An agent eval row for a support agent that can search the knowledge base and issue refunds:

{
  "id": "agent-0031",
  "goal": "Customer 8841 was double-charged on invoice INV-2207. Fix it.",
  "initial_state": {"charges": ["INV-2207:49.00", "INV-2207:49.00"], "refunds": []},
  "expected_final_state": {"refunds": ["INV-2207:49.00"]},
  "allowed_tools": ["search_kb", "get_invoice", "issue_refund"],
  "forbidden": ["issue_refund amount > 49.00", "second issue_refund"],
  "budget": {"max_steps": 8, "max_tokens": 20000}
}

The second row grades the state, not the sentence. If the agent writes a lovely apology and refunds twice, the final message scores fine and the run fails.

Metrics, side by side

LayerRAG suiteAgent suite
RetrievalContext precision, context recall, recall@kDid it search at all? Right query? Right source?
GroundingFaithfulness, citation precisionAre claims about tool results accurate to the tool output?
DecisionsNot applicableTool selection, argument correctness, step order
OutcomeAnswer relevancy and correctnessGoal achieved, final state matches expected
SafetyUnsupported-claim severityForbidden actions attempted, scope violations
EfficiencyLatency, tokensSteps, retries, loops, token budget

The RAGAS documentation separates these families. The RAG-oriented metrics, such as faithfulness and context precision, sit on one side. The agent and tool-use metrics sit on the other: tool call accuracy, tool call F1, agent goal accuracy, and topic adherence. Topic adherence is a good example of an agent-style metric: it asks whether the system stayed inside permitted domains across the interaction, using precision, recall, and F1 over answered and refused queries.

For the RAG side in depth, see the RAGAS evaluation guide and the claim-level checks in hallucination metrics for LLM apps.

Failures that RAG metrics cannot see

Imagine the refund agent above scoring a faithfulness of 0.97 and a clean answer relevancy. All of the following can still be true:

  • It called issue_refund before checking the invoice.
  • It retried the same failing tool four times, burning budget.
  • It chose the wrong customer ID because it copied from an earlier conversation.
  • It finished the task but also emailed the customer twice.
  • It looped on search_kb until it hit the step limit and then guessed.

None of these show up when you grade the final answer against the retrieved context. They show up when you grade the trajectory against allowed actions, state, and budget. This is the practical reason agent suites need harness-level instrumentation, which is part of what an agent harness exists to provide, and why harness engineering in practice treats the run log as a first-class artifact.

Environment design is the hard part of agent evals

RAG evals are cheap to make deterministic: freeze the index, freeze the questions, and set temperature low. Agent evals need an environment you can reset.

  1. Mock or sandbox every tool with side effects. A refund tool in eval should hit a fake ledger, never the payment provider.
  2. Make each case start from a known state snapshot so reruns are comparable.
  3. Record tool calls with arguments and results so you can score steps without rerunning the model.
  4. Check final state programmatically wherever possible; use a judge only for the free-text portion.
  5. Run each case several times. Agents are stochastic, so a case that passes 3 of 5 runs is a different finding from a case that passes 5 of 5.

If your tools follow a standard interface, the contract is also the test surface. See MCP vs API function calling for how tool schemas shape what you can assert on.

A three-layer suite for agentic RAG

Many products blur the line: retrieval is a tool the agent decides whether to call. Evaluate it in layers so a failure points somewhere.

LayerQuestionExample checkExample number
1. RetrievalDid the tool return the right evidence?Gold passage in top 5Recall@5 = 0.88
2. DecisionDid the agent call the right tool with the right arguments?Tool call match against reference traceTool call accuracy = 0.81
3. OutcomeDid the run reach the goal without violations?Final state equals expected, zero forbidden callsGoal success = 0.74

Read the numbers top to bottom. Retrieval is 0.88, decisions are 0.81, and outcomes are 0.74. The largest drop is between retrieval and decisions, so you would not spend this sprint on chunking. You would look at how the agent forms queries and picks tools. If retrieval were the weak layer, the fixes would come from chunking strategies, hybrid search, or rerankers.

Budgets belong in the assertions

For RAG, latency and cost are monitoring concerns. For agents, they are correctness concerns, because a run that succeeds in 40 steps may be unusable. Put limits in the eval case itself: maximum steps, maximum tokens, maximum wall time, maximum retries per tool. Then report success rate within budget next to raw success rate. A system with 82% raw success and 61% within-budget success has an efficiency problem, not a capability problem.

Which suite to build first

  • Answers questions from documents, no write actions: RAG suite. Start with 100 real questions tagged by type, add abstention cases.
  • Takes actions with tools, minimal retrieval: agent suite. Start with 20 to 30 scenarios that cover your riskiest tools, with forbidden-action checks.
  • Retrieves and acts: both, plus the layered scoring above. Keep the datasets separate so an agent policy change does not look like a retrieval regression, a point the naive vs advanced RAG comparison also makes about architecture choices.

For where these suites sit relative to fine-tuning and prompt changes, RAG vs fine-tuning vs agents is the decision-level view. OpenAI’s evaluation best practices are generic but apply to both: design task-specific evals that reflect your real distribution, and calibrate automated scoring with human feedback.

Frequently asked questions

What is the main difference between agent evals and RAG evals?

RAG evals grade a response against retrieved evidence, usually one question at a time. Agent evals grade a run: the sequence of tool calls, the final state of the environment, and whether the agent stayed within allowed actions and budget.

Can I evaluate an agent with RAGAS faithfulness alone?

No. Faithfulness tells you whether claims match context, but it cannot see wrong tool choices, repeated actions, or incorrect final state. Use tool-call and goal-based metrics, plus state checks, alongside any grounding metrics.

How many test cases does an agent eval need?

Start with 20 to 30 scenarios covering your riskiest tools and common failure modes, each run multiple times. Grow the set from production traces. Coverage of tool combinations and error paths matters more than raw count.

How do I make agent evals deterministic enough to trust?

Use sandboxed or mocked tools, reset the environment from a known snapshot per case, record tool calls and results, and run each case several times. Report pass rates over repeated runs instead of a single pass or fail.

Do agentic RAG systems need both suites?

Yes. Score retrieval quality, tool and query decisions, and final outcomes as separate layers so you can see whether a failure came from the index, the agent’s choices, or the generation step.

Related reading

About Mudasir Syed

Check Also

Rows of server racks in a data center suggesting storage infrastructure for vector database workloads

Open-Source Vector DB Projects Worth Tracking

Choosing among open source vector database projects is less about finding the fastest one and …

Leave a Reply