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

オープン
#707 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@richyreachy がすでに取り組んでいます。

2026年10月13日 から。

評価

この issue はまだ評価されていません。

説明

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.
主要言語
C++
スター
16.3k
フォーク
1k
平均マージ
2日 10時間
マージ済み PR(30日)
32

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

alibaba/zvec のほかの issue

alibaba/zvec の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。