Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Label each RAG error before you add a checker model

"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…

Hallucination is an umbrella term for various types of failures. To categorize each incorrect claim, consider four labels:

1. Unsupported - The claim lacks evidence from any source.

2. Meaning changed - The retrieved source is relevant but alters the claim's meaning.

3. Wrong retrieval - The source matches the incorrect customer, account, or policy.

4. Instruction not followed - The output does not adhere to required formatting, fields, or policies.

Some 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.

Dan 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.

For 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.

Klein 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.

To categorize each claim, define the four labels and the corresponding checks:

- Unsupported: Verify if a source supports the claim.

- Meaning changed: Check if the retrieved source has different numbers or negations.

- Wrong retrieval: Confirm the source belongs to the correct customer, account, or policy.

- Instruction not followed: Ensure the output follows the required format, fields, and policies.

Implement 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.

Remember, 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.

Run 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.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Introducing css-parser: A Modern, Powerful CSS Processing Library

css-parser is a complete TypeScript library for parsing, validating, transforming and aggressively optimizing stylesheets._ CSS has evolved considerably.

  • css-parser is a TypeScript library for CSS processing.
  • Supports modern CSS syntax and advanced features.
  • Offers minification with 13.84% smaller output compared to competitors.

Is MIDI channel 10 always drums? Read the channel, not the track name

Channel 10 is for percussion in General MIDI Level 1. A plain MIDI 1.0 Note On, though, doesn't encode a drum kit. An importer that turns an entire track into percussion based on its name or first…

  • MIDI channel 10 traditionally designated for percussion in General MIDI Level 1
  • MIDI 1.0 Note On message doesn't inherently encode a drum kit
  • Channel 10's note 36 selects the GM Bass Drum 1 mapping

ArgumentException: Atlas "foo" (2048x2048) can't fit sprite "texture2" (3840x1080)

ArgumentException: Atlas "foo" (2048x2048) can't fit sprite "texture2" (3840x1080) The exception carries both numbers you need, and most people read neither.

  • Atlas 'foo' (2048x2048) cannot accommodate sprite 'texture2' (3840x1080)
  • Sprite's width of 3840 pixels exceeds atlas's width limit of 2048 pixels
  • Increasing Max Texture Size to 4096 pixels resolves the ArgumentException

How to Convert PDF to Word Online for Free — Without Uploading It Anywhere

How to Convert PDF to Word Online for Free — Without Uploading It Anywhere You need to edit a PDF. Not annotate it, not sign it — actually change the words.

  • Open a PDF to Word tool on https://pdfwordtools.pages.dev/pdf-to-word
  • Drop text-based PDF file into tool to convert locally
  • Download instant .docx file ready for editing

More from Tuesday, 1 December 2026 →