Skip to main content

DSPy

DSPy is a Python framework for building and optimising language-model programs with reusable modules.

The framework describes model tasks using structured signatures with defined inputs and outputs.

The project provides examples of defining model tasks and using evaluation results to tune prompts and program behaviour.

Build
github.com
DSPy official source text excerpt
Text excerpt from the official DSPy project README by its contributors. Cropped from the rendered documentation. Source · MIT · Source notice

Related websites