You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: track actual selection count in vec0_mmr_rerank
The copy-back loop iterated k_target times, but the greedy selection
loop can terminate early via `if (best_idx < 0) break`, leaving the
tail of out_rowids/out_distances uninitialized. Add an n_selected
counter and out_n_selected output parameter so only actually-selected
entries are copied back. The caller now sets k_used = n_selected
instead of k_used = k_original.
Credit: mceachen (vlasky#6)
0 commit comments