Technology · Infrastructure → Vector DBs · Open Source · wiki:deep

pgvector

pgvector adds vector similarity types and indexes to PostgreSQL — embeddings next to relational truth in one transactional store. Strategically aligned with ledger-in-Postgres architectures: cases, events, and embeddings until scale demands a dedicated vector service. Open-source vector similarity search for Postgres - exact and approximate nearest neighbor search - single-precision, half-precision, binary, and sparse vectors - L2 distance, inner product, cosine distance, L1 distance, Hamming distance, and Jaccard distance - any language with a Postgres client Plus ACID compliance, point-in-time recovery, JOINs, and all of the other great features of Postgres sh cd /tmp git clone --branch v0.8.6 https://github.com/pgvector/pgvector.git cd pgvector make make install may need sudo You can also install it with Docker, Homebrew, PGXN, APT, Yum, pkg, APK, or conda-forge,.

Why it matters here

In this catalog it is the Vector DBs option when you need to store and search embeddings for retrieval. Keep pgvector on the observe/propose side of the loop: useful signals and drafts, with human or policy authority still required before anything irreversible runs.

How it works

Documents/embeddings are upserted with metadata; queries return nearest neighbors (and filters); apps use hits for RAG or memory recall.

  1. Create a collection/index with the embedding dimension you will use.
  2. Upsert a labeled batch of points with metadata filters.
  3. Query nearest neighbors and verify filters exclude noise.
  4. Point the RAG/agent host at this collection as its retrieval backend.

Related: llamaindex · apache-age · topics/04-data

Flow

When to reach for it

  • Use when: pgvector adds vector similarity types and indexes to PostgreSQL — embeddings next to relational truth in one transactional store matches the bottleneck and you specifically need to store and search embeddings for retrieval.
  • Skip when: another pack already covers the need with less ops surface, or pgvector would become a second place people retype truth.
  • Prefer instead: compare LlamaIndex, Apache AGE before locking the cell.

Limits

  • Ops: confirm license, hosting, and release cadence for pgvector (pgvector/pgvector) before relying on it in a live corridor.
  • Integration: bad credentials, scopes, or schema drift produce empty retrievals or runaway tool/model spend without an obvious UI alarm.
  • Scope: Vector DBs components support agents; they are not the company ledger or the approval authority.

What we checked

Claims below are backed by science sources on disk.

Primary / product role

pgvector/pgvector · MODERATE

“Open-source vector similarity search for Postgres”

Docs or contrast

ANN library contrast · MODERATE

“Faiss is a library for efficient similarity search and clustering of dense vectors.”

Additional source

Dedicated vector DB contrast · MODERATE

“Qdrant (read: quadrant) is a vector similarity search engine and vector database.”
Research inventory

9 tags · 45 out · 47 in · 3 artifacts · 0 gaps · 16 corpus docs

Catalog tags

landscape.layer
Infrastructure
landscape.subcategory
Vector DBs
license_tag
Open Source
maps.dm
present
maps.features
5
one_liner
Infrastructure
review.depth
science
slug
pgvector
title
pgvector

Artifacts

  • dm_map · present · technologies/pgvector/document-management.md
  • features_map · present · technologies/pgvector/features.md
  • readme · present · technologies/pgvector/README.md

Out · alternative_to

Out · dm_axis

Out · maps_to

In · alternative_to

In · dm_axis

In · in_stack

In · maps_to

Corpus tags

category
Infrastructure → Vector DBs
dedication
open-source
feature
citations
knowledge-grounding-rag
memory-state-persistence
r2-31-memory-architecture
wt-data-context
kind
map_edge
tech_features
tech_quote
tech_readme
needs_deepen
false
quality
ok
slug
pgvector
source_id
faiss-contrast
pgvector-github
qdrant-contrast
technology
pgvector

Corpus documents (16)

map_edge · 5

  • pgvector → citations
  • pgvector → knowledge-grounding-rag
  • pgvector → memory-state-persistence
  • pgvector → r2-31-memory-architecture
  • pgvector → wt-data-context

tech_features · 1

  • pgvector · features

tech_quote · 9

  • pgvector · faiss-contrast
  • pgvector · faiss-contrast
  • pgvector · faiss-contrast
  • pgvector · pgvector-github
  • pgvector · pgvector-github
  • pgvector · pgvector-github
  • pgvector · qdrant-contrast
  • pgvector · qdrant-contrast
  • … +1 more

tech_readme · 1

  • pgvector