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

Function empty_search

nodedb-vector/src/flat.rs:384–388  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

382
383 #[test]
384 fn empty_search() {
385 let idx = FlatIndex::new(3, DistanceMetric::L2);
386 let results = idx.search(&[1.0, 0.0, 0.0], 5);
387 assert!(results.is_empty());
388 }
389
390 #[test]
391 fn filtered_search() {

Callers

nothing calls this directly

Calls 1

searchMethod · 0.45

Tested by

no test coverage detected