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

Function make_sv

nodedb/src/engine/vector/sparse/index.rs:220–222  ·  view source on GitHub ↗
(entries: &[(u32, f32)])

Source from the content-addressed store, hash-verified

218 use super::*;
219
220 fn make_sv(entries: &[(u32, f32)]) -> SparseVector {
221 SparseVector::from_entries(entries.to_vec()).unwrap()
222 }
223
224 #[test]
225 fn insert_and_lookup() {

Callers 5

insert_and_lookupFunction · 0.70
upsert_replacesFunction · 0.70
deleteFunction · 0.70
checkpoint_roundtripFunction · 0.70
multiple_docs_same_dimFunction · 0.70

Calls 1

to_vecMethod · 0.45

Tested by 5

insert_and_lookupFunction · 0.56
upsert_replacesFunction · 0.56
deleteFunction · 0.56
checkpoint_roundtripFunction · 0.56
multiple_docs_same_dimFunction · 0.56