diff --git a/mobile/rust/src/api/usearch_api.rs b/mobile/rust/src/api/usearch_api.rs index 8eb13ab717..c845d69c7e 100644 --- a/mobile/rust/src/api/usearch_api.rs +++ b/mobile/rust/src/api/usearch_api.rs @@ -150,6 +150,9 @@ impl VectorDB { pub fn reset_index(&self) { self.index.reset().expect("Failed to reset index"); + self.index + .reserve(1000) + .expect("Failed to reserve space in index"); self.save_index(); }