Skip to main content

knn_sql

Function knn_sql 

Source
pub fn knn_sql(
    index: &VectorIndex,
    query: &QueryVector,
    k: u64,
) -> Result<String>
Expand description

The nearest-neighbour statement: rows (s, d) — at most k distinct nodes (term ids), each at its smallest distance, by increasing distance then id.