annoy VS hnswlib

Compare annoy vs hnswlib and see what are their differences.

annoy

Approximate Nearest Neighbors in C++/Python optimized for memory usage and loading/saving to disk (by spotify)

hnswlib

Header-only C++/python library for fast approximate nearest neighbors (by nmslib)
Our great sponsors
  • Scout APM - Less time debugging, more time building
  • SonarQube - Static code analysis for 29 languages.
  • SaaSHub - Software Alternatives and Reviews
annoy hnswlib
15 3
9,871 1,977
3.0% 2.7%
4.4 7.5
about 2 months ago 16 days ago
C++ C++
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

annoy

Posts with mentions or reviews of annoy. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-03-02.

hnswlib

Posts with mentions or reviews of hnswlib. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-03-02.

What are some alternatives?

When comparing annoy and hnswlib you can also consider the following projects:

faiss - A library for efficient similarity search and clustering of dense vectors.

implicit - Fast Python Collaborative Filtering for Implicit Feedback Datasets

TensorRec - A TensorFlow recommendation algorithm and framework in Python.

spotlight - Deep recommender models using PyTorch.

fastFM - fastFM: A Library for Factorization Machines

hora - 🚀 efficient approximate nearest neighbor search algorithm collections library written in Rust 🦀 .

libffm - A Library for Field-aware Factorization Machines

qdrant - Qdrant - vector similarity search engine with extended filtering support

vald - Vald. A Highly Scalable Distributed Vector Search Engine

tlsh

awesome-vector-search - Collections of vector search related libraries, service and research papers