Evaluation design for AI teams

RAG evaluation that shows where your system gets it wrong

When a retrieval-augmented generation (RAG) system gives a bad answer, did it miss the right document, misuse the evidence, or answer a question it should have declined? We design an evaluation that separates those failures and shows which changes are worth shipping.

Scope a RAG evaluation

Start with the decision, then size the test set

Estimating the share of answers that meet your standard is different from detecting a small improvement over the current system. We define the target, choose questions from the work the system will actually do, and size the evaluation for the margin of error or improvement that would change your decision. When several questions share a document, policy, or conversation, we account for that grouping rather than counting every question as independent.

Estimate how many eval items you need.

Measure retrieval and answer quality separately

For retrieval, check whether supporting evidence appears among the results for questions with known relevant passages. For answers, score whether the response resolves the question and whether its material claims are supported by the cited evidence. Include questions the collection cannot answer, so the system gets credit for abstaining only when it should.

For example, if the correct policy is retrieved but the answer cites an outdated exception, improving search alone will not fix it. Separate metrics let you see which part of the pipeline needs work. We report counts, confidence intervals where supported by the design, and error patterns by question type.

See Es et al. on evaluating retrieval and generation separately.

Check the LLM judge against human ratings

Use a written rubric and a held-out set of examples scored by domain reviewers. Measure agreement by rubric dimension and flag disagreements that could change a release decision, such as an automated judge passing unsupported answers. If there is not enough evidence that the judge works on a category, keep human review for that category.

Compare pipeline versions on the same questions

Run the baseline and candidate on the same held-out questions. Estimate the paired difference with an interval, and report both improvements and regressions. For simple binary outcomes on independent items, the paired model-comparison calculator is a starting point. Document-level clusters and ordinal scores need a method that matches the design.

Evaluate private or local RAG without moving the corpus

For an on-premises engagement, we can design the workflow to run in a client-controlled environment. Before any data is accessed, we agree on where models run, what is logged, who can see examples, and which outputs may leave the environment. The contact form is for scoping only; do not include confidential documents or identifiable records.

What you get

Common questions

Can we start before we have an existing benchmark?

Yes. Start with a small pilot to test the rubric and learn which question types need coverage. Use a separate test set for the final comparison so the pilot does not double as evidence of improvement.

Do we need to send DASS our documents?

Not for the initial discussion. If the corpus cannot leave your environment, we can scope a workflow your team runs inside it. Agree on access and approved outputs before the evaluation begins.

Scope a RAG evaluation