datastax/jvector
JVector: the most advanced embedded vector search engine
What it solves
JVector solves the problem of searching through massive datasets of high-dimensional vectors efficiently. As datasets grow, exact searches become too slow (the "curse of dimensionality"). JVector provides an approximate nearest neighbor (ANN) search that delivers fast, logarithmic-time results while allowing indexes to be built and updated incrementally, which is more flexible than traditional partitioning methods.
How it works
JVector builds graph-based indexes that combine an HNSW-style hierarchy for fast navigation with Vamana-style construction. To handle datasets that exceed available memory, it uses vector quantization to compress vectors significantly. Searches are performed in two passes: the first pass uses compact, approximate codes to quickly traverse the graph, and the second pass reranks the best candidates using more accurate, full-precision representations. It supports modern JVM features, including native SIMD acceleration via the Panama Vector API and native libraries, to maximize performance.
Who it’s for
JVector is designed for Java developers and data engineers building high-performance search applications, recommendation systems, or database engines that require fast, scalable vector similarity search. It is particularly useful for those managing large-scale vector data that must reside on disk rather than entirely in memory.
Highlights
- Incremental Building: Supports concurrent and incremental index updates, making it suitable for dynamic datasets.
- Advanced Quantization: Includes stable Product Quantization (PQ) and the experimental Asymmetric Scalar Hashing (ASH) for higher accuracy and faster build times.
- Memory Efficiency: Uses "fused" indexes that store neighbor codes directly on disk, allowing for larger-than-memory search capabilities.
- Hardware Acceleration: Leverages native SIMD kernels (via Google Highway) to optimize performance across different processor architectures.
- Two-Pass Search: Combines fast approximate traversal with high-accuracy reranking to balance speed and precision.
Related
- Project
- Project
- Project
- Project
- Dispatch