Skip to main content

rerank

Function rerank 

Source
pub fn rerank(
    experiences: Vec<Experience>,
    lens: &Lens,
    attractor_config: Option<&AttractorConfig>,
) -> Vec<(Experience, f32)>
Expand description

Re-rank experiences through the lens using domain, type, and temporal weighting.

When attractor_config is provided, high-importance experiences additionally boost nearby experiences via attractor dynamics (additive to the multiplicative base score).

Returns experiences sorted by composite score (descending), truncated to lens.attention_budget.