stanfordnlp/dspy
#60 of 783 by Stars among GitHub repos
DSPy: The framework for programming—not prompting—language models
About
DSPy is the framework for programming—rather than prompting—language models. It allows you to iterate fast on building modular AI systems and offers algorithms for optimizing their prompts and weights, whether you're building simple classifiers, sophisticated RAG pipelines, or Agent loops.
DSPy stands for Declarative Self-improving Python. Instead of brittle prompts, you write compositional Python code and use DSPy to teach your LM to deliver high-quality outputs. Learn more via our official documentation site or meet the community, seek help, or start contributing via this GitHub repo and our Discord server.
If you're looking to understand the framework, please go to the DSPy Docs at…
Excerpted from github.com/stanfordnlp/dspy
Latest metrics
| Stars | 36.2k | 2026-07-16 |
|---|---|---|
| Forks | 3.1k | 2026-07-16 |
| Commits | 4.6k | 2026-07-16 |
| Releases | 109 | 2026-07-16 |
| Watchers | 202 | 2026-07-16 |
| Open issues | 303 | 2026-07-16 |
| Open PRs | 303 | 2026-07-16 |