Skip to content

Graphorin API reference v0.15.1


Graphorin API reference / @graphorin/reranker-llm / / createLlmReranker

Function: createLlmReranker()

ts
function createLlmReranker<TRecord>(options): LlmReRanker<TRecord>;

Defined in: src/reranker.ts:118

Stable

Build an LLM-as-reranker. The reranker is stateless past the provider reference - the provider's own session / connection lifecycle owns the network resources.

Type Parameters

Type ParameterDefault type
TRecord extends MemoryRecordMemoryRecord

Parameters

ParameterType
optionsLlmRerankerOptions&lt;TRecord&gt;

Returns

LlmReRanker&lt;TRecord&gt;