Skip to main content

RankingLayer

Trait RankingLayer 

Source
pub trait RankingLayer: Send + Sync {
    // Required method
    fn apply(&self, items: &mut Vec<(usize, f32)>, chunks: &[CodeChunk]);
}
Expand description

A composable layer in the ranking pipeline.

Implementations operate on the full (idx, score) list plus the canonical chunks slice. See the module-level docs for ordering conventions.

Required Methods§

Source

fn apply(&self, items: &mut Vec<(usize, f32)>, chunks: &[CodeChunk])

Apply this layer’s transformation.

Implementors§