- 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
Set up and connect DSPy to LLMs on Together AI.dspy.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.