
DSPy
Course Index
28 Lessons · 3 Sections
Master DSPy — Stanford’s declarative self-improving framework that replaces manual prompt engineering with automatic optimisation. Compile LLM pipelines with Signatures, Modules & Optimisers. Includes BootstrapFewShot, MIPRO, DSPy 3 & 4 production builds.
28Lessons
3Sections
4Projects
FreeAccess
Section 1DSPy FundamentalsLessons 1–10
Lesson 1
What is DSPy? Programming LLMs Systematically
Lesson 2
DSPy Setup & Core Concepts
Lesson 3
Signatures: Defining LLM Task Inputs & Outputs
Lesson 4
Modules: Predict, ChainOfThought & ReAct
Lesson 5
Programs: Composing DSPy Modules
Lesson 6
Optimisers: Automatic Prompt Tuning
Lesson 7
BootstrapFewShot: Generating Training Examples
Lesson 8
MIPRO: Multi-Step Instruction Optimisation
Lesson 9
Evaluation Metrics in DSPy
Lesson 10
DSPy with OpenAI, Claude & Local LLMs
Section 2Advanced DSPy & ApplicationsLessons 11–22
Lesson 11
DSPy for RAG: Optimised Retrieval Pipelines
Lesson 12
DSPy for Classification Tasks
Lesson 13
DSPy for Information Extraction
Lesson 14
DSPy for Multi-Hop Reasoning
Lesson 15
DSPy Assertions: Constraining Outputs
Lesson 16
DSPy vs Prompt Engineering: The Key Difference
Lesson 17
DSPy Caching & Cost Optimisation
Lesson 18
DSPy for Agent Pipelines
Lesson 19
DSPy in Production: Serialisation & Deployment
Lesson 20
DSPy Teleprompter: Advanced Optimisation
Lesson 21
DSPy vs LangChain vs LlamaIndex 2026
Lesson 22
DSPy in 2026: DSPy 3 & Compound AI Systems
Section 3Anti-Patterns, Best Practices & ProjectsLessons 23–28
