Evaluation and QualityAnswerability, labels and datasetsPrincipal
What does a RAG generator’s score with supplied evidence establish about the production pipeline?
By Amit Kumar3 min readWorked answer includedReviewed 28 Sept 2026
The question
Interview question
A retrieval-augmented generation benchmark gives the answering model human-selected supporting passages and reports 95 percent answer accuracy. The production assistant performs substantially worse after ingesting, searching, permission-filtering, reranking and packing its own evidence. Design a stage-level evaluation to locate the gap. Explain whether the supplied-evidence score is a guaranteed ceiling on production accuracy and which source/time/access rules the diagnostic evidence must obey.
Draft your approach first
Take a few minutes before you read the answer. Name the constraint that matters most, the failure you are designing for and how you would know it worked.
Reveal the worked answerWorked answer
Ask how the evidence entered the evaluation. If the benchmark hands the generator a gold passage selected by a human, it measures what the generator does given that passage. Production first has to retrieve, permission-check, rank, pack and fit the evidence into context. A 95% oracle-context score is a diagnostic result conditional on the supplied passages. It is not an end-to-end answer rate or a mathematical upper bound. Different permitted evidence, context order or sampling can produce a higher or lower score. The original RAG paper explicitly combines a retriever with generation, and the BRIGHT benchmark's RAG case study illustrates a gold relevant example helping where ordinary retrieval did not.
For example, the supplied passage may state a current plan limit directly. Production may retrieve the right manual but omit the table header linking that limit to the plan. Comparing the same question with the reviewed table and with the actual packed context reveals an evidence-delivery failure. If the model fails even with the correct table, inspect its interpretation and calculation instead. A perfect retrieval stage would not repair every generator error.
Run paired conditions on the same eligible questions. Give the reader gold evidence in one condition, production-retrieved evidence in another, and optionally no evidence as a baseline. Record whether the answer-bearing passage was in the indexed corpus, retrievable under the user's permissions, present in the candidate set, retained after reranking, and actually included in the final context. Then inspect whether the generator used it correctly. This locates the gap. Do not label a question as a retrieval failure if the authoritative source was never in the index, or call a generator wrong when the necessary passage was removed by an access filter.
Be careful with the oracle condition too. A gold passage may include the answer in a more direct form than a real source would, or come from a document the user cannot access. It can even leak an answer written after the query's as-of date. The oracle set should obey source and permission rules when it is used to diagnose a deployable system. Otherwise call it a capability probe with a different evidence contract.
An interviewer might ask whether the best next investment is a larger reader. I would compare the gap by failure stage first. If the reader fails with valid gold evidence, work on interpretation, reasoning or abstention. If it succeeds with gold but the live pipeline rarely presents that evidence, fix ingestion and retrieval. The new RAG stack wins. Was it the model, the retriever, or their combination? compares combinations of retriever and model changes. This question catches the evaluation harness quietly doing the hardest retrieval work for the system.
Related questions
Keep practising evaluation and quality
Follow another question in this area, or search the complete library.
Get my essays on AI engineering and distributed systems by email. Subscribe to ArchCrux