Chapters
7 chapters covering everything from basics to production DSPy.
Chapter 1Free
Don't Panic
Stop prompt engineering. Start programming. Your first working DSPy program.
45 min read
Chapter 2
The Restaurant at the End of the Pipeline
Build a multi-step Lead Intelligence Engine. Module composition, Pydantic outputs, and why pipelines beat single prompts.
55 min read
Chapter 3
Life, the Universe, and Retrieval
RAG done right. Build a knowledge-grounded QA system with DSPy's retrieval modules.
50 min read
Chapter 4
The Babel Fish — Optimizers Demystified
Stop hand-writing prompts. Let DSPy's optimizers find better ones automatically.
60 min read
Chapter 5
So Long, and Thanks for All the Prompts
Build autonomous agents with tool use, ReAct loops, and multi-agent coordination.
55 min read
Chapter 6
Mostly Harmless (in Production)
Scaling, observability, caching, and battle scars from real production DSPy deployments.
60 min read
Chapter 7
The Answer Is 42 (Tokens)
Advanced patterns: multimodal, custom metrics, fine-tuning, and what comes next.
50 min read