Your AI brain,
open & sovereign.
ZAQ is an open-source, self-hosted AI knowledge platform built with Elixir and Phoenix. Deploy on your infrastructure. Keep full control of your data.
Up and running in seconds
The local installer bootstraps everything automatically β Docker, database, secrets, and the app.
Creates a zaq/ folder, downloads the installer, and starts the full stack in Docker.
Useful commands
Ctrl+Cdocker compose stop./zaq-local.shdocker compose pullArchitecture
A single Elixir/OTP application composed of five internal services, each running under its own supervision tree.
Engine
Central orchestrator. Sessions, ontology, API routing, and conversation workflows.
Agent
AI layer. RAG retrieval, LLM interaction, classifier, and knowledge gap detection.
Ingestion
Document processing pipeline. Chunking, embedding generation, PGVector writes, PDF-to-markdown.
Channels
Multi-channel communication adapter. Mattermost today β Slack and Email planned.
Back Office
Admin panel built with Phoenix LiveView. Ontology management, document management, system config.
Data Layer
Primary datastore
PostgreSQL + pgvector β sessions, chat history, ontology, documents, embeddings, and configuration in a single Zaq.Repo.
Customer LLM
On-premise, customer-provided. Connected via a configurable endpoint set from Back Office. No data leaves your infrastructure.
Container Images
Published to GitHub Container Registry on every release.
latestLatest stable releasev0.6.4Current release0.6.4Without v prefix0.6Minor version tag0Major version tagFlexible Deployment
Run everything on a single node or distribute services across multiple nodes using Erlang distribution.
Single Node
Run all five services on one machine. Recommended for most deployments.
Role-Based
Enable specific services per node. Scale AI services independently of the back office.
Multi-Node
Distribute across nodes using Erlang distribution. Peer discovery is automatic.
Contributing
We follow Conventional Commits and a trunk-based flow. All contributions are welcome.
Fork the repository
gh repo fork www-zaq-ai/zaqCreate a feature branch
git checkout -b feature/my-featureCommit with Conventional Commits
git commit -m "feat(scope): description"Run precommit checks
mix precommitPush and open a Pull Request
git push origin feature/my-featureUse Conventional Commits for your PR title
Examples: feat(agent): add streaming responses Β· fix(ingestion): handle empty PDF
Run mix precommit before submitting. Releases are automated via release-please.
Resources
Everything you need to get started, go deep, or get involved.
Documentation
Full project docs published on GitHub Pages, updated on each release.
Installation Wiki
Step-by-step local installation guide including Docker Compose and Mix.
GitHub Repository
Source code, issues, pull requests, and release history.
Changelog
Release notes and version history, automated via release-please.
Ready to run your own
knowledge brain?
Deploy ZAQ on your infrastructure today β or book a demo to see what the managed version can do.