Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/memory / / fuseRrf

Function: fuseRrf()

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

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

Pure functional core of the RRF reranker. 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

Returns

readonly MemoryHit&lt;TRecord&gt;[]

Stable