Skip to main content

Function: fuse()

fuse<T>(results, strategy?, options?): T & object[]

Defined in: Services/Search/ScoreFusion.ts:107

Dispatch to the appropriate fusion strategy.

Type Parameters

T

T extends FusableResult

Parameters

results

T[]

Must have embeddingScore and rerankerScore properties

strategy?

"linear" | "rrf"

'linear' or 'rrf'

options?

FuseOptions = {}

Strategy-specific options

Returns

T & object[]

Results with fusedScore, sorted descending