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

Method get

nodedb-vector/src/rerank/sidecar.rs:44–46  ·  view source on GitHub ↗
(&self, id: u32)

Source from the content-addressed store, hash-verified

42 }
43
44 pub fn get(&self, id: u32) -> Option<&[u8]> {
45 self.encoded.get(&id).map(|v| v.as_slice())
46 }
47
48 pub fn len(&self) -> usize {
49 self.encoded.len()

Callers 11

fetch_fp32Method · 0.45
fetch_fp32Method · 0.45
rerankFunction · 0.45
fetchFunction · 0.45
distance_preparedMethod · 0.45
distance_preparedMethod · 0.45
search_layerFunction · 0.45
is_deletedMethod · 0.45
get_vectorMethod · 0.45
get_vector_bytesMethod · 0.45
get_vector_or_backingMethod · 0.45

Calls 1

as_sliceMethod · 0.45

Tested by

no test coverage detected