mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-23 21:26:26 +00:00
Switch to hannoy 0.0.4
This commit is contained in:
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -2602,9 +2602,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "hannoy"
|
name = "hannoy"
|
||||||
version = "0.0.3"
|
version = "0.0.4"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "0cac6ebc04fc7246356d29908b55315c26c695a2ea2f692de9f72c0ac61ca1b1"
|
checksum = "a80496a4713fefbf4ea388b30288afaa23566173510a694d838e0a85a3ada5c0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bytemuck",
|
"bytemuck",
|
||||||
"byteorder",
|
"byteorder",
|
||||||
|
@ -88,7 +88,7 @@ rhai = { version = "1.22.2", features = [
|
|||||||
"sync",
|
"sync",
|
||||||
] }
|
] }
|
||||||
arroy = "0.6.1"
|
arroy = "0.6.1"
|
||||||
hannoy = "0.0.3"
|
hannoy = "0.0.4"
|
||||||
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"] }
|
||||||
|
@ -630,9 +630,6 @@ impl VectorStore {
|
|||||||
let mut searcher = reader.nns(limit);
|
let mut searcher = reader.nns(limit);
|
||||||
searcher.ef_search((limit * 10).max(100)); // TODO find better ef
|
searcher.ef_search((limit * 10).max(100)); // TODO find better ef
|
||||||
if let Some(filter) = filter {
|
if let Some(filter) = filter {
|
||||||
if reader.item_ids().is_disjoint(filter) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
searcher.candidates(filter);
|
searcher.candidates(filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -710,9 +707,6 @@ impl VectorStore {
|
|||||||
let mut searcher = reader.nns(limit);
|
let mut searcher = reader.nns(limit);
|
||||||
searcher.ef_search((limit * 10).max(100)); // TODO find better ef
|
searcher.ef_search((limit * 10).max(100)); // TODO find better ef
|
||||||
if let Some(filter) = filter {
|
if let Some(filter) = filter {
|
||||||
if reader.item_ids().is_disjoint(filter) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
searcher.candidates(filter);
|
searcher.candidates(filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user