()
| 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() { |
nothing calls this directly
no test coverage detected