Lattice
Skip to content

pgvector

github.comdatabaseself-hosted

pgvector is a self-hosted database in the Retrieval & Vector Stores layer of the AI stack. Vector similarity search as a Postgres extension.

By Lattice editorial · Facts verified · method

licence
PostgreSQL
language
SQL
cost
free

Use pgvector when

Under a few million vectors, or when retrieval joins rows you already have.

Skip pgvector when

Vector search has become the workload rather than a side feature.

Holds the embeddings, returns the few that matter. — that is what this layer of the stack is answerable for. See the full Retrieval & Vector Stores section for the rest of the options.

Visit github.comCompare with another tool
Badge this entry
Lattice badge: pgvector verified 2026-09
[![pgvector on Lattice: verified 2026-09](https://lattice.kunjshah.in/retrieval-vector-stores/pgvector/badge.svg)](https://lattice.kunjshah.in/retrieval-vector-stores/pgvector)

Quick answers

Is pgvector open source?
Yes. pgvector is open source under the PostgreSQL licence. It is free to use.
What are the alternatives to pgvector?
The closest alternatives to pgvector are Qdrant, Milvus and Weaviate.

Compared in

Reading on retrieval

Alternatives to pgvector

compare 3 →

Listed as an alternative to

  • Qdrant
  • Chroma
  • Milvus

Also in retrieval

  • Qdrant
  • Weaviate
  • Chroma
  • Pinecone
  • Milvus
  • Turbopuffer
  • Unstructured
  • Elasticsearch
  • Vespa
  • Rerankers
  • Jina AI
  • LangChain Text Splitters
  • Docling
  • LlamaParse