A RAG assistant is a retrieval system with a language model attached, and most of its failures happen before the model writes a word: the right passage was never found, the document was out of date, or the permission filter hid it. Measuring the assistant means measuring those steps separately.
The work is unglamorous. Collect real questions with the documents that should answer them, score retrieval and answers apart, and run the same set on every change. A demo shows that the system can work. The set shows whether it does.
Why a demo is not daily use
A demo works because the questions were chosen by the people who built the system, on documents they know are clean. Daily use brings questions phrased differently, documents that contradict each other, users with different permissions, and questions whose correct answer is a refusal. Those four conditions decide quality, and none of them appear in a scripted walkthrough.
The failure is quiet. An assistant that answers confidently and wrongly is harder to catch than one returning nothing, because a fluent sentence invites trust. That is why the evaluation set has to come from the people who will use the tool, and why the cases that should be refused belong in it from the first version.
- Real questions are worded differently from demo questions
- Contradictory and outdated documents are the normal state
- Permissions decide which passages a user may ever receive
- Some correct answers are refusals, and they need counting
Need help applying this?
Tell us about your setup and constraints — we will reply with the options we would consider, including the ones that do not need us.
Building the question set
A question set is a list of real questions, each paired with the document that should answer it and a short expected answer. Fifty to a hundred is enough to start. It is built with the team that owns the documents rather than by the vendor, and versioned like code, because documents and questions both change.
Cover the shapes, not only the easy ones: a question answered by one passage, one needing two documents, one whose answer changed last quarter, one about a document the user may not see, and one with no answer in the corpus at all. That last group is the one most teams forget, and the one that exposes invented answers.
- Each question carries its source document and expected answer
- Include questions with no answer, to test refusal
- Include a permission case that must not return the passage
- Name the person who decides when an expected answer changes
Retrieval hit rate: did the right passage arrive?
Retrieval hit rate is the share of questions where the passage containing the answer appeared among the retrieved results, whether or not the final answer used it. It separates a search problem from a writing problem. If the passage never arrives, no prompt and no model recovers the answer, and tuning generation is wasted work.
Measure where passages are chosen, before and after permission filtering, because the two numbers mean different things: one describes the index, the other what a specific user could ever be told. Group the misses by document type, since tables, scans and multi-column PDFs fail far more often than plain text, and by document age.
- Count the passage found, not only the answer given
- Separate index misses from results removed by permissions
- Group misses by document type and by document age
- A hit at position ten is worth less than a hit at position one
Answer faithfulness, refusal and abstention
Faithfulness asks whether every claim in an answer is supported by the passages the model received. A faithful answer can still be unhelpful, but an unfaithful one cannot be trusted. Score it by reading the answer against its citations, and record the failure type: a claim absent from the sources, a blend of two passages, or an extension past the text.
Refusal is a metric, not a defect. An assistant that abstains when retrieval returns nothing usable behaves correctly; one that answers anyway is the expensive failure. Track three outcomes apart: correct answer, correct refusal, and confident wrong answer, because one accuracy figure hides the difference between a cautious system and a careless one.
- Every sentence should be traceable to a retrieved passage
- Record the failure type, not only pass or fail
- Score correct refusals as successes, not as gaps
- A confident wrong answer costs more than a visible refusal
The regression loop and acceptance criteria
A regression loop runs the same question set against every change: a new model, a different chunk size, an edited prompt, a re-indexed document set. The score before and after is the argument. Without it, improvements are opinions, and a model upgrade can quietly undo months of tuning on the cases that mattered most.
Acceptance criteria belong in writing before the pilot starts: which share of questions must be answered correctly, which refusal cases must never fail, what latency the workflow absorbs, and who reads the failures. Set them from the current process rather than an ideal, and review the misses one by one, because an aggregate hides which failure you are shipping.
- Run the full set on every model, prompt or index change
- Keep a fixed subset that must never regress
- Read failures individually, not only as a percentage
- Re-baseline when documents change, and record the reason
Key takeaways
- Measure retrieval and answer quality separately, on real questions.
- A confident wrong answer is the failure that matters most.
- Correct refusals belong in the score, not outside it.
- Without a regression set, every change is judged by impression.

