pgvector
The de facto open-source PostgreSQL extension for vector similarity search. Adds a `vector` data type plus indexed nearest-neighbor operators (L2, cosine, inner product) directly inside PostgreSQL, so vector workloads share transactions, joins, and ACID guarantees with the rest of the relational schema. Supports both **HNSW** (in-memory, low-latency) and **IVFFlat** (memory-conservative, larger scale) indexes. v0.8.x stabilized the operator surface and added significant index-build improvements; community usage spans most production RAG stacks built on PostgreSQL.
Definition
The de facto open-source PostgreSQL extension for vector similarity search. Adds a vector data type plus indexed nearest-neighbor operators (L2, cosine, inner product) directly inside PostgreSQL, so vector workloads share transactions, joins, and ACID guarantees with the rest of the relational schema. Supports both HNSW (in-memory, low-latency) and IVFFlat (memory-conservative, larger scale) indexes. v0.8.x stabilized the operator surface and added significant index-build improvements; community usage spans most production RAG stacks built on PostgreSQL.
Most RAG pipelines start with PostgreSQL already in the stack for application data. Adding a separate vector database (Pinecone, Qdrant, Milvus) creates a sync problem and an operational footprint engineers don't want unless they have to. pgvector lets a vector index live where the document text and metadata already live, eliminating the cross-system embedding-drift problem until scale forces the migration to specialized stores.
Embedding storage for RAG pipelines on PostgreSQL-native applications, hybrid keyword + vector queries via SQL JOIN, vector search co-located with row-level access controls, prototype-to-production vector workloads where the operational floor matters more than peak throughput.
Connections8
Outbound6
scoped_to1alternative_to1solves1Inbound2
alternative_to2