mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-05 20:26:31 +00:00
happy clippy
This commit is contained in:
@ -153,8 +153,7 @@ impl VectorStore {
|
|||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
} else {
|
} else if self.quantized {
|
||||||
if self.quantized {
|
|
||||||
self._hannoy_to_arroy_bq::<
|
self._hannoy_to_arroy_bq::<
|
||||||
hannoy::distances::Hamming,
|
hannoy::distances::Hamming,
|
||||||
arroy::distances::BinaryQuantizedCosine,
|
arroy::distances::BinaryQuantizedCosine,
|
||||||
@ -171,8 +170,7 @@ impl VectorStore {
|
|||||||
for index in vector_store_range_for_embedder(self.embedder_index) {
|
for index in vector_store_range_for_embedder(self.embedder_index) {
|
||||||
let writer = arroy::Writer::new(self._arroy_angular_db(), index, dimensions);
|
let writer = arroy::Writer::new(self._arroy_angular_db(), index, dimensions);
|
||||||
let mut builder = writer.builder(&mut rng);
|
let mut builder = writer.builder(&mut rng);
|
||||||
let builder =
|
let builder = builder.progress(|step| progress.update_progress_from_arroy(step));
|
||||||
builder.progress(|step| progress.update_progress_from_arroy(step));
|
|
||||||
builder.prepare_hannoy_conversion(wtxn)?;
|
builder.prepare_hannoy_conversion(wtxn)?;
|
||||||
builder.build(wtxn)?;
|
builder.build(wtxn)?;
|
||||||
}
|
}
|
||||||
@ -180,7 +178,6 @@ impl VectorStore {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
#[allow(clippy::too_many_arguments)]
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn build_and_quantize<R: rand::Rng + rand::SeedableRng>(
|
pub fn build_and_quantize<R: rand::Rng + rand::SeedableRng>(
|
||||||
|
Reference in New Issue
Block a user