JingsongLi opened a new pull request, #1486:
URL: https://github.com/apache/paimon-rust/pull/1486

   ### Purpose
   
   Match apache/paimon#11328. Exact cosine can return NaN or zero for valid 
finite vectors when the float norms overflow or underflow. This can cause exact 
reranking to select an antiparallel vector ahead of a parallel one.
   
   ### Brief change log
   
   Recompute exceptional cosine scores from double-precision terms. Use the 
shared calculation in Data Evolution single-query and batched exact scoring and 
in primary-key exact distance.
   
   ### Tests
   
   The Data Evolution Top-1 and primary-key distance regressions failed on the 
baseline. They now pass for both large and small coordinates. The broader run 
passed 180 vector, metric, and scalar index tests, with one existing ignored 
test. `cargo fmt --all -- --check` passed.
   
   ### API and Format
   
   The change is limited to query scoring.
   
   ### Documentation
   
   The existing cosine ordering applies across the finite coordinate range.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to