Skip to main content

rrf_fuse

Function rrf_fuse 

Source
pub fn rrf_fuse(lists: &[Vec<ScoredHit>], k: u32, limit: usize) -> Vec<FusedHit>
Expand description

Fuse ranked lists with reciprocal rank fusion.

Each hit contributes 1 / (k + rank) per list it appears in, with 1-based ranks. Output is sorted by fused score descending and truncated to limit entries.