Browse Source

Fix page size error. (#4401)

### What problem does this PR solve?

#4400

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.16.0
Kevin Hu 9 months ago
parent
commit
d9a4e4cc3b
No account linked to committer's email address
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      rag/nlp/search.py

+ 1
- 0
rag/nlp/search.py View File

@@ -371,6 +371,7 @@ class Dealer:
"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


Loading…
Cancel
Save