Skip to main content

retrieval_params

Function retrieval_params 

Source
pub fn retrieval_params(configs: &[&KbConfig]) -> (usize, f32)
Expand description

How many chunks to retrieve and how similar they must be, for an agent that searches configs together. Each KB falls back to the defaults for what it leaves unset. Across KBs the most permissive setting wins (lowest min_score, highest top_k), so a KB tuned for a lower-scoring embedding space is not filtered out by another KB’s stricter setting.