NVIDIA / NVIDIA/cuvs

[ANN_BENCH] Better index naming strategy

Open
#1,221 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
Cuda
Stars
854
Forks
236
Avg merge
3d 3h
Merged PRs (30d)
62

Description

While serializing indexes with all the params embedded in the filename, the filename can easily grow beyond 255 characters, leading to the indexes being saved with incorrect (machine generated random numbers) names. I noticed this for example in CAGRA when I set ivf-pq build and search parameters (so each name would have to have long substrings like ivf_pq_build_kmeans_niter10 which can add a lot of characters). We can consider coming up with a better naming convention. Perhaps keep the name simple and store an additional metadata file containing all the parameters?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing ANN_BENCH index serialization, especially the CAGRA path where parameter names are embedded in filenames. Determine how names are generated and how serialized indexes are loaded; the work is done when a naming convention avoids the filename-length failure while preserving access to all build and search parameters.

Written by the indexing model from the issue text.

Assessment

Domain
search
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.