- Programmatic approach to LLM interactions through Python
- Modular components for building complex AI pipelines
- Self-improvement algorithms that optimize prompts and weights
- Support for various applications from simple classifiers to RAG systems and agent loops
Installing Libraries
Example
Setup and connect DSPy to LLMs on Together AIdspy.ReAct
with a task-specific signature. For example, question -> answer: float
tells the module to take a question and to produce a floating point number answer below.