A self-hosted AI chatbot with search-engine features, written in Go: chat with a model that cites live web results and this instance's own crawled index side by side, backed by a hybrid BM25 + semantic search engine also exposed as a plain public search UI.
Docs: User manual (install, configure, and use it) · Architecture (how it's built) -- also served as a site at https://m0wa.github.io/SE/.
| Binary | Role |
|---|---|
cmd/search |
Public. Search UI, chat UI, /search API. |
cmd/admin |
Internal. Every admin settings page and /admin/api/*. |
cmd/crawl |
Internal only. Runs crawls, tracks job state. |
cmd/mcp-{web,datetime,sandbox,files,vision} |
First-party MCP tool servers, spawned on demand as stdio subprocesses. |
cmd/gpu-control |
Internal only, installs on the dedicated GPU host, never alongside the others. Root-privileged; switches the shared GPU between chat and Vision (image/video generation). Packaged separately -- see packaging/gpu-control/. |
| Directory | What it's for |
|---|---|
| packaging/docker/ | docker compose up -- an alternative to the .deb install below, same three binaries + Postgres in containers. Image published to ghcr.io/m0wa/se on every release. |
| packaging/gpu-control/ | cmd/gpu-control's own systemd unit/env file, packaged as a separate .deb for the dedicated GPU host. |
| packaging/nginx/ | Routes the binaries behind one public domain + TLS. |
| packaging/prometheus/ | Host/nginx/Postgres metrics → IONOS monitoring. |
| packaging/prometheus-gpu/ | Same, for the GPU inference host. |
| packaging/grafana/ | Dashboards for both Prometheus pipelines. |
| packaging/searxng/ | Self-hosted SearXNG for the chat feature's live web search. |
| packaging/searxng-engine/ | Custom SearXNG engine folding this instance's own index in. |
| packaging/firewall/ | Optional host-level iptables hardening for both deployment hosts. |
go build ./... && go vet ./... && go test ./... -race -count=1
npm install && npm test # internal/adapters/restapi/*.jsSee CLAUDE.md for the branch/PR/release workflow and doc-sync rules.
cmd/e2e-check is a manual, dev-host-only smoke test against a real deployed
instance (default se.mo-sys.de) -- never wired into CI, never packaged. Run
by hand after a release: go run ./cmd/e2e-check -host <host> -creds <path>
(see cmd/e2e-check/credentials.example.json for the credentials file shape;
never commit a real one).