Skip to main content

Module vector_dir

Module vector_dir 

Source
Expand description

A node’s per-project vector stores (ADR-100 decision 5): in-memory HNSW indexes on the owner daemon, optionally backed by a durable log.

Structs§

VectorDirectory
A node’s stores for the projects it owns, each an HNSW index created on first use. Without with_persistence the indexes are memory-only and a restart empties them; with it, each store keeps a capped, append-only log under the given directory (one file per project) and is rebuilt from it on first use after a restart. The index map is shared between views, so two views with different allow-lists (local cogs, remote forwarders) reach the same store for a project they both allow.