Dashboard
0%
1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
51 small wins to finish your pathNext question →

Q12EasyConcept

How can you detect hallucinations in LLM outputs?

30-second answerSay your answer out loud first, then reveal.
MethodNeedsHowLimits
Groundedness / faithfulness checkSource contextClaim extraction → entailment check per claimContext itself may be wrong
Citation verificationCitationsCheck cited passage supports the sentenceModel may cite loosely
Self-consistencyMultiple samplesDisagreement across samples suggests hallucinationCostly; consistent errors pass
External verificationTools / KBLook up facts, run calculationsCoverage of tools
Uncertainty signalsLogprobsLow-confidence tokens on key factsNot always calibrated or available
Field validationSource systemsCheck IDs, dates, amounts exist and matchStructured data only

Production pattern for RAG: generate → groundedness check → if unsupported claims are found: regenerate with stricter instructions, remove those claims, or abstain / escalate.

Measure it: "unsupported claim rate" on the eval set and sampled production traffic, as a key metric.

You understood something today that you didn't yesterday.