Skip to main content

select_with_params

Function select_with_params 

Source
pub fn select_with_params(
    state: &ScoredState,
    budget_tokens: Option<u32>,
    tau: f64,
    no_content: bool,
) -> DiffContextOutput
Expand description

Light phase: selection + 3 post-passes + render. Cheap. Re-runnable against the same ScoredState with different (tau, core_budget_fraction) to sweep a calibration grid without re-doing the heavy phase.

core_budget_fraction is read at the start via selection().core_budget_fraction — set the env var DIFFCTX_OP_SELECTION_CORE_BUDGET_FRACTION before calling to override per-cell.