Skip to main content

ScoreLane

Trait ScoreLane 

Source
pub trait ScoreLane: Send + Sync {
    // Required methods
    fn score(&self, mem: &MemoryRecord, ctx: &ScoreContext) -> f32;
    fn name(&self) -> &'static str;
}
Expand description

One scoring signal. Implementations are stateless or hold cheap configuration; the recall path holds them as Arc<dyn ScoreLane>.

Required Methods§

Source

fn score(&self, mem: &MemoryRecord, ctx: &ScoreContext) -> f32

Bounded score in [0.0, 1.0]. Higher is better.

Source

fn name(&self) -> &'static str

Stable name — used in audit-log explanations + debug output.

Implementors§