• Post

    AI glossary: my cheat sheet

    The AI terms from the series in one place, grouped by topic, each with a one-line definition and a link to the post that explains it: tokens, RAG, tools, MCP, agents, LoRA, evals and more.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.