#55th of 8 in Vector databases

pgvector

PostgreSQL extension for vector similarity search with HNSW and IVFFlat

Stars
23.3k
License
custom license
Last commit
Oct 2026

Overview

pgvector is a PostgreSQL extension (Postgres 13+) that adds vector, halfvec, bit and sparsevec column types with L2, inner product, cosine, L1, Hamming and Jaccard distance operators, exact search by default and HNSW or IVFFlat indexes for approximate search. Vectors sit beside ordinary rows with ACID, joins and backups, and Postgres full-text search can be combined for hybrid retrieval. It installs via make, Docker or OS packages.

Who it is for: teams already on Postgres who want vectors without a new database

Strengths

  • Vectors live next to relational data with ACID, joins and point-in-time recovery
  • HNSW and IVFFlat indexes with six distance operators
  • Half-precision, binary and sparse vector types plus binary quantization
  • Installs via make, Docker, Homebrew, APT, Yum; preinstalled on many hosted Postgres

Weaknesses

  • vector type capped at 2,000 dimensions (halfvec 4,000)
  • Approximate indexes filter after scanning; filtered recall needs iterative scan tuning
  • HNSW builds slow down sharply once the graph exceeds maintenance_work_mem
  • No server of its own; capacity depends on your Postgres tuning

What it needs

  • no GPU
  • Docker
  • Needs PostgreSQL 13+
  • Models: any embedding model; stores precomputed vectors

Also in Vector databases

See all 8
Also in Vector databases
RankProjectScore
1MilvusDistributed vector database with dense, sparse and hybrid search at scale Live demo ↗ (opens in a new tab)46.3k stars, Apache-2.081 out of 100
2MeilisearchRust search engine API with full-text, vector and hybrid search Live demo ↗ (opens in a new tab)59.5k stars, custom license69 out of 100
3ChromaEmbedding database with a four-function API for Python and JavaScript29.5k stars, Apache-2.064 out of 100
#4QdrantRust vector database with payload filtering, REST and gRPC Live demo ↗ (opens in a new tab)35k stars, Apache-2.063 out of 100
#6WeaviateGo vector database with built-in vectorizers, hybrid search and RAG Live demo ↗ (opens in a new tab)16.9k stars, custom license57 out of 100