Skip to content
WebPortal
AI explained

AI sometimes invents a fact and states it with full confidence. The next model version won’t remove this entirely, so your process has to catch the errors.

· 1 min read

AI hallucinations: why they happen and how to keep them under control

A “hallucination” is when a language model writes something that sounds right but isn’t: an invented clause, a non-existent invoice number, a quote nobody said.

Why it happens

A language model doesn’t look things up in a database of truth. It predicts the most likely next text based on patterns. When it lacks reliable information, it still produces text that looks like an answer. Newer models err less often, but they still err.

How to reduce them

  • Give the model a source (RAG) instead of relying on “general knowledge”.
  • Require citations, so inventions are easy to spot.
  • Allow “I don’t know”.
  • Use structured output and check each field separately.
  • Add rules after the model: totals must match line items, tax IDs must validate.

Where people must stay in the loop

For anything with financial or legal consequences: AI proposes, a person approves. A well-designed system sends only low-confidence results to manual review, so oversight doesn’t cancel out the time saved.

Expect AI to get things wrong now and then, and set up your process so the error is caught before it causes harm.