Repository navigation
Upgrade first
Stop every older knowledge-rag process using the same data directory before upgrading. The v5.1.0 stdio launcher does not participate in the new index-access lock. Do not delete the index or its lock files as part of a normal upgrade.
What changed in 5.2.0
- One owner per persistent index. A second stdio client no longer opens Chroma concurrently. It reports that another process owns the index and can take over after the owner exits. To serve multiple clients at once, point them at one
knowledge-rag --transport streamable-httpserver. All 13 MCP tools keep their existing signatures. - Recovery verifies what it moves. Startup now answers the MCP handshake while checking the index. Independent probes must repeatedly observe recognized damage while reading the same index. An import error, a busy index, an individual timeout, or a replaced or redirected target is not grounds for quarantine. A normal stdio shutdown lets an in-progress repair finish or roll back. If the catalog cannot be restored, recovery stops and preserves the backup across restarts. Follow the interrupted-repair procedure rather than deleting the marker or reindexing.
- HTTP readiness is separate from liveness. Use
/healthor/healthzfor liveness. Use/readyzto decide whether to send tool requests:503during startup or after a startup error,200once ready. - Keyword-only search no longer reports a false miss during BM25 warm-up (#321). It waits for an in-flight first build or reports an explicit error if no usable keyword index exists. A genuinely empty collection still returns
no_results.get_index_statsreports BM25 readiness. - Vector indexing checks reachability and repairs unreachable chunks on eligible write passes. Windows CUDA startup now handles a reduced client environment and a keyword-only first query that loads the reranker before the embedding model.
A healthy index does not require a forced rebuild. The packaged upgrade test reopened an index created by v5.1.0 twice, preserving the known document, ID and vector without creating a recovery backup. All 39 checks passed on the final PR commit, including Python 3.11, 3.12 and 3.13 on Linux, macOS and Windows.
Known limits: The repair marker protects against a process exiting mid-repair; it does not guarantee recovery after a machine loses power. On some filesystems the marker and the renames may not all reach disk. After a host crash during repair, stop the servers and verify the catalog and index together against a separate backup before restarting. On large indexes, a published but stale BM25 generation can still omit very recent writes until refresh.