瀏覽代碼

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 查看文件

"count": v["count"]} for k, "count": v["count"]} for k,
v in sorted(ranks["doc_aggs"].items(), v in sorted(ranks["doc_aggs"].items(),
key=lambda x:x[1]["count"] * -1)] key=lambda x:x[1]["count"] * -1)]
ranks["chunks"] = ranks["chunks"][:page_size]


return ranks return ranks



Loading…
取消
儲存