{
  "id": 23007208,
  "title": "Label each RAG error before you add a checker model",
  "url": "https://urgent.news/2026/12/01/label-each-rag-error-before-you-add-a-checker-model",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-12-01T20:30:07.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/conorbronsdon/label-each-rag-error-before-you-add-a-checker-model-45cn"
  },
  "original_language": null,
  "account": "Hallucination is an umbrella term for various types of failures. To categorize each incorrect claim, consider four labels:\n\n1. Unsupported - The claim lacks evidence from any source.\n2. Meaning changed - The retrieved source is relevant but alters the claim's meaning.\n3. Wrong retrieval - The source matches the incorrect customer, account, or policy.\n4. Instruction not followed - The output does not adhere to required formatting, fields, or policies.\n\nSome failures have a cheap, deterministic test. Use a second model only for the remaining cases, as a checker model tends to fail on the same hard cases as the original model.\n\nDan Klein, co-founder and CTO of Scaled Cognition, explained this in April 2026. He emphasized that \"hallucination rate\" is insufficient because different failures require distinct solutions. A single count hides which failure you're dealing with.\n\nFor example, if the system retrieves an answer and then states something different, it's likely a hallucination. Consider the borderline cases: does the system reword the answer or provide a different meaning? Determine the line between these scenarios.\n\nKlein also mentioned that enterprises often overestimate the hallucination rate. A mistake might seem more prevalent than it actually is. Some errors are hard to spot, like a wrong account balance or an ambiguous refund policy. These issues may not raise immediate concerns, even if they're incorrect.\n\nTo categorize each claim, define the four labels and the corresponding checks:\n\n- Unsupported: Verify if a source supports the claim.\n- Meaning changed: Check if the retrieved source has different numbers or negations.\n- Wrong retrieval: Confirm the source belongs to the correct customer, account, or policy.\n- Instruction not followed: Ensure the output follows the required format, fields, and policies.\n\nImplement these checks using code. For instance, use a regular expression to find numbers in the claim and the retrieved source. If the numbers don't match, label it as \"meaning_changed.\" Similarly, create functions to check for negations and their consistency between the claim and the source.\n\nRemember, a prompt is not a reliable control surface. Avoid relying on it for enforcing rules. Instead, validate the output and format in code. If a mistake occurs, treat it as a missed instruction.\n\nRun the cheap checks on every turn and only deploy the second model for costly, unsettled cases. Expect errors in both the model and the checker, as they may fail on the same hard cases. Be cautious when using a checker model, as correlated errors can lead to a false sense of accuracy.",
  "summary": "\"Hallucination\" covers too many failures to be a useful metric. Label each bad claim first: unsupported by any source, a paraphrase that changed the meaning, the wrong source retrieved, or an instruction not followed. Some of them have a cheap, deterministic check. Save a second model for what's left, because a checker tends to fail on the same hard cases as the model it checks. Dan Klein is…",
  "summary_source": "publisher",
  "key_points": [
    "Some failures have deterministic tests; use a second model only for remaining cases",
    "Enterprises often overestimate hallucination rate; some errors are hard to spot"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}