Learning path · 8 lessons · 27 min total

Learn how LLMs work

Six short lessons on the ideas behind chatbots and AI agents. Each one ends with something to try in the playground, so you see it happen instead of just reading about it.

  1. 01

    What is a token?

    Models read pieces of words mapped to numbers, not words.
    3 min
  2. 02

    Temperature, top-p and top-k

    How the model picks one next token out of thousands of options.
    4 min
  3. 03

    The context window

    The model's working memory, and what happens when it fills up.
    3 min
  4. 04

    Managing the context window

    Dropping, trimming and summarizing: how chat apps make room, and what each one forgets.
    4 min
  5. 05

    The system prompt

    The hidden instructions sent before every conversation.
    3 min
  6. 06

    How function calling works

    A model can only write text. Here is how that text becomes a tool call.
    4 min
  7. 07

    Prefill vs decode

    The two speeds of every LLM: reading your prompt and writing the answer.
    3 min
  8. 08

    Run an LLM in your browser

    WebGPU, small models, and what to expect from a 1B model on your laptop.
    3 min