Skip to main content

Module vector_segment_ext

Module vector_segment_ext 

Source
Expand description

VectorSegmentExt โ€” pagedb segment operations for HNSW vector data.

The StorageEngine trait handles sparse, sorted, key-value state. For HNSW vector data (large, sequentially accessed, zero-copy win) pagedb segments are more appropriate. This trait exposes exactly the three operations the HNSW persistence layer needs without leaking pagedb types into caller code.

Only compiled on non-WASM targets because pagedb::MmapView (used by PagedbBacking) requires mmap. WASM stays on the blob path.

Traitsยง

VectorSegmentExt
Extension trait: write, open, and delete HNSW vector segments backed by pagedb encrypted segment files.