Stage a fresh insert. Does not deduplicate — callers must ensure IDs are unique across the delta and the main HNSW.
(&mut self, id: u32, vector: Vec<f32>)
| 40 | /// Stage a fresh insert. Does not deduplicate — callers must ensure IDs |
| 41 | /// are unique across the delta and the main HNSW. |
| 42 | pub fn insert(&mut self, id: u32, vector: Vec<f32>) { |
| 43 | self.fresh.push((id, vector)); |
| 44 | } |
| 45 | |
| 46 | /// Mark `id` as tombstoned. It will be excluded from `search` results |
| 47 | /// and from the patch applied to the main HNSW. |