Skip to main content

Variable: RERANK_DEFAULTS

const RERANK_DEFAULTS: object

Defined in: packages/agentos/src/cognition/memory/retrieval/recall/rerank.ts:22

The memory rerank's bounds and blend. localTimeoutMs and llmTimeoutMs are the defaults of timeoutMs (the judge makes two phases of model calls, so it gets longer); maxCandidates is how many memories reach the provider, the recall's best; after failuresToBackOff failures or timeouts in a row the rerank is skipped for backoffMs; and a reranked candidate's place is blendScore × its recall score + blendRerank × its rerank score.

Type Declaration​

backoffMs​

readonly backoffMs: 60000 = 60_000

blendRerank​

readonly blendRerank: 0.3 = 0.3

blendScore​

readonly blendScore: 0.7 = 0.7

failuresToBackOff​

readonly failuresToBackOff: 3 = 3

llmTimeoutMs​

readonly llmTimeoutMs: 10000 = 10_000

localTimeoutMs​

readonly localTimeoutMs: 1500 = 1500

maxCandidates​

readonly maxCandidates: 20 = 20