Skip to main content

search

Function search 

Source
pub fn search(
    conn: &Connection,
    query_vec: &[f32],
    model: &str,
    k: usize,
) -> Result<Vec<GlobalHit>>
Expand description

Semantic search across the whole global index for the embedder’s model. Returns the top k hits by cosine, with a small penalty applied to superseded/contradicted entries so live reasoning ranks above stale.