瀏覽代碼

Fix: rank feature score should be greater than 0. (#8416)

### What problem does this PR solve?

#8414

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.20.0
Kevin Hu 4 月之前
父節點
當前提交
83e23f1e8a
No account linked to committer's email address
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      rag/prompts.py

+ 2
- 1
rag/prompts.py 查看文件

@@ -427,7 +427,8 @@ Output:
res = {}
for k, v in obj.items():
try:
res[str(k)] = int(v)
if int(v) > 0:
res[str(k)] = int(v)
except Exception:
pass
return res

Loading…
取消
儲存