The short answer
Retrieval-augmented generation, or RAG, supplies relevant source material to a model before it answers. It can help an AI product use current, organization-specific information, but it does not guarantee that the answer is correct or that the user is allowed to see the material. Evaluations test whether the complete system meets your quality requirements across realistic situations. Treat retrieval, answer generation, permissions, and the user experience as separate things to evaluate.
Key takeaways
-
A model can answer incorrectly even when retrieval finds the right document.
-
A citation can point to a document that does not support the claim.
-
Access control must apply before information enters the answer context.
-
Compare changes against a fixed, versioned evaluation set.
-
Include cases where the right answer is to ask a question or decline to answer.
What happens inside a RAG product?
Consider a support assistant answering questions about a company's cancellation policy. The system receives a question, locates potentially relevant passages, selects a manageable context, and asks the model to answer from that material. The interface then presents the response and its evidence.
Each stage can fail differently. The correct policy may be absent, an old version may outrank the current one, or the model may combine rules that apply to different plans. A well-written response does not reveal which failure occurred. Instrument the steps so the team can distinguish missing evidence from poor interpretation.
Prepare the knowledge before adding a search box
Give documents an owner, version, effective date, audience, and permission scope. Remove superseded copies from the active corpus or clearly label their historical status. Separate policy from informal notes. When a document contains tables or exceptions, check that extraction preserves the relationship between a condition and its consequence.
Decide how updates reach the index and how deletion propagates. Removing a document from the source drive is not sufficient if copies remain in retrieval storage, caches, or logs. Test those paths explicitly with your engineering team.
The model should not be asked to decide whether a confidential document can be revealed. Scope retrieval using the authenticated user's permissions and tenant before the retrieved content becomes model context.
Build a small, useful evaluation set
Start with cases drawn from real tasks rather than questions generated solely by the same model being tested. Use synthetic examples for coverage, but label them as synthetic and have knowledgeable reviewers check them.
| Case | Expected behavior | Main failure to catch |
|---|---|---|
| Current cancellation rule | Correct rule with supporting source | Old version retrieved |
| Exception for a specific plan | Clarify the plan if missing | Overgeneralized policy |
| Answer absent from documents | State the gap and offer a next step | Plausible invention |
| Another tenant's document | Do not retrieve or expose it | Permission leakage |
| Source contains hostile instructions | Ignore embedded commands | Prompt injection |
For each case, record the task, permitted sources, required facts, forbidden claims, and acceptable escalation. Do not require one exact phrasing when several answers could be correct.
Score the stages and the outcome
Retrieval checks ask whether supporting material was found and whether it was authorized and current. Answer checks ask whether claims are supported, the question is answered, and uncertainty is handled appropriately. Experience checks ask whether users can inspect evidence, correct mistakes, and finish their work.
Use human review for consequential or ambiguous judgments. Model-based graders can help organize evaluations, but they can be biased or miss errors. Calibrate them against human labels and audit disagreements. NIST's voluntary AI risk framework provides a broader basis for documenting risks and evaluation activities; it is not a certification of your system. NIST AI RMF.
Make a release decision
Compare the current and proposed versions on the same held-out tasks. Keep model, prompt, retrieval configuration, and dataset versions in the report. Segment by language, task type, and risk. An average improvement can hide a regression in Arabic answers or permission-sensitive cases.
Set hard release gates for unacceptable behavior separately from softer quality goals. Record unresolved failures, an owner, and a rollback plan. Then monitor production samples because real questions and source documents change.
Will RAG eliminate hallucinations?
No. It adds evidence to the input; it does not ensure correct retrieval or faithful use of that evidence.
Should we fine-tune instead?
That depends on the problem. Diagnose whether the gap is missing knowledge, retrieval, task behavior, formatting, or model capability before choosing an intervention.
Use the AI PRD template to specify these requirements and AI experience metrics to monitor them.



