pgvectorscale complements pgvector, an open-source PostgreSQL extension for vector embeddings, by introducing StreamingDiskANN, a new index type inspired by the DiskANN algorithm. Developed in Rust using the PGRX framework, pgvectorscale accelerates approximate nearest neighbor queries with significantly reduced latency and increased throughput compared to existing solutions. It enhances pgvector's capabilities, particularly for large-scale deployments, offering a powerful alternative for developers seeking improved performance.
pgvectorscale features a novel StreamingDiskANN index, offering markedly improved performance compared to standard indexes. Statistical Binary Quantization further optimizes storage efficiency. Label-based filtered vector search allows combining similarity search with metadata filtering for precise results. Built in Rust, it provides a new development avenue for PostgreSQL vector support. It offers a cost-effective self-hosted solution compared to cloud-based services like Pinecone.
- Performance: 28x lower p95 latency and 16x higher query throughput compared to Pinecone.
- Scalability: Designed for large-scale vector datasets, up to 50 million embeddings.
- Filtering: Supports label-based filtered vector search for precise and efficient results.
- Technology: Developed in Rust using the PGRX framework, offering a new development path.
- Integration: Compatible with pgvector, allowing seamless integration within existing PostgreSQL workflows.
- Cost-effective: Enables self-hosted, performance-optimized vector search.
- Developer Experience: Provides a new contribution avenue and flexible configuration options.
pgvectorscale is an active development project with ongoing maintenance and frequent updates. Recent commits indicate consistent development activity. Documentation is comprehensive, covering installation, usage, and advanced features. The project benefits from a growing community, fostering collaboration and support for broader adoption.
pgvectorscale benefits application developers and DBAs seeking high-performance, scalable vector search within PostgreSQL. It addresses use cases requiring fast approximate nearest neighbor queries, particularly with large datasets and the need for cost-effective, self-hosted solutions. Users gain significant performance advantages and enhanced functionality over standard pgvector, enabling more efficient AI and machine learning applications.
