Skip to main content
Run the API, worker, bundled plugins and storage on one Linux machine. This setup is for evaluation. Temporal saves its work in PostgreSQL, and the stack goes offline when the host stops.

Prerequisites

  • Linux amd64, Docker Engine with Compose 2.24 or newer, and Python 3.12.
  • A local SSD. Start with 16 GiB RAM and four vCPUs for a small trial.
  • A Compose release bundle, which pins image digests and the CPU text encoder for EmbeddingGemma 2 (google/embeddinggemma-2).
Allow HTTPS to GitHub release assets, the image registries and Hugging Face during setup. For a restricted network, see Prepare for offline use.

Start the stack

Download quivr-compose-VERSION.tar.gz from the assets of a GitHub release that includes it. Extract the bundle and change into the extracted directory. To import an existing API key before initialization, use python3 setup.py init --secret-file QUIVR_API_KEY=/protected/api-key. Use a private, regular file containing 64 lowercase hexadecimal characters and give it mode 0600. Initialization keeps credentials already recorded in .env. For example, initialize the installation there:
Verify the first-party image digests, then prepare the model and start the stack. For example:
init writes .env with mode 0600 and renders compose.yaml from the release pins. prepare fills a named model cache and verifies the files against locked checksums. Keep .env private. The installer locks EmbeddingGemma 2, its revision and the COMPOSE_PROJECT_NAME that names the persistent volumes. To move to a different EmbeddingGemma 2 revision, start a fresh installation and resend the original documents.

Size the machine

Use these planning budgets for a trial with three passages per document, one retained version and one compressed 768-dimension vector space. Measure a sample before importing a large collection.
  • Up to 10,000 documents: start with 4 vCPUs, 16 GiB RAM and 64 GiB SSD.
  • Up to 100,000 documents: start with 8 vCPUs, 16 GiB RAM and 200 GiB SSD.
  • Around one million documents: budget 16 vCPUs, 32 GiB RAM and 1 TiB SSD, including about 12 GiB RAM for Weaviate.
The small profile reserves 2 GiB of RAM for Weaviate. For the largest tier, set QUIVR_POSTGRES_MEMORY_MB=4096 and QUIVR_WEAVIATE_MEMORY_MB=12288 in .env, then rerun python3 setup.py init. See capacity planning for storage and rebuild headroom.

Prepare for offline use

To prepare the model from an internal mirror, pass --mirror https://mirror.example.org/models to python3 setup.py prepare. The mirror must preserve the model, revision and file paths and serve identical bytes. For a local snapshot, pass --source /path/to/snapshot and use regular files at the locked paths. Prepare the model and pull the images on the target host before disconnecting. Include docker compose --profile demo pull if you use the demo. For an air-gap transfer, use a registry that preserves the image manifests and digests. A docker save and docker load transfer alone loses the registry digest references this recipe needs. After preparation, set QUIVR_OFFLINE=1 in .env and rerun python3 setup.py init to isolate the internal network. The API and demo also join a bridge for their loopback ports, where outbound access is governed by your host firewall.

Check it worked

For example, inspect the services:
The migrate service should exit with code zero. The API and worker should stay up. To start the optional demo, run docker compose --profile demo up -d. The API is at http://127.0.0.1:8080, the private admin API at http://127.0.0.1:8082, and the optional demo at http://127.0.0.1:3000. Use the generated QUIVR_ADMIN_KEY from .env for /v0/admin/*. Read DEMO_PASSWORD privately from .env to sign in to the demo. Add a document and search for it. Wait for the document to become searchable. For semantic or hybrid search, wait for vector enrichment to finish too. Keep the ports on loopback and use an SSH tunnel if you need remote access.

Retry a failed migration

Inspect docker compose logs migrate privately and fix the reported problem. If you edited .env, rerun python3 setup.py init to regenerate compose.yaml. Remove the exited migrator with docker compose rm -f migrate and rerun docker compose up -d. Preserve the data volumes.

Run Quivr behind TLS

This bundle uses HTTP on loopback. For a deployment that serves HTTPS, put a TLS proxy in front of Quivr. That guide also covers outbound TLS for deployments using an engine JSON configuration.

Next