You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "uschindler (via GitHub)" <gi...@apache.org> on 2023/06/13 13:20:51 UTC

[GitHub] [lucene] uschindler commented on issue #12342: Prevent VectorSimilarity.DOT_PRODUCT from returning negative scores

uschindler commented on issue #12342:
URL: https://github.com/apache/lucene/issues/12342#issuecomment-1589305142

   For byte vectors we already have some guard built in (at least they can't get <0). See `VectorUtil #dotProductScore`. In the other issue I have also seen issues with float vectors that produced infinite floats as dotProduct or NaN as cosine (due to `Infinity / Infinity => NaN`).
   So this also relates to this discussion: Should we have some constraints on vectors while they are indexed. In the other PR we added the requirement to make all their components finite.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org