Skip to content
Menu
English

DSPy

Builds model pipelines as programs whose prompts are optimised rather than written.

framework Frameworks MIT 3 relationships

Overview

DSPy treats a model pipeline as a program with declared inputs and outputs, and compiles the prompts by measuring which wording scores best on examples. It solves the problem that hand-tuned prompts are brittle: they encode one person's guess about phrasing and stop working when the model or the task shifts. It exists because prompt wording is a parameter that can be searched, and searching it beats guessing at it.

Technology Graph

How DSPy connects to the rest of the stack.

Applied to

Tools

Software that implements or integrates with DSPy.

LLM Frameworks