GH Repository · stanfordnlp
dspy
DSPy: The framework for programming—not prompting—language models
- stars
- 38,084
- 30-day movement
- +12843/day
- Related entries
- 0
- Connections
- 1
python/uvpythonotherPython
DSPy is a Python framework from Stanford NLP for programming language models rather than hand-writing prompts. It is distributed as the dspy package, installable via uv, under the MIT license.
You want a structured, programmatic way to build LLM pipelines instead of maintaining prompt strings by hand.
Use it to
- Install dspy via uv into a Python project
- Build LLM pipelines programmatically
- Replace hand-written prompts with code
- Explore Stanford NLP's framework source
For Python developers building applications on language models
- Role
- other
- Language
- Python
- Licence
- MIT
- Forks
- 3,321
- Open issues
- 324
- Last push
- 2026-09-17
- Latest release
- v2.4.3 · 2024-04-08
topicspythonlanguage-modelsframeworkpromptingllmmit-license