InfraLoka AcademyPathwayAI
PathwayAI

Module 4 · Check before you trust

Why models make things up

4 min read7 min readReviewed 26 October 2026

In short

A model writes one of the possible continuations; it does not check the truth. When its footing is weak, it still writes something that sounds right. Give it sources, allow it to say it does not know, and ask for quotes you can check.

After this lesson you can

  • Explain in your own words why hallucination happens
  • Recognise the kinds of question most likely to get a made-up answer
  • Use three ways to reduce made-up answers: give sources, allow not knowing, ask for quotes

Terms in this lesson

Understand

Hallucination is the name for an AI answer that sounds convincing but has no basis: an article number that does not exist, a book title that was never published, a figure nobody ever measured. The word sounds like an occasional glitch. In fact, hallucination follows directly from how the model works.

Recall the lesson on the text predictor. When answering, the model builds text one token at a time (a token is a small piece of text, roughly part of a word). At every step there are many plausible continuations, and the model picks one of the possible continuations. There is no separate step inside it that asks "is this true?" or "do I actually know this?". When the patterns from model training are strong, say for a fact written thousands of times in many places, the chosen continuation is usually right. When the patterns are weak, the model writes anyway, because writing is the only thing it does.

There is one more push. After pre-training, the model is trained further to become a helpful assistant. A complete, confident answer tends to be rated more helpful than "I don't know". As a result, unless asked, a model rarely admits it does not know.

The example we use throughout this course: someone asks which article governs maternity leave and how long it is. The model answers with an article number from the 2003 Manpower Law, a leave of one and a half months before and one and a half months after birth, adds the condition "only for permanent employees", then calls it all "the rule in force today". Part of that answer really is in the old text. The permanent-employee condition is not in that text: it is invented. And since 2024 there is a newer law on the welfare of mothers and children that sets maternity leave for working mothers at no less than three months, and up to six months in specific conditions. The model did not lie, because lying takes intent. The old rule was written about and discussed for some twenty years, so its pattern is far stronger in the training data than the new rule, which may even have been issued after the model's knowledge cutoff. It wrote the shape of a legal answer it knows very well, and filled the parts it did not know with the closest-looking pattern.

That is why fluency is not a sign of truth. A made-up answer and a correct one are written with the same tone and the same polish. You cannot tell them apart by style, only by source.

Not every question is equally risky. Made-up answers turn up most often for six kinds of question.

First, very specific details: article numbers, case numbers, statistics, exact dates, prices. Their shape is easy to imitate and their content is hard to recall. Second, names of people, small organisations or rarely discussed products. The model has few examples about them, so it mixes in traits from similar names. Third, quotes and references: "who once said ...", "list five studies on ...". The model can produce titles, authors and years that sound very academic. Fourth, recent events. The model's knowledge stops at its knowledge cutoff, so regulations, prices or news after that are unknown to it. Fifth, internal matters: your office's policy, your client's name, last week's meeting decision. None of it was ever in its training data. Sixth, questions with a false premise, such as "why was that rule revoked last year?" when it never was. The model tends to follow the direction of the question and explain a revocation that never happened.

By contrast, the risk of made-up content is smallest when the model works on material in front of it: summarising text you paste, changing tone, reorganising, translating. Not zero, because it can still misread or add something, but you have material to match it against.

Worked example

Before

The prompt

Which article governs maternity leave, and how long is the leave?

What came back

Maternity leave is governed by Article 82(1) of Law No. 13 of 2003 on Manpower: female workers are entitled to rest for 1.5 months before and 1.5 months after giving birth, 3 months in total. This right applies only to permanent employees. This is the rule in force today.

After

The prompt

I am preparing an answer to an employee's question about how long maternity leave is. Below I paste two texts I copied from the official regulation database: Article 82 of Law No. 13 of 2003 and Article 4 of Law No. 4 of 2024. Answer only from these two texts. For every statement, quote the exact sentence and say which text it comes from. If the two texts govern the same thing differently, show the difference, but do not decide which one applies to my case. If the texts do not answer part of the question, write "not in the text" and do not guess. Text 1: [the Article 82 I pasted] Text 2: [the Article 4 I pasted]

What came back

Text 1 (2003): female workers are entitled to "rest of 1.5 (one and a half) months before the expected birth and 1.5 (one and a half) months after giving birth". Text 2 (2024): working mothers are entitled to maternity leave of "at least the first 3 (three) months" and "at most the next 3 (three) months if there are special conditions shown by a doctor's certificate" (quotes translated). The difference: text 2, the newer one, sets a longer leave and allows extra leave in special conditions. On a permanent-employee condition: not in either text. Which one applies to this employee's case, and how the two rules are read together: I cannot confirm that from these texts. Ask the HR team or legal counsel.

What changed

  • The first answer mixes three things: an old rule that really exists, an invented condition (permanent employees), and a claim of "in force today" that is no longer right.
  • Source: the model answers from official texts you supplied, the newer rule included, not from memory.
  • Permission not to know: the permanent-employee condition gets "not in the text" instead of an invention.
  • Quotes: every statement can be matched word for word against its source.
  • The model is asked to show the difference, not to decide. This example is for practice, not legal advice; details such as pay during leave are in the official text.

The example shows one check that is often skipped. The question is not only "does this article exist?" but also "is this still the latest rule on the matter?". A correct quote from an old law can still mislead if a newer rule now covers the same thing, and a model may well quote the old rule because its pattern is strongest in the training data.

Three simple steps:

  1. Take the text from the official regulation database, not from the model's memory or a blog summary.
  2. Look up the regulation's status there. Official databases usually record whether a regulation has been amended or revoked, and by which regulation.
  3. Also search for newer regulations on the same topic. A new rule can govern the same matter without revoking the old one, so an "in force" status on the old rule does not settle everything. In the maternity-leave example, the 2024 law sets a different length of leave from the 2003 text.

How two rules are read together for one employee's case is a question for the HR team or legal counsel, not for the model and not for this course. Your job as an AI user is simpler: do not stop at the first answer, and do not pass a rule on to anyone before you know it is still the latest.

Common mistake

Mistake
Checking an answer by asking the same model "are you sure?".
Why it hurts
That question only asks for one more continuation. The model may stand by its invention in even more convincing words, or apologise and replace an answer that was actually right. Neither tells you anything about the truth.
Do this instead
Match it against a source outside the model: the official text, the original document, or someone who knows. If you want the model's help, give it the source and ask for quotes.

Try

Sorting card

Sort these questions: likely to get a made-up answer, or fairly safe because the material is there?

  1. What tax rate applies to this service this month?

  2. Why was that overtime rule revoked last year?

  3. Summarise the meeting minutes I pasted into five points.

  4. Who heads procurement at our supplier?

  5. Rewrite this email I wrote so it sounds more polite.

  6. List three studies proving morning meetings raise productivity, with authors and years.

6 cards left

A request that uses all three ways

Works with any AI assistant.

Fill in your parts
For example: how many days of annual leave does an employee get after one year?
For example: the leave section of the company regulations

Your prompt

I need an answer to this question: ‹pertanyaan›

Answer only from the source I paste below. For every statement, include an exact quote from the source in quotation marks. If the source does not contain the answer, write "not in the source" and do not guess. "I don't know" is more useful to me than a guess.

Source:
‹sumber›

You ask for a summary of a 30-page contract you pasted. You worry the model will add obligations that are not in it. Which way helps most?

Take home

Before you ask about facts

  • Is my question a risky kind: figures, names, references, recent events, internal matters?
  • Have I given the model a source it can use?
  • Have I written that "I don't know" is an allowed answer?
  • Have I asked for quotes I can match?
  • If the answer cites a rule, is that rule still the latest on the matter?
  • Is the premise of my own question actually true?

What went wrong for us

Incident, October 2026
Context
We built an analysis aid that screens social media posts against relevant statutory articles.
What happened
In early tests the model cited article numbers and wording that sounded convincing. From the output alone, we could not tell which were right.
Impact
Nothing reached users. Had it slipped through, legal analysis could have rested on the wrong articles.
Root cause
The model predicts the most likely text, it does not fetch text from a source. Article numbers are a pattern that is easy to imitate.
What we did
The tool was changed to show article text from a stored source, not from the model's memory, and to mark all output as a draft.
The guard we keep now
Every cited article must be verified by counsel against the official source before use.

The lessonA reference that sounds right still has to be checked at its source.

What it means for your workUse any article number, figure or quote from AI only after you have found it yourself in the official text.

Sources