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

Function named_quantization_rabitq

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

Source from the content-addressed store, hash-verified

343
344 #[test]
345 fn named_quantization_rabitq() {
346 let plan = plan_ann(
347 "SELECT id FROM embeddings ORDER BY vector_distance(embedding, [1.0, 0.0], quantization => 'rabitq') LIMIT 5",
348 );
349 let SqlPlan::VectorSearch { ann_options, .. } = plan else {
350 panic!("expected VectorSearch plan");
351 };
352 assert_eq!(ann_options.quantization, Some(VectorQuantization::RaBitQ));
353 }
354
355 #[test]
356 fn named_ef_search() {

Callers

nothing calls this directly

Calls 1

plan_annFunction · 0.85

Tested by

no test coverage detected