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

Function named_target_recall

nodedb-sql/src/planner/select/entry_ann.rs:406–414  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

404
405 #[test]
406 fn named_target_recall() {
407 let plan = plan_ann(
408 "SELECT id FROM embeddings ORDER BY vector_distance(embedding, [1.0, 0.0], target_recall => 0.95) LIMIT 5",
409 );
410 let SqlPlan::VectorSearch { ann_options, .. } = plan else {
411 panic!("expected VectorSearch plan");
412 };
413 assert!((ann_options.target_recall.unwrap() - 0.95_f32).abs() < 0.001);
414 }
415
416 #[test]
417 fn all_named_options() {

Callers

nothing calls this directly

Calls 1

plan_annFunction · 0.85

Tested by

no test coverage detected