The Right Source. The Wrong Decision.
How RAG evaluation connects retrieved evidence to the customer outcome your business has promised.
A customer asks whether they can export their historical audit events before changing plans. The assistant finds the product documentation, cites the correct page and explains that full exports require the enterprise tier.
The answer follows the documentation. It misses the customer's migration agreement, which includes a one-time export on their current plan.
This is an illustrative scenario. The failure is easy to recognize: the system found a relevant rule without establishing whether that rule settled this customer's request.
Retrieval-augmented generation gives an AI system access to information at runtime. RAG evaluation has to establish what the system does with that information. For a customer-facing product, the test reaches beyond the retrieved passage to the decision it supports.
At BENCH, we start with the business promise. In this example, that means establishing the customer's entitlement, arranging the appropriate next step and explaining it accurately. The retrieval pipeline is one part of the system responsible for delivering it.
01 / Relevance needs a customer
A document can match the question while leaving the decisive condition unresolved. The product guide describes the standard plan. The migration agreement describes an exception. The account record identifies which customer is asking.
Before changing an embedding model, sit with the people who handle these requests. Establish which evidence governs the decision, who can approve an exception and what the assistant should do when information is missing or contradictory.
Create cases where a small business fact changes the acceptable outcome. Include a customer with the export entitlement, one without it and one whose agreement cannot be verified. A useful clarification should pass when an unsupported promise would fail.
This is the groundwork for AI agent evaluation: a reviewed definition of success before the system meets its first customer. A library of documents does not supply that definition by itself.
RELEVANT IS NOT ALWAYS APPLICABLE
PRODUCT GUIDE
Enterprise plan requiredRelevant ruleMIGRATION AGREEMENT
One-time export includedApplicable exceptionACCOUNT RECORD
Agreement verifiedCustomer identityThe decision needs the rule, its exception and the customer it applies to.
02 / Give each RAG metric a specific job
Different RAG evaluation metrics answer different questions. Microsoft's evaluator documentation separates retrieval quality from groundedness, response relevance and completeness. Groundedness checks support in the supplied context; completeness checks coverage against an expected response. [1]
For the export assistant, keep three questions visible:
- Did retrieval surface the evidence needed for this account's request?
- Did the answer accurately use that evidence, including its limitations?
- Did the system reach the appropriate customer outcome?
Databricks' retrieval evaluation guide describes metrics such as recall at k and precision at k. Recall asks how many known relevant documents appear among the first k results; precision asks how many of those results are relevant. Both depend on the relevance judgments used. [2]
If the evaluation labels only the public product guide as relevant, a higher retrieval score can reward the same incomplete evidence. Have an expert review what the labels mean for the decision being tested.
Our inference is practical: a grounded answer can still support the wrong decision when the provided context is incomplete or inapplicable. Keep the component scores for diagnosis, and check the customer outcome separately.
CHECK EACH LAYER OF THE PROMISE
- 01
RETRIEVAL
Required evidence surfaced - 02
ANSWER
Evidence used accurately - 03
OUTCOME
Export request created
A grounded answer does not complete an action by itself.
03 / Make the evidence disagree on purpose
Build tests around situations that challenge the business rule. For the illustrative export case, use the current product guide alongside an applicable migration agreement. Then remove the agreement, change the account, or introduce a superseded document.
Write down which evidence should determine the result in each case. When the business has not resolved a conflict, the expected behavior may be escalation. Do not manufacture certainty in the test label.
Synthetic cases can expand these conditions, but each expected outcome needs a defensible basis. Keep fresh scenarios separate from the examples used to tune the system. Hundreds of paraphrases of the same entitlement question do not create hundreds of independent business situations.
Test access boundaries too. Evidence belonging to another customer must remain inaccessible through application controls. An evaluation can reveal a failure; it should not be the control preventing it.
04 / Compare complete configurations
A missed agreement might justify changing metadata filters, indexing, query construction or reranking. If the evidence was retrieved but ignored, investigate the prompt, context assembly or model. If the correct decision never becomes an action, inspect the tools and harness.
Anthropic's context-engineering guidance treats instructions, tools and retrieved information as parts of the context supplied to the model. That supports evaluating their configuration together. [3]
For a controlled comparison, record the document snapshot, account state, retrieval settings, prompt, model, tools and evaluation criteria. Change one factor when you want evidence about that factor; test the combined configuration before release. If several components change together, attribute the result to the combination.
Run both candidates on the same reviewed cases and repeat trials where behavior varies. Inspect failures by scenario, especially the exceptions that broad averages can conceal.
Among configurations that meet the quality requirements, compare latency and cost per successful task. Retrieval, extra model calls and human correction all contribute to the operating cost.
05 / Verify the promise after the answer
Suppose the assistant correctly identifies the export entitlement and says that the request has been arranged. The next check is the resulting state: does the export request exist for the correct account, with the required scope and approval?
Anthropic's 2026 evaluation guide distinguishes a transcript from the state left by an agent's actions. It also describes combining automated checks, model judgments and human review. [4]
Use explicit checks for account identity and export status. Use a calibrated LLM judge where interpreting an explanation requires judgment. Review cases where the judge accepts an unsupported promise.
Some outcomes arrive later. Creating an export request does not establish that the customer received a usable export. Track that later evidence separately, and label unresolved cases accordingly. Silence after a conversation is not enough to mark the business task complete.
06 / Treat knowledge changes as system changes
A new agreement or revised product guide can change the correct answer even when the application code stays untouched. Version the evidence and rerun the affected cases. If the expected outcome changes, record why and reassess both configurations under the revised standard.
Continuous production monitoring then supplies questions the initial suite missed. Review failed exports, corrected answers, useful clarifications and successful exceptions. Turn those observations into reviewed evaluation updates and compare the next proposed fix against a retained baseline. Offline tests and production evidence serve complementary roles. [4]
KNOWLEDGE CHANGES THE TEST
Policy + agreements
New customer condition
Recheck candidates
BENCH's approach connects this work: understand the customer's business, establish the initial criteria, compare system configurations and use live behavior to guide further experiments. Automate the recurring evaluation work and route tested improvements through the team's release conditions, with a way to stop or reverse a change.
Quality can regress, and the business standard can evolve. The enduring asset is the evidence that explains which configuration works for which customer situation.
The next knowledge system should be judged by the decisions it helps the business get right. Which customer promise would your current RAG evaluation fail to notice it had broken?