[KongchangAI]
Product

pgvector

pgvector is an open-source vector extension plugin for PostgreSQL that enables storing, indexing, and querying high-dimensional vector data within a relational database. It supports both exact search and approximate nearest neighbor (ANN) search, provides multiple distance metrics such as Euclidean distance, cosine similarity, and inner product, and is compatible with index algorithms including IVFFlat and HNSW. pgvector is commonly used for storing and retrieving machine learning embedding vectors, allowing developers to implement semantic search and recommendation features within PostgreSQL without a dedicated vector database.

Core Facts

Timeline (last 90 days)

Oct 20

In pgvector's HNSW index, setting m to 16 and ef_construction to 64 achieves a p99 latency of 12ms under 500 concurrent inserts.

Unverified50%
Oct 20

The HNSW index locks the table during batch inserts, causing write stalls of more than 5 seconds; the solution is to write in batches with INSERT ... ON CONFLICT DO NOTHING and a 50ms debounce window.

Unverified50%
Oct 20

In pgvector's HNSW index, the parameter m is the number of neighbor edges kept per node, and ef_construction is the size of the candidate queue during construction; together they determine the recall-latency trade-off at query time.

Unverified50%
Oct 20

pgvector's default HNSW settings cause insert stalls of more than 2 seconds during batch memory writes.

Unverified50%
Oct 19

pgvector's index construction consumes considerable memory, and index maintenance cost under high-concurrency writes rises noticeably with data volume, so load testing should be done against actual data scale and concurrency patterns before production deployment.

Unverified50%
Oct 19

If the team is already familiar with PostgreSQL, the marginal cost of introducing pgvector is far lower than standing up a new dedicated vector cluster.

Unverified50%
Oct 19

The technical choices for million-scale and billion-scale vectors are completely different: pgvector is often sufficient for the former, while the latter requires careful evaluation of sharding and index rebuild strategies in dedicated engines.

Unverified50%
Oct 19

The upsert/delete operations generated by RAG Sync Monitor can be applied directly to vector databases such as Pinecone, Qdrant, Chroma, and pgvector.

Unverified50%
Oct 19

CodebaseRAG adopts a hexagonal architecture, where query use cases depend on ports, and pgvector, Qdrant, Ollama and Anthropic sit behind the ports as adapters.

Unverified50%
Oct 19

Statewave uses the Apache-2.0 license, depends on Postgres 14+, pgvector, and Python 3.11+, and provides HMAC-SHA256-signed receipts and a replay endpoint that can reconstruct the four properties of an audit trail.

Unverified50%

40 more timeline events

All Facts (20)

Verified

The pgvector extension adds vector storage and similarity search capabilities to PostgreSQL, enabling Supabase to serve simultaneously as a traditional database and a vector database.

80%
Verified

Pinecone、Chroma、Weaviate是常见的向量数据库产品

80%
Verified

Long-term memory is typically implemented with the help of vector databases (such as Chroma, Pinecone, Weaviate, Milvus, etc.) to enable semantic retrieval.

80%
Verified

典型的RAG流程包括文档切片、向量化嵌入、存入向量数据库、语义检索、上下文拼接和最终生成六个步骤

75%
Verified

pgvector is an open-source extension for PostgreSQL that natively adds vector data types and similarity search capabilities to the relational database, supporting both exact nearest-neighbor and approximate nearest-neighbor (HNSW, IVFFlat index) retrieval modes.

70%
Verified

Pinecone is a fully managed, cloud-native vector database.

70%
Verified

PostgreSQL can support vector retrieval via pgvector.

65%
Verified

向量存储常用专用向量数据库如Pinecone、Chroma、Weaviate,支持近似最近邻检索

65%
Unverified

MaxKB通常集成PostgreSQL的pgvector扩展或独立的向量数据库

75%
Unverified

For applications with vector scale below tens of millions and insensitivity to latency, pgvector's existing indexes may already be sufficient, and there is no need to introduce new dependencies.

60%
Unverified

Mainstream vector databases such as Pinecone, Weaviate, Qdrant, and pgvector generally adopt the HNSW approximate nearest neighbor indexing algorithm at their core.

60%
Unverified

In pgvector's HNSW index, setting m to 16 and ef_construction to 64 achieves a p99 latency of 12ms under 500 concurrent inserts.

50%
Unverified

pgvector's default HNSW settings cause insert stalls of more than 2 seconds during batch memory writes.

50%
Unverified

The HNSW index locks the table during batch inserts, causing write stalls of more than 5 seconds; the solution is to write in batches with INSERT ... ON CONFLICT DO NOTHING and a 50ms debounce window.

50%
Unverified

In pgvector's HNSW index, the parameter m is the number of neighbor edges kept per node, and ef_construction is the size of the candidate queue during construction; together they determine the recall-latency trade-off at query time.

50%
Unverified

pgvector's index construction consumes considerable memory, and index maintenance cost under high-concurrency writes rises noticeably with data volume, so load testing should be done against actual data scale and concurrency patterns before production deployment.

50%
Unverified

The technical choices for million-scale and billion-scale vectors are completely different: pgvector is often sufficient for the former, while the latter requires careful evaluation of sharding and index rebuild strategies in dedicated engines.

50%
Unverified

If the team is already familiar with PostgreSQL, the marginal cost of introducing pgvector is far lower than standing up a new dedicated vector cluster.

50%
Unverified

The upsert/delete operations generated by RAG Sync Monitor can be applied directly to vector databases such as Pinecone, Qdrant, Chroma, and pgvector.

50%
Unverified

CodebaseRAG adopts a hexagonal architecture, where query use cases depend on ports, and pgvector, Qdrant, Ollama and Anthropic sit behind the ports as adapters.

50%

Source Articles