Skip to content

Commit

Permalink
Fix page size error. (#4401)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

#4400

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
  • Loading branch information
KevinHuSh authored Jan 7, 2025
1 parent ac89a2d commit d9a4e4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rag/nlp/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ def floor_sim(score):
"count": v["count"]} for k,
v in sorted(ranks["doc_aggs"].items(),
key=lambda x:x[1]["count"] * -1)]
ranks["chunks"] = ranks["chunks"][:page_size]

return ranks

Expand Down

0 comments on commit d9a4e4c

Please sign in to comment.