Module 0 · Start here · Lesson 2 of 34

LLMs in ten minutes

Tokens, next-token prediction, temperature, context windows, tools and agents: the core ideas every module uses.

In this lesson · about 14 minutes

  • Explain what a large language model does, one token at a time
  • Describe temperature, tokens and the context window in plain words
  • Tell the difference between a chat model, a tool call and an agent

A large language model (LLM) is a program trained on a huge amount of text to do one thing: given some text, predict what comes next. Everything else (answering questions, writing code, using tools) is built from that one skill.

  • Text is split into tokens: whole short words, pieces of longer words, and punctuation. In English, one token is about four characters, or three-quarters of a word.
  • For the next position, the model gives every token in its vocabulary a probability.
  • One token is picked, added to the text, and the process repeats until the model produces an "end" token or hits a length limit.

Try it · simulator

Next-token predictor

A language model writes by repeatedly picking the next token from a list of probabilities. Build a sentence one token at a time and change the temperature and top-p to see how the choices change.

The cat▍

Next-token probabilities after “cat”

sat50%
slept30%
purred17%
coded3%
A real model does exactly this, one token at a time, but scores about 100,000 possible tokens at every step using everything written so far, not just the last word. Try temperature 0.1 and press Finish a few times (almost always the same sentence), then 2.0 (odd choices like “cat coded”).

Key terms

Say the meaning to yourself, then tap a card to check.

Whiteboard · watch and try

From a model to an agent

Press Play. The tutor builds up from a bare model to an agent in four steps.

5 steps
Press Play and the tutor will talk you through it while writing on the board. Pause any time to write on the board yourself.

Tip: press Pause, then use the pen to work along on the board. Space plays and pauses; Ctrl+Z undoes your last mark.

Check your understanding0 of 4 correct

Question 1

1.At its core, what does a large language model do?

Question 2

2.Roughly how many tokens is a 2,000-character English paragraph?

Question 3

3.You want the same, predictable answer every time for a data-extraction job. What temperature fits best?

Question 4

4.What turns a model with tools into an agent?

Quiz score: 0 of 4

Tip: answer every quiz question correctly first.

Written by Noviq Academy in its own words. The simulators are small teaching models that keep the real idea and leave out the scale; their numbers (prices, speeds, scores) are illustrative. Model names, prices and features change quickly, so check your provider's current documentation before you build. Read-aloud uses your device's built-in voices.