dspy
Installation
SKILL.md
DSPy: Declarative Language Model Programming
Stanford NLP's framework for programming—not prompting—language models.
Quick Start
import dspy
# 1. Configure
dspy.settings.configure(lm=dspy.OpenAI(model='gpt-4o-mini'))
# 2. Define Module
qa = dspy.ChainOfThought("question -> answer")
# 3. Run
response = qa(question="What is the capital of France?")
print(response.answer)