← LearnLearning path

Inside the spicy autocomplete

What a language model actually does when it answers you: chunks of words, limited memory, confident mistakes and models that stop to think.

Start with episode 1

Prefer reading? The written guide below covers every episode (5 min read).

  1. Episode 1 of 6What is an LLM?A large language model (LLM) is the AI behind chatbots like ChatGPT and Claude: it predicts the next word, extremely well.
  2. Episode 2 of 6What are tokens?Tokens are the chunks of text AI models read and write, and the unit AI is priced and limited in.
  3. Episode 3 of 6What is a context window?A context window is how much text an AI model can take in at once, including your whole chat and its own reply.
  4. Episode 4 of 6What are AI hallucinations?AI hallucinations are confident, fluent answers that an AI simply made up.
  5. Episode 5 of 6What are reasoning models?Reasoning models are AI models that work through a problem step by step before they answer.
  6. Episode 6 of 6What is multimodal AI?Multimodal AI works with more than text: photos, audio, video and documents.

1 more episode is planned for this path.

The written guide · 5 min read

Inside the spicy autocomplete: the written guide

View as MarkdownPaste into ChatGPT, Claude or Gemini to ask questions about this page.

This path is for the people who want to know what’s going on behind the chat box. Not the code, but the behaviour: why the answer streams in word by word, why it forgets, why it’s confidently wrong, why some models pause to “think”, and how a text machine reads a photo.

By the end, you’ll understand the core behaviour of a language model well enough to predict when it’ll be brilliant and when it’ll embarrass you. Each section matches one short episode, in order. “Spicy autocomplete” is affectionate, by the way. Mostly.

1. What is an LLM?

A large language model is very expensive autocomplete. Given some text, it estimates which small piece of text comes next, adds it, and repeats. Google’s LLM course explains the same mechanism.

It learned those patterns from huge amounts of text, which is why it can draft, summarise and translate so well. But it learned patterns, not pages. It isn’t looking anything up unless the app around it connects it to search or your documents. On its own, it’s predicting what a good answer sounds like.

Remember: it’s trained to produce likely text, not checked facts. Watch the episode.

2. What are tokens?

The “next piece of text” a model predicts is a token: a word, part of a word or a bit of punctuation. Fridge magnet poetry is a fair picture, except the magnets weren’t chosen by a person. The chunks are learned from how often pieces of text appear together.

For English, a token is about three quarters of a word. Each chunk becomes a number, so the model never sees letters at all. That’s the reason behind the famous strawberry problem: in one of OpenAI’s tokenisers, “strawberry” is a single chunk, so the ten letters are invisible to the model. Researchers link the miscounting at least partly to this.

Remember: the model sees chunks, not letters, and every chunk is billed. Watch the episode.

3. What is a context window?

The context window is the model’s desk: all the text it can consider at once, including its own reply. Instructions from the app, your whole conversation, files, tool results, all of it has to fit.

Two behaviours follow. When the desk is full, the app refuses, summarises or drops the oldest material, as Anthropic’s docs describe. And even when it fits, attention isn’t even: the Lost in the Middle study found models often handle information at the start and end of a long input better than the middle. Anthropic calls the general decline as inputs grow “context rot”.

Remember: a bigger desk isn’t a tidier one. Watch the episode.

4. What are AI hallucinations?

Put the first three ideas together and hallucinations stop being mysterious. A model that predicts likely text, working only from what’s on its desk, will fill any gap with something plausible: a name, a date, a court case.

OpenAI’s research compares it to an exam where a blank scores zero and a guess might score, so the student guesses. The lawyers who filed six invented cases in 2023 learned the cost. The model has no warning light for “made up”. It sounds exactly as sure when it’s wrong.

Remember: check names, numbers, quotes and laws before they leave the building. Watch the episode.

5. What are reasoning models?

Some models do their homework first. A reasoning model writes out intermediate steps before it answers: try something, check it, back up, try again. OpenAI described its first one as a model that “thinks before it answers”. Show your work, like in maths class.

That helps a lot on multi-step problems like scheduling across time zones, maths, code and planning. But the scratchpad is made of tokens, and you pay for them even when the app hides them and shows you a tidy summary. Anthropic’s docs are explicit about that. For simple questions, it’s an accountant counting to three.

Two more catches. The written steps aren’t a confession: in a 2025 Anthropic study, models that used a hint mostly didn’t mention it. And careful isn’t correct. Reasoning models can still hallucinate.

Remember: extra homework helps hard problems and wastes money on easy ones. Watch the episode.

6. What is multimodal AI?

Multimodal AI works with more than text: photos, screenshots, voice notes, video and documents. Think of a colleague who used to only read your emails and can now see the whiteboard and hear the voicemail.

Reading a picture and making one are separate skills, sometimes done by separate models. And under the hood it’s the same trick as text: an image is cut into small squares that become tokens. Claude’s documentation puts a one-megapixel photo at about 1,300 tokens; Google’s puts a minute of audio at about 2,000. A voice assistant might be one model, or three in a trench coat: speech-to-text, a language model and text-to-speech, handing work to each other.

The old weaknesses come along too. The vendors’ own documentation warns about tiny text, rotated images and approximate counting. Hallucinations, now with pictures.

Remember: the eyes and ears are just more tokens. Watch the episode.

Putting it together

Here’s the whole machine. A language model predicts one token at a time. Pictures and sound get turned into tokens so they can join in. Everything it considers sits on a desk of limited size, unevenly lit. Where its knowledge or its desk has a gap, it fills it with something plausible, with complete confidence. A reasoning model adds a scratchpad of extra tokens to catch more of its own mistakes, at a cost, and without a guarantee.

None of this makes the tools less useful. It makes them predictable. When you know how the machine works, you know when to trust it, when to check it and when to start a new chat. Next up in this path is an episode on whether AI “thinks”, which is coming soon. Meanwhile, the glossary has every term on one page.

The question to ask

When someone suggests switching everything to the cleverest model available, ask:

Does this task actually need the extra homework?

Questions people ask

Why do AI answers appear word by word?

Because the model writes them that way. It predicts one token, a small chunk of text, adds it and repeats, so the answer streams in as it's written.

Why can't AI count the letters in strawberry?

The model never sees letters. Text is cut into chunks called tokens that become numbers, and in one of OpenAI's tokenisers the whole word strawberry is a single chunk. Researchers link the miscounting at least partly to this.

Can AI read photos and voice notes?

Many models can. Images and audio are cut into small pieces that become tokens, just like text, so they also cost tokens and bring the usual weaknesses, such as misreading tiny text or counting approximately.

Is the reasoning an AI shows me how it really got its answer?

Not reliably. In a 2025 study, models that used a hint to answer mostly didn't mention it in their written steps. Treat the visible reasoning as useful working, not as proof.

Want to see what's sunk in? Take the three-minute AI literacy test.

Other paths