.

Technology

DSPY

DSPy (Declarative Self-improving Python) is the Stanford NLP framework that compiles declarative Python code into self-improving, optimized language model pipelines: program LMs, don't prompt them.

DSPy radically shifts LLM development from brittle prompt engineering to compositional Python code (Declarative Self-improving Python). The framework, developed by Stanford NLP, uses a compiler to automatically optimize your AI system: it synthesizes effective prompts, generates few-shot examples, or fine-tunes model weights based on a specified metric (e.g., quality or cost). This systematic approach uses three core abstractions: Signatures (defining input/output), Modules (reusable components like Chain of Thought), and Optimizers (Teleprompters). Since its late 2023 release, DSPy has seen significant adoption, boasting over 28,000 GitHub stars; it is the definitive solution for building robust, modular AI systems, from simple classifiers to complex RAG pipelines.

https://dspy.ai
15 projects · 16 cities

Related technologies

Recent Talks & Demos

Showing 1-15 of 15

Members-Only

Sign in to see who built these projects