DSPy

DSPy is a framework that allows you to program rather than write prompts for language models. It allows you to build modular AI systems and offers algorithms to optimize the weights of these systems with a prompt. It works with the semantic and self-developing Python (Declarative Self-improving Python) logic.

DS

DSPy

100

stanfordnlp · AI / LLM / RAG

STARS38.9K
FORKS3.5K
COMMITS4.4K
CONTRIBUTORS427
VERSIONv2.4.9
UPDATEDyesterday
PythonStanfordPrompt OptimizasyonOtomatik TuningMIT

Common commercial products in this category: ChatGPT, Claude, Gemini

What can it do?
  • You build simple classifiers, advanced RAG pipeline or agent loops.
  • You write Python codes to teach the language model to deliver high quality outputs.
  • You quickly iterate by installing modular AI systems.
Heads up
  • • High number of open issues (739)
User reviews
  • • NeutralHacker News

    If DSPy is so great, why isn't anyone using it?

    “DSPy is cool from an integrated perspective but as someone who extensively develops agents, there have been two phases to the workflow that prevented me from adopting it: 1. Up until about six months ago, modifying prompts by hand and incorporating terminology with very specific…”

  • • NeutralHacker News

    If DSPy is so great, why isn't anyone using it?

    “About one and a half years ago I was an early adopter of DSPy and I had better results (compared to LlamaIndex) with structuring unstructured data just by putting it in DSPy models, before any optimization step whatsoever. Also, IMO DSPy didn't take off because it requires…”

Verified against README · Oct 26, 2026 · source

My note

Alternative pages

More in: AI / LLM / RAG