Skip to content

Graphorin API reference v0.7.0


Graphorin API reference / @graphorin/memory / / fuseRrf

Function: fuseRrf()

ts
function fuseRrf<TRecord>(
   lists, 
   k, 
   labels?): readonly MemoryHit<TRecord>[];

Defined in: packages/memory/src/search/rrf.ts:119

Pure functional core of the RRF reranker - the equal-weight case of fuseWeighted. Exported separately so the test suite (and the property-based fuzzer) can exercise the math without the Promise<…> wrapping of the public surface.

Type Parameters

Type Parameter
TRecord extends MemoryRecord

Parameters

ParameterType
listsreadonly readonly MemoryHit&lt;TRecord&gt;[][]
knumber
labels?readonly string[]

Returns

readonly MemoryHit&lt;TRecord&gt;[]

Stable