Interface TemporalConfig

Temporal preferences for result ordering.

See

RetrievalPlan.temporal

interface TemporalConfig {
    preferRecent: boolean;
    recencyBoost: number;
    maxAgeMs: null | number;
}

Properties

preferRecent: boolean

Whether to boost recent results in scoring. Default: false.

recencyBoost: number

Multiplicative boost factor for recent results. 1.0 means no boost. 2.0 means recent results can score up to 2x higher.

Default

1.0
maxAgeMs: null | number

Maximum age in milliseconds. Results older than this are excluded. null means no age limit.

Default

null