mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-06 12:46:31 +00:00
Change the ef construction from default 100 to 33
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -2581,7 +2581,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "hannoy"
|
name = "hannoy"
|
||||||
version = "0.7.0"
|
version = "0.7.0"
|
||||||
source = "git+https://github.com/nnethercott/hannoy?branch=incremental-indexing#364f611b10642ad34a3466b80dc687d1114bda4f"
|
source = "git+https://github.com/kerollmops/hannoy?branch=expose-private-types#98c7adda0d96a9f98203797d24c26a4de06cab3e"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bytemuck",
|
"bytemuck",
|
||||||
"byteorder",
|
"byteorder",
|
||||||
|
@ -87,7 +87,7 @@ rhai = { version = "1.22.2", features = [
|
|||||||
"no_time",
|
"no_time",
|
||||||
"sync",
|
"sync",
|
||||||
] }
|
] }
|
||||||
hannoy = { git = "https://github.com/nnethercott/hannoy", branch = "incremental-indexing" }
|
hannoy = { git = "https://github.com/kerollmops/hannoy", branch = "expose-private-types" }
|
||||||
rand = "0.8.5"
|
rand = "0.8.5"
|
||||||
tracing = "0.1.41"
|
tracing = "0.1.41"
|
||||||
ureq = { version = "2.12.1", features = ["json"] }
|
ureq = { version = "2.12.1", features = ["json"] }
|
||||||
|
@ -147,7 +147,7 @@ impl HannoyWrapper {
|
|||||||
if self.quantized {
|
if self.quantized {
|
||||||
let writer = hannoy::Writer::new(self.quantized_db(), index, dimension);
|
let writer = hannoy::Writer::new(self.quantized_db(), index, dimension);
|
||||||
if writer.need_build(wtxn)? {
|
if writer.need_build(wtxn)? {
|
||||||
writer.builder(rng).build::<16, 32>(wtxn)?
|
writer.builder(rng).ef_construction(33).build::<16, 32>(wtxn)?
|
||||||
} else if writer.is_empty(wtxn)? {
|
} else if writer.is_empty(wtxn)? {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -173,6 +173,7 @@ impl HannoyWrapper {
|
|||||||
.available_memory(hannoy_memory.unwrap_or(usize::MAX))
|
.available_memory(hannoy_memory.unwrap_or(usize::MAX))
|
||||||
// .progress(|step| progress.update_progress_from_hannoy(step))
|
// .progress(|step| progress.update_progress_from_hannoy(step))
|
||||||
// .cancel(cancel)
|
// .cancel(cancel)
|
||||||
|
.ef_construction(33)
|
||||||
.build::<16, 32>(wtxn)?;
|
.build::<16, 32>(wtxn)?;
|
||||||
} else if writer.is_empty(wtxn)? {
|
} else if writer.is_empty(wtxn)? {
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user