Skip to main content

Ranker

Trait Ranker 

Source
pub trait Ranker: Send + Sync {
    // Required methods
    fn fingerprint(&self) -> &str;
    fn score_batch(
        &self,
        query: &str,
        items: &[ContextItem],
    ) -> Result<Vec<f64>, CoreError>;
}
Expand description

Scores context items in one batch without imposing an output order.

Required Methods§

Source

fn fingerprint(&self) -> &str

Source

fn score_batch( &self, query: &str, items: &[ContextItem], ) -> Result<Vec<f64>, CoreError>

Implementors§