MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / insert

Method insert

nodedb-vector/src/delta/index.rs:42–44  ·  view source on GitHub ↗

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>)

Source from the content-addressed store, hash-verified

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.

Callers 9

tombstoneMethod · 0.45
make_deltaFunction · 0.45
patchMethod · 0.45
merge_resultsFunction · 0.45

Calls 1

pushMethod · 0.45