DSPy
byDSPy
Programming foundation models with signatures and optimizers
- Views5 views
- GitHub stars28K on GitHub
- Date addedAdded Jul 6, 2026
Overview
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
- Languages
Tags
Community
Reviews
Reviews
Comments