RAG application testing

RAG application testing for answers that depend on the right document.

Retrieval, grounding, citations, missing-context behaviour, and regression — tested against your corpus.

What is RAG application testing?

RAG application testing checks the two halves of a retrieval-augmented system: whether the right content is retrieved, and whether the answer is actually supported by it. A good model with bad retrieval produces confident nonsense. Good retrieval with a weak prompt can still miss the point.

We build a question set from real user needs, map it to the corpus, and test retrieval and generation separately. We check citation accuracy, missing-context behaviour, and whether a change to the index or prompt caused a regression.

We do not guarantee perfect retrieval or zero hallucinations. The goal is to find the failure patterns and give your team a repeatable way to measure them.

What we test

Six areas of RAG coverage.

Retrieval and generation are tested separately, then together.

RAG-01

Corpus coverage

Whether the source set contains the answer and whether the test set represents real questions.

  • Document inventory
  • Coverage gaps
  • Stale or conflicting sources
RAG-02

Retrieval relevance

Whether the right passages are retrieved for the question.

  • Top-k relevance
  • Ranking quality
  • Distractor and near-miss cases
RAG-03

Groundedness

Whether the answer is supported by the retrieved content.

  • Claim-to-source support
  • Unsupported additions
  • Contradiction handling
RAG-04

Citation accuracy

Whether citations exist, point to the right source, and support the claim.

  • Citation presence
  • Source match
  • Quote and page accuracy
RAG-05

Missing context

What the system does when the corpus does not contain the answer.

  • Abstention
  • Clarifying question
  • No invented answer
RAG-06

Regression

Whether an index, prompt, or model change broke an answer that used to work.

  • Baseline comparison
  • Slice-level checks
  • Retest evidence
How it works

Four steps from corpus to retest.

A RAG test is only as good as the questions and the source map.

01
Map the corpus
We inventory the sources, ownership, freshness, and gaps that affect answers.
02
Build the question set
We write answerable, unanswerable, and ambiguous questions from real use.
03
Test retrieval and answers
We measure whether the right content is found and whether the answer is grounded and cited.
04
Fix and retest
We prioritize retrieval, prompt, or content fixes and rerun the affected slices.
What you get

A retrieval-and-answer record.

Every finding says whether the failure was retrieval, grounding, citation, or missing context.

Corpus map

Sources, ownership, freshness, and known gaps.

Question set

Answerable, unanswerable, and ambiguous cases.

Retrieval results

What was retrieved and what was missed.

Groundedness report

Claim support and citation accuracy.

Fix list

Retrieval, prompt, or content actions.

Retest

A second run on the corrected RAG build.

Who this is for

When RAG testing is the priority.

It matters when a wrong retrieval becomes a wrong answer.

The risk is stale policy

Support knowledge base

Customers ask questions that must be answered from current policy.

The risk is the decision

Internal document assistant

Staff rely on the answer to make an operational decision.

The risk is the citation

Policy or compliance assistant

The answer must be traceable to an approved source.

Pricing factors

What changes the RAG testing quote.

Scope follows the corpus, question set, retrieval stack, and access.

Corpus sizeA small policy set differs from a large, changing knowledge base.
Source qualityClean documents differ from scanned, duplicated, or conflicting sources.
Retrieval stackA hosted vector store differs from a custom pipeline.
Question setA focused slice differs from broad coverage.
AccessAPI keys, index access, and test data determine what can run.
RetestEach index or prompt change adds a verification run.

Every engagement starts with a QA Audit or a free preliminary assessment. No monetary prices are published here.

Scope boundaries

RAG testing is not a guarantee of perfect retrieval.

Included by default

  • Corpus and question-set design
  • Retrieval relevance checks
  • Groundedness and citation checks
  • Missing-context behaviour
  • Regression and retest

Not included

  • A guarantee that every answer will be correct
  • Model training or fine-tuning
  • Unlimited document ingestion
  • Legal or compliance certification
  • A public benchmark of retrieval vendors
Evidence discipline

Internal evidence, not a client claim

Our RAG rubric is exercised on deterministic fixtures, including a grounded answer, a missing-context case, and an invented answer that should be caught. No client corpus or retrieval vendor is claimed.

Questions

Frequently asked

What is RAG application testing?

It checks whether a retrieval-augmented system finds the right content and whether the answer is supported by it. Retrieval and generation are tested separately, then together.

Do you need access to our corpus?

Yes, or a representative redacted set. Without the source material, we cannot measure retrieval or groundedness.

Can you test a vector database?

We test the behaviour of the retrieval pipeline through your application and API. Deep database benchmarking is a separate scope.

How do you handle missing answers?

We include unanswerable questions and check whether the system abstains, asks for clarification, or invents an answer.

Can you guarantee better retrieval?

No. We can find failures and measure improvements, but retrieval quality depends on the corpus, the query, and the stack.

Next step

Check the source before you trust the answer.

Book a QA audit or ask for a free preliminary assessment.