File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed
server/src/main/java/org/elasticsearch/index/codec/vectors/es818 Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change 3232
3333import java .io .IOException ;
3434
35- import static org .apache .lucene .index .VectorSimilarityFunction .COSINE ;
3635import static org .apache .lucene .index .VectorSimilarityFunction .EUCLIDEAN ;
3736import static org .apache .lucene .index .VectorSimilarityFunction .MAXIMUM_INNER_PRODUCT ;
3837
@@ -70,7 +69,6 @@ public RandomVectorScorer getRandomVectorScorer(
7069 assert binarizedVectors .size () > 0 : "BinarizedByteVectorValues must have at least one vector for ES816BinaryFlatVectorsScorer" ;
7170 OptimizedScalarQuantizer quantizer = binarizedVectors .getQuantizer ();
7271 float [] centroid = binarizedVectors .getCentroid ();
73- assert similarityFunction != COSINE || VectorUtil .isUnitVector (target );
7472 float [] scratch = new float [vectorValues .dimension ()];
7573 int [] initial = new int [target .length ];
7674 byte [] quantized = new byte [BQSpaceUtils .B_QUERY * binarizedVectors .discretizedDimensions () / 8 ];
You can’t perform that action at this time.
0 commit comments