FEA-Bench / testbed /deepset-ai__haystack /releasenotes /notes /chat-with-website-template-23bec121f1a78726.yaml
hc99's picture
Add files using upload-large-folder tool
ce676f7 verified
raw
history blame
588 Bytes
---
features:
- |
Add a new pipeline template `PredefinedPipeline.CHAT_WITH_WEBSITE` to quickly create a pipeline
that will answer questions based on data collected from one or more web pages.
Usage example:
```python
from haystack import Pipeline, PredefinedPipeline
pipe = Pipeline.from_template(PredefinedPipeline.CHAT_WITH_WEBSITE)
result = pipe.run({
"fetcher": {"urls": ["https://haystack.deepset.ai/overview/quick-start"]},
"prompt": {"query": "How should I install Haystack?"}}
)
print(result["llm"]["replies"][0])
```