COMPARISONS · VECTOR SEARCH LIBRARIES

FAISS alternatives in 2026: vector search libraries and databases compared

AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-11-25 · UPDATED · 2026-11-25
SHORT ANSWER · UPDATED 2026-11-25

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.

TOOL · FILTER

Find the FAISS alternative that fits your project

I need

Sort by

OptionWhat it isRuns asLicenceLatest releaseStars
FAISSLibrary for similarity search and clustering of dense vectors, many index typesLibrary (C++ and Python), CPU or GPUMITv1.16.0 (10 Nov 2026)41,923
hnswlibHeader only C++ HNSW with Python bindings, inserts and updatesLibrary (C++ and Python)Apache 2.0v0.9.0 on GitHub (28 Mar 2026)5,371
AnnoyRead only, file based indexes that are memory mapped and shared across processesLibrary (C++ and Python)Apache 2.01.17.3 on PyPI (14 Jun 2023)14,343
ScaNNSearch space pruning and quantization for maximum inner product searchLibrary (Python)Apache 2.01.4.2 on PyPI (29 Aug 2025)n/a
USearchHeader only C++ HNSW engine with bindings for many languagesLibrary (C++, Python, Rust, JS, Java and more)Apache 2.0v2.26.6 (25 Oct 2026)4,392
VoyagerHNSW library from Spotify with the same index format in Python and JavaLibrary (Python and Java)Apache 2.0v2.2.4 (16 Nov 2026)1,609
ChromaEmbedding database for AI apps, with Python and JavaScript clientsEmbedded, server or Chroma CloudApache 2.01.5.9 (5 May 2026)29,761
LanceDBEmbedded database with vector search, full text search and SQLIn process, or LanceDB CloudApache 2.0v0.41.0 (29 Oct 2026)11,983
sqlite-vecVector search SQLite extension in pure C, no dependenciesInside SQLiteMIT or Apache 2.0v0.1.9 (31 Mar 2026)8,280
pgvectorVector similarity search inside Postgres, next to your tablesPostgres extensionPostgreSQL Licensev0.8.7 (latest tag)23,816
QdrantVector search engine with payload filters, written in RustServer or Qdrant CloudApache 2.0v1.20.2 (16 Nov 2026)35,705
XERJLocal search engine for agents over files, code and docs, BM25 plus semanticOne local binary, CLI and MCPApache 2.0v1.0.0-rc.105 (23 Nov 2026)21,466

Stars and licences from the GitHub API on 25 Nov 2026; releases from GitHub releases or PyPI the same day. ScaNN lives inside the google-research monorepo, so it has no stars of its own. Tick boxes to keep only the options that do all of them.
PASTE THIS TO YOUR AI AGENT. IT DOES THE REST 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

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

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