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§
Sourcefn score(&self, mem: &MemoryRecord, ctx: &ScoreContext) -> f32
fn score(&self, mem: &MemoryRecord, ctx: &ScoreContext) -> f32
Bounded score in [0.0, 1.0]. Higher is better.