Comparison
faiss-cpu vs hnswlib vs nmslib
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A library for efficient similarity search and clustering of dense vectors.
Actively maintained. Last release 3 weeks ago, commits in 26 of the last 26 weeks. A safe choice.
$
pip install faiss-cpuhnswlib
Low maintenance activity. Last release over 2 years ago, commits in 2 of the last 26 weeks. Weaker on commit activity and recent releases.
$
pip install hnswlibNon-Metric Space Library (NMSLIB)
Low maintenance activity. Last release 13 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
$
pip install nmslibIn short
- faiss-cpu is the most used: 13M downloads a month, 19× more than hnswlib.
- faiss-cpu also has the best Pythie’s Index (87).
- Safe default for a new project: faiss-cpu.
Side by side
| Metric | faiss-cpu | hnswlib | nmslib |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 87 | Pythie’s Index: 24 | Pythie’s Index: 26 |
| Verdict | Actively maintained | Low maintenance activity | Low maintenance activity |
| Downloads / month | 13M | 690.4K | 121.4K |
| Downloads, month over month | +2% | -3% | -8% |
| GitHub stars | 42K | 5.4K | 3.6K |
| Stars, last 7 days | – | – | – |
| Direct dependents | 1.1K | 133 | 24 |
| Last release | Nov 10, 2026 | Dec 3, 2023 | Oct 23, 2025 |
| Releases, 12 months | 7 | 0 | 0 |
| Weeks with commits | 26 / 26 | 2 / 26 | 0 / 26 |
| Recent contributors | 36 | 20 | 8 |
| First release | Jul 2019 | Aug 2019 | Jun 2017 |
| Python versions | 3.10 – 3.14 | – | – |
| License | MIT | Apache-2.0 | Apache-2.0 |
| Known vulnerabilities | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.