Fix: infinity rerank error. (#10760)
### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
af6eabad0e
commit
ea73f13ebf
1 changed files with 1 additions and 0 deletions
|
|
@ -388,6 +388,7 @@ class Dealer:
|
|||
else:
|
||||
# Don't need rerank here since Infinity normalizes each way score before fusion.
|
||||
sim = [sres.field[id].get("_score", 0.0) for id in sres.ids]
|
||||
sim = [s if s is not None else 0. for s in sim]
|
||||
tsim = sim
|
||||
vsim = sim
|
||||
# Already paginated in search function
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue