2 books · O’Reilly

Books

What I’ve learned about getting reliable work out of language models, written down at length.

Cover of Context Engineering with DSPy

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
Read on O’Reilly
Cover of Prompt Engineering for Generative AI

O’Reilly Media · May 2024

Prompt Engineering for Generative AI

Future-Proof Inputs for Reliable AI Outputs

by James Phoenix & Mike Taylor

The five principles of prompting, applied to text and image models: how to get consistent, useful output from LLMs and diffusion models, and how to chain them into working applications.

  • The five principles of prompting
  • LangChain and RAG
  • Autonomous agents
  • Image generation
Read on O’Reilly