Design a system to detect and reduce hallucinations in a generative feature.
Quick-fire answer from the Awesome Generative AI Guide (MIT)
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Attack it at three points: reduce, detect, and contain. Reduce by grounding the model in retrieved sources and instructing it to answer only from them, using constrained outputs, and giving it a clean minimal context. Detect with a faithfulness or entailment check that verifies each claim against the cited source (an LLM judge or an NLI model), plus citation-coverage checks and confidence signals, run both offline in evals and online on sampled traffic. Contain by showing sources so users can verify, refusing when support is weak, and routing high-stakes low-confidence cases to a human. There is no single switch, so you layer grounding, verification, and human oversight and measure the residual rate.
Full worked answer
Attack it at three points: reduce, detect, and contain. Reduce by grounding the model in retrieved sources and instructing it to answer only from them, using constrained outputs, and giving it a clean minimal context. Detect with a faithfulness or entailment check that verifies each claim against the cited source (an LLM judge or an NLI model), plus citation-coverage checks and confidence signals, run both offline in evals and online on sampled traffic. Contain by showing sources so users can verify, refusing when support is weak, and routing high-stakes low-confidence cases to a human. There is no single switch, so you layer grounding, verification, and human oversight and measure the residual rate.
Learn more: Safety and Security topic
What a good answer covers
- Attack it at three points: reduce, detect, and contain
- Reduce by grounding the model in retrieved sources and instructing it to answer only from them, using…
- Detect with a faithfulness or entailment check that verifies each claim against the cited source (an LLM…
- Contain by showing sources so users can verify, refusing when support is weak, and routing high-stakes…
- There is no single switch, so you layer grounding, verification, and human oversight and measure the…
Key terms: Learn more
In the glossary: Grounding · Faithfulness · Judge (LLM-as-judge)
Quick-fire answer from the Awesome Generative AI Guide (MIT) · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep