Skip to content
DSPy
Experimental
Initializing search
stanfordnlp/dspy
Community
FAQ
Overview
Getting Started
Diving Deeper
Tutorials
API Reference
DSPy
stanfordnlp/dspy
Overview
Getting Started
Getting Started
Program, don't prompt
Setting up DSPy
Your first program
Expanding signatures
Class-based signatures
Changing modules
Tools with ReAct
Composing modules
Metrics
GEPA optimization
Saving and loading
Where to go next
Diving Deeper
Diving Deeper
Signatures in depth
Modules: composing your own
Built-in module variants
RLM: exploring large contexts with code
Tools, ReAct, and MCP
Metrics and evaluation
Optimizers: choosing one
GEPA in depth
BootstrapFewShot family
Adapters: how signatures become prompts
Settings and context()
Saving and loading
Tutorials
Tutorials
Build AI Programs with DSPy
Build AI Programs with DSPy
Managing Conversation History
Building AI Agents with DSPy
Building AI Applications by Customizing DSPy Modules
Retrieval-Augmented Generation (RAG)
Building RAG as Agent
Entity Extraction
Classification
Multi-Hop RAG
Privacy-Conscious Delegation
Program Of Thought
Image Generation Prompt iteration
Audio
Optimize AI Programs with DSPy
Optimize AI Programs with DSPy
Math Reasoning
Classification Finetuning
Advanced Tool Use
Finetuning Agents
Reflective Prompt Evolution with dspy.GEPA
Reflective Prompt Evolution with dspy.GEPA
GEPA for AIME (Math)
GEPA for Structured Information Extraction for Enterprise Tasks
GEPA for Privacy-Conscious Delegation
GEPA for Code Backdoor Classification (AI control)
Experimental RL Optimization for DSPy
Experimental RL Optimization for DSPy
RL for Privacy-Conscious Delegation
RL for Multi-Hop Research
Tools, Development, and Deployment
Tools, Development, and Deployment
Use MCP in DSPy
Output Refinement
Saving and Loading
Cache
Deployment
Debugging & Observability
Tracking DSPy Optimizers
Streaming
Async
Real-World Examples
Real-World Examples
Generating llms.txt
Memory-Enabled ReAct Agents
Financial Analysis with Yahoo Finance
Email Information Extraction
Code Generation for Unfamiliar Libraries
Building a Creative Text-Based AI Game
Community
Community
Use Cases
Built with DSPy
Resources
Contributing
Normalized LM API Migration
FAQ
FAQ
FAQ
Cheatsheet
API Reference
API Reference
Adapters
Adapters
Adapter
ChatAdapter
XMLAdapter
JSONAdapter
TwoStepAdapter
Evaluation
Evaluation
CompleteAndGrounded
Evaluate
EvaluationResult
SemanticF1
answer_exact_match
answer_passage_match
Experimental
Experimental
Citations
Document
Models
Models
BaseLM
Embedder
LM
Modules
Modules
BestOfN
ChainOfThought
CodeAct
Module
MultiChainComparison
Parallel
Predict
ProgramOfThought
ReAct
Refine
RLM
Optimizers
Optimizers
GEPA
GEPA
1. GEPA Overview
2. GEPA Advanced
BetterTogether
BootstrapFewShot
BootstrapFewShotWithRandomSearch
BootstrapFinetune
BootstrapRS
COPRO
Ensemble
InferRules
KNN
KNNFewShot
LabeledFewShot
MIPROv2
SIMBA
Primitives
Primitives
Audio
Code
Example
History
Image
Prediction
Tool
ToolCalls
Signatures
Signatures
InputField
OutputField
Signature
Tools
Tools
ColBERTv2
Embeddings
PythonInterpreter
Utils
Utils
Errors
configure
context
StatusMessage
StatusMessageProvider
StreamListener
asyncify
configure_cache
disable_litellm_logging
disable_logging
enable_litellm_logging
enable_logging
inspect_history
load
streamify
Overview
API Reference
Experimental
Experimental
¶
API reference for DSPy experimental. Select a page below.
Citations
Document
Back to top