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

Function named_query_dim

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

Source from the content-addressed store, hash-verified

382
383 #[test]
384 fn named_query_dim() {
385 let plan = plan_ann(
386 "SELECT id FROM embeddings ORDER BY vector_distance(embedding, [1.0, 0.0], query_dim => 128) LIMIT 5",
387 );
388 let SqlPlan::VectorSearch { ann_options, .. } = plan else {
389 panic!("expected VectorSearch plan");
390 };
391 assert_eq!(ann_options.query_dim, Some(128));
392 }
393
394 #[test]
395 fn named_meta_token_budget() {

Callers

nothing calls this directly

Calls 1

plan_annFunction · 0.85

Tested by

no test coverage detected