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§
- Disk
Storage - Standard disk storage with buffered I/O
- Memory
Mapped Storage - Memory-mapped storage (stub for future implementation)
- Storage
Metadata - Storage metadata
Traits§
- Storage
Backend - Storage backend trait