How AI works

What a language model really is

Autocomplete, but enormous: how it learns and what is inside.

5 min1 / 4

When you chat with Claude, ChatGPT or Gemini, you are talking to a large language model, or . Here is the whole idea in one sentence: an LLM is a program that has learned to continue text extremely well. Everything else in this module builds on that sentence.

Autocomplete, but enormous

Your phone keyboard suggests the next word while you type. After “See you”, it offers “tomorrow” or “soon”. A language model does the same basic job: it guesses what comes next. The difference is scale. It has learned from a huge amount of text, and it is so big that it picks up grammar, facts, writing styles and even patterns of reasoning along the way.

Why “large”?“Large” refers to the number of parameters: adjustable numbers inside the model. Modern models have many billions of them. Think of them as tiny dials that together store everything the model has learned.

How it learns: three stages

1 Pre-trainingRead huge amounts of text. Guess the next word, billions of times.
→
2 Learn from examples of good conversations.
→
3 FeedbackPrefer helpful, honest and safe answers.
→
AssistantThe model you chat with.
Training happens once, before release. Your chats do not change the model while you type.
  1. Pre-training. The model reads an enormous collection of text: books, websites, code and more. It plays one game billions of times: hide the next word, guess it, check the real answer, and nudge its numbers slightly so the next guess is a little better.
  2. Fine-tuning. A model that only continues text is not yet a helpful assistant. So it is trained further on examples of good conversations: a question, then a clear and useful answer.
  3. Feedback. People compare answers and say which is better. Anthropic also trains Claude with a written set of principles, a kind of constitution, so it learns to prefer answers that are helpful, honest and safe.

Notice what is missing: nobody writes rules like “if someone asks about the weather, say this”. The model is not programmed line by line. It is trained, and during training it develops its own strategies. That is why even the people who build these models still study what goes on inside them.

Numbers, not a library

A language model does not store the texts it read, the way a library stores books. It stores patterns, spread across those billions of numbers. That is why it can write something completely new. It is also why it cannot reliably “look up” an exact quote or a page number: it reconstructs, and a reconstruction can be slightly or completely off.

A language model is……but it is not
a pattern machine for languagea search engine with a list of web pages
good at explaining, writing and working through problemsaware of news after its training ended, unless it searches the web
the same model for everyone who uses itlearning from your chat as you type (memory features are separate notes)

So, does it think?

The honest answer: researchers are still finding out. Anthropic built tools to look inside Claude, a bit like a microscope. They found that Claude plans ahead: when writing a rhyming poem, it picks the rhyme word before it writes the line that leads to it. They also found concepts that are shared across languages, so “small” and “opposite” are represented in a similar way whether you ask in English, French or Chinese. And they found that the explanation a model gives for its own reasoning does not always match what actually happened inside.

A useful way to see itTreat an LLM as a very capable tool for language and thinking work, not as a person and not as an all-knowing oracle. Give it clear context, and check what matters.
Try it now: Ask Claude: “Explain what you are in three sentences, as if I were ten years old.” Compare its answer with this article. What did it leave out?

Check yourself

1. What is the basic job of a language model?
2. Which training stage turns a text-continuer into a helpful assistant?
3. Why can a model get an exact quote wrong?
4. What did Anthropic's research find when Claude writes a rhyming poem?

Tip: use ← and → to move between lessons.