Skip to content

Graphorin API reference v0.15.1


Graphorin API reference / @graphorin/reranker-transformersjs / / pickRerankerModel

Function: pickRerankerModel() ​

ts
function pickRerankerModel(locale): string;

Defined in: packages/reranker-transformersjs/src/model-selection.ts:35

Stable

Pick a reranker model from the agent locale. Pure function so callers (and tests) can pre-resolve the choice without constructing the reranker.

Parameters ​

ParameterType
localestring | undefined

Returns ​

string