Fix: infinity rerank error. (#10760)

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu
2025-10-23 17:38:54 +08:00
committed by GitHub
parent af6eabad0e
commit ea73f13ebf

View File

@ -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