- Enterprise RAG
- Last updated
RAG Evaluation Metrics for Production Readiness
A useful RAG evaluation separates finding the right evidence from writing an answer supported by that evidence. It also tests who may see the sources, what happens when no answer exists, and whether the full workflow meets operating limits. An attractive answer on a selected demonstration question is not a production acceptance test.
Build a reviewable question set
Start with questions real users need to answer. For each case, record the user role, permitted source documents, expected evidence and what an acceptable answer must contain. Include questions whose answer is absent, outdated, contradictory or restricted to another role. Keep a held-out set separate from examples used to tune prompts or retrieval.
Record the document version, ingestion settings, retrieval configuration and model version for every run. Otherwise a score change cannot be traced to its cause. Review automated judgments against a sample labeled by domain experts; a judge model is an aid to assessment, not an independent business owner.
| Layer | What to record |
|---|---|
| Retrieval | Whether the expected authorized evidence appears in the retrieved set. |
| Answer support | Whether each material claim is supported by the cited source. |
| Usefulness | Whether the answer addresses the actual question and needed detail. |
| Permissions | Whether inaccessible content is excluded from retrieval and output. |
| Abstention | Whether unsupported or conflicting questions are escalated appropriately. |
| Operations | End-to-end latency, failure rate, cost per completed task and reviewer effort. |
Use failures to choose the next change
When an answer is wrong, inspect the evidence path before rewriting the prompt. The document may be missing, incorrectly extracted, split at an unhelpful boundary or excluded by an access filter. If retrieval found the correct evidence but the answer changed its meaning, work on answer construction and validation. Track these categories separately.
Microsoft's evaluation documentation distinguishes RAG quality measures such as groundedness and relevance from operational monitoring. Use that separation in your own release review: improved answer quality should not hide excessive latency or a permissions regression.
Reference: Microsoft Foundry: observability and evaluation
- Keep known failures in a regression set.
- Test deletion and source updates, not only new ingestion.
- Include questions across roles and tenants.
- Measure complete user tasks rather than isolated model calls.
Agree release gates with the workflow owner
Choose thresholds according to the consequence of an error and the available review process. Do not borrow a universal accuracy percentage from a vendor benchmark. Publish the case mix, sample size, failure categories and unresolved limitations alongside any aggregate score.
Pilot with bounded access and a manual fallback. After release, collect authorized feedback and investigate changes in unanswered questions, citation quality and reviewer effort. Rerun the evaluation when documents, access rules, retrieval settings or models change. A passing release test is evidence about a particular configuration, not a permanent guarantee.
Buyer questions
Is a citation enough to prove an answer is correct?
No. Review whether the cited source supports the specific claim, is current and is authorized for that user.
What accuracy target should we use?
Set acceptance thresholds with the workflow owner based on error consequences, case mix and human review. There is no universal production threshold for every RAG application.
Can evaluation be automated?
Many checks can run automatically, but expert review is still needed to validate labels, judging criteria and consequential failures.
When should we rerun the evaluation?
Rerun it after changes to source content, permissions, ingestion, retrieval, prompts or models, and investigate production feedback between releases.
Turn the checklist into a working scope
Bring your workflow, approved source examples and the decision you need to make.
Practical takeaways
- 01Evaluate retrieval and answer support separately.
- 02Include permissions, abstention and operational constraints.
- 03Keep a versioned regression set and review actual failures.
Sources and further reading
Examples are illustrative planning guidance, not measured client results. Suggest a correction.
- RAG
- Evaluation
- Knowledge Systems
