Skip to content

Graphorin API reference v0.1.0


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

Function: createLlmReranker()

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

Defined in: reranker.ts:85

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;

Stable