haiku.rag/docker
2025-11-25 12:51:58 +02:00
..
Dockerfile haiku.rag-slim docker image 2025-11-17 14:18:41 +02:00
Dockerfile.slim haiku.rag-slim docker image 2025-11-17 14:18:41 +02:00
README.md Revert embeddings to use flat config 2025-11-25 12:51:58 +02:00

haiku.rag Docker Image

The full haiku.rag Docker image includes all features and extras (docling, voyageai, mxbai). You can build it locally using the provided Dockerfile.

Building the Image

Build the full image with all features:

docker build -f docker/Dockerfile -t haiku-rag .

This creates an image with:

  • All document processing capabilities (Docling)
  • VoyageAI embeddings
  • MixedBread AI reranking
  • Full feature set

Configuration

Create a configuration file haiku.rag.yaml:

# haiku.rag.yaml
environment: production

embeddings:
  provider: ollama
  model: nomic-embed-text
  vector_dim: 768

qa:
  model:
    provider: ollama
    name: qwen3

See Configuration docs for all available options.

Running

Mount your config file and data directory:

docker run -p 8001:8001 \
  -v $(pwd)/haiku.rag.yaml:/app/haiku.rag.yaml \
  -v $(pwd)/data:/data \
  haiku-rag

The container will automatically use the mounted haiku.rag.yaml configuration file.

For API keys (OpenAI, Anthropic, etc.), pass them as environment variables:

docker run -p 8001:8001 \
  -v $(pwd)/haiku.rag.yaml:/app/haiku.rag.yaml \
  -v $(pwd)/data:/data \
  -e OPENAI_API_KEY=your-key-here \
  haiku-rag

Docker Compose

See examples/docker/ for a complete setup example.