Page languageFrançaisEnglish
Teacher area
Laurent PoupetClaude trainer and artificial intelligence architectStudent area

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 , 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?

CriterionLLM (large language model)an artificial intelligence agent
What it isThe model that produces textA program that runs the model in a loop
Acts on the worldNo, it proposes a tool callYes, through the tools it is given
StopsAt the end of its answerAt the end of the task or at a limit

Related terms

Where this is taught

Lesson content (step-by-step instructions, exercises with solutions, quizzes) is for students only, with an access code received after the first lesson.

See the full program

Sources

All glossary terms

Trial lesson · 30 min · $20

Book (new tab)