Skip to main content

Module ruvector

Module ruvector 

Source
Expand description

RuVector — backed by ruvector-core HNSW vector database.

Wraps ruvector_core::VectorDB with the multi-table interface that the rest of Brain uses. Each logical table maps to one VectorDB persisted at <root>/<table_name>.db.

§Storage layout

~/.brain/ruvector/
  facts_vec.db     -- semantic fact vectors (HNSW)
  episodes_vec.db  -- episode vectors (HNSW)

Structs§

HnswConfig
Tuning knobs for the underlying ruvector HNSW index. Mirrors the fields in brain::HnswConfig but lives here so the storage crate can stay independent of brain. Callers convert at the boundary.
RuVectorStore
RuVector store — manages multiple per-table VectorDB instances.
VectorResult
A single vector search result.

Enums§

RuVectorError

Constants§

VECTOR_DIM
Default vector dimension. Override by passing the actual embedding model dimension to RuVectorStore::open.