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

Method get_surrogate

nodedb-vector/src/collection/lifecycle_insert_ops.rs:68–70  ·  view source on GitHub ↗

Look up the surrogate for a global vector ID.

(&self, vector_id: u32)

Source from the content-addressed store, hash-verified

66
67 /// Look up the surrogate for a global vector ID.
68 pub fn get_surrogate(&self, vector_id: u32) -> Option<Surrogate> {
69 self.surrogate_map.get(&vector_id).copied()
70 }
71
72 /// Resolve a surrogate back to its global vector ID, if bound.
73 pub fn local_for_surrogate(&self, surrogate: Surrogate) -> Option<u32> {

Calls 1

getMethod · 0.45