Skip to main content

K_QUERY_RANGE_MAX

Constant K_QUERY_RANGE_MAX 

Source
pub const K_QUERY_RANGE_MAX: usize = 4_096;
Expand description

Inclusive upper bound for -k/--k on every retrieval command.

Kept at the historical sqlite-vec knn ceiling so the message an operator gets does not change: values above it used to surface a leaky engine error (k value in knn query too large, provided 10000 and the limit is 4096).