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

Function no_overlap

nodedb/src/engine/vector/sparse/search.rs:167–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165
166 #[test]
167 fn no_overlap() {
168 let mut idx = SparseInvertedIndex::new();
169 idx.insert("doc1", &make_sv(&[(10, 0.5)]));
170 let query = make_sv(&[(20, 1.0)]);
171 let results = dot_product_topk(&idx, &query, 10);
172 assert!(results.is_empty());
173 }
174}

Callers

nothing calls this directly

Calls 3

dot_product_topkFunction · 0.85
make_svFunction · 0.70
insertMethod · 0.45

Tested by

no test coverage detected