Skip to content

Commit

Permalink
refactor: use transposed centroids in PQ preprocess (#594)
Browse files Browse the repository at this point in the history
Signed-off-by: usamoi <[email protected]>
  • Loading branch information
usamoi authored Sep 20, 2024
1 parent 003e065 commit b4f5870
Show file tree
Hide file tree
Showing 2 changed files with 241 additions and 50 deletions.
2 changes: 1 addition & 1 deletion crates/base/src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ impl Default for ScalarQuantizationOptions {
#[validate(schema(function = "Self::validate_self"))]
pub struct ProductQuantizationOptions {
#[serde(default = "ProductQuantizationOptions::default_ratio")]
#[validate(range(min = 1, max = 1024))]
#[validate(range(min = 1, max = 8))]
pub ratio: u32,
#[serde(default = "ProductQuantizationOptions::default_bits")]
pub bits: u32,
Expand Down
Loading

0 comments on commit b4f5870

Please sign in to comment.