#2222nd of 22 in Vector databases

nmslib

Approximate nearest-neighbor search library for metric and non-metric spaces

Stars
3.6k
License
Apache-2.0
Last commit
Jan 2026
Last release
Feb 2021
Language
C++
Stars, last 29 weeks+24
22 Apr 2026: 3,566 stars29 Apr 2026: 3,568 stars6 May 2026: 3,571 stars13 May 2026: 3,571 stars20 May 2026: 3,573 stars27 May 2026: 3,574 stars3 Jun 2026: 3,575 stars10 Jun 2026: 3,577 stars17 Jun 2026: 3,579 stars24 Jun 2026: 3,579 stars1 Jul 2026: 3,579 stars8 Jul 2026: 3,581 stars15 Jul 2026: 3,581 stars22 Jul 2026: 3,581 stars29 Jul 2026: 3,582 stars5 Aug 2026: 3,582 stars12 Aug 2026: 3,583 stars19 Aug 2026: 3,583 stars26 Aug 2026: 3,583 stars2 Sept 2026: 3,585 stars9 Sept 2026: 3,585 stars16 Sept 2026: 3,585 stars23 Sept 2026: 3,587 stars30 Sept 2026: 3,587 stars7 Oct 2026: 3,587 stars14 Oct 2026: 3,587 stars21 Oct 2026: 3,588 stars28 Oct 2026: 3,590 stars4 Nov 2026: 3,590 stars11 Nov 2026: 3,590 stars

3,566 on 22 Apr 20263,590 on 11 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

NMSLIB is a C++ similarity search library with Python bindings and an Apache Thrift query server usable from Java. It implements HNSW, VP-tree, NAPP and inverted-file methods, and supports non-metric distance functions. It also serves as a toolkit for evaluating search methods. The core library has no third-party dependencies.

Who it is for: Engineers embedding approximate k-NN search in C++, Python or Java apps

Strengths

  • Core library has no third-party dependencies
  • Supports non-metric spaces, not only L2 or cosine
  • Prebuilt wheels for Python 3.8-3.13 on Linux, macOS, Windows, Intel and ARM
  • Extendible with new search methods and distance functions

Weaknesses

  • Last release was 2021-02-03, though commits continue
  • Library only: no persistence layer or database features described
  • Standalone hnswlib is lighter if only HNSW is needed
  • Query server requires Apache Thrift 0.12, an old version

What it needs

  • Needs Apache Thrift 0.12 (query server only)

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe.

Also in Vector databases

See all 22
Also in Vector databases
RankProjectScore
1MilvusDistributed vector database with dense, sparse and hybrid search at scale Live demo ↗ (opens in a new tab)46.6k starsApache-2.0known advisory in latest version90 out of 100
2QdrantRust vector database with payload filtering, REST and gRPC Live demo ↗ (opens in a new tab)35.5k starsApache-2.085 out of 100
3MeilisearchRust search engine with typo tolerance, filtering and hybrid semantic search Live demo ↗ (opens in a new tab)59.8k starscustom license84 out of 100
#4faissC++ library for similarity search and clustering of dense vectors41.5k stars+388 (+0.9%) in 30 daysMIT81 out of 100
#5leannVector index that recomputes embeddings on demand to cut storage Live demo ↗ (opens in a new tab)13.8k starsMIT79 out of 100