#1212th of 33 in Vector databases
pgvector
Postgres extension for exact and approximate vector similarity search
Run it:RackNerd ↗ (opens in a new tab)RepoCloud ↗ (opens in a new tab)Affiliate links, no effect on a rank.
- Stars
- 23.8k
- License
- custom license
- Last commit
- Nov 2026
- Language
- C
20,334 on 28 Mar 202623,830 on 21 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
pgvector adds vector, halfvec, bit and sparsevec column types to Postgres 13+, with L2, inner product, cosine, L1, Hamming and Jaccard distance operators. It supports exact search by default and approximate search through HNSW or IVFFlat indexes, so embeddings sit next to relational data and can be queried with JOINs and transactions.
Who it is for: Teams already on Postgres adding embedding search to existing data
Strengths
- Runs inside Postgres, so ACID, JOINs and point-in-time recovery apply to vectors
- Offers both HNSW and IVFFlat indexes, plus half-precision, binary and sparse vector types
- Iterative index scans (0.8.0+) address under-filled results when filtering with WHERE
- Available via many installers and hosted Postgres providers; works with any Postgres client language
Weaknesses
- HNSW and IVFFlat indexes on vector are limited to 2,000 dimensions
- Approximate-index filtering is applied after the scan, which can reduce recall without tuning
- HNSW builds are slow and memory-hungry unless the graph fits in maintenance_work_mem
- Scaling beyond one Postgres node is not covered; README points to quantization instead
What it needs
- no GPU
- Docker
- Needs PostgreSQL 13+
Also in Vector databases
See all 33| Rank | Project | Score |
|---|---|---|
| #10 | lance-format/lanceColumnar table format for multimodal AI data with vector and full-text search | 78 out of 100 |
| #11 | infiniflow/infinityDatabase for hybrid dense, sparse, tensor and full-text search | 76 out of 100 |
| #13 | ChromaEmbedding database with a four-function API for Python and JavaScript | 73 out of 100 |
| #14 | VespaServing engine for vectors, tensors, text and ML ranking at scale | 72 out of 100 |
| #15 | seekdbMySQL-compatible database with hybrid vector and full-text search and forkable databases | 71 out of 100 |