Category · Models and how they work
What is an LLM (large language model)?
An LLM (large language model) is a model trained on huge amounts of text. It predicts how a text continues, and it can also ask to call tools. It does not look up a fact; it produces the most plausible text.
By Laurent Poupet, Claude trainer and artificial intelligence architect · Updated
How it works
- The text is split into tokens, and at each step the model computes a probability for every possible token, picks one, then starts again with that new token.
- Its knowledge stops at the end date of its training; for recent or internal information, it has to be supplied in the context.
- There are closed models, available only through a vendor’s interface, and open models, whose weights can be downloaded and self-hosted.
The trap to avoid
The trap is treating it as a database; it does not look up a fact, it produces the most plausible text, which can be wrong.
A concrete example
You write “The capital of Australia is”. The model splits the sentence into tokens, computes a probability for each possible continuation, and picks “Canberra”, then the full stop, then stops. It looked nothing up: it produced the most plausible continuation, which is right here, but can be wrong on a rare or recent subject.
What is the difference with an artificial intelligence agent?
| Criterion | LLM (large language model) | an artificial intelligence agent |
|---|---|---|
| What it is | The model that produces text | A program that runs the model in a loop |
| Acts on the world | No, it proposes a tool call | Yes, through the tools it is given |
| Stops | At the end of its answer | At the end of the task or at a limit |
Related terms
- AI (artificial intelligence) agentAgents and orchestration
- Large language model as a judge (LLM-as-a-judge)Evaluation and quality
- TokenModels and how they work
Where this is taught
Track 5 · Real-world use cases
Publish a Sales or Personal Site: SEO (search engine optimization) and Optimization for Artificial Intelligencelesson 7 · 1 hour
Lesson content (step-by-step instructions, exercises with solutions, quizzes) is for students only, with an access code received after the first lesson.