Comparison
annoy vs chroma-hnswlib vs faiss-cpu vs milvus-lite
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Approximate Nearest Neighbors in C++/Python optimized for memory usage and loading/saving to disk.
Slowing down. Last release over 3 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install annoyChromas fork of hnswlib
Low maintenance activity. Last release over 2 years ago, commits in 1 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install chroma-hnswlibA 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-cpuLightweight version of Milvus for local development and testing
Actively maintained. Last release 7 weeks ago, commits in 10 of the last 26 weeks. A safe choice.
pip install milvus-liteIn short
- annoy is slowing down (last release over 3 years ago): fine for existing code, risky for a new project.
- faiss-cpu is the most used: 13.3M downloads a month, 9.6× more than chroma-hnswlib.
- Maintenance is comparable: faiss-cpu 85, milvus-lite 83, chroma-hnswlib 28 on Pythie’s Index.
- Safe default for a new project: faiss-cpu.
Side by side
| Metric | annoy | chroma-hnswlib | faiss-cpu | milvus-lite |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 19 | Pythie’s Index: 28 | Pythie’s Index: 85 | Pythie’s Index: 83 |
| Verdict | Slowing down | Low maintenance activity | Actively maintained | Actively maintained |
| Downloads / month | 1M | 1.4M | 13.3M | 876.4K |
| Downloads, month over month | +6% | -33% | +8% | -5% |
| GitHub stars | 14.3K | 22 | 42K | 466 |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 123 | 20 | 1.1K | 15 |
| Last release | Jun 14, 2023 | Jul 22, 2024 | Nov 10, 2026 | Oct 13, 2026 |
| Releases, 12 months | 0 | 0 | 7 | 7 |
| Weeks with commits | 0 / 26 | 1 / 26 | 26 / 26 | 10 / 26 |
| Recent contributors | 21 | 12 | 38 | 16 |
| First release | Mar 2014 | Jun 2023 | Jul 2019 | May 2024 |
| Python versions | 3.3 – 3.9 | – | 3.10 – 3.14 | 3.10 – 3.13 |
| License | Apache-2.0 | Apache-2.0 | MIT | Apache-2.0 |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.