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

   Currently the HNSW codec does too many things, it not only indexes vectors, 
but stores them and determines how to store them given the vector type.
   
   This PR extracts out the vector storage into a new format 
`Lucene99FlatVectorsFormat`, additionally a "flat" version of 
`KnnVectorsFormat` is added called `FlatVectorsFormat`. This allows for some 
additional helper functions that allow an indexing codec (like HNSW) take 
advantage of the flat formats.
   
   Additionally, this PR refactors the new 
`Lucene99ScalarQuantizedVectorsFormat` to be a `FlatVectorsFormat`.
   
   Now, `Lucene99HnswVectorsFormat` can accept either a 
`Lucene99ScalarQuantizedVectorsFormat` to use int8 quantized vectors or 
`Lucene99FlatVectorsFormat` for raw vectors.
   


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