Retrieval-augmented generation fails in quiet ways — a missing document, a stale chunk, a confident wrong answer. Here is the checklist we use to catch those failures before users do.
A retrieval-augmented generation (RAG) assistant can look excellent in a demo and still disappoint in production. The failures are rarely dramatic. A policy document was never indexed. A chunk boundary split a table in half. The model answered confidently from a superseded version. Each one erodes trust a little.
Evaluation is how you find those failures before your users do. This is the checklist we work through before any RAG system goes live.
Build a golden question set
Start with 50–200 real questions collected from the people who will use the system — support tickets, internal chat logs, FAQ pages. For each one, record the expected answer and the source documents that contain it. This set becomes the foundation for every test that follows.
Tip
Include questions that should not be answered. A good assistant says “I don’t know” when the answer isn’t in the knowledge base — and you need test cases that prove it.
Measure retrieval separately from generation
When an answer is wrong, you need to know whether the model reasoned badly or never saw the right context. Score the retriever on its own first: for each golden question, did an expected source appear in the top results?
def recall_at_k(golden_set, retriever, k=5): """Share of questions whose expected source appears in the top k results.""" hits = 0 for item in golden_set: results = retriever.search(item["question"], top_k=k) retrieved = {doc.source_id for doc in results} if retrieved & set(item["expected_sources"]): hits += 1 return hits / len(golden_set)If recall is low, no amount of prompt tuning will fix the answers. Look at chunk size, metadata filters, hybrid keyword-plus-vector search and re-ranking before touching the prompt.
Score answers on more than accuracy
- Faithfulness — is every claim supported by the retrieved context?
- Completeness — does the answer cover everything the question asked?
- Citations — does it point to the right source, so users can verify it?
- Tone and format — is it written the way your users expect?
Automated graders that use a second model can score large test sets quickly, but calibrate them against human reviewers on a sample first. A grader you haven’t validated is just another untested component.
Test the edges
- Questions phrased in unexpected ways, with typos or abbreviations.
- Questions whose answer spans several documents.
- Documents that contradict each other, or have been superseded.
- Attempts to get the assistant to ignore its instructions.
“If you can’t measure whether a change made the system better, you are not improving it — you are just changing it.”
Keep evaluating after launch
Content changes, models are upgraded and users find new ways to ask things. Run the golden set on every significant change, review a sample of live conversations each week, and add every confirmed failure back into the test set. Over time, that set becomes one of the most valuable assets the project owns.
Written by
Devant Data & AI
Data engineering and applied AI
Data engineers and applied AI specialists who take models and analytics from prototype to dependable production systems.




