DSPy
A framework for programming (not prompting) LLMs — declare signatures and modules, then let an optimizer compile prompts and few-shot examples for you.
LLM & Agent Frameworks Advanced
Category
LLM & Agent Frameworks
Difficulty
Advanced
When to use
You have a well-defined task with examples and want the framework to automatically search over prompts, few-shot demos, and even fine-tunes.
When not to use
You have no labeled examples or eval metric — DSPy's superpower is optimization, and without data there's nothing to optimize.
Alternatives
LangChain Raw prompt engineering TextGrad