Back to Gap Map Infrastructure / Storage & Retrieval

hnswlib

NMSLIB project
open source / Overall score: 2.6

hnswlib is a header-only C++ implementation of Hierarchical Navigable Small World graphs for approximate nearest neighbour search, with Python bindings and support for insertions, updates and filtered queries. Several vector databases embed it as their graph index.

Openness

5 high confidence
5.0
license
Apache-2.0(OSI)
source
public
core features withheld
no

Apache-2.0 license body confirmed. The repository is public and unarchived and builds the whole product, and the README describes no paid tier, enterprise edition or license-gated build beside it, so source is public and the core ungated.

Adoption

3 high confidence
3.0

The hnswlib package on PyPI is this library's own Python distribution, not a client for a different product, so its download count measures hnswlib directly. The package's declared source link happens to point at the maintainer's personal repository rather than nmslib/hnswlib, but that does not change what the downloads count.

Capability

2 medium confidence
2.0

hnswlib ships a single index structure, HNSW, as a header-only C++ library with Python bindings supporting insertion, updates and filtered search, with no storage, persistence or query layer of its own. That keeps it two steps below Chroma, which builds a full retrieval system around such an index.

Verified 2026-09-24