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
Hybrid search full-sorts corpus and replaces index on add #786
Problem:sorted(enumerate(scores), ...) sorts the whole corpus to take top_k*2 (use heapq.nlargest/np.argpartition for O(n)). Separately, add_documents replaces the index (self._documents = list(texts)), so incremental callers silently drop prior docs.
Fix: partial selection; make add_documents incremental.
Severity: Low (performance + data loss). Found in production-readiness audit.
Activity