Module storage

Module storage 

Source
Expand description

Storage backends for DiskANN

Provides abstractions for storing vectors and graph structures on disk with support for memory-mapped I/O and buffered access.

§Storage Layout

  • Vectors: Raw f32 arrays or PQ-compressed codes
  • Graph: Adjacency lists with neighbor IDs
  • Metadata: Index configuration and statistics

§Backends

  • DiskStorage: Standard file I/O with buffering
  • MemoryMappedStorage: Memory-mapped files for fast access
  • CachedStorage: Hybrid with LRU caching

Structs§

DiskStorage
Standard disk storage with buffered I/O
MemoryMappedStorage
Memory-mapped storage (stub for future implementation)
StorageMetadata
Storage metadata

Traits§

StorageBackend
Storage backend trait