benwtrent opened a new pull request, #12727:
URL: https://github.com/apache/lucene/pull/12727

   We shouldn't ever return negative scores from vector similarity functions. 
Given vector panama and nearly antipodal float[] vectors, it is possible that 
cosine and (normalized) dot-product become slightly negative due to compounding 
floating point errors.
   
   Since we don't want to make panama vector incredibly slow, we stick to 
float32 operations for now, and just snap to `0` if the score is negative after 
our correction.
   
   closes: https://github.com/apache/lucene/issues/12700


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