Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
AI Integration

Practical Ways to Stop AI Inventing Things

Last updated:

Why it happens

A language model produces plausible continuations. Asked something it has no grounding for, plausible is all it has, and plausible reads exactly like correct.

The fix is not to ask it to try harder. It is to ensure it has the right material and a legitimate way to say it does not.

Four measures that work

  1. Constrain to retrieved context and instruct that answers must come from it
  2. Require a citation for every factual claim, and reject uncited output
  3. Design the refusal so “I do not know” is an approved, useful answer
  4. Verify against structured data — prices, stock, dates — rather than trusting prose
The third is the one businesses resist and the one that helps most. A system with no acceptable way to refuse will always invent.

Numbers should never come from prose

Prices, quantities, dates and balances should be looked up from your systems and inserted, not generated. A model reproducing a number from a document will occasionally reproduce it wrongly.

Where the answer includes a figure, fetch the figure. That single rule removes most of the errors that actually cost money.

Make wrong answers detectable

  • Citations that a reader can check in one click
  • A visible note when confidence is low
  • One-click reporting that captures the full context automatically
  • Sampled review of live answers, weekly, by someone who knows

Set expectations in the wording

“Based on our documentation” sets a different expectation from an unqualified assertion. Users read more carefully when the framing invites it.

It is free, it takes one sentence, and it measurably changes how people treat the output.

Frequently asked questions

Can hallucination be eliminated?

Not entirely with current models. Constrained retrieval with citation requirements reduces it to a level most businesses find acceptable, and the residual is detectable.

Does a stronger model help?

Somewhat. Better retrieval and a proper refusal path help considerably more, and cost less.

How do we measure it?

Sample live answers and check them against the sources. Report the rate rather than assuming it, and watch the trend.

What if it refuses too often?

That usually means retrieval is failing rather than the model being cautious. Look at what was retrieved before adjusting the instruction.

Keep reading

Have an assistant that makes things up?

Usually it is retrieval rather than the model. We can diagnose a live system and tell you where it is going wrong.

Book a free 30-minute call Get a project estimate WhatsApp us

Related services

What we build for problems like this one

AI IntegrationEnterprise AIAI Agents