Layered hallucination monitoring
Each layer below covers a different part of the problem. Together they let a team monitor every interaction automatically while keeping human review focused where it matters.
| Layer | Description |
|---|---|
| Criteria | Define what counts as a hallucination for each use case and risk tier. |
| Telemetry | Capture retrieval context, tool calls, policy decisions, and feedback per interaction. |
| Automated detection | Score all traffic with groundedness, consistency, citation, and tool-call checks. |
| Sampling and review | Humans label a statistically designed sample and a queue of flagged cases. |
| Audit records | Retain signals, labels, and decisions in a form governance teams can inspect. |
Start with written hallucination criteria
Define what counts as a hallucination for each use case and risk tier, and write it down. Written criteria give automated detectors and human reviewers the same definition to work from.
Instrument the runtime signals first
Monitoring is only as good as the record of what happened. Capture the following per interaction, with redaction and retention applied according to your own data policies.
| Signal | What to capture |
|---|---|
| Request and version identifiers | Interaction ID, model version, prompt version, and configuration, so error rates can be compared across changes. |
| Retrieval context | The passages returned, their identifiers, and ranking, so a reviewer can tell a retrieval failure from a generation failure. |
| Model output and citations | The response as delivered, including any cited sources or references. |
| Tool-call records | Tool name, input arguments, returned result, errors, and whether an approval step applied. |
| Policy decisions | Which rules were evaluated, and whether the action was allowed, blocked, or escalated. |
| Feedback and review labels | User feedback, detector scores with detector versions, and later human labels linked to the same interaction ID. |
Layer automated detection and accept its limits
Automated detection scores all traffic, so no interaction goes unchecked. Use a combination of checks:
- Groundedness
- Consistency
- Citation
- Tool-call
Record detector scores together with detector versions, and link them to later human labels on the same interaction ID. Automated scores support triage and prioritization; human review of sampled interactions is what estimates true error rates.
Design risk-tiered sampling that supports valid estimates
Humans label a statistically designed sample, using risk-tiered random sampling, plus a queue of flagged cases. Sampling is what lets a team estimate true error rates without reviewing every conversation.
Route flagged cases and close the loop
Route flagged cases to reviewers, and link their labels back to the original interaction ID so that outcomes can be compared with detector scores, model versions, and prompt versions.
Keep audit records and place runtime controls deliberately
Retain signals, labels, and decisions in a form governance teams can inspect. Policy decisions (allowed, blocked, or escalated) and tool-call approval steps belong in the same record as the interaction they apply to, so that each outcome can be traced back to the signals behind it.