Skip to content

Commit

Permalink
Remove-np-ninf (#782)
Browse files Browse the repository at this point in the history
* change np.NINF to -np.inf

* Update qdrant_client/local/local_collection.py

---------

Co-authored-by: George <panchuk.george@outlook.com>
  • Loading branch information
icfly2 and joein authored Sep 24, 2024
1 parent eec1d5a commit 52d9697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qdrant_client/local/local_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ def search(

score = scores[idx]
# skip undefined scores from sparse vectors
if sparse_scoring and score == np.NINF:
if sparse_scoring and score == -np.inf:
continue
point_id = self.ids_inv[idx]

Expand Down

0 comments on commit 52d9697

Please sign in to comment.