소스 검색

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…
취소
저장