logo
DSPy
Overview
Initializing search
    stanfordnlp/dspy
    • DSPy in Production
    • Community
    • FAQ
    • Get Started
    • Learn DSPy
    • Tutorials
    • API Reference
    stanfordnlp/dspy
    • Get Started
    • Learn DSPy
        • Programming Overview
        • Language Models
        • Signatures
        • Modules
        • Evaluation Overview
        • Data Handling
        • Metrics
        • Optimization Overview
        • Optimizers
    • Tutorials
      • Build AI Programs with DSPy
        • Retrieval-Augmented Generation (RAG)
        • Building RAG as Agent
        • Entity Extraction
        • Classification
        • Multi-Hop RAG
        • Privacy-Conscious Delegation
        • Image Generation Prompt iteration
        • Audio
      • Optimize AI Programs with DSPy
        • Math Reasoning
        • Classification Finetuning
        • Advanced Tool Use
        • Finetuning Agents
      • Experimental RL Optimization for DSPy
        • RL for Privacy-Conscious Delegation
        • RL for Multi-Hop Research
      • Tools, Development, and Deployment
        • Use MCP in DSPy
        • Output Refinement
        • Saving and Loading
        • Deployment
        • Debugging & Observability
        • Streaming
        • Async
    • DSPy in Production
      • Community Resources
      • Use Cases
      • Roadmap
      • Contributing
      • FAQ
      • Cheatsheet
    • API Reference
        • Adapter
        • ChatAdapter
        • JSONAdapter
        • TwoStepAdapter
        • CompleteAndGrounded
        • Evaluate
        • SemanticF1
        • answer_exact_match
        • answer_passage_match
        • Embedder
        • LM
        • BestOfN
        • ChainOfThought
        • ChainOfThoughtWithHint
        • Module
        • MultiChainComparison
        • Parallel
        • Predict
        • Program
        • ProgramOfThought
        • ReAct
        • Refine
        • BetterTogether
        • BootstrapFewShot
        • BootstrapFewShotWithRandomSearch
        • BootstrapFinetune
        • BootstrapRS
        • COPRO
        • Ensemble
        • InferRules
        • KNN
        • KNNFewShot
        • LabeledFewShot
        • MIPROv2
        • SIMBA
        • Example
        • History
        • Image
        • Prediction
        • Tool
        • InputField
        • OutputField
        • Signature
        • ColBERTv2
        • Embeddings
        • PythonInterpreter
        • StatusMessage
        • StatusMessageProvider
        • StreamListener
        • asyncify
        • disable_litellm_logging
        • disable_logging
        • enable_litellm_logging
        • enable_logging
        • inspect_history
        • load
        • streamify

    Overview

    • Math Reasoning
    • Classification Finetuning
    • Advanced Tool Use
    • Finetuning Agents
    Previous
    Audio
    Next
    Math Reasoning
    © 2025 DSPy
    Made with Material for MkDocs