Reference

AI doesn't look up answers — it continues the text

How a language model writes an answer word by word, why it sounds confident even when it is wrong, and what this means for your work.

In this articleHow an answer gets written

You ask ChatGPT by what date you need to send a client an invoice, and you get a calm, confident answer. Sometimes it is right. Sometimes it contains a date that appears in none of your documents. The tone is the same either way.

The reason lies in how AI writes an answer. It does not find a ready-made answer in a database and does not check against facts. It continues the text: it picks the word most likely to come next, then the one after that, and so on to the end of the answer. Once you understand this mechanism, it becomes clear when you can trust AI, when you need to check, and what to do so that it makes mistakes less often.

How an answer gets written

As explained in the guide to the model, chat and agent, a large language model (LLM) is first trained to do one thing: guess the next word from the preceding text. That is how Anthropic describes this stage in its glossary. The model is then trained further to act as an assistant, but the way it writes does not change. Let's see how this works from the inside.

The model sees the start of a sentence: ‘The invoice must be sent to the client by…’. It has several options for what comes next, each with its own probability:

  • ‘Friday’ — 46%;
  • ‘the end of the month’ — 23%;
  • ‘the 15th’ — 14%;
  • ‘tomorrow’ — 9%.

The figures are illustrative. The model picks one word and looks at the sentence again: ‘The invoice must be sent to the client by Friday so that the payment…’. Again there are options: ‘arrives’, ‘goes through’, ‘is received’. And so on, word by word.

How an answer is written

The invoice must be sent to the client byFridayso that the paymentarrivesthis month.

The percentages are illustrative.

Every answer is written this way: an email, a translation, a contract review. Even when AI first searches the internet or reads your file, what it finds simply becomes part of the text it is continuing.

Why it sounds confident even when it is wrong

An awkward consequence follows from this mechanism. The model has no separate ‘I don't know’ button. If it lacks the facts it needs, it will still continue the text — in the most plausible way. A plausible answer sounds just as smooth as a correct one.

In its research on why models make things up, OpenAI explains where this habit comes from. When models are trained and tested, an accurate answer earns a point and an honest ‘I don't know’ earns zero. Guessing pays off better than staying silent: sometimes you hit the mark. So models learn to do exactly that — guess confidently.

The same research includes a telling comparison of two OpenAI models on SimpleQA, a set of questions with verifiable answers. The older o4-mini model almost never declined to answer; it was right in 24% of cases but wrong in 75%. The newer gpt-5-thinking-mini said ‘I don't know’ in half of the cases, answered correctly in 22% and was wrong in 26%. Accuracy is almost the same, but there are nearly three times fewer made-up answers.

The practical conclusion for work: a confident tone tells you nothing about whether an answer is correct. Dates, amounts, section numbers of laws and document names in an AI answer must be checked against the source, especially if you did not give the model that source.

Who you are dealing with: a Harvard student

Why does the model so readily fill in your facts in particular? One image helps. Picture a very bright Harvard student who has read almost the entire internet. They know a lot:

  • how emails, contracts and commercial proposals are written;
  • laws and standards — but only as of the date their training ended;
  • several languages;
  • programming, accounting and marketing in broad strokes.

And yet it is their first day at your company. They do not know:

  • your company or your clients;
  • your prices and terms;
  • what you promised a client yesterday;
  • how things are done at your company and what you consider a good result.

An ordinary intern would learn all this within a month. The model on its own will not: it starts every new conversation from the same zero, unless you give it permanent notes about you. Everything it knows about you and about recent events is whatever you have put in front of it right now.

The model knows a lot in general and nothing about your company.

Vast memory and the context window

This leads to the key distinction worth keeping in mind.

The model is a vast memory. That is our student's erudition. You cannot add to it from a chat, and it is the same for you and for your competitor.

The context window is what the model sees right now. Your question, rules, files, previous messages: everything in front of it at the moment it answers. The model reads the context window and decides what it needs from its vast memory at that moment. Whatever is not in the context window does not exist for it.

How much fits into the context window and what happens when it overflows is covered in detail in a separate article. What matters here is something else: the quality of an answer depends less on how clever the model is than on what you have given it.

Compare two requests.

‘Where's the fish?’ — the model has nothing to hold on to. It can continue this text in any direction: an aquarium, a sushi bar, a fishing trip, a recipe for fish soup. The answer will be about everything at once and about nothing.

Now take the same ‘where's the fish?’, but put in front of it the CVs of an oceanographer and his colleagues, a scientific paper about an expedition off the island of Java, and a task: an investment plan for Australian investors worth a million dollars. The most likely continuations are now completely different. The model writes an expedition plan: the team, the scientific basis, the budget, what the investors will get.

The model is the same. Only the context window has changed.

The same question with context gives a completely different answer.

What this means in practice

Three habits cover most of the problems.

Put facts into the context instead of relying on the model's memory. Attach the contract, the price list, the bank statement, the client's email. If the answer depends on your data and the data is not in the request, the model will make it up.

Allow it to say ‘I don't know’. The model tends to guess, because that is how it was trained. Add to your request: ‘If the data is insufficient, say so and list what is missing.’ The article on how to stop AI making things up shows how to build a full set of rules from this.

Check whatever must not be wrong. Dates, amounts, names, document numbers, references to the law. Ask the model to state which file each figure comes from: checking will then take a minute.

Try it on your own task:

Prompt
Answer the question based on the documents below.
For every date, amount and condition, state which document
it comes from. If the answer is not in the documents, write
'this is not in the documents' and do not fill in the gaps.

Documents: [paste or attach]
Question: [what you need to find out]

Where to start

Take one AI answer that you recently used in your work and mark every statement in it about your business: dates, figures, promises. For each one, ask yourself: was this in the model's context window? If not, it is a guess, even if it turned out to be right.

When you find yourself giving the model the same rules and documents again in every new chat, it is time to move them to a permanent place. The article ‘From a long chat to a working folder’ explains how this works.

Finished reading? Mark the step — your path progress will update.

Path · Step 2 of 16I’m just starting with AI
0 of 16

How we can help

If your company faces a similar task, we can show you a first step and the boundaries of a possible solution.

Discuss your task