mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
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)
This commit is contained in:
@ -427,7 +427,8 @@ Output:
|
|||||||
res = {}
|
res = {}
|
||||||
for k, v in obj.items():
|
for k, v in obj.items():
|
||||||
try:
|
try:
|
||||||
res[str(k)] = int(v)
|
if int(v) > 0:
|
||||||
|
res[str(k)] = int(v)
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
return res
|
return res
|
||||||
|
|||||||
Reference in New Issue
Block a user