pgvector is a PostgreSQL extension that adds vector similarity search capabilities to Postgres databases. It allows developers to store and query vector embeddings directly in PostgreSQL, making it ideal for AI and machine learning applications that need semantic search, recommendation systems, or similarity matching. The extension supports multiple distance functions like L2, cosine, and inner product, and offers indexing options including HNSW and IVFFlat for fast approximate nearest neighbor search. It integrates seamlessly with existing Postgres infrastructure and can be used from any programming language with a Postgres client.
Added on
Alternatives
Chroma
Open-source vector database for storing and retrieving embeddings in AI applications
Milvus
Open-source vector database for AI applications with high-speed similarity search and scalability to billions of vectors.
Pinecone
A fully managed vector database for building AI applications with semantic search and long-term memory capabilities.
Qdrant
Open-source vector database for fast similarity search and AI applications
Weaviate
Vector database for AI-powered search, RAG, and semantic applications with built-in embedding and scaling features.