Claim-level scoring sheet beside a laptop showing grounded and unsupported statements

Hallucination Metrics for LLM Apps That Teams Use

There is no single hallucination rate. Hallucination metrics are claim-level measurements of how often a model states something its sources, tools, or the real world do not support, and the useful ones separate “contradicts the evidence” from “cannot be verified from the evidence.” Pick three or four of them, define the unit you count, and you can finally argue about numbers instead of anecdotes.

Most teams start with a gut-feel percentage (“it hallucinates maybe 5% of the time”) that nobody can reproduce. This post gives you a short menu of metrics that survive contact with a real review meeting, a worked example with arithmetic you can copy, and a severity-weighted scorecard row you can drop into your release checklist.

A rate nobody can reproduce is not a metric

Ask three engineers for the hallucination rate of the same support bot and you will get three answers. One counted answers with any wrong sentence. One counted wrong sentences. One counted only the ones a customer complained about. All three are defensible, and none are comparable week to week.

A metric becomes real when four things are pinned down: the unit (answer, claim, or citation), the reference (retrieved context, a gold answer, a database row, or nothing), the grader (human, rule, or LLM judge with a fixed prompt), and the population (which questions, sampled how). Change any one of the four and you have a new metric, so version them together.

Count claims, not answers

Answer-level scoring is cheap and misleading. A 300-word answer with one invented refund window gets the same “failed” stamp as a 300-word answer that is wrong from the first line. Claim-level scoring breaks the answer into atomic statements and checks each one. The RAGAS faithfulness definition works exactly this way: identify the claims in the response, check which can be inferred from the retrieved context, and divide supported claims by total claims.

Here is why the unit matters. Suppose you grade 40 support answers and extract 212 claims in total. Nineteen claims are unsupported by the retrieved passages.

  • Unsupported claim rate: 19 / 212 = 9.0%
  • Faithfulness (claim-level): 193 / 212 = 0.91
  • Answers with at least one unsupported claim: 14 / 40 = 35%

Same data, three honest numbers. The 9% figure tells you about model discipline. The 35% figure tells you how often a customer will see something wrong, which is what your support lead cares about. Report both, and say which one gates releases.

Five metrics worth tracking

You do not need fifteen dashboards. These five cover most grounded-generation products, and each maps to a different fix.

MetricWhat it countsNeeds a reference?Where it breaks
Unsupported claim rateClaims not entailed by the provided contextRetrieved context onlyPenalizes correct claims from model memory that the context omits
Contradiction rateClaims that directly conflict with the contextRetrieved context onlyRare events; needs a large sample to see movement
Citation precisionCited passages that actually support the attached claimContext plus citation mapModels cite plausibly but loosely, so judges drift
Entity and number mismatchDates, amounts, IDs, names that differ from the sourceSource recordsNeeds normalization ($1,200 vs 1200 USD)
Abstention correctnessRefusals when evidence is missing, answers when it existsLabeled answerable/unanswerable setOver-refusal hides inside a good-looking hallucination score

The entity and number row is the one teams skip, and it is the cheapest to automate. Extract amounts, dates, and identifiers with regular expressions or a small parser, compare them against the source passage, and you get a deterministic check that does not depend on a judge model at all.

Intrinsic versus extrinsic: two bugs, two fixes

A contradiction (“refunds take 14 days” when the policy says 30) and an unverifiable addition (“refunds are usually faster for premium customers” when the context says nothing) feel similar to a reader but come from different causes.

Contradictions usually point to a retrieval or context-assembly problem: stale chunks, conflicting versions of the same policy, or a truncated passage. Unverifiable additions usually point to prompt and model behavior: the model is filling gaps because nothing told it not to. If your contradiction rate is flat but extrinsic additions are climbing after a prompt rewrite, look at the instructions. If contradictions spike after a reindex, look at chunking and document versioning before touching the prompt.

Weight by severity or the number will lie to you

Not every unsupported claim costs the same. A made-up adjective is noise. A made-up refund deadline is a refund dispute. Add a severity tag when a human or judge flags a claim, then report a weighted rate next to the raw one.

SeverityExampleWeight
S1 cosmeticUnsupported adjective or filler claim0.1
S2 misleadingPlausible but unsourced detail the user may act on1
S3 harmfulWrong price, legal term, dosage, deadline, or policy5

Take the 19 unsupported claims from earlier: 9 were S1, 8 were S2, and 2 were S3. The weighted total is 9 × 0.1 + 8 × 1 + 2 × 5 = 18.9. Divide by 212 claims and the weighted rate is 8.9%, almost identical to the raw 9.0%, which hides that two S3 errors drive more than half the weighted total. A release rule such as “zero S3 claims in the regression set” is far more useful than “under 10% unsupported.”

Measure the refusal side too

Prompting a model to say “I don’t have enough information” is one of the standard moves in Anthropic’s guidance on reducing hallucinations, and it works. It also creates a new failure: the model refuses questions it could have answered.

Build a small labeled set where roughly a quarter of the questions have no supporting evidence in the corpus. Then report two numbers.

  • Correct abstention: of the unanswerable questions, the share the system declined or flagged.
  • Over-refusal: of the answerable questions, the share it declined.

If you tighten the prompt and hallucinations drop from 9% to 4% while over-refusal climbs from 3% to 18%, you did not fix anything. You moved cost from “wrong answer” to “useless answer,” and only one of those shows up in a faithfulness score.

Calibrate the judge before trusting it

If an LLM judge extracts claims and checks entailment, the judge is a measuring instrument. Calibrate it like one. Have two humans label 50 claims from real traffic, resolve disagreements, then run the judge on the same 50. Track agreement per label (supported, unsupported, contradicted), not just overall accuracy, because a judge that says “supported” to everything scores high on a mostly-supported sample.

OpenAI’s evaluation best practices make the same point: use human feedback to calibrate automated scoring, and avoid vibe-based evaluation. For judge design, bias, and rubric patterns, see our LLM-as-judge guide. For how labeled samples feed back into the system, see human review loops for LLM quality.

A scorecard row you can paste

Here is how hallucination metrics look once they sit in a release scorecard.

CheckThreshold to shipSource
S3 unsupported claims0 in the regression setJudge plus human spot-check
Weighted unsupported rateAt or below last release plus 1 pointJudge, versioned prompt
Number and entity mismatches0 on structured fieldsDeterministic parser
Over-refusal on answerable setBelow 8%Labeled set
Judge agreement with humansAt least 85% on last calibration50-claim audit

These rows slot into the broader LLM quality scorecard, and the numbers should be measured offline first, then confirmed with sampled production traffic as described in online vs offline LLM evaluation. If your pipeline is retrieval-heavy, pair this with the context-quality metrics in the RAGAS evaluation guide so you can tell a retrieval miss from a generation slip.

What to change when a metric moves

  • Unsupported claims up, retrieval metrics flat: the prompt or model is improvising. Tighten grounding instructions and quote-first patterns from the prompt engineering guide.
  • Contradictions up after a content update: you have conflicting versions in the index. Fix versioning and freshness filters.
  • Citation precision down, faithfulness fine: the model is attaching the wrong source ids. Check how you number and format passages.
  • Over-refusal up: the abstention instruction is too broad, or retrieval is returning less evidence than before. Check recall before loosening the prompt.

For the architecture side of that decision, naive vs advanced RAG explains which retrieval upgrades reduce missing-evidence failures at the source.

Frequently asked questions

What are hallucination metrics?

Hallucination metrics quantify how often an LLM states claims that its sources, tools, or ground truth do not support. The most useful versions work at the claim level and include a severity weight, so one wrong price counts for more than one filler adjective.

Is faithfulness the same as a hallucination rate?

Not exactly. Faithfulness measures the share of claims supported by the retrieved context, so it is roughly the inverse of the unsupported claim rate. It ignores whether the context itself was correct and does not capture over-refusal, so pair it with abstention and entity-mismatch checks.

How many examples do I need to measure hallucinations reliably?

Start with 100 to 200 real questions tagged by failure mode, then grow from production incidents. For judge calibration, a 50-claim human-labeled audit is a practical minimum. Rare severe errors need larger samples or a targeted adversarial set.

Can an LLM judge find hallucinations without a reference answer?

Yes, when you give it the retrieved context and ask whether each claim is supported by it. It cannot catch errors where the context itself is wrong, and its verdicts should be audited against human labels on a regular schedule.

Should I aim for a zero hallucination rate?

Aim for zero on severe categories such as prices, legal terms, and safety guidance, and a tolerance you can defend for low-severity noise. A single blended target pushes teams to over-refuse, which creates a different quality problem.

Related reading

About Mudasir Syed

Check Also

Rows of server racks in a data center suggesting storage infrastructure for vector database workloads

Open-Source Vector DB Projects Worth Tracking

Choosing among open source vector database projects is less about finding the fastest one and …

Leave a Reply