Run This Ai
EN DE

DSPy

The framework for programming—not prompting—language models

★ 35,472 GitHub MIT llmframeworkprogrammingprompt-optimizationpythonlangchainrag LLM & Chat

Overview

DSPy is a powerful open-source framework for programming—rather than prompting—language models. Created at Stanford NLP, DSPy provides a systematic way to compile declarative language model calls into self-improving, optimized pipelines. With 35k+ GitHub stars, it enables developers to build sophisticated LLM applications by automatically optimizing prompts, chain-of-thought reasoning, and model interactions. DSPy abstracts away the fragility of hand-crafted prompts, replacing them with a compiler that learns from data to produce the best program for each task. It supports all major LLM providers, integrates with retrieval pipelines, and offers modular building blocks for classification, generation, retrieval-augmented generation (RAG), multi-hop QA, and agent-style tool use. DSPy is an essential toolkit for any developer building production LLM applications.

Requirements

Min vCPU
1
Min RAM
1024 MB
Min Disk
10 GB
Rec vCPU
2
Rec RAM
4096 MB
Rec Disk
20 GB

Recommended VPS

Hetzner · CX22

2 vCPU · 4096 MB · 40 GB

$3.79
View plan

Hetzner · CX22

2 vCPU · 4096 MB · 40 GB

$3.79
View plan

Hetzner · CX22

2 vCPU · 4096 MB · 40 GB

$3.79
View plan

Affiliate disclosure

Related tools

Guides & articles