Production GenAI & LLM Systems
How to evaluate hallucination risk in production RAG systems
A practical evaluation framework for retrieval-augmented generation systems where unsupported output can create operational, client or regulatory risk.
Alessandro Greco · Sigma Strategy B.V. · Amsterdam · Published 2026-11-26
Hallucination risk in production RAG systems is controlled at three points: retrieval quality, grounding enforcement, and output verification. Evaluation means measuring each layer separately — retrieval recall, citation fidelity, and answer correctness — with production monitoring on live traffic, because offline benchmarks do not predict production failure modes.
1. Define the cost of being wrong
Hallucination risk is not one risk. A research assistant that occasionally misses a citation is different from an operations copilot that can trigger an action, or a client-facing system that can produce misleading financial information. Evaluation should begin by classifying what the system is allowed to do and what failure would cost.
This produces a more useful acceptance question than “is the model accurate?” The real question is whether the system is sufficiently reliable for a defined task, with defined sources, defined users and defined escalation paths.
2. Test grounding, not just answer quality
A fluent answer can still be unsupported. Production evaluation should test whether claims are grounded in retrieved or explicitly provided sources, whether citations point to the right evidence, whether the system invents missing facts, and whether it appropriately refuses when retrieval is empty or contradictory.
The test set should include realistic negative cases. Ask questions whose answer is absent from the corpus, questions with similar but irrelevant documents, time-sensitive questions with stale material, and prompts designed to pressure the system into speculation. A system that only performs well on clean questions is not production-ready.
- Supported-claim rate and unsupported-claim rate
- Citation correctness and citation completeness
- Refusal behavior when evidence is missing
- Behavior under contradictory or stale retrieval results
- Regression tests for prompts that previously failed
3. Evaluate the pipeline, not only the model
In a RAG system, hallucination can originate in retrieval, document chunking, metadata permissions, context construction, prompt design or model behavior. Swapping the model may not fix a pipeline that retrieves the wrong evidence or hides important source constraints.
Useful evaluation therefore separates retrieval quality from generation quality. Review whether the right documents were retrieved, whether the user was authorized to see them, whether source dates and versions were preserved, and whether the final prompt made authoritative context distinguishable from user speculation.
4. Monitor after release
Pre-release evaluation is necessary but insufficient. Production monitoring should track failure reports, low-confidence or ungrounded outputs, retrieval misses, citation errors, latency, cost and user corrections. High-impact workflows need human review criteria and a mechanism for turning incidents into regression tests.
The operational goal is not zero risk. It is a system whose failure modes are understood, measured, visible and constrained enough for the decisions it is allowed to influence.
This implementation note is general technical information, not legal, regulatory or investment advice. Engagement-specific advice depends on the institution, system boundary, data flows and regulatory interpretation agreed with qualified counsel where needed.