Skip to main content

Module vector

Module vector 

Source
Expand description

Vector storage, distance, and search (internal modules with public re-exports). Vector search API layer.

Vector records are stored in the KV layer under synthetic namespaces (__vec__{ns} per D09). This module provides the encoding, distance, and search logic that sits on top of pure KV.

Re-exports§

pub use api::vector_namespace;
pub use api::VectorEngine;
pub use distance::distance;
pub use distance::distance_scalar;
pub use distance::distance_simd_f32;
pub use distance::Metric;
pub use hnsw::HnswIndex;
pub use search::VectorSearchResult;

Modules§

api
Vector engine trait and namespace helpers.
distance
Distance metrics (cosine, L2, dot product) with SIMD.
hnsw
HNSW approximate nearest neighbor index.
search
Brute-force and HNSW vector search.
types
Vector record types and encoding.