Skip to content

LLMRerankerOptions

optional candidateMaxChars?: number;

Maximum characters of document text to include per candidate. Default: 1500.


optional includeReasons?: boolean;

Whether to include the LLM’s reasoning in results. Default: true.


model: LanguageModel;

The language model to use for scoring.


optional topK?: number;

Maximum number of results to return after reranking. Default: 5.