Skip to main content

Module vector

Module vector 

Source

Re-exports§

pub use id_map::AttachedVectors;
pub use id_map::IndexIdMap;
pub use id_map::VectorIdMap;
pub use state::RestoredVectorState;
pub use state::VectorState;

Modules§

build
HNSW insert algorithm (Malkov & Yashunin, Algorithm 1).
distance
Distance metrics for vector similarity search.
durable
Durable per-document vector storage — the source of truth for vectors.
graph
hnsw
hnsw_search
HNSW search algorithm (Malkov & Yashunin, Algorithm 2).
id_map
Bidirectional binding between HNSW node ids and document ids.
nodes
Binding a document’s vector to its HNSW node, and releasing it.
pagedb_backing
PagedbBacking: low-allocation VectorSegmentBacking backed by a decrypted pagedb segment loaded into a heap-pinned byte buffer.
resident
Resident access to HNSW indexes that eviction can drop from memory.
row
The CRDT row a vector is attached to.
search
Vector similarity search over one HNSW index, shared by NodeDbLite and LiteDataPlaneVisitor.
segment
Vector segment payloads in node-id order, and the check that a stored segment serves the nodes of the index it is attached to.
sidecar
state
Shared runtime state for HNSW vector search on Lite.

Structs§

HnswIndex
Hierarchical Navigable Small World graph index.
HnswParams
HNSW index parameters shared between Origin and Lite.
SearchResult
Result of a k-NN search.

Enums§

DistanceMetric
Distance metric selection.