Browse Source

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 months ago
parent
commit
83e23f1e8a
No account linked to committer's email address
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      rag/prompts.py

+ 2
- 1
rag/prompts.py View File

@@ -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…
Cancel
Save