stanfordnlp/dspy
Some data may be outdated — see provenance labels.
DSPy: The framework for programming—not prompting—language models observed · 2026-09-29
Health v2 · maintenance only
93/100
- Activity 97
- Release rhythm 84
- Longevity 98
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 2.0
- age_days: 1380
- days_rel: 26
- days_push: 22
- n_releases_24m: 81
Adoption not part of the score
38406 stars · 3375 forks observed · 2026-09-29
What it is AI-extracted, prompt v1, taxonomy v1, 2026-09-28, confidence 0.97
DSPy is a Python library that lets you program language models using declarative signatures instead of hand‑written prompts. It provides modules for building RAG pipelines, agents, and optimizable LLM programs.
Use cases
- build a multi‑step RAG pipeline with retrieval and generation
- create an LLM‑driven chatbot that can call external tools
- optimize prompts and weights automatically for higher quality outputs
- prototype AI agents with reasoning and tool‑use without writing prompt strings
- compose modular AI systems that are easy to test and maintain
When to choose
- you need a maintainable, composable way to build LLM applications
- you want automatic prompt optimization and metric‑driven improvement
- your project involves multi‑stage pipelines, tool‑calling, or agents
When to avoid
- you only need a single simple prompt and prefer a lightweight API wrapper
- your environment does not support Python 3.10+ or the required dependencies
- you require deep integration with non‑LLM specific frameworks (e.g., pure web frameworks)
Facets
library · maturity active
llm-inference agent-framework rag artificial-intelligence large-language-models chatbots python windows declarative-llm-programming modular-ai-systems prompt-optimization tool-integration signature-based retrieval-augmented-generation linux macos
10 sources
- readme: https://github.com/stanfordnlp/dspy · fetched 2026-09-29 · 5450bc9856bc
- homepage: https://dspy.ai · fetched 2026-09-14 · ff2a01dca66e
- site_page: https://dspy.ai/getting-started/installation · fetched 2026-09-14 · a10567bf4dd8
- site_page: https://dspy.ai/getting-started/first-program · fetched 2026-09-14 · 63833fc93ada
- site_page: https://dspy.ai/getting-started/expanding-signatures · fetched 2026-09-14 · 7327ed7954d7
- site_page: https://dspy.ai/getting-started/class-based-signatures · fetched 2026-09-14 · 0e0ec23770d9
- site_page: https://dspy.ai/getting-started/react-and-tools · fetched 2026-09-14 · d11d2815437b
- site_page: https://dspy.ai/getting-started/program-dont-prompt · fetched 2026-09-14 · d08e69743c86
- site_page: https://dspy.ai/getting-started/changing-modules · fetched 2026-09-14 · 86aea5f68817
- registry_pypi: https://pypi.org/pypi/dspy/json · fetched 2026-09-14 · 00b5aa6babdd
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| stanfordnlp/dspy | main | 93 |
For agents
markdown · JSON · MCP: product_card(name="stanfordnlp/dspy")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem