
O’Reilly Media · October 2026
Context Engineering with DSPy
Self-Optimizing Prompt Pipelines for Building Reliable AI Agents
by Mike Taylor
Agents need the right context at the right time: too much costs money and accuracy, too little makes them flaky. This book is a practical, evaluation-driven way to build AI systems with DSPy that stay reliable as models change and workloads grow.
- DSPy signatures and modules
- Datasets and eval metrics
- GEPA and MIPROv2 optimizers
- RAG and agent workflows

