Privacy and advertising choices

Git-Stars uses essential storage for site operation. Optional analytics and ad-measurement scripts stay disabled unless you accept them; partners such as Google may then use cookies or similar identifiers where required. Privacy Policy

LogoGit-Stars
Top StarsTrendingAI AgentsDaily PicksViral ReposInsights
LogoGit-Stars

Discover top GitHub projects with real rankings and AI insights

GitHub
Built withLogo of Git-StarsGit-Stars
Rankings
  • Top Stars
  • Trending
  • AI Agents
  • Daily Picks
  • Explore
Resources
  • Insights
  • Editorial Policy
About
  • About
  • Contact
Legal
  • Privacy Policy
  • Terms of Service
© 2026 Git-Stars. All Rights Reserved.
AI Agent Analysis
DS

stanfordnlp/dspy

DSPy: The framework for programming—not prompting—language models

stars
37k
Language
Python
GitHub
Source and compliance noteLast synced: Aug 15, 2026

Git-Stars is independent and not affiliated with GitHub or this project. Analysis may be AI-assisted and based on public repository metadata plus short README-derived summaries. We do not mirror full README files, docs, issues, or social comments.

Original GitHub sourceMethodologyEditorial Policy

Overview

DSPy is a framework for programming—rather than prompting—language models, enabling developers to build modular AI systems with compositional Python code and optimize their prompts and weights through automated algorithms. Its core value proposition is replacing brittle manual prompt engineering with declarative, self-improving pipelines that teach LMs to deliver high-quality outputs.

Installation

pip install dspy

Problem solved

DSPy solves the problem of fragile and labor-intensive prompt engineering by introducing a declarative programming model where prompts are treated as trainable parameters. It automates the optimization of prompts and weights, making AI systems more robust and adaptable across tasks and models, unlike traditional approaches that require manual tweaking for each use case.

What you can build

Developers can build a wide range of AI systems, from simple classifiers to sophisticated RAG pipelines and agent loops, with automatic optimization of prompts and weights. Real-world use cases include knowledge-intensive NLP tasks, multi-stage language model programs, and self-refining pipelines with computational constraints. The ceiling is high, as DSPy supports fine-tuning and prompt optimization together, enabling state-of-the-art performance on complex tasks with minimal manual intervention.

Community sentiment

Positive

No community feedback yet.

Concerns

No concerns documented yet.

Bottom line

DSPy is ideal for developers and researchers who want to move beyond manual prompt engineering and build scalable, self-improving AI systems. It is not for those who prefer simple, quick prompt-based solutions without a learning curve. The key trade-off is the initial complexity of learning the framework versus the long-term benefits of automated optimization and modularity.

Analyzed by Git-Stars - 8/13/2026