- Category: C. AI Engineering & LLM Ops
- English term: Hallucination mitigation
- Related: Grounding and Source Verification · Structured Output and JSON Contract · Deterministic Verification · Independent Verification (Verifier) · Receipt and Definition of Done
General Meaning
Large language models generate text by predicting statistically likely token sequences one after another. When asked about topics absent from their training data, granular figures, or recent facts, they frequently produce convincing but false statements—a phenomenon known as hallucination.
Hallucination mitigation restricts the scope of free-form generation and combines grounding in authoritative external sources, strict structured output via JSON schemas, mechanical validation in code, and safe fallback designs that answer unknown when evidence is lacking, preventing false information from reaching users or downstream systems.
Why It Matters
- Protecting users from harmful misinformation: Reporting wrong figures or eligibility rules for public subsidies, tax rates, or application procedures causes direct financial loss and confusion.
- Preventing automated pipeline corruption: In autonomous operations where one AI's output feeds the next stage, a small fabrication upstream cascades into systemic failure downstream.
- Enabling safe degradation: Halting guesswork and returning unknown when evidence cannot be verified allows safe handoffs to higher-tier models or human review.
How the Site Factory Uses It
On October 23, 2026, the Site Factory established the core rule do not answer by guessing (strict separation of fact and conjecture) in decisions.md, prohibiting agents from stating unverified assumptions as facts. AI usage is strictly limited to data collection, structuring, entity resolution, and verification rather than free-form article writing.
Numbers displayed on public pages are never composed by an LLM; they are injected mechanically from verified state/records.json. Furthermore, deterministic checks gate every pipeline stage: engine/check_sources.py (value_inside_quote, etc.) verifies that extracted figures literally exist inside fetched source quotes, and engine/review.py blocks unverified numbers and exaggerated promotional claims (such as unverified top-ranked claims). Outputs that fail verification are never patched by guesswork; they are replaced with fixed fallback text or marked unknown and routed to higher-tier models or human review.
Caveats & Operational Rules
- Do not rely on prompt instructions alone: Telling a probabilistic model not to lie in a prompt cannot reduce hallucinations to zero; external deterministic verification gates are indispensable.
- Do not treat returning unknown as a failure: Returning unknown when source evidence is missing is safe, correct behavior; guessing with incomplete knowledge is what causes production incidents.
- Do not confuse valid formatting with factual accuracy: A JSON object can be syntactically valid while containing completely fabricated values, so schema validation and factual source checking must be performed separately.
Related Terms
- Grounding and Source Verification
- Structured Output and JSON Contract
- Deterministic Verification
- Independent Verification (Verifier)
- Receipt and Definition of Done
References
- Book: Chip Huyen, "AI Engineering", Chapter 5 (Retrieval-Augmented Generation and Grounding)
Verified: 2026-11-08