[Enhance]: Support the DiskANN index compute distances through turbo Quantizer

Aperta
#707 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@richyreachy ci sta già lavorando.

Dal 13/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

enhancement
Affected Component

DiskANN builder, searcher, streamer, and Turbo quantizer framework.

Current Behavior

DiskANN maintains a dedicated PQ implementation, resulting in duplicated training, serialization, and distance-calculation logic. It also lacks a standard mechanism for injecting external quantizers.

Desired Improvement

Refactor DiskANN to use the Turbo quantizer framework:

  • Replace the legacy DiskANN PQ trainer/table with PqInt8Quantizer.
  • Persist self-describing quantizer metadata with the index.
  • Restore quantizers through the common initialization/deserialization contract.
  • Support external quantizer injection in builders, searchers, and streamers.
  • Support FP16 and FP32 input with L2, cosine, and inner-product policies.
  • Use SIMD-optimized full-precision distance calculations during graph construction and reranking.
  • Add tests covering general search, filtering, grouping, node cache, vector fetching, RNN search, and FP16 entry points.
Impact

This consolidates quantization under one framework, reduces duplicated code, and makes future quantizer integration easier.

Benchmark results show:

  • Search QPS is 0.5–2.9% higher than the main branch.
  • FP32 recall remains within ±0.1 percentage points of main.
  • FP16 Turbo PQ introduces an expected 1.6–2.1 percentage-point R@1 trade-off.
Lingua principale
C++
Stelle
16.3k
Fork
1k
Merge medio
2g 10h
PR unite (30g)
32

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di alibaba/zvec

Tutte le issue di alibaba/zvec

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.