Skip to content

Refine quant compressor generation lifecycle - #1314

Merged
xwj-ox merged 1 commit into
microsoft:codex/explicit-pq-pivots-1016from
partychen:suggest/pr-1299-quant-compressor-generate
Aug 12, 2026
Merged

Refine quant compressor generation lifecycle#1314
xwj-ox merged 1 commit into
microsoft:codex/explicit-pq-pivots-1016from
partychen:suggest/pr-1299-quant-compressor-generate

Conversation

@partychen

Copy link
Copy Markdown
Contributor

Follow-up suggestion for #1299.

This keeps new construction-only and moves the generation work to an explicit instance method:

  • move the compressor context into the quantizer at construction time
  • call generate(&self) before compression
  • preserve existing pivot generation/reuse behavior
  • keep QuantDataGenerator responsible for orchestrating generation and compression

Validation:

  • cargo test -p diskann-disk
  • cargo clippy -p diskann-disk --all-targets -- -D warnings

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@xwj-ox
xwj-ox merged commit 1ab5f08 into microsoft:codex/explicit-pq-pivots-1016 Aug 12, 2026
1 check passed
@partychen
juchen-ms (partychen) deleted the suggest/pr-1299-quant-compressor-generate branch August 16, 2026 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants