Skip to main content

Module rrf

Module rrf 

Source
Expand description

Reciprocal Rank Fusion (RRF) for hybrid vector + FTS / vector + graph.

Each ranked list contributes 1 / (k + rank) per document ID, where k is a smoothing constant (commonly 60). Scores are summed across lists and the resulting aggregated scores are returned sorted descending.

Structs§

RankedResult
A single entry in a ranked result list.
RrfOptions
Tuning options for Reciprocal Rank Fusion.

Functions§

rrf_fuse
Fuse multiple ranked result lists using Reciprocal Rank Fusion.