How language models create text
Six simple steps from your question to the answer, and four rules that follow for everyday use.
After this lessonYou can explain in three sentences how an AI answer is created, and you know what that means for your own questions.
You do not need to build an engine to drive well. But knowing that a car needs fuel and brakes worse on ice makes you a safer driver. AI is similar: a few basic ideas explain why it is sometimes brilliant and sometimes talks nonsense.
Six steps
- Training: the model was trained on huge amounts of text and learned which words and ideas belong together. It does not store texts like a database. Think of someone who has read a million books but cannot open any of them again.
- Prediction: it writes the answer piece by piece, each time choosing what most likely fits next, like a very good autocomplete. “In the morning I like a cup of …” is far more likely to continue with “coffee” than with “petrol”.
- Context: everything in the current chat (your messages, files, instructions) shapes the answer. This short-term memory is limited, so start a new chat for each new topic.
- Cut-off date: training ends on a certain date. Newer things the model only knows if it searches the web or you provide them.
- Chance: the same question can give different answers. Good for ideas, risky for facts.
- Thinking and tools: many assistants can “think” first, search the web or calculate with small programs. That makes answers more reliable, but never error-free.
Plausible is not the same as correctThe answer is what sounds most plausible. Usually that is right, but not always, and the tone gives no hint which one you got.
Four rules for you
| Because… | …you should | More in |
|---|---|---|
| the answer depends on context | give details: who you are, what you need, what the result should look like | Module 2 |
| knowledge has a cut-off date | write “search the web” for current questions and look at the sources | Module 6 |
| plausible is not always correct | treat every answer as a suggestion and check important facts | Lesson 1.3 |
| memory in a chat is limited | use one chat per topic and split long documents | Module 6 |
Deeper: our module Context and RAG explains how AI looks things up in documents.
Try it now: Three mini experiments: 1) ask the same question (“three names for a small café”) in two new chats and compare; 2) ask “Up to when does your knowledge go, and when do you search the web?”; 3) ask “What should I cook today?”, then again with “20 minutes, rice, peppers and eggs, no meat”.
Check yourself
Tip: use ← and → to move between lessons.