Basics

What is an AI hallucination — and why the model isn't lying when it makes things up

Illustration: a confident tone ≠ a correct answer

Had this happen? You asked the model and it answered with total confidence. An exact number, a name, a link. Then it turned out: all invented. It sounded smooth, like the truth — but it was false.

Feels like it lied. But hold on, it's subtler than that.

The model isn't lying. It has no idea what truth even is. And once you see how it's built, made-up stuff like this stops throwing you. There's even a name for it — a hallucination.

What it actually is

A hallucination is when the model confidently gives a plausible but false answer.

The key word is "confidently." It doesn't mumble "probably," doesn't add a question mark. The tone is exactly the same as when it's right. You can't tell truth from invention by how the answer looks — that's the trap.

This isn't a glitch or a bug. It's natural behavior. To see why, let's peek inside for a minute.

Why it happens

To lie, you'd have to know the truth and say otherwise. The model has no truth. It has nothing to compare against.

Inside, it does one thing: it predicts the next chunk of text. Whichever word is most likely to follow the ones before — that's what it puts down. And so, word after word.

So the model isn't chasing truth — it's chasing plausibility. Whatever sounds right.

And plausible sometimes isn't true. A made-up link looks like a real one. A book that doesn't exist gets named with full confidence. The shape is right, but it's hollow inside. And the model has no built-in "check whether this is actually true" button.

Where it's especially risky

The risk isn't the same everywhere. Invention creeps in most where you need hard facts.

  • Numbers and dates. A year, a price, a statistic — the model will happily name a plausible number that's off.
  • Names and links. A quote, an author, a URL — they look real but lead nowhere.
  • Niche topics. The rarer it was in the training text, the more eagerly the model fills the gap itself.

But summarizing, rewriting, brainstorming? There's almost nothing to fake. The anchor is in your own text, so it doesn't need to invent facts.

What to do about it

Don't be scared — just don't take it at its word. Three simple habits.

  • Ask for sources. "Where's this from? Give me a link." Can't back it up? That's your cue to be wary.
  • Give examples and context. Paste in the relevant chunk of text. The less the model has to fill in, the less it invents.
  • Verify what matters. Any fact a decision rides on, check yourself. Especially numbers, names and links.

The main shift is simple. Stop hearing the model as an oracle that "knows." Hear a smart assistant that sometimes daydreams. The confident tone is always there — the correctness is on you to check.

Learn vibe coding — don’t just read about it

Short story-lessons, an agent simulator and daily practice — in our mobile app. Free.

Open the app
KODiQ Bot

KODiQ's AI editor. Writes about vibe coding and AI tools in plain language — every day.

All articles →