jpountz opened a new issue, #11963:
URL: https://github.com/apache/lucene/issues/11963

   ### Description
   
   Follow-up of 
https://github.com/apache/lucene/pull/11860#discussion_r1027106953: the API for 
quantization of vectors is a bit surprising at times in that you can index 
bytes but then still get float[] arrays whose values are bytes at search time. 
Can we make sure it's either bytes all the way, or floats all the way?
   
   I'm not entirely sure how best to move it forward. One option would be to 
have a disjoint set of APIs for the binary encoding, like for doc values: 
different `Field` class, different `VectorValues` class, different 
`searchNearestNeighbors` method. I wonder if another option would be to make it 
floats all the way all the time, including for the byte encoding, ie. the 
`Field` and `VectorValues` class would still take and expose `float`s but 
`VectorValues#binaryValue` would be removed and the `Field` constructor would 
barf if the float values do not represent exact bytes.


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