DSPy Official Documentation & Tutorials
Provenance & compiled volume Details
Original source dspy.ai/
Corpus totals 176 works · 1,191 pages · 376,376 words
Compiled PDF volume DSPy Documentation: Learn, Guides & Tutorials (16.5 MB)
Content integrity (SHA-256)
- 01 Program , don’t prompt, your LLMs.
- 02 Program, don’t prompt
- 03 Setting up DSPy
- 04 Writing our first DSPy program
- 05 Expanding your signature: more inputs and adding types
- 06 Writing a class-based signature
- 07 Change inference strategies by changing the module
- 08 Give the program tools with dspy.ReAct
- 09 Composing your own module
- 10 Building metrics for evaluation and optimization
- 11 Prompt Optimizing with GEPA
- 12 Saving a program and reloading it
- 13 Where to go next
- 14 Adapters: how signatures become prompts
- 15 BootstrapFewShot family
- 16 Built-in module variants
- 17 Optimizers: choosing one
- 18 Flex: Optimizable module code
- 19 GEPA in depth
- 20 Metrics and evaluation
- 21 Modules: composing your own
- 22 ReAct
- 23 RLM: exploring large contexts with code
- 24 Saving and loading
- 25 Settings and context()
- 26 Signatures in depth
- 27 Tools and MCP
- 28 Utilizing Built-in Datasets
- 29 Examples in DSPy
- 30 Creating a Custom Dataset
- 31 DSPy Assertions
- 32 Deploying DSPy
- 33 DSPy Cheatsheet
- 34 Tutorials Overview
- 35 Tutorial: Agents
- 36 Building a Creative Text-Based AI Game with DSPy
- 37 Async DSPy Programming
- 38 Tutorial: Using Audio in DSPy Programs
- 39 Build AI Programs with DSPy
- 40 Use and Customize DSPy Cache
- 41 Classification
- 42 Tutorial: Classification Fine-tuning
- 43 Managing Conversation History
- 44 Tools, Development, and Deployment
- 45 Custom LM Engines
- 46 Building AI Applications by Customizing DSPy Modules
- 47 Build AI Agents with DSPy
- 48 Cohort Analysis with RLM + DataFrame
- 49 Dataframe
- 50 Generate Cohort Data