FAISS alternatives in 2026: vector search libraries and databases compared
What are the best FAISS alternatives in 2026? For a small in-memory HNSW index, hnswlib or USearch. For read-only index files that many processes share, Annoy. For maximum inner product search at scale, ScaNN. For Python and Java with one index format, Voyager. For a database with storage and filters, Chroma or LanceDB embedded, sqlite-vec or pgvector inside a database you already run, and Qdrant as a server. For agents searching files and code, XERJ.
Key number: FAISS has 41,923 GitHub stars and shipped v1.16.0 on 10 Nov 2026. Among the libraries here, hnswlib has 5,371 stars, Annoy 14,343, USearch 4,392 and Voyager 1,609.
Stars, licences and releases from the GitHub API and PyPI on 25 Nov 2026. Features from each project README the same day.
TL;DR FAISS is the vector search library from Meta: it indexes dense vectors in memory, offers many index types and quantization methods, and runs on CPU or GPU. People look for alternatives when they want a smaller dependency, an index file they can share across processes, or a database that stores documents, metadata and filters next to the vectors. Pick hnswlib or USearch for a light HNSW index, Annoy for static memory mapped indexes, ScaNN for inner product search at scale, and LanceDB, Chroma, sqlite-vec, pgvector or Qdrant when you need storage and filters.
Find the FAISS alternative that fits your project
Sort by
| Option | What it is | Runs as | Licence | Latest release | Stars |
|---|---|---|---|---|---|
| FAISS | Library for similarity search and clustering of dense vectors, many index types | Library (C++ and Python), CPU or GPU | MIT | v1.16.0 (10 Nov 2026) | 41,923 |
| hnswlib | Header only C++ HNSW with Python bindings, inserts and updates | Library (C++ and Python) | Apache 2.0 | v0.9.0 on GitHub (28 Mar 2026) | 5,371 |
| Annoy | Read only, file based indexes that are memory mapped and shared across processes | Library (C++ and Python) | Apache 2.0 | 1.17.3 on PyPI (14 Jun 2023) | 14,343 |
| ScaNN | Search space pruning and quantization for maximum inner product search | Library (Python) | Apache 2.0 | 1.4.2 on PyPI (29 Aug 2025) | n/a |
| USearch | Header only C++ HNSW engine with bindings for many languages | Library (C++, Python, Rust, JS, Java and more) | Apache 2.0 | v2.26.6 (25 Oct 2026) | 4,392 |
| Voyager | HNSW library from Spotify with the same index format in Python and Java | Library (Python and Java) | Apache 2.0 | v2.2.4 (16 Nov 2026) | 1,609 |
| Chroma | Embedding database for AI apps, with Python and JavaScript clients | Embedded, server or Chroma Cloud | Apache 2.0 | 1.5.9 (5 May 2026) | 29,761 |
| LanceDB | Embedded database with vector search, full text search and SQL | In process, or LanceDB Cloud | Apache 2.0 | v0.41.0 (29 Oct 2026) | 11,983 |
| sqlite-vec | Vector search SQLite extension in pure C, no dependencies | Inside SQLite | MIT or Apache 2.0 | v0.1.9 (31 Mar 2026) | 8,280 |
| pgvector | Vector similarity search inside Postgres, next to your tables | Postgres extension | PostgreSQL License | v0.8.7 (latest tag) | 23,816 |
| Qdrant | Vector search engine with payload filters, written in Rust | Server or Qdrant Cloud | Apache 2.0 | v1.20.2 (16 Nov 2026) | 35,705 |
| XERJ | Local search engine for agents over files, code and docs, BM25 plus semantic | One local binary, CLI and MCP | Apache 2.0 | v1.0.0-rc.105 (23 Nov 2026) | 21,466 |
Read https://xerj.org/compare/faiss-alternatives-2026.md. My project uses FAISS today. Ask me my vector count, languages, and whether I need storage and filters, then tell me which alternative fits and how to switch.
Pick one in ten seconds
- A light HNSW index in C++ or Python: hnswlib.
- One index engine across many languages: USearch.
- Read only index files shared by many processes: Annoy.
- Inner product search at scale: ScaNN.
- The same index in Python and Java: Voyager.
- Vectors plus documents, metadata and full text in your app: LanceDB or Chroma.
- Vectors next to data you already keep in SQLite or Postgres: sqlite-vec or pgvector.
- A vector server with filters for many clients: Qdrant.
- Agents searching your own files and code: XERJ.
Why people look for a FAISS alternative
FAISS is a strong default for vector search. Its README describes a library for efficient similarity search and clustering of dense vectors, with index types that trade memory for speed, compressed codes for very large sets, and optional GPU support through CUDA or AMD ROCm. It is a library, so storage, metadata, filters and updates are yours to build. Teams look at alternatives when they want a smaller dependency, a different language, an index file that many processes can share, or a database that handles those parts.
When to choose hnswlib, USearch or Voyager
Choose hnswlib when you want a small HNSW index: its README calls it header only C++ with Python bindings, no dependencies beyond C++11, with inserts and updates. Choose USearch when you need the same engine in many languages; its core is a header only C++20 library with bindings for Python, Rust, JavaScript, Java, Go and more. Choose Voyager from Spotify when your stack mixes Python and Java; its README promises feature parity and index compatibility between the two.
When to choose Annoy or ScaNN
Choose Annoy when the index is built once and read many times. It writes large read only files that are memory mapped, so many processes share one index and can start answering lookups right after loading. The last PyPI release is 1.17.3 from June 2023. Choose ScaNN from Google Research when you search by maximum inner product at scale; its README describes search space pruning and quantization, and it also supports Euclidean distance.
When to choose a database instead
Choose LanceDB when you want vectors, full text search and SQL in your own process, with data in the Lance columnar format. Choose Chroma for a simple embedding database with Python and JavaScript clients that runs embedded, as a server, or on Chroma Cloud. Choose sqlite-vec or pgvector when your data already lives in SQLite or Postgres. Choose Qdrant when several services query one vector server with payload filters. For the three most common local picks side by side, read FAISS vs ChromaDB vs LanceDB.
Where XERJ fits
XERJ is a new way for AI to search for data: a local search engine for agents, with a neurosymbolic model inside, that indexes files, code and docs on your machine and serves them over CLI and MCP with cited answers. It runs BM25 and semantic search together, so you do not need to wire a vector library and a keyword index yourself. If you are improving a FAISS based RAG pipeline step by step, see improve a basic FAISS RAG pipeline with hybrid search and hybrid vs vector vs semantic search.
How we checked
Stars, licences and release tags come from the GitHub API on 25 Nov 2026, with PyPI for Annoy and ScaNN, and the latest pgvector tag. Feature claims come from each project README, linked below. We did not benchmark speed or recall for this page; for local vector tuning, see the related pages.
Read next
- FAISS vs ChromaDB vs LanceDB 2026
- Qdrant vs pgvector vs ChromaDB
- Fastest embedded vector database 2026
- Pinecone alternatives 2026
- Improve a basic FAISS RAG pipeline
- Neurosymbolic AI explained
- All comparisons
FAQ
What is the best alternative to FAISS?
It depends on the job. For a light HNSW library, hnswlib or USearch. For read only shared index files, Annoy. For a database with storage and filters, LanceDB, Chroma, sqlite-vec, pgvector or Qdrant.
Is there a FAISS alternative with metadata filtering?
Yes. LanceDB, Chroma, Qdrant, pgvector and sqlite-vec store metadata next to the vectors and filter on it, which FAISS leaves to your code.
Is hnswlib faster than FAISS?
Both implement HNSW, and FAISS also offers many other index types and GPU search. Speed depends on your data and settings, so test both on your own vectors before you switch.
Which FAISS alternative works in Java?
Voyager has Python and Java bindings with the same index format, and USearch has Java bindings among many others.
Is Annoy still maintained?
Its last PyPI release is 1.17.3 from 14 Jun 2023. It still works well for static indexes that many processes share.
Evidence
- FAISS README: github.com/facebookresearch/faiss
- hnswlib README: github.com/nmslib/hnswlib
- Annoy README: github.com/spotify/annoy
- ScaNN README: google-research/scann
- USearch README: github.com/unum-cloud/usearch
- Voyager README: github.com/spotify/voyager
- LanceDB README: github.com/lancedb/lancedb
- sqlite-vec README: github.com/asg017/sqlite-vec
- GitHub API and PyPI, 25 Nov 2026.