Skip to main content

compute_relevance

Function compute_relevance 

Source
pub fn compute_relevance(
    entry: &MemoryEntry,
    context_keywords: &[String],
) -> f64
Expand description

Compute relevance score of a memory entry to context keywords. Returns 0.0-1.0 where 1.0 means highly relevant.