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

Method get

nodedb-vector/src/multivec/storage.rs:84–86  ·  view source on GitHub ↗

Look up a document by ID.

(&self, doc_id: u32)

Source from the content-addressed store, hash-verified

82
83 /// Look up a document by ID.
84 pub fn get(&self, doc_id: u32) -> Option<&MultiVectorDoc> {
85 self.docs.get(&doc_id)
86 }
87
88 /// Number of documents currently stored.
89 pub fn len(&self) -> usize {

Callers 3

meta_embed_searchFunction · 0.45
get_returns_inserted_docFunction · 0.45
write_segmentFunction · 0.45

Calls

no outgoing calls

Tested by 1

get_returns_inserted_docFunction · 0.36