← Open Source
spotify

voyager

πŸ›°οΈ An approximate nearest-neighbor search library for Python and Java with a focus on ease of use, simplicity, and deployability.

InfrastructureIndex & SearchC++
Open on GitHub
Momentum
+0stars in 24 hours0.0%
1.60k
Stars
89
Forks
+1
This week
8
Contributors
Created 2023-04-13 Β· Updated 2026-10-16 Β· #9670 today
Top developers
psobotdylanrb123stephen29xie
README

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.

Installation

Python

pip install voyager

Java

Add the following artifact to your pom.xml:


  com.spotify
  voyager
  2.2.2

You can find the latest version on Voyager's Releases page.

Scala

Add the following artifact to your build.sbt:

"com.spotify" % "voyager" % "2.2.2"

You can find the latest version on Voyager's Releases page.

Compatibility

OS Language Version x86_64 (Intel) arm64 (ARM)
Linux Python 3.9 βœ… βœ…
Linux Python 3.10 βœ… βœ…
Linux Python 3.11 βœ… βœ…
Linux Python 3.12 βœ… βœ…
Linux Python 3.13 βœ… βœ…
Linux Java 8-16+ βœ… βœ…
macOS Python 3.9 βœ… βœ…
macOS Python 3.10 βœ… βœ…
macOS Python 3.11 βœ… βœ…
macOS Python 3.12 βœ… βœ…
macOS Python 3.13 βœ… βœ…
macOS Java 8-16+ βœ… βœ…
Windows Python 3.9 βœ… ❌
Windows Python 3.10 βœ… ❌
Windows Python 3.11 βœ… ❌
Windows Python 3.12 βœ… ❌
Windows Python 3.13 βœ… ❌
Windows Java 8-16+ βœ… ❌

Contributing

Contributions to voyager are welcomed! See CONTRIBUTING.md for details.

License

Voyager is copyright 2022-2024 Spotify AB.

Voyager is licensed under the Apache 2 License.

Nearby in the ranking
Similar items