DSPy
Open Source
Library
Programming foundation models with signatures and optimizers
About
DSPy is Stanford's framework for programming—not prompting—foundation models. It provides composable modules with signatures that define input/output behavior, automatic optimizers that tune prompts and weights, and a declarative interface that separates program logic from model specifics. Used in production by companies processing billions of tokens monthly. Supports 28+ LLM providers with 160K+ monthly pip downloads.
Compatibility
Supported Languages
python
Details
- Category
- Library