How ChatGPT works

Tokens, next-word prediction, context windows, randomness, and why chatbots sometimes make things up.

What you'll learn

Lessons

  1. One word at a time
  2. Tokens: how AI reads text
  3. Memory and the context window
  4. Randomness and temperature
  5. Hallucinations: confident nonsense
  6. Chapter test
🔎esc