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-unsubscr...@lucene.apache.org

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


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

Reply via email to