terraphim_file_search 1.20.3

Knowledge-graph scored file search integration for Terraphim AI
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// Configuration for the knowledge-graph path scorer.
#[derive(Debug, Clone)]
pub struct KgScorerConfig {
    /// Score added per unique matched term.
    pub weight_per_term: i32,
    /// Maximum boost the scorer can contribute regardless of match count.
    pub max_boost: i32,
}

impl Default for KgScorerConfig {
    fn default() -> Self {
        Self {
            weight_per_term: 5,
            max_boost: 30,
        }
    }
}