Enterprise DNA
O Open Source Observability medium

pgvector

by Community

Open-source vector similarity search for Postgres

P

OSS

pgvector

Added 1 June 2026

#approximate-nearest-neighbor-search #nearest-neighbor-search

Overview

pgvector is an open-source PostgreSQL extension that adds vector data types and similarity search operators to Postgres. It enables approximate nearest neighbor search directly within your database using L2, cosine, and inner product distance metrics. Built in C for performance, it integrates with existing Postgres workflows without requiring a separate vector database.

Best for

Best for
Teams already using Postgres who want vector search without adding infrastructure

Use cases

  • Semantic search over embeddings stored in Postgres
  • Recommendation systems using vector similarity
  • RAG pipelines that query embeddings alongside relational data

Notes

pgvector is an open-source PostgreSQL extension that adds vector data types and similarity search operators to Postgres. It enables approximate nearest neighbor search directly within your database using L2, cosine, and inner product distance metrics. Built in C for performance, it integrates with existing Postgres workflows without requiring a separate vector database.

21,551 stars on GitHub. Last updated 2026-05-30.

Use cases

  • Semantic search over embeddings stored in Postgres
  • Recommendation systems using vector similarity
  • RAG pipelines that query embeddings alongside relational data

Pros

  • Runs inside Postgres, eliminating separate vector DB infrastructure
  • Supports multiple distance metrics and indexing strategies (HNSW, IVFFlat)
  • Active community with 21k+ stars and regular maintenance

Cons

  • Performance scales differently than dedicated vector databases at very large scales
  • Requires Postgres expertise to optimize indexes and queries
  • Limited to Postgres ecosystem, not portable to other databases

Indexed from awesome-llmops and enriched against its public facts.

Pros

  • Runs inside Postgres, eliminating separate vector DB infrastructure
  • Supports multiple distance metrics and indexing strategies (HNSW, IVFFlat)
  • Active community with 21k+ stars and regular maintenance

Cons

  • Performance scales differently than dedicated vector databases at very large scales
  • Requires Postgres expertise to optimize indexes and queries
  • Limited to Postgres ecosystem, not portable to other databases

Pairs with

Other entries in the index that connect to this one. Click through to see the chain.

Alternatives10entries
O OSS Obs medium

AquilaDB

Community

An easy to use Neural Search Engine. Index latent vectors along with JSON metadata and do efficient k-NN search.

★ 380 updated 2y ago
O OSS Obs medium

Chroma

Community

Search infrastructure for AI

★ 28,173 updated 1mo ago
O OSS Obs medium

deeplake

Community

Deeplake is AI Data Runtime for Agents. It provides serverless postgres with a multimodal datalake, enabling scalable retrieval and training.

★ 9,150 updated 1mo ago
O OSS Obs medium

Marqo

Community

Ecommerce Search and Discovery - marqo.ai

★ 5,022 updated 3mo ago
O OSS Obs medium

Milvus

Community

Milvus is a high-performance, cloud-native vector database built for scalable vector ANN search

★ 44,579 updated 1mo ago
O OSS Obs medium

Pinecone

Community

Search through billions of items for similar matches to any object, in milliseconds. It’s the next generation of search, an API call away.

O OSS Obs medium

Qdrant

Community

Qdrant - High-performance, massive-scale Vector Database and Vector Search Engine for the next generation of AI. Also available in the cloud https://cloud.qdrant.io/

★ 31,735 updated 1mo ago
O OSS Obs medium

Vearch

Community

Distributed vector search for AI-native applications

★ 2,310 updated 1mo ago
O OSS Obs medium

VectorChord

Community

Scalable, fast, and disk-friendly vector search in Postgres, the successor of pgvecto.rs.

★ 1,689 updated 2mo ago
O OSS Obs medium

Weaviate

Community

Weaviate is an open-source vector database that stores both objects and vectors, allowing for the combination of vector search with structured filtering with the fault tolerance an

★ 16,258 updated 1mo ago
Free 27-page guide

Get the free Developer’s Field Guide

A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.

Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.

No spam. Unsubscribe any time.