How a large language model writes
A very good guesser
A large language model does one thing: given some text, it predicts what comes next. Then it adds that piece to the text and predicts again, over and over, until the answer is finished.
Type "The capital of Australia is" and the model has learned from millions of documents that "Canberra" is by far the most likely next word. It doesn't look it up anywhere; the pattern is stored in the model itself.
Tokens: the pieces it works with
Models don't read words the way you do. Text is cut into tokens: whole short words, or parts of longer ones. "Tutoring" might be one token; "Brightside" might be two ("Bright" + "side"). As a rough guide, 100 tokens is about 75 English words.
Tokens matter because:
- Every model has a context window — a limit on how many tokens it can read and write in one go, including your whole conversation so far
- Cloud AI services charge by the number of tokens in and out
- Longer answers take longer, one token at a time
Learned from examples
To build an LLM, a computer reads a huge amount of text — books, websites, code — and keeps adjusting billions of numbers inside the model, called parameters, so that its guesses about the next token get better. This is called training, and for the biggest models it takes months and costs millions of dollars.
After that, most models get extra training on examples of helpful conversations, and on people's ratings of which answers were better. That's what turns a text-predictor into a polite assistant that answers questions instead of just continuing your sentence.
Why the same question gets different answers
At each step the model has a list of possible next tokens, each with a probability. It doesn't always pick the top one: a setting called temperature controls how adventurous it is.
| Temperature | Behaviour | Good for |
|---|---|---|
| Low (0 to 0.3) | Picks the most likely token nearly every time; very similar answers | Facts, sorting, pulling details out of text |
| Medium (0.5 to 0.8) | Some variety | Most writing |
| High (1 and above) | Surprising choices, sometimes nonsense | Brainstorming names and ideas |
You'll change temperature yourself in Module 4.
What this means in practice
- An LLM produces likely-sounding text, not checked facts
- It knows nothing that happened after its training finished, unless you give it the information
- It can't see your files, the web or your calendar unless an app gives it a way to (Modules 5 and 6)
Try it
- In any AI chat tool, ask the same question twice in two new chats: "Suggest a name for a tutoring business." Are the answers the same?
- Ask: "What happened in the news yesterday?" Notice how it answers — does it admit what it can't know, or does it make something up?
