Skip to main content

run_reranker

Function run_reranker 

Source
pub fn run_reranker(args: &Value, span: Span) -> Result<Value, Diagnostic>
Expand description

Inference.run_reranker — rerank candidate documents by relevance to a query.

Takes query (string) and candidates (list of strings). Returns a list of records with index and score, sorted by descending score.