AI

    Hallucination

    When an AI model generates information that is factually incorrect, nonsensical, or not grounded in the provided context.

    Share

    Key Takeaways

    • Hallucination is inherent to how LLMs work: they predict likely text, not verified facts. It cannot be fully eliminated.
    • RAG reduces hallucination by 60-80% by grounding responses in verified source documents.
    • For high-stakes applications (legal, medical, financial), human review remains essential even with mitigation strategies.

    Types of AI Hallucination

    Hallucinations come in several forms, each with different risks:

    • Factual fabrication: Inventing statistics, dates, or events that never happened. Example: citing a nonexistent research paper.
    • Entity confusion: Mixing up attributes between real entities. Example: attributing one company's revenue to another.
    • Logical inconsistency: Generating internally contradictory statements within the same response.
    • Context ignoring: Generating information that contradicts the provided context or documents.

    Practical Mitigation Strategies

    No single technique eliminates hallucination, but layered approaches reduce it significantly:

    1. RAG (Retrieval-Augmented Generation): Ground responses in verified documents. Most effective single mitigation.
    2. Lower temperature: Reduce randomness (temperature 0.1-0.3) for factual tasks. Higher temperature is fine for creative tasks.
    3. Instruct to cite sources: Tell the model to reference specific documents and say 'I do not know' when unsure.
    4. Output validation: Use a secondary model or rules engine to check responses for known fact patterns.
    5. Human-in-the-loop: Route high-stakes or low-confidence responses to human reviewers.
    Critical Applications

    Never deploy AI without human oversight for legal advice, medical diagnosis, financial reporting, or any context where incorrect information creates liability. Hallucination rates of 5-15% are common even with mitigation.

    Frequently Asked Questions

    Need Help With Implementation?

    Our team specializes in implementing the solutions described in this glossary.

    Get in Touch