HNSW
Algorithm
Overview
Developed byYu. A. Malkov
Maintained byNMSLIB team
Founded2016
LicenseApache License 2.0
Open source✓ Open Source
Use casesimilarity search in high-dimensional spaces
Technical
Knowledge graph stats
Claims70
Avg confidence92%
Avg freshness99%
Last updatedUpdated 5 days ago
WikidataQ124785393
Trust distribution
100% unverified
Governance
Not assessed
HNSW
concept
Hierarchical Navigable Small World algorithm for approximate nearest neighbor search in high dimensions.
Compare with...primary use case
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| similarity search in high-dimensional spaces | ○Unverified | High | Fresh | 1 |
| approximate nearest neighbor search | ○Unverified | High | Fresh | 1 |
| approximate nearest neighbor search in high-dimensional spaces | ○Unverified | High | Fresh | 1 |
| high-dimensional vector similarity search | ○Unverified | High | Fresh | 1 |
| vector similarity search | ○Unverified | High | Fresh | 1 |
| machine learning embedding search | ○Unverified | High | Fresh | 1 |
supports model
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| embedding vectors | ○Unverified | High | Fresh | 1 |
| vector embeddings | ○Unverified | High | Fresh | 1 |
integrates with
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| Hnswlib | ○Unverified | High | Fresh | 1 |
| C++ | ○Unverified | High | Fresh | 1 |
| Python | ○Unverified | High | Fresh | 1 |
| Weaviate | ○Unverified | High | Fresh | 1 |
| Chroma | ○Unverified | High | Fresh | 1 |
| Faiss | ○Unverified | Moderate | Fresh | 1 |
based on
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| navigable small world graphs | ○Unverified | High | Fresh | 1 |
| hierarchical navigable small world graphs | ○Unverified | High | Fresh | 1 |
| navigable small world networks | ○Unverified | High | Fresh | 1 |
| skip list data structure | ○Unverified | High | Fresh | 1 |
| small world networks | ○Unverified | High | Fresh | 1 |
supports data type
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| high-dimensional vectors | ○Unverified | High | Fresh | 1 |
algorithm type
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| graph-based search algorithm | ○Unverified | High | Fresh | 1 |
supports protocol
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| vector similarity search | ○Unverified | High | Fresh | 1 |
| euclidean distance | ○Unverified | High | Fresh | 1 |
| cosine similarity | ○Unverified | High | Fresh | 1 |
| high-dimensional vector spaces | ○Unverified | High | Fresh | 1 |
alternative to
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| brute force k-NN search | ○Unverified | High | Fresh | 1 |
| LSH | ○Unverified | High | Fresh | 1 |
| KD-tree | ○Unverified | Moderate | Fresh | 1 |
| LSH (Locality-Sensitive Hashing) | ○Unverified | Moderate | Fresh | 1 |
| IVF (Inverted File Index) | ○Unverified | Moderate | Fresh | 1 |
| k-d trees | ○Unverified | Moderate | Fresh | 1 |
| Annoy | ○Unverified | Moderate | Fresh | 1 |
| LSH (Locality Sensitive Hashing) | ○Unverified | Moderate | Fresh | 1 |
| k-d tree | ○Unverified | Moderate | Fresh | 1 |
used in domain
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| vector similarity search | ○Unverified | High | Fresh | 1 |
| vector databases | ○Unverified | High | Fresh | 1 |
| machine learning | ○Unverified | High | Fresh | 1 |
data structure type
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| graph-based index | ○Unverified | High | Fresh | 1 |
developed by
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| Yu. A. Malkov | ○Unverified | High | Fresh | 1 |
| D. A. Yashunin | ○Unverified | High | Fresh | 1 |
| Yury Malkov | ○Unverified | High | Fresh | 1 |
| Yu. A. Malkov and D. A. Yashunin | ○Unverified | High | Fresh | 1 |
founded year
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| 2016 | ○Unverified | High | Fresh | 1 |
published year
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| 2016 | ○Unverified | High | Fresh | 1 |
supports use case
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| vector similarity search | ○Unverified | High | Fresh | 1 |
| recommendation systems | ○Unverified | Moderate | Fresh | 1 |
time complexity
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| O(log N) expected | ○Unverified | High | Fresh | 1 |
implemented in
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| C++ | ○Unverified | High | Fresh | 1 |
supports distance metric
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| cosine similarity | ○Unverified | High | Fresh | 1 |
| Euclidean distance | ○Unverified | High | Fresh | 1 |
used in
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| machine learning applications | ○Unverified | High | Fresh | 1 |
use case
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| machine learning embeddings search | ○Unverified | High | Fresh | 1 |
supports metric
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| Euclidean distance | ○Unverified | High | Fresh | 1 |
| cosine similarity | ○Unverified | High | Fresh | 1 |
license type
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| Apache License 2.0 | ○Unverified | High | Fresh | 1 |
| Apache 2.0 | ○Unverified | Moderate | Fresh | 1 |
requires
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| metric space | ○Unverified | High | Fresh | 1 |
open source
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| true | ○Unverified | High | Fresh | 1 |
algorithm complexity
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| O(log N) search time | ○Unverified | High | Fresh | 1 |
supports language
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| C++ | ○Unverified | High | Fresh | 1 |
| Python | ○Unverified | High | Fresh | 1 |
maintained by
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| NMSLIB team | ○Unverified | Moderate | Fresh | 1 |
| nmslib community | ○Unverified | Moderate | Fresh | 1 |
competes with
| Value | Trust | Confidence | Freshness | Sources |
|---|---|---|---|---|
| FAISS | ○Unverified | Moderate | Fresh | 1 |
| IVF (Inverted File) | ○Unverified | Moderate | Fresh | 1 |
| ScaNN | ○Unverified | Moderate | Fresh | 1 |
| IVF (Inverted File Index) | ○Unverified | Moderate | Fresh | 1 |
| Annoy | ○Unverified | Moderate | Fresh | 1 |