From de0cd5126305dd3a0d11eae0e02b68e8882b1f00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Thu, 14 Aug 2025 10:57:33 +0200 Subject: [PATCH] Switch to hannoy 0.0.4 --- Cargo.lock | 4 ++-- crates/milli/Cargo.toml | 2 +- crates/milli/src/vector/mod.rs | 6 ------ 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0a6d9dfd1..b300febfc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2602,9 +2602,9 @@ dependencies = [ [[package]] name = "hannoy" -version = "0.0.3" +version = "0.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0cac6ebc04fc7246356d29908b55315c26c695a2ea2f692de9f72c0ac61ca1b1" +checksum = "a80496a4713fefbf4ea388b30288afaa23566173510a694d838e0a85a3ada5c0" dependencies = [ "bytemuck", "byteorder", diff --git a/crates/milli/Cargo.toml b/crates/milli/Cargo.toml index 91868eb23..a0f389d03 100644 --- a/crates/milli/Cargo.toml +++ b/crates/milli/Cargo.toml @@ -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"] } diff --git a/crates/milli/src/vector/mod.rs b/crates/milli/src/vector/mod.rs index 69ccaec18..ec1c36914 100644 --- a/crates/milli/src/vector/mod.rs +++ b/crates/milli/src/vector/mod.rs @@ -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); }