hnswlib

Framework · Text & code

A C++ and Python library that builds an approximate nearest-neighbor index over embedding vectors, so you can search millions of vectors quickly on your own machine.

AccessOpen codeLicenseApache 2.0

Alternatives

mlxvsSIFT1M, 10k-query batches: builds in 10.8 s vs 91.8 s, recall@10 0.976 vs 0.964, 76,400 vs 28,100 queries/s versus hnswlib on 12 CPU cores
Made for hnswlib