mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-13 08:29:00 +08:00
Fix: rank feat issue. (#6225)
### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
5cf610af40
commit
6e8d0e3177
@ -259,6 +259,7 @@ class Dealer:
|
|||||||
for i in search_res.ids:
|
for i in search_res.ids:
|
||||||
nor, denor = 0, 0
|
nor, denor = 0, 0
|
||||||
if not search_res.field[i].get(TAG_FLD):
|
if not search_res.field[i].get(TAG_FLD):
|
||||||
|
rank_fea.append(0)
|
||||||
continue
|
continue
|
||||||
for t, sc in eval(search_res.field[i].get(TAG_FLD, "{}")).items():
|
for t, sc in eval(search_res.field[i].get(TAG_FLD, "{}")).items():
|
||||||
if t in query_rfea:
|
if t in query_rfea:
|
||||||
|
@ -100,7 +100,7 @@ def clean_markdown_block(text):
|
|||||||
return text.strip()
|
return text.strip()
|
||||||
|
|
||||||
|
|
||||||
def get_float(v: str | None):
|
def get_float(v: str | int | float | None):
|
||||||
if v is None:
|
if v is None:
|
||||||
return float('-inf')
|
return float('-inf')
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user