FailLoud Playground / Guides

How can I detect unsupported claims in LLM-generated text?

Short answer

Split the problem by claim type. Claimed actions (“I sent the email”) are checked against evidence — an id, URL, receipt or artifact — by FailLoud FL002 unbacked_claim. Claimed facts (citations, figures) are checked against the retrieved sources by FL006 unsupported_answer. And when the output only had to agree with itself, FailLoud's second pass re-judges its claims against the system of record: confirmed, contradicted, or unverifiable.

Why “unsupported” needs two checks, not one score

A single faithfulness score hides the failure that matters. Text can be unsupported in mechanically different ways: it can claim an action that left no trace, cite a source that was never retrieved, or state a figure that appears in no source. Each has a deterministic test. A judged score (an LLM rating “groundedness 0.7”) can wave all three through on a confident day; the mechanical tests cannot.

The three layers

LayerCheckCatches
ActionsFL002 unbacked_claim“Sent / posted / published / updated” with no id, URL, receipt or artifact anywhere in the claim.
FactsFL006 unsupported_answerCitations resolving to nothing retrieved; cited sources with no text; numbers appearing in no source.
The worldSecond pass (failloud recheck)Internally consistent claims the system of record later contradicts — the bounced email behind the “sent” claim.
$ failloud recheck examples/second_pass_original.json examples/second_pass_record.json
First pass: PASS (provisional)
Second pass: CONTRADICTED
  ✗ email_sent → reader09@acme-digest.com — evidence 'msg_8f09' appears in a
    failure context (bounced / failed / rejected) in the system of record.
  ✗ delivered — reported as 9 but the record shows 8.

The second pass is the honest part of the design: a record that never mentions a claim's evidence has not confirmed it, and FailLoud says “unverifiable” instead of upgrading silence into a pass.

What stays a judgement call

Whether a real source entails a sentence is not mechanical. For that layer, judged metrics (DeepEval, Ragas) or human review are the tools. FailLoud's claim is narrower and stronger: the unsupported claims that can be proven unsupported are caught every time, with the path and the numbers attached.