Skip to main content

rerank

Function rerank 

Source
pub async fn rerank(
    reranker: &dyn Reranker,
    query: &str,
    hits: Vec<Hit>,
) -> Result<Vec<Hit>, RagError>
Expand description

Replace scores with reranker scores and re-sort.