Stanford framework for programming LMs with automatic prompt optimization
DSPy is a framework from Stanford NLP for programming — not prompting — language models. Instead of writing prompts, you define signatures (input/output specifications) and modules that compile into optimized prompts automatically. DSPy can tune prompts, few-shot examples, and even fine-tune weights to maximize a metric. It brings software engineering rigor to LLM development.
No reviews yet. Be the first!