timescale/pgvectorscale
Postgres extension for vector search (DiskANN), complements pgvector for performance and scale. Postgres OSS licensed.
What it solves
pgvectorscale enhances PostgreSQL's vector search capabilities by providing higher performance and more cost-efficient storage for AI applications. It addresses the limitations of standard vector indexing by introducing advanced algorithms that reduce memory usage and latency while maintaining high recall, making it easier to scale large-scale vector workloads within a traditional database environment.
How it works
The project acts as an extension for PostgreSQL that complements the existing pgvector extension. It introduces the StreamingDiskANN index, which uses partitioning and compression (Statistical Binary Quantization) rather than traditional graph-based indexing. It also supports label-based filtering, allowing developers to combine vector similarity searches with metadata filtering at the index level for significantly faster results.
Who it’s for
This tool is designed for application developers and database administrators who are already using PostgreSQL for AI applications and need to scale their vector search performance. It is particularly useful for those managing large datasets (millions of embeddings) who want to optimize for lower query latency and reduced infrastructure costs.
Highlights
- StreamingDiskANN Index: A high-performance index type inspired by Microsoft's DiskANN research, optimized for speed and memory efficiency.
- Statistical Binary Quantization: A compression method that reduces the storage footprint of vector data.
- Label-based Filtering: Enables efficient filtering of vector results by specific categories or labels directly within the index.
- Performance Gains: Benchmarks show significantly lower latency and higher throughput compared to alternative storage-optimized vector indexes.
- Rust-based: Developed in Rust using the PGRX framework, providing a modern and performant codebase for the PostgreSQL ecosystem.
Related
- Project
- Project
- Project
- Project
- Project