Evaluating RAG Answers
Use a small reference set to separate retrieval failures from unsupported answers.
On this page
Evaluating RAG Answers
Start with a reference set
Collect a few questions a reader might ask. For each, record the expected answer and the passage that supports it. Include one question the available documents cannot answer. Keep the same set when comparing changes.
Diagnose the result
Check whether the retrieved passages contain the required evidence before grading the answer. A missing passage points to retrieval. If the passage is present but the answer contradicts it or cites the wrong source, inspect how the system generates and cites the answer.
Rendering diagram…
Try one question
Suppose the library policy says a book may be renewed once, provided nobody has reserved it. Ask whether a reserved book can be renewed. An answer of “yes” is incorrect even if it includes a link to the policy. If the retrieved excerpt omitted the reservation condition, record the retrieval problem separately.
For the question with no supporting evidence, check whether the system states that the documents do not answer it. Record this outcome separately from correct answers to questions with known answers.
Compare changes
Track how often the supporting passage is retrieved, how often the answer is supported by that passage, and whether citations point to the right source. Change one part of the system at a time and rerun the same questions. See RAG Fundamentals for the retrieval workflow.