Your RAG documents are indexed. Why are the answers still wrong?
A useful RAG evaluation dataset connects each question to evidence in a specified corpus version and to a clear boundary on what can be answered. Reference answers alone rarely explain whether retrieval or generation failed.
On this page
The service manual is indexed, yet the assistant gives the wrong answer when a customer asks how long a device works offline. Should you buy more documents, replace the embedding model or switch to a stronger language model? Without questions that expose the cause, each change is a guess. Retrieval-augmented generation finds information and then composes an answer; evaluation should make evidence from both stages inspectable.
Turn a small manual into inspectable questions
The following devices and rules are fictional. Manual v2 says model A can record locally for 24 hours without a network; model B can record for 8 hours. Local recording does not mean live synchronization. Manual v1 previously listed 12 hours for A. The corpus contains no automatic-refund policy. An answer label reading only “24 hours” omits the model, version and distinction between recording and synchronization.
| Question | Evidence and conditions | Expected behavior |
|---|---|---|
| Will model A still record after 20 hours offline? | The v2 limit for A; 20 is within 24 hours | Explain that it is within the recording window, without promising live synchronization |
| How long does it work offline? | Model is missing; “work” may mean recording or syncing | Clarify the model and the intended function |
| Is there an automatic refund after 24 hours offline? | No refund policy in the specified corpus | State that evidence is insufficient; do not invent a promise |
| Why does A still say 12 hours? | Old and new versions give different limits | Identify the version difference and use the designated effective version |
Record the question, visible assumptions, corpus version, evidence locations, required facts, acceptable responses and unsupported conclusions. Express reference answers as factual requirements while allowing reasonable paraphrases. Where exact quantities, units and conditions matter, check them individually rather than judging only textual similarity.
Two checks answer two different questions
The retrieval check asks whether required evidence reached the final context provided to the model. The generation check asks whether the model used that evidence accurately and answered the question. Ragas context recall uses reference information to assess retrieval coverage; faithfulness checks whether claims in a response are supported by the retrieved context.[1][2] They compare different things and are not interchangeable.
An answer saying “the manual gives 12 hours for A” may be faithful to a retrieved old manual while violating the effective-version requirement. Conversely, “live synchronization is unavailable” may be supported but fail to answer the recording-duration question. Version applicability, completeness and numerical correctness therefore need their own checks.
Illustrative annotation record
question_id: offline-a-20h
corpus_version: manual-v2-only
question: Will model A still record after 20 hours offline?
answerability: answerable
required_evidence: v2/A/local-recording-limit; v2/offline-sync
required_claims: A has a 24-hour local-recording window; 20 hours is within it; no live sync while offline
forbidden_claims: unlimited storage; already synchronized; automatic refund
review_note: post-reconnection upload latency is outside this question
Locate evidence using stable document identifiers and sections or offsets; update the mapping after rechunking. If multiple passages provide equivalent support, record acceptable alternative evidence sets so that valid retrieval is not penalized for choosing another passage. Version the scoring implementation and annotation rules as well.
Unsupported questions still need evidence for their labels
If every test question is a paraphrase of a sentence in the corpus, a system that always guesses may appear strong. UAEval4RAG v3 studies unanswerable requests relative to a given knowledge base, distinguishes several categories and examines rejection alongside response quality.[3] It motivates including such cases; its categories and results do not automatically set acceptance thresholds for your application.
Failure to retrieve an answer is not proof that the corpus lacks it. Annotators should inspect aliases, relevant sections and applicable versions before labeling a gap, documenting the scope of review when exhaustive checking is impractical. Missing device information calls for clarification; a missing refund policy calls for an explanation of insufficient evidence. These should not collapse into a single generic “I don’t know” label.
Do not optimize rejection rate alone. Rejecting every question reduces unsupported statements by making the service useless. Track inappropriate rejection of answerable questions separately from unsupported answers to unanswerable questions. Review examples where automated scores and human judgments disagree.
Three comparisons help locate the missing work
- Actual retrieval plus a fixed generator: retain the final model context, response and versions to establish end-to-end behavior.
- Human-confirmed sufficient evidence plus the same generator: keep the question and answer requirements unchanged. Persistent errors direct attention to the question, evidence organization or generation; improvement suggests investigating retrieval or context selection.
- No documents plus the same generator: inspect whether memory or guessing can produce the answer. Success here does not establish retrieval quality and may prompt a check for question or answer leakage.
These are diagnostic comparisons, not automatic causal proofs. Human-selected evidence may be shorter, cleaner or differently ordered. Record those differences and, where necessary, control context length and ordering before drawing conclusions. Nor should the human-evidence condition invent material to turn a genuinely unsupported question into an answerable one.
Buy an evaluation set whose results can be recomputed
Suppose a constructed test has 80 answerable and 20 unsupported questions. The system answers 64 answerable questions completely and appropriately declines 18 unsupported ones. If each question is counted once under agreed checks, the overall pass rate is 82/100. That still conceals an answerable pass rate of 64/80 = 80% and an unsupported-question handling rate of 18/20 = 90%. The second result is not a 90% overall accuracy score.
When procuring or building the set, require evidence, versions, annotation reasons and disagreement records for each question. Report slices by device, question type, single- or multi-passage evidence, and answerability. Have two reviewers independently annotate an initial batch and resolve disagreements to improve the rules. This calibrates annotation; it does not make a vote an absolute truth.
Separate tuning from final acceptance data and inspect paraphrases and repeated evidence combinations for near-duplicates. Selecting favorable questions after a retrieval change conceals what changed. Preserve a stable acceptance set and version additions for new business requirements so that system improvement is distinguishable from a different test.
Useful evaluation data makes the next purchase specific. If evidence does not exist, acquire the missing material. If it exists but never reaches the context, investigate retrieval, chunking or selection. If sufficient evidence is present and the answer remains wrong, work on answer behavior. Before buying more documents, make the next investment correspond to an observed gap.
