spotify/voyager
🛰️ An approximate nearest-neighbor search library for Python and Java with a focus on ease of use, simplicity, and deployability.
What it solves
Voyager provides a way to perform fast, approximate nearest-neighbor searches on large collections of vectors stored in memory. It is designed to handle high-performance search tasks, such as those required for user-facing features that need to query embedding data millions of times per day.
How it works
It uses the HNSW (Hierarchical Navigable Small World) algorithm, which is a popular method for efficient similarity searching. Voyager builds upon the open-source hnswlib package, adding various improvements for speed and convenience. It maintains feature parity and index compatibility between its Python and Java bindings, allowing you to use the same data structures across different environments.
Who it’s for
It is intended for developers and data engineers working with vector or embedding data who need a high-performance, in-memory search solution. It is particularly well-suited for production environments that require high recall and reliability, as demonstrated by its extensive use at Spotify.
Highlights
- High-performance approximate nearest-neighbor search for in-memory vectors.
- Built on the robust HNSW algorithm with added optimizations.
- Full feature parity between Python and Java implementations.
- Cross-platform support for Linux, macOS, and Windows.
- Proven in production at scale, handling hundreds of millions of queries daily.
Related
- Project
- Project
- Project
- Project
- Project