From 4cc8fb2c5c775210560d8adfff010d420b97cd53 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Tue, 9 Sep 2025 17:42:33 +0200 Subject: [PATCH] Add comment about upgrade procedure Co-authored-by: Tamo --- crates/milli/src/vector/store.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/milli/src/vector/store.rs b/crates/milli/src/vector/store.rs index 11385a0e4..d4d3f26cb 100644 --- a/crates/milli/src/vector/store.rs +++ b/crates/milli/src/vector/store.rs @@ -1056,6 +1056,7 @@ impl VectorStore { let dimensions = arroy_reader.dimensions(); let hannoy_writer: hannoy::Writer = hannoy::Writer::new(self.database.remap_types(), index, dimensions); + // Since the bq mode of arroy and hannoy are not compatible, we have to clear and re-insert everything hannoy_writer.clear(hannoy_wtxn)?; for entry in arroy_reader.iter(arroy_rtxn)? { let (item, mut vector) = entry?; @@ -1093,6 +1094,7 @@ impl VectorStore { let dimensions = hannoy_reader.dimensions(); let arroy_writer: arroy::Writer = arroy::Writer::new(self.database.remap_types(), index, dimensions); + // Since the bq mode of arroy and hannoy are not compatible, we have to clear and re-insert everything arroy_writer.clear(arroy_wtxn)?; for entry in hannoy_reader.iter(hannoy_rtxn)? { let (item, mut vector) = entry?;