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

   While working in https://github.com/apache/lucene/pull/15732 I notice I 
cannot access lucene 104 quantized values through 
Lucene104ScalarQuantizedVectorsReader. This class implemented the interface 
QuantizedVectorsReader but the 
[QuantizedByteVectorValues](https://github.com/apache/lucene/blob/main/lucene/core/src/java/org/apache/lucene/util/quantization/QuantizedByteVectorValues.java)
 you access through this API are not the ones [defined in Lucene 
104](https://github.com/apache/lucene/blob/main/lucene/core/src/java/org/apache/lucene/codecs/lucene104/QuantizedByteVectorValues.java).
 
   
   Therefore this PR proposes to  consolidate this API so we can access both, 
the lquantized values defined before lucene 104 (now called legacy in this PR) 
and the quantized values added in lucene 104. 
   
   Key changes in this PR:
     • Introduced BaseQuantizedByteVectorValues and 
LegacyQuantizedByteVectorValues in 
lucene/core/src/java/org/apache/lucene/util/quantization to keep the old
       getScalarQuantizer/getScoreCorrectionConstant API while letting the new 
QuantizedByteVectorValues expose optimized quantization metadata 
(getCorrectiveTerms, getCentroid, getScalarEncoding,
        etc.).
   
     • Moved ScalarEncoding from Lucene104ScalarQuantizedVectorsFormat into 
QuantizedByteVectorValues.
   
    


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to