dspy
DSPy: The framework for programming—not prompting—language models
TL;DR · 30-second scan
dspy (Python) — DSPy: The framework for programming—not prompting—language models
You're building production AI systems and want a more rigorous abstraction than ad-hoc prompts.
AI & ML
Stanford's framework for programming with LLMs instead of prompting them. You define what you want; DSPy optimizes the prompt automatically. Trending in 2026 as the "next layer" above LangChain. Best for production AI systems where you need reproducible, optimizable LLM pipelines.
You're building production AI systems and want a more rigorous abstraction than ad-hoc prompts.
You're prototyping simple chat — DSPy's mental model is more demanding than direct prompting.
Add this badge to your README to show your project is curated on StackPicks. Free, lightweight (180×28 SVG), and gives your visitors a one-click way to see honest take + alternatives.
[](https://stackpicks.dev/repo/stanfordnlp-dspy)
<a href="https://stackpicks.dev/repo/stanfordnlp-dspy"><img src="https://stackpicks.dev/api/badge/stanfordnlp-dspy" alt="Featured on StackPicks" width="180" height="28" /></a>
Are you the maintainer of stanfordnlp/dspy? Add the badge and we'll feature your project in the next weekly newsletter (~2,000 builders).