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§
- Hnsw
Config - Tuning knobs for the underlying ruvector HNSW index. Mirrors the
fields in
brain::HnswConfigbut lives here so the storage crate can stay independent ofbrain. Callers convert at the boundary. - RuVector
Store - RuVector store — manages multiple per-table
VectorDBinstances. - Vector
Result - A single vector search result.
Enums§
Constants§
- VECTOR_
DIM - Default vector dimension.
Override by passing the actual embedding model dimension to
RuVectorStore::open.