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
{{ message }}
Repository navigation
VectorStore.search(top_k=0) returns ALL documents #780
Problem:np.argpartition(scores, -0)[-0:] — -0 == 0, so [-0:] slices the whole array and top_k=0 returns every document sorted. Same in the filtered branch. Verified repro.
Fix: early-return [] when top_k <= 0.
Severity: Medium (correctness). Found in production-readiness audit.
Activity