pub fn topk_pools(
scores: &[f32],
valid_candidates: &[u8],
n_pools: usize,
q_rows: usize,
select_k: usize,
) -> Vec<i32>Expand description
2026-09-25: Select up to select_k pools per query, ordered by higher score, then smaller
pool index, so ties resolve the same way on every run. Invalid candidates score f32::MIN.