DSPy logo

DSPy

Featured Open Source

Programming framework for algorithmically optimizing LM prompts

DSPy is a Stanford research framework that replaces manual prompt engineering with programmatic optimization. It treats prompts and LM calls as declarative modules and automatically optimizes them using optimizers like BootstrapFewShot and MIPRO.

1 views 34.9k stars 3.0k forks Share LinkedIn

Product Overview

Use Cases

  • Automated Prompt Optimization
  • Agentic Pipelines
  • RAG Optimization
  • LLM Program Compilation

Ideal For

AI ResearchersML EngineersAdvanced AI Developers

Architecture Fit

Enterprise ReadySelf HostedCloud NativeAPI FirstMulti-Agent CompatibleKubernetes SupportOpen Source

Technical Details

Deployment Model
self-hosted
LLM Providers
OpenAIAnthropicGeminiOllamaGroq

Add Reference or Discussion Note

You can leave a discussion note on this product page. The product owner adds new reference links.

Loading sign-in state…

Community Feedback

Loading…

Login to leave feedback on this product.