haystack/releasenotes/notes/connect-return-pipeline-dcc1e0786b19861e.yaml

13 lines
377 B
YAML
Raw Normal View History

---
enhancements:
- |
Change `Pipeline.connect()` to return the instance of `Pipeline`.
This way we can chain multiple `connect()` like so:
```python
pipeline.connect("fetcher", "converter") \
.connect("converter", "splitter") \
.connect("splitter", "ranker") \
.connect("ranker", "prompt_builder") \
.connect("prompt_builder", "llm")
```