pgvector logo

pgvector

pgvector/pgvector

Open-source vector similarity search for Postgres

GraphCanon updated Sep 20, 2026 · GitHub synced Sep 20, 2026

122views this month

23k stars1.3k forksLast push Sep 10, 2026 C Other

Decision brief

pgvector is an extension for PostgreSQL that enables efficient vector similarity search using various distance metrics, including L2, inner product, cosine distance, and L1 distance.

Good fit when

  • When you need to perform vector similarity searches within a PostgreSQL database and require support for multiple distance metrics.
  • If your application is already using PostgreSQL and you want to extend its capabilities to handle vector data efficiently without migrating to a different database system.

Avoid when

  • If your application does not require the full feature set of PostgreSQL and you are looking for a lightweight solution specifically designed for vector similarity searches.
  • When you need real-time, low-latency vector similarity searches that might be better served by specialized vector databases or in-memory solutions.

Observed Sep 18, 2026 · Source: enrich:decision_facts

Verify the decision

Adoption

Package downloads where a registry match exists. GitHub stars (23,049) are secondary evidence.

Docker Hub pulls (30d)
191,065,051·Docker Hub API·Sep 18, 2026

Maintenance and security

Full trust report
Maintenance
Active (7d since push)
As of Sep 18, 2026
Provenance
Not a fork · Organization account
As of Sep 18, 2026
Security (OSV)
No lockfile
As of Sep 18, 2026

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

git clone https://github.com/pgvector/pgvector

How it fits your stack(27)

Typed graph edges - alternatives, integrations, successors, and dependencies. Ranked by relationship type, not raw GitHub stars.

Alternative

Relationship graph

Optional deeper exploration of typed edges and category neighbours.

Similar tools

Same-category neighbours not already linked as typed edges.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

pgvector is an extension for PostgreSQL that enables efficient vector similarity search using various distance metrics including L2, inner product, cosine distance, and L1 distance.

Capability facts

Deploy
Self-host

Source: dockerfile:Dockerfile · Sep 18, 2026

Docker
Dockerfile present

Source: dockerfile:Dockerfile · Sep 18, 2026

Languages
c

Source: github.language · Sep 18, 2026

Categories

Graph entities

Tags

README

Getting Started Enable the extension (do this once in each database where you want to use it) Create a vector column with 3 dimensions Insert vectors Get the nearest neighbors by L2 distance Also supports inner product ( ), cosine distance ( ), and L1 distance ( ) Note: returns t...

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.