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

Đang mở
#707 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@richyreachy đang làm issue này rồi.

Từ ngày 13/10/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.
Ngôn ngữ chính
C++
Star
16.3k
Fork
1k
Merge trung bình
2 ngày 10 giờ
Pull request đã merge (30 ngày)
32

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của alibaba/zvec

Tất cả issue của alibaba/zvec

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.