Skip to main content

rerank

Function rerank 

Source
pub fn rerank(
    query: &str,
    candidates: &[String],
    config: &RerankConfig,
) -> Vec<RerankResult>
Expand description

Rerank candidates given a query.

Returns results sorted by descending score, each with the original index.