This repository contains a Docker Compose configuration to run Haystack pipelines with Hayhooks using also Open WebUI for a complete chat interface experience.
In pipelines folder there's a ready-to-use wrapper for chat_with_website pipeline.
That folder will be mounted in the /pipelines directory of Hayhooks service.
- Docker and Docker Compose installed on your system
- Git (to clone this repository)
- An
OPENAI_API_KEYenvironment variable set (needed for thechat_with_websitepipeline)
Clone the repository:
git clone https://github.com/deepset-ai/hayhooks-open-webui-docker-compose.gitRun the docker compose file:
docker compose up --buildAnd that's it! 😉
You can now access to Hayhooks on http://localhost:1416 and to Open WebUI on http://localhost:3000. The chat_with_website_streaming pipeline will be available on Open WebUI.
Note that open-webui may require some time to start up.
To tear down the environment, run:
docker compose down- The
Dockerfileis based on thedeepset/hayhooks:mainimage. - It installs
trafilaturaas a dependency, needed by thechat_with_websitepipeline.
- The
docker-compose.ymlfile mounts thepipelinesfolder in the/pipelinesdirectory of Hayhooks service. - The
OPENAI_API_KEYenvironment variable is passed to Hayhooks service.
About open-webui settings:
- The
OPENAI_API_BASE_URLenvironment variable is set tohttp://hayhooks:1416, pointing to Hayhooks service. - The
OPENAI_API_KEYenvironment variable is set to a dummy value ("dummy"), as it's not needed for Hayhooks service. - The
WEBUI_AUTHenvironment variable is set tofalse, as we don't need authentication for this demo. - The
ENABLE_TAGS_GENERATIONandENABLE_EVALUATION_ARENA_MODELSenvironment variables are set tofalse, as they are not needed for Hayhooks service.