Skip to content
Agent Search Engine.

Record · dspyFrameworkOpen sourceVerified Sep 23, 2026

DSPy

Stanford's framework for programming, not prompting, language models, with optimisers for prompts and weights.

Sources and review

Checked against public documentation on . Suitability guidance is our editorial judgment; this is not a performance benchmark or an endorsement.

Best for

Systems where you can define a metric and want prompts tuned automatically instead of by hand.

About DSPy

DSPy (Declarative Self-improving Python) replaces hand-written prompts with compositional Python modules and provides algorithms that optimise a program's prompts and weights against your metric. It is used for classifiers, RAG pipelines and agent loops alike.

DSPy is an open-source project written primarily in Python, with 38k stars on GitHub. It was last updated in September 2026.

Install

pip install dspy
For agent buildersMake your product part of the discovery.Explore advertising

DSPy vs. the alternatives

All 54 alternatives →
RecordStarsPricing
DSPyFrameworkthis listing38kOpen source
langchainFramework147kOpen source
rufloFramework73kOpen source
MetaGPTFramework71kOpen source
autogenFramework61kOpen source
crewAIFramework59kOpen source

See all 54 DSPy alternatives, compared →