You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An integration between [DSPy](https://github.com/stanfordnlp/dspy) and [Haystack](https://haystack.deepset.ai/).
6
+
---
7
7
8
-
DSPy is a framework for algorithmically optimizing prompts for Language Models by applying classical machine learning concepts (training data, evaluation metrics, optimization).
8
+
## Contributing
9
9
10
-
This integration provides:
11
-
-**DSPyChatGenerator** — a Haystack ChatGenerator component that uses DSPy signatures and modules for structured generation
12
-
13
-
## Installation
14
-
15
-
```bash
16
-
pip install dspy-haystack
17
-
```
18
-
19
-
## Quick Start
20
-
21
-
### DSPyChatGenerator
22
-
23
-
A Haystack chat generator that uses DSPy signatures for structured generation with built-in reasoning patterns (Chain-of-Thought, Predict, ReAct).
24
-
25
-
```python
26
-
from haystack import Pipeline
27
-
from haystack.dataclasses import ChatMessage
28
-
from haystack_integrations.components.generators.dspy import DSPyChatGenerator
0 commit comments