DSPy
Framework for programming — not hand-writing — prompts, with automatic optimizers.
About DSPy
DSPy, from Stanford NLP, lets developers describe what an LLM step should do in code and then uses optimizers to find better prompts and examples automatically based on a metric.
For engineers who want prompt quality improved systematically instead of by trial and error.
FAQ
What is DSPy?
Framework for programming — not hand-writing — prompts, with automatic optimizers.
Is DSPy free?
Yes. DSPy is open source and free to use or self-host.
What are some alternatives to DSPy?
Prompt Optimizer (open source), Prompt Builder, PrompTessor, PromptHub Enhancers.