ソースを参照

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
コミッターのメールアドレスに関連付けられたアカウントが存在しません
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


読み込み中…
キャンセル
保存