Voyager is a library for performing fast approximate nearest-neighbor searches on an in-memory collection of vectors.
Voyager features bindings to both Python and Java, with feature parity and index compatibility between both languages. It uses the HNSW algorithm, based on the open-source hnswlib
package, with numerous features added for convenience and speed. Voyager is used extensively in production at Spotify, and is queried hundreds of millions of times per day to power numerous user-facing features.
Think of Voyager like Sparkey, but for vector/embedding data; or like Annoy, but with much higher recall. It got its name because it searches through (embedding) space(s), much like the Voyager interstellar probes launched by NASA in 1977.
pip install voyager
Add the following artifact to your pom.xml
:
<dependency>
<groupId>com.spotify</groupId>
<artifactId>voyager</artifactId>
<version>2.1.0</version>
</dependency>
You can find the latest version on Voyager's Releases page.
Add the following artifact to your build.sbt
:
"com.spotify" % "voyager" % "2.1.0"
You can find the latest version on Voyager's Releases page.
OS | Language | Version | x86_64 (Intel) | arm64 (ARM) |
---|---|---|---|---|
Linux | Python | 3.7 | β | β |
Linux | Python | 3.8 | β | β |
Linux | Python | 3.9 | β | β |
Linux | Python | 3.10 | β | β |
Linux | Python | 3.11 | β | β |
Linux | Python | 3.12 | β | β |
Linux | Java | 8-16+ | β | β |
macOS | Python | 3.7 | β | β |
macOS | Python | 3.8 | β | β |
macOS | Python | 3.9 | β | β |
macOS | Python | 3.10 | β | β |
macOS | Python | 3.11 | β | β |
macOS | Python | 3.12 | β | β |
macOS | Java | 8-16+ | β | β |
Windows | Python | 3.7 | β | β |
Windows | Python | 3.8 | β | β |
Windows | Python | 3.9 | β | β |
Windows | Python | 3.10 | β | β |
Windows | Python | 3.11 | β | β |
Windows | Python | 3.12 | β | β |
Windows | Java | 8-16+ | β | β |
Contributions to voyager
are welcomed!
See CONTRIBUTING.md for details.
Voyager is copyright 2022-2024 Spotify AB.
Voyager is licensed under the Apache 2 License.