1. Part 1

    Post

    What is an LLM

    A large language model predicts the next token, over and over. What that means, what it gets you, and your first API call to one in Python.

  2. Part 2

    Post

    How a language model is built

    Transformers, attention, pretraining, fine-tuning and preference training (RLHF, DPO): the stages that turn a pile of text into a chat assistant.

  3. Part 3

    Post

    Tokens and the context window

    What a token is, how to count tokens before you send a request, what fills the context window, and what happens when it runs out.

  4. Part 4
  5. Part 5

    Post

    Prompting: how to ask a model

    The system prompt, clear instructions with a reason, few-shot examples, XML tags and long documents: the prompting techniques the official guide recommends.

  6. Part 6

    Post

    Structured outputs and streaming

    Get JSON that always matches your schema with structured outputs and Pydantic, and show the answer while it is being written with streaming.

  7. Part 7
  8. Part 8

    Post

    Multimodal: images and PDFs

    Sending images and PDFs to a model, how image tokens are counted, what vision is still bad at, and what to do with audio.