Expand description
§Anda-DB HNSW Vector Search Library
A high-performance implementation of Hierarchical Navigable Small World (HNSW) algorithm for approximate nearest neighbor search in high-dimensional spaces.
HNSW is a graph-based indexing algorithm that creates a multi-layered structure to enable fast and accurate nearest neighbor search in high-dimensional spaces.
§Features
- Fast approximate nearest neighbor search;
- Multiple distance metrics (Euclidean, Cosine, Inner Product, Manhattan);
- Configurable index parameters;
- Thread-safe implementation with concurrent read/write operations;
- Serialization and deserialization support;
- Support for bf16 (brain floating point) vector storage for memory efficiency.
Re-exports§
pub use half;
Structs§
- Hnsw
Config - HNSW configuration parameters.
- Hnsw
Index - HNSW index for approximate nearest neighbor search.
- Hnsw
Metadata - Index metadata.
- Hnsw
Node - HNSW graph node.
- Hnsw
Stats - Index statistics.
- Layer
Gen - Random layer generator for HNSW
Enums§
- Distance
Metric - Distance metric types.
- Hnsw
Error - Errors that can occur when working with HNSW index.
- Select
Neighbors Strategy - Neighbor selection strategies.
Functions§
- serialize_
node - Serializes a node to binary in CBOR format.