Switch to hannoy 0.0.4

This commit is contained in:
Clément Renault
2025-08-14 10:57:33 +02:00
parent f7e0a7a388
commit 0a242f4c4a
3 changed files with 505 additions and 335 deletions

832
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -88,7 +88,7 @@ rhai = { version = "1.22.2", features = [
"sync",
] }
arroy = "0.6.1"
hannoy = "0.0.3"
hannoy = "0.0.4"
rand = "0.8.5"
tracing = "0.1.41"
ureq = { version = "2.12.1", features = ["json"] }

View File

@ -630,9 +630,6 @@ impl VectorStore {
let mut searcher = reader.nns(limit);
searcher.ef_search((limit * 10).max(100)); // TODO find better ef
if let Some(filter) = filter {
if reader.item_ids().is_disjoint(filter) {
continue;
}
searcher.candidates(filter);
}
@ -710,9 +707,6 @@ impl VectorStore {
let mut searcher = reader.nns(limit);
searcher.ef_search((limit * 10).max(100)); // TODO find better ef
if let Some(filter) = filter {
if reader.item_ids().is_disjoint(filter) {
continue;
}
searcher.candidates(filter);
}