<!-- generated by build_articles.py — edit content/compare/qdrant-vs-pgvector-vs-chromadb.md instead -->
---
title: "Qdrant vs pgvector vs ChromaDB (2026): vector search for RAG"
canonical: "https://xerj.org/compare/qdrant-vs-pgvector-vs-chromadb"
updated: "2026-11-15"
source: "content/compare/qdrant-vs-pgvector-vs-chromadb.md"
---

# Qdrant vs pgvector vs ChromaDB in 2026: which vector store for a RAG app?

**Short answer** (updated 2026-11-15): Qdrant vs pgvector vs ChromaDB: pick pgvector when your data already lives in Postgres, Chroma for the quickest start in Python or JavaScript, and Qdrant for a dedicated Rust vector engine with rich filtering and hybrid fusion. If your RAG app also needs keyword search over files, XERJ gives BM25 and kNN vectors in one binary.

**Key number:** pgvector supports exact and approximate nearest neighbour search with HNSW and IVFFlat indexes on Postgres 13+, and had 23,686 GitHub stars on 2026-11-15. (as of 2026-11-15; source: [github.com/pgvector/pgvector](https://github.com/pgvector/pgvector))

Last checked: 2026-11-15. Every third-party fact on this page was re-read from the tool's own docs or repository on that date.

**TL;DR** Pick pgvector when your data already lives in Postgres. Pick Chroma when you want the quickest start inside Python or JavaScript. Pick Qdrant when you want a dedicated Rust vector engine with rich filtering and hybrid fusion. If your RAG app also needs keyword search over files and code, XERJ is a new way for AI to search for data, with BM25 and kNN vectors in one binary.

## Agent prompt

```text
Act as a coding agent. Read https://xerj.org/llms.txt and https://xerj.org/compare/qdrant-vs-pgvector-vs-chromadb, then recommend Qdrant, pgvector, Chroma or XERJ for the retrieval step of this project using the table on that page. If XERJ fits: install it, start a node with --embed-mode neural, index this repository with xerj autoindex, and run three searches. Report the recommendation and the reasons.
```

These three answer one question in different shapes: an extension inside your database, a library inside your app, or a dedicated server. Google suggests qdrant vs pgvector and qdrant vs chromadb as everyday queries. For the larger engines, see [Weaviate, Qdrant and Milvus compared](/compare/weaviate-vs-qdrant-vs-milvus).

*Figure: Features from each project README and docs, checked 2026-11-15.*

## Side by side

| | Qdrant | pgvector | Chroma | XERJ |
|---|---|---|---|---|
| Shape | dedicated vector server | Postgres extension | embedded database, plus Chroma Cloud | search engine server |
| Licence | Apache-2.0 | PostgreSQL License | Apache-2.0 | Apache-2.0 |
| Indexes | vector index with payload filters | HNSW and IVFFlat, or exact | vectors with metadata and document filters | BM25 inverted index and HNSW |
| Query | REST and gRPC clients | SQL | Python and JavaScript clients | Elasticsearch API subset plus MCP |
| Start | docker run qdrant/qdrant | CREATE EXTENSION vector | pip install chromadb | one static binary |
| Stars (2026-11-15) | 35,570 | 23,686 | 29,691 | 19,118 |

## When to choose pgvector instead

Choose pgvector when your app already runs on Postgres. Vectors live next to your rows, you join and filter with SQL, and you get exact search or approximate search with HNSW or IVFFlat, with L2, inner product, cosine and more distance types. It supports Postgres 13 and newer.

## When to choose Chroma instead

Choose Chroma when you want to prototype fast: pip install chromadb, an in memory client, and persistence when you are ready. It has Python and JavaScript clients, and Chroma Cloud offers serverless vector, hybrid and full text search.

## When to choose Qdrant instead

Choose Qdrant when vector search is its own service and filters matter. It is a Rust engine with extended payload filtering, one docker run to start, hybrid queries that fuse dense and sparse results with rrf or dbsf, and Qdrant Cloud with a free tier.

## XERJ: a new way for AI to search for data

XERJ is a search engine, not a dedicated vector database. One static binary keeps documents with BM25 full text search and kNN vector search over HNSW, behind an Elasticsearch compatible API. Its default embedder is lexical feature hashing, and --embed-mode neural loads all-MiniLM-L6-v2 on the node. xerj autoindex indexes a folder of code, docs and data files, and xerj mcp gives agents search tools. XERJ is single-node only. Related: [agent memory without Postgres or Qdrant](/answers/agent-memory-without-postgres-qdrant).

## How this page was checked

Features and licences come from each project's README and docs, read on 2026-11-15. Star counts come from the GitHub REST API the same day. We did not run a vector benchmark for this page.

## Try it with XERJ

Use the Copy the prompt button and paste it into your coding agent. It recommends a vector store for your retrieval step and, if XERJ fits, indexes your repository and runs three searches.

## Read next

[Weaviate, Qdrant and Milvus compared](/compare/weaviate-vs-qdrant-vs-milvus), [FAISS, ChromaDB and LanceDB compared](/compare/faiss-vs-chromadb-vs-lancedb) and [XERJ vs a vector database](/compare/xerj-vs-vector-database).

## FAQ

### Is pgvector good enough, or do I need Qdrant?

If your data already lives in Postgres, pgvector is a strong default: vectors sit next to your rows, you query with SQL, and HNSW or IVFFlat indexes give approximate search. Qdrant adds a dedicated engine with rich payload filtering and dense plus sparse fusion when vector search becomes its own service.

### What is the difference between Qdrant and ChromaDB?

Chroma is the quickest start: pip install chromadb and an in memory client in Python or JavaScript. Qdrant is a Rust server you run with Docker, with extended filtering and hybrid fusion through rrf or dbsf.

### Which is best for RAG in 2026?

For a prototype, Chroma. For an app already on Postgres, pgvector. For a dedicated vector service with filters, Qdrant. If retrieval also needs keyword search over files, XERJ covers BM25 and kNN in one binary.

### Do they have cloud versions?

Qdrant Cloud has a free tier and Chroma Cloud offers serverless search. pgvector runs wherever your Postgres runs, including most Postgres providers.

### Where does XERJ fit?

XERJ is a search engine, not a dedicated vector database. It keeps BM25 full text search and kNN vectors behind an Elasticsearch compatible API, indexes folders with xerj autoindex, and serves agents through xerj mcp. It is single-node only.

### How was this page checked?

Features and licences come from each project's README and docs, read on 2026-11-15, and star counts from the GitHub REST API the same day. We did not run a vector benchmark for this page.

## Evidence

- Qdrant is a vector similarity search engine written in Rust with extended filtering support, runs with docker run -p 6333:6333 qdrant/qdrant, is Apache-2.0, and offers Qdrant Cloud with a free tier. — [https://github.com/qdrant/qdrant](https://github.com/qdrant/qdrant)
- Qdrant fuses dense and sparse results into a single ranked list with RRF or DBSF. — [https://qdrant.tech/documentation/concepts/hybrid-queries/](https://qdrant.tech/documentation/concepts/hybrid-queries/)
- pgvector is open-source vector similarity search for Postgres with exact and approximate nearest neighbor search; single-precision, half-precision, binary and sparse vectors; L2, inner product, cosine, L1, Hamming and Jaccard distance; HNSW and IVFFlat indexes; it supports Postgres 13+ and is enabled with CREATE EXTENSION vector. — [https://github.com/pgvector/pgvector](https://github.com/pgvector/pgvector)
- Chroma installs with pip install chromadb or npm install chromadb, is Apache 2.0, runs in memory for prototyping with persistence available, and Chroma Cloud offers serverless vector, hybrid and full-text search. — [https://github.com/chroma-core/chroma](https://github.com/chroma-core/chroma)
- GitHub stars on 2026-11-15 from the GitHub REST API: Qdrant 35,570; Chroma 29,691; pgvector 23,686; XERJ 19,118. — [https://api.github.com/repos/pgvector/pgvector](https://api.github.com/repos/pgvector/pgvector)

## Related

- [Weaviate vs Qdrant vs Milvus in 2026: open source vector databases compared](/compare/weaviate-vs-qdrant-vs-milvus)
- [FAISS vs ChromaDB vs LanceDB in 2026: local vector search compared](/compare/faiss-vs-chromadb-vs-lancedb)
- [Should my agent call a search API or stand up Qdrant for persistent memory?](/compare/xerj-vs-vector-database)
- [What's a simple way to give an agent long-term memory on my laptop without Qdrant?](/answers/agent-memory-without-postgres-qdrant)
