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.
-
01
What is a token?
Models read pieces of words mapped to numbers, not words. -
02
Temperature, top-p and top-k
How the model picks one next token out of thousands of options. -
03
The context window
The model's working memory, and what happens when it fills up. -
04
Managing the context window
Dropping, trimming and summarizing: how chat apps make room, and what each one forgets. -
05
The system prompt
The hidden instructions sent before every conversation. -
06
How function calling works
A model can only write text. Here is how that text becomes a tool call. -
07
Prefill vs decode
The two speeds of every LLM: reading your prompt and writing the answer. -
08
Run an LLM in your browser
WebGPU, small models, and what to expect from a 1B model on your laptop.