Hallucination

Definition

A hallucination is a confident but false output from a language model — an invented figure, clause or reference. It is a property of statistical text generation, which is why production systems verify outputs against source data instead of trusting them.

The engineering answer is containment: retrieve facts from systems of record, force structured output, validate values against the database, and require citations for any claim.

Where a wrong value would be expensive — payments, contracts, statutory filings — a human confirmation step stays in the workflow by design.

In practice

  • Mitigated by retrieval, validation rules and structured output
  • Never eliminated entirely — critical steps keep human sign-off
  • Log every output so errors can be traced and corrected
Read the full articleIs AI safe with company data? GDPR, hosting and control explainedWhere your data goes when AI processes it, what GDPR actually requires, and the practical safeguards that make AI agents safe to run in a real business.

Related terms

Back to the glossary