ReciprocalRankFusionOptions
Defined in: retrievers/fusion-retriever.ts:6
Extended by
Section titled “Extended by”Properties
Section titled “Properties”
optionalk?:number
Defined in: retrievers/fusion-retriever.ts:12
Damping constant that controls how quickly a document’s contribution decays with rank. Larger values flatten the curve. Defaults to DEFAULT_RRF_K.
limit?
Section titled “limit?”
optionallimit?:number
Defined in: retrievers/fusion-retriever.ts:16
Truncate the fused output to this many ids. Defaults to no limit.
weights?
Section titled “weights?”
optionalweights?: readonlynumber[]
Defined in: retrievers/fusion-retriever.ts:14
Optional per-ranking weights, aligned by index with rankings.