fix:score threshold (#24897)
This commit is contained in:
parent
9486715929
commit
2042353526
24 changed files with 25 additions and 25 deletions
|
|
@ -233,7 +233,7 @@ class RelytVector(BaseVector):
|
|||
docs = []
|
||||
for document, score in results:
|
||||
score_threshold = float(kwargs.get("score_threshold") or 0.0)
|
||||
if 1 - score > score_threshold:
|
||||
if 1 - score >= score_threshold:
|
||||
docs.append(document)
|
||||
return docs
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue