---
title: "pgvector alternatives 2026: vector databases compared"
canonical: "https://xerj.org/compare/pgvector-alternatives-2026"
updated: "2026-12-03"
---

# Best pgvector alternatives in 2026

SHORT ANSWER · UPDATED 2026-12-03
The best pgvector alternatives in 2026 are sqlite-vec for vector search inside an app's SQLite file, pgvectorscale for larger vector sets in Postgres, VectorChord for high-throughput vector search in Postgres and DuckDB VSS for vector search inside analytical SQL. In one line, pgvector is this: postgres extension for vector similarity search with HNSW and IVFFlat indexes. The right swap depends on how you want to run it and which licence you need.
**Key number:** pgvector had 23,924 GitHub stars on 3 Dec 2026, latest release No GitHub release.
Stars, licences, languages and releases for 10 tools were fetched live from the GitHub API, GitHub release pages and the Hugging Face API on 3 Dec 2026. Hosted services link to their official sites and carry no invented numbers.

**TL;DR** The best pgvector alternatives in 2026 are sqlite-vec for vector search inside an app's SQLite file, pgvectorscale for larger vector sets in Postgres, VectorChord for high-throughput vector search in Postgres and DuckDB VSS for vector search inside analytical SQL.

## Agent prompt

```text
Read https://xerj.org/llms.txt. I am comparing pgvector alternatives. Install XERJ, start a local node, run xerj autoindex on my project folder, connect xerj mcp, and show me three searches with file and line citations.
```

## Pick one in ten seconds

- Pick [sqlite-vec](https://github.com/asg017/sqlite-vec) if you want vector search inside an app's SQLite file.
- Pick [pgvectorscale](https://github.com/timescale/pgvectorscale) if you want larger vector sets in Postgres.
- Pick [VectorChord](https://github.com/supervc-stack/VectorChord) if you want high-throughput vector search in Postgres.
- Pick [DuckDB VSS](https://github.com/duckdb/duckdb-vss) if you want vector search inside analytical SQL.
- Pick [Milvus](https://github.com/milvus-io/milvus) if you want very large vector collections on Kubernetes.
- Pick [FAISS](https://github.com/facebookresearch/faiss) if you want raw ANN speed inside your own code.
- Pick [Qdrant](https://github.com/qdrant/qdrant) if you want filtered vector search as a service you run.
- Pick [ChromaDB](https://github.com/chroma-core/chroma) if you want prototyping RAG in a few lines of Python.
- Pick [XERJ](https://github.com/xerj-org/xerj) if an AI agent should search your local code, docs and logs over MCP.

## What pgvector does well

Postgres extension for vector similarity search with HNSW and IVFFlat indexes. It suits vectors next to relational data in Postgres. It runs as a database extension, is written mainly in C, and its licence is PostgreSQL License. Plan for this: tuning follows Postgres memory and index settings.

## How the pgvector alternatives differ

The alternatives split by how they run:

- **Database extension:** sqlite-vec, pgvectorscale, VectorChord, DuckDB VSS.
- **Self-hosted server:** Milvus, Qdrant.
- **Library in your process:** FAISS, ChromaDB.

## Licences at a glance

- **Permissive licences:** pgvector (PostgreSQL License), sqlite-vec (Apache-2.0), pgvectorscale (PostgreSQL), DuckDB VSS (MIT), Milvus (Apache-2.0), FAISS (MIT), Qdrant (Apache-2.0), ChromaDB (Apache-2.0).
- **Custom or mixed licences (read the repository):** VectorChord (AGPL-3.0 or Elastic License 2.0).

## Most recent releases

Qdrant shipped v1.20.3 on 1 Dec 2026. Milvus shipped v3.0.7 on 29 Nov 2026. FAISS shipped v1.16.0 on 10 Nov 2026. A recent release is a sign of active upkeep, so check the changelog for the features you rely on.

## Where XERJ fits next to pgvector

XERJ is a new way for AI to search for data: one local Rust binary that indexes code, docs, logs and data with `xerj autoindex` and returns passages with file and line citations. `xerj mcp` is a stdio MCP server, and `xerj mcp --http` serves Streamable HTTP at `http://127.0.0.1:9330/mcp`, read-only unless you pass `--allow-writes`. A non-loopback bind needs `XERJ_MCP_TOKEN`. It complements pgvector when an agent needs answers from files on your machine.

## How we checked

Stars, licences, languages and releases for 10 tools were fetched live from the GitHub API, GitHub release pages and the Hugging Face API on 3 Dec 2026. Hosted services link to their official sites and carry no invented numbers. Descriptions summarise each project's own README or documentation. Star counts move daily, so treat them as a snapshot.

## Read next

- [pgvector vs ChromaDB (2026): which vector database fits?](https://xerj.org/compare/pgvector-vs-chromadb-2026)
- [pgvector vs Qdrant (2026): which vector database fits?](https://xerj.org/compare/pgvector-vs-qdrant-2026)
- [Qdrant vs Chroma vs pgvector (2026): which vector DB for RAG](https://xerj.org/compare/qdrant-vs-pgvector-vs-chromadb)
- [What is semantic search?](https://xerj.org/science/semantic-search)
- [Hybrid search 2026: BM25 plus vectors for RAG and AI agents](https://xerj.org/science/hybrid-search)
- [Vector search vs semantic search vs hybrid search: 2026 guide](https://xerj.org/science/hybrid-vs-vector-vs-semantic-search)

## FAQ

### What is the best pgvector alternative in 2026?

It depends on the job: sqlite-vec fits vector search inside an app's SQLite file, pgvectorscale fits larger vector sets in Postgres, VectorChord fits high-throughput vector search in Postgres, DuckDB VSS fits vector search inside analytical SQL, and XERJ fits AI agents searching local files over MCP.

### Is pgvector open source?

pgvector is published under PostgreSQL License and had 23,924 GitHub stars on 3 Dec 2026.

### Which pgvector alternatives can I self-host?

These run on your own machines: sqlite-vec, pgvectorscale, VectorChord, DuckDB VSS, Milvus, FAISS, Qdrant, ChromaDB.

### Which languages are the pgvector alternatives written in?

C: sqlite-vec; C++: DuckDB VSS, FAISS; Go: Milvus; Rust: pgvectorscale, VectorChord, Qdrant, ChromaDB. The primary language is the one GitHub reports for each repository.

## Evidence

- [pgvector/pgvector](https://github.com/pgvector/pgvector): 23,924 stars, PostgreSQL License, C, latest release No GitHub release (licence read from [its licence file](https://github.com/pgvector/pgvector/blob/HEAD/LICENSE)) (GitHub API and release page, checked 3 Dec 2026).
- [asg017/sqlite-vec](https://github.com/asg017/sqlite-vec): 8,296 stars, Apache-2.0, C, latest release v0.1.9, 31 Mar 2026 (GitHub API and release page, checked 3 Dec 2026).
- [timescale/pgvectorscale](https://github.com/timescale/pgvectorscale): 3,173 stars, PostgreSQL, Rust, latest release 0.9.1, 4 Sep 2026 (GitHub API and release page, checked 3 Dec 2026).
- [supervc-stack/VectorChord](https://github.com/supervc-stack/VectorChord): 1,850 stars, AGPL-3.0 or Elastic License 2.0, Rust, latest release 1.1.1, 27 Feb 2026 (licence read from [its licence file](https://github.com/supervc-stack/VectorChord/blob/HEAD/LICENSE)) (GitHub API and release page, checked 3 Dec 2026).
- [duckdb/duckdb-vss](https://github.com/duckdb/duckdb-vss): 271 stars, MIT, C++, latest release No GitHub release (GitHub API and release page, checked 3 Dec 2026).
- [milvus-io/milvus](https://github.com/milvus-io/milvus): 46,804 stars, Apache-2.0, Go, latest release v3.0.7, 29 Nov 2026 (GitHub API and release page, checked 3 Dec 2026).
- [facebookresearch/faiss](https://github.com/facebookresearch/faiss): 42,027 stars, MIT, C++, latest release v1.16.0, 10 Nov 2026 (GitHub API and release page, checked 3 Dec 2026).
- [qdrant/qdrant](https://github.com/qdrant/qdrant): 35,877 stars, Apache-2.0, Rust, latest release v1.20.3, 1 Dec 2026 (GitHub API and release page, checked 3 Dec 2026).
- [chroma-core/chroma](https://github.com/chroma-core/chroma): 29,831 stars, Apache-2.0, Rust, latest release 1.5.9, 5 May 2026 (GitHub API and release page, checked 3 Dec 2026).
- [xerj-org/xerj](https://github.com/xerj-org/xerj): 23,588 stars, Apache-2.0, Rust, latest release v1.0.0-rc.105, 23 Nov 2026 (GitHub API and release page, checked 3 Dec 2026).

## Comparison table

| Tool | What it is | Runs as | Language | Latest release | Licence | Stars |
|---|---|---|---|---|---|---|
| [pgvector](https://github.com/pgvector/pgvector) | Postgres extension for vector similarity search with HNSW and IVFFlat indexes | Database extension | C | No GitHub release | PostgreSQL License | 23,924 |
| [sqlite-vec](https://github.com/asg017/sqlite-vec) | Small SQLite extension for vector search that runs anywhere SQLite runs | Database extension | C | v0.1.9, 31 Mar 2026 | Apache-2.0 | 8,296 |
| [pgvectorscale](https://github.com/timescale/pgvectorscale) | Postgres extension that complements pgvector with a StreamingDiskANN index | Database extension | Rust | 0.9.1, 4 Sep 2026 | PostgreSQL | 3,173 |
| [VectorChord](https://github.com/supervc-stack/VectorChord) | Postgres extension for scalable vector search, successor to pgvecto.rs | Database extension | Rust | 1.1.1, 27 Feb 2026 | AGPL-3.0 or Elastic License 2.0 | 1,850 |
| [DuckDB VSS](https://github.com/duckdb/duckdb-vss) | DuckDB extension that adds HNSW indexes for vector similarity search | Database extension | C++ | No GitHub release | MIT | 271 |
| [Milvus](https://github.com/milvus-io/milvus) | Cloud-native vector database built for billion-scale similarity search | Self-hosted server | Go | v3.0.7, 29 Nov 2026 | Apache-2.0 | 46,804 |
| [FAISS](https://github.com/facebookresearch/faiss) | Library for efficient similarity search and clustering of dense vectors, with GPU support | Library in your process | C++ | v1.16.0, 10 Nov 2026 | MIT | 42,027 |
| [Qdrant](https://github.com/qdrant/qdrant) | Vector database and similarity search engine written in Rust with filtering and hybrid queries | Self-hosted server | Rust | v1.20.3, 1 Dec 2026 | Apache-2.0 | 35,877 |
| [ChromaDB](https://github.com/chroma-core/chroma) | Open source embedding database with a simple Python and JavaScript API | Library in your process | Rust | 1.5.9, 5 May 2026 | Apache-2.0 | 29,831 |
| [XERJ](https://github.com/xerj-org/xerj) | One local Rust binary that indexes code, docs, logs and data, and serves cited search to agents over MCP | Command-line tool | Rust | v1.0.0-rc.105, 23 Nov 2026 | Apache-2.0 | 23,588 |
