[docs]: Consolidate 4 config/auth/reload/hybrid-search documentation gaps (real-world incidents)
Summary
Several small documentation / DX gaps around ov.conf and operational procedures that individually are minor but together caused us real production incidents. Consolidating into one doc issue instead of four:
-
Auth credentials are split between
ov.confandovcli.conf— the docs don't clearly state that the sameroot_api_key(and related fields) must live in both files, and searching for auth issues requires checking both. Related to #1722 but the fix there is code; this ask is docs. -
No hot reload — modifying
[vlm],[embedding], or[server]sections requiressystemctl restart openviking. This isn't documented indocs/en/guides/01-configurationordocs/en/deployment/*. Users assume Redis-style hot reload and get burned. -
Hybrid search / sparse embedding config is undocumented for self-hosted embedding providers —
docs/en/guides/01-configurationshowsstorage.vectordb.sparse_weight > 0as the enable switch and lists supported providers (volcengine/openai/vikingdb/jina/voyage/dashscope/gemini/minimax) but does not clarify:- Whether a self-hosted
embed_server.pyneeds to expose a specific/v1/embeddings/sparseendpoint - The minimum-memory footprint of the models that produce native sparse tokens (bge-m3 is ~2.3 GB — we hit OOM on a 1.8 GB box; that's a documentation-preventable failure)
- Whether BM25 or any built-in sparse fallback exists when the provider only outputs dense
- Whether a self-hosted
-
ROOTAPI key ≠ tenant-scoped data access inapi_keymode — the messageROOT API keys cannot access tenant-scoped data APIs in api_key modeis enforced by the server but not stated in the auth docs. Users (us included) assume ROOT is a superset of ADMIN. The three legit paths to cross-tenant reads (trusted mode / store other user's api_key and switch identity / use sharedresources) should live in one page.
Environment
- OpenViking 0.4.4 → 0.4.7
- Ubuntu 22.04, self-hosted,
api_keyauth mode
Impact / Real-World Cases
- (1) cost us a 30-min debugging session when we rotated
root_api_keyinov.confonly and Admin CLI kept failing - (2) is why we accidentally scheduled a "no downtime" model swap that took the service down for 60 s
- (3) is why we spent an afternoon evaluating hybrid search only to conclude "hardware-blocked" — documentation of memory footprint would have saved the whole loop
- (4) is why we designed a whole three-layer permission workaround for cross-user inspection before realizing option (b) — "store the target user's api_key and switch identity" — is the officially blessed path
Proposed Doc Structure
A new section under docs/en/deployment/ or docs/en/guides/:
01-configuration.md— add "Two-file rule" callout for auth fields02-restart-and-reload.md(new) — matrix of which config changes need restart vs which can hot-reload (if any)03-hybrid-search.md(new or extend existing) — sparse provider requirements, memory footprints, fallback behavior04-auth-and-scopes.md— ROOT vs ADMIN vs USER vs tenant-scoped table with concrete examples
Additional Context
- We have four internal skills (
ov-diagnostics-procedures,ov-config-query,ov-cross-user-inspection,openviking-health-monitoring) that document what should be in the official docs. Happy to contribute the source material as a starting-point PR if this issue gets prioritized. - Related: #1604 (observer role hardening), #1722 (root_api_key trusted-mode bug), #988 (ACL & Custom Role Support)
Falsification Signal
If any of the four points are already covered in a doc page I missed, please point at the URL and I'll close the corresponding sub-point.