Measuring Hallucination in LLM Apps
Measure how often your app states unsupported things, with claim level checks you can repeat and trust.
A taste of a lesson
The answer included a true fact that is not in our documents. Does that count as a hallucination?
For a document grounded app, count it as unfaithful, even though it is true. Your users cannot verify it from the cited sources, and next time the model adds something from general knowledge it may be outdated or wrong for your organisation. Label it not in source rather than contradicted, so you can track both kinds separately. Then decide whether outside knowledge is ever allowed, and say so in the prompt. Is outside knowledge ever acceptable in your app?
Written with AI under Skill Lab's direction as an example. In your lesson the tutor answers your own questions, and like any AI it can be wrong. Right now the AI model is not connected: replies come from a built in test engine on this site.
What you will be able to do
- Distinguish faithfulness from factuality and intrinsic from extrinsic errors
- Split answers into claims and label support against sources
- Measure honest abstention on unanswerable questions
- Validate model judges and report rates with sample sizes
- Test hallucination reduction levers by re-measuring
Lesson plan
- 1 Defining what you measure Separate faithfulness, factuality and the kinds of unsupported claims. Start
- 2 Claims as the unit Split answers into atomic claims with consistent guidelines. Start
- 3 Labelling support Judge each claim against the sources reliably. Start
- 4 Unanswerable questions Measure whether the app admits when it does not know. Start
- 5 Caveats and reporting Report results honestly with their uncertainty. Start
- 6 Testing improvements Try reduction levers and confirm their effect. Start
Try asking
About this tutor
For developers and evaluators who need a real number, not an anecdote, for how often their assistant makes things up. You learn to separate faithfulness (staying true to the provided sources) from factuality (being true about the world), split answers into individual claims, check each claim against sources with people or validated model judges, and measure behaviour on unanswerable questions. You also learn the caveats: hallucination rates depend heavily on task and question mix, judges make mistakes, and general published rates say little about your app. You finish with a repeatable measurement and a list of levers to test.
Reviews
Students can review a tutor after a paid lesson. Nobody has yet.
More like this
Other tutors on the same or nearby topics.