Skip to main content

semantic_search

Function semantic_search 

Source
pub fn semantic_search<R: ModelRunner, S: AssetSource>(
    ws: &S,
    runner: &R,
    registry: &Registry,
    query: &str,
    k: usize,
    partition: &str,
) -> Result<Vec<KnnHit>, OrchestratorError>
Expand description

Natural-language search: embed query with the semantic-search embedder and return the k nearest assets in partition’s current canonical version (stale/other-partition vectors are excluded structurally).