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

Method resolve_doc_id

nodedb/src/engine/vector/sparse/index.rs:119–121  ·  view source on GitHub ↗

Resolve an internal doc ID to the string document ID.

(&self, internal_id: u32)

Source from the content-addressed store, hash-verified

117
118 /// Resolve an internal doc ID to the string document ID.
119 pub fn resolve_doc_id(&self, internal_id: u32) -> Option<&str> {
120 self.doc_id_reverse.get(&internal_id).map(|s| s.as_str())
121 }
122
123 /// Total number of documents in the index.
124 pub fn doc_count(&self) -> usize {

Callers 1

dot_product_topkFunction · 0.80

Calls 2

getMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected