This guide will help you get started with Hayhooks quickly.
- Python 3.10+
- A Haystack pipeline or agent to deploy
See Installation for detailed setup instructions.
Quick install:
pip install hayhookshayhooks runThis will start the Hayhooks server on http://localhost:1416 by default.
Deploy a pipeline using the deploy-files command:
hayhooks pipeline deploy-files -n chat_with_website examples/pipeline_wrappers/chat_with_website_streamingVerify your pipeline is deployed:
hayhooks statusRun your pipeline via the API:
=== "cURL"
```bash
curl -X POST \
http://localhost:1416/chat_with_website/run \
-H 'Content-Type: application/json' \
-d '{"urls": ["https://haystack.deepset.ai"], "question": "What is Haystack?"}'
```
=== "Python"
```python
import requests
response = requests.post(
"http://localhost:1416/chat_with_website/run",
json={
"urls": ["https://haystack.deepset.ai"],
"question": "What is Haystack?"
}
)
print(response.json())
```
=== "Hayhooks CLI"
```bash
hayhooks pipeline run chat_with_website \
--param 'urls=["https://haystack.deepset.ai"]' \
--param 'question="What is Haystack?"'
```
For the fastest setup with Open WebUI integration, see Quick Start with Docker Compose.
- Pipeline Deployment - Learn deployment methods
- Examples - Explore example implementations