DSPy
Framework by Stanford for programming with foundation models using optimized prompts.
About
DSPy, short for Declarative Self-improving Python, is a Stanford NLP framework for programming language models instead of prompting them by hand. Developers express an AI system as compositional Python modules whose behavior is declared through signatures, typed specifications of inputs and outputs, rather than brittle prompt strings. DSPy optimizers then compile the pipeline, automatically refining the prompts or even fine-tuning model weights against a metric and a small set of examples, so quality improves systematically rather than through manual trial and error. The approach fits simple classifiers, retrieval-augmented generation pipelines, and agent loops alike, and the same program can be re-compiled when switching to a different model. The project was created by Omar Khattab with collaborators including Matei Zaharia and Christopher Potts, is installable from PyPI, and is open source under the MIT license. Its users are researchers and engineers who want reproducible, optimizable LLM pipelines.
Reviews (0)
Leave a Review
No reviews yet. Be the first to review!
Details
- Category
- AI Agents & Orchestration
- Price
- Free
- Platform
- Local/Desktop
- Difficulty
- Advanced (4/5)
- License
- MIT
- Added
- Apr 3, 2026
Related Tools
Multi-agent framework for building and studying societies of communicating LLM agents at scale.
Super-agent harness orchestrating sub-agents, memory, and sandboxes for research and automation.
TypeScript agentic operating system with plugins, memory, and connectors for major messaging platforms.
Code-first, model-agnostic toolkit for building, evaluating, and deploying AI agents.
Autonomous agent that plans queries, searches the web and local files, and writes cited reports.
Platform for building and running autonomous agents that execute complete workflows from goals.