Catalogue / spotify-2023-voyager-ann-search

Spotify builds Voyager, an HNSW-based nearest-neighbor library meant to succeed Annoy, for in-memory search in Java and Python services

Spotify, 2023. Voyager approximate nearest-neighbor search library.

Organisation
Spotify
Evidence
Reported from production
Source
Introducing Voyager: Spotify's New Nearest-Neighbor Search Library

Spotify Engineering, published 2023-10-25

Records

Decision#d1

Run nearest-neighbor vector search in memory inside stateless Kubernetes services rather than a stateful database

Decision#d2

Build Voyager as a new HNSW package to succeed Annoy instead of making breaking changes in hnswlib

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free.