RRF

org.llm4s.vectorstore.FusionStrategy.RRF
final case class RRF(k: Int) extends FusionStrategy

Reciprocal Rank Fusion (RRF).

Combines results based on their rank positions across result lists. Score = sum(1 / (k + rank)) across all lists where the document appears.

RRF is robust to score scale differences and performs well when combining results from heterogeneous sources.

Value parameters

k

Smoothing constant (default: 60, as per original RRF paper)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product