Skip to main content

run

Function run 

pub fn run(
    pool: Vec<MemoryEntry>,
    config: &RerankConfig,
    is_eligible: impl Fn(&MemoryEntry) -> bool,
) -> Vec<MemoryEntry>
Expand description

Run blend, eligibility filtering, duplicate collapse, optional advanced rerank, threshold, and trim. is_eligible is the caller’s render-eligibility predicate; it is applied before duplicate collapse so an ineligible row cannot shadow an eligible fact with the same content, and before the final trim so it cannot consume a selection slot.