Skip to content

ronakgh97/hnsw-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An implementation of HNSW (Hierarchical Navigable Small World) algorithm for approximate nearest neighbor search. This is not directly based on the original paper, it is simplified and easy to understand, while still being reasonably efficient and robust, I guess

Checkout this repo: blaze-db, which is a vector database built on top of this HNSW implementation.

How to bench?

cargo run --example bench --release -- ../../datasets/dim1536_size1M 4
                                         <path to dataset> <num of files to read>

Make sure to have cargo & this dataset

Bench plot

Ref:

Note: Some of the ref are of my TODO list, I have not read them yet, but I think they are relevant, so I put them here for future reference.

Contributors