Skip to main content

Module salience

Module salience 

Source
Expand description

Salience Scoring System

Computes importance weights for episodes, enabling bounded forgetting and prioritized retrieval.

Per SPECIFICATION_HARD.md Section 9:

salience_score = weighted_sum([
    user_feedback,           // thumbs_up = +0.35, thumbs_down = -0.35
    phase_transition,        // +0.10 at transitions
    downstream_references,   // +0.05 per ref, capped at +0.15
    novelty,                 // +0.10 max based on embedding distance
])

Scores are bounded to [0, 1].

§Debug Logging

Enable the salience-debug feature to log salience distribution statistics for tuning and analysis.

Structs§

CorpusSalienceStats
Corpus-level salience statistics.
SalienceConfig
Configuration for salience scoring.
SalienceFactors
Factors contributing to salience score.
SalienceScorer
Salience scoring engine.
TurnSalience
Result of salience computation for an episode.

Enums§

Feedback
User feedback type.