DeepYardDeepYard
D

DSPy

Framework for programming — not prompting — LLMs — 33K+ stars

Open SourceFree
Install
pip install dspy

About

DSPy replaces prompt engineering with programming. Instead of writing prompts, you define modules with input/output signatures and DSPy automatically optimizes the prompts and weights for your pipeline. Supports chain-of-thought, retrieval-augmented generation, and multi-hop reasoning patterns. From Stanford NLP.

Details

Languagepython
Patternsprompt-optimization, rag, chain-of-thought, multi-hop
Installpip install dspy

Tags

prompt-optimizationprogrammingresearchragstanfordpythonopen-source