소스 검색

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 달 전
부모
커밋
d9a4e4cc3b
No account linked to committer's email address
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1
    0
      rag/nlp/search.py

+ 1
- 0
rag/nlp/search.py 파일 보기

@@ -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…
취소
저장