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

Function named_oversample

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

Source from the content-addressed store, hash-verified

371
372 #[test]
373 fn named_oversample() {
374 let plan = plan_ann(
375 "SELECT id FROM embeddings ORDER BY vector_distance(embedding, [1.0, 0.0], oversample => 3) LIMIT 5",
376 );
377 let SqlPlan::VectorSearch { ann_options, .. } = plan else {
378 panic!("expected VectorSearch plan");
379 };
380 assert_eq!(ann_options.oversample, Some(3));
381 }
382
383 #[test]
384 fn named_query_dim() {

Callers

nothing calls this directly

Calls 1

plan_annFunction · 0.85

Tested by

no test coverage detected