Skip to content

Commit 6d843e1

Browse files
Rename formats to Lucene99HnswVectorsFormat
1 parent dba71de commit 6d843e1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

x-pack/plugin/gpu/src/main/java/org/elasticsearch/xpack/gpu/codec/ES92GpuHnswSQVectorsFormat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* HNSW graph is built on GPU, while scalar quantization and search is performed on CPU.
2929
*/
3030
public class ES92GpuHnswSQVectorsFormat extends KnnVectorsFormat {
31-
public static final String NAME = "ES92GPUHnswScalarQuantizedVectorsFormat";
31+
public static final String NAME = "Lucene99HnswVectorsFormat";
3232
static final int MAXIMUM_MAX_CONN = 512;
3333
static final int MAXIMUM_BEAM_WIDTH = 3200;
3434
private final int maxConn;

x-pack/plugin/gpu/src/main/java/org/elasticsearch/xpack/gpu/codec/ES92GpuHnswVectorsFormat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* leverage GPU processing capabilities for vector search operations.
2828
*/
2929
public class ES92GpuHnswVectorsFormat extends KnnVectorsFormat {
30-
public static final String NAME = "ES92GpuHnswVectorsFormat";
30+
public static final String NAME = "Lucene99HnswVectorsFormat";
3131
public static final int VERSION_GROUPVARINT = 1;
3232

3333
static final String LUCENE99_HNSW_META_CODEC_NAME = "Lucene99HnswVectorsFormatMeta";

x-pack/plugin/gpu/src/test/java/org/elasticsearch/xpack/gpu/codec/GPUDenseVectorFieldMapperTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected Collection<Plugin> getPlugins() {
4343
public void testKnnVectorsFormat() throws IOException {
4444
// TODO improve test with custom parameters
4545
KnnVectorsFormat knnVectorsFormat = getKnnVectorsFormat("hnsw");
46-
String expectedStr = "ES92GpuHnswVectorsFormat(name=ES92GpuHnswVectorsFormat, "
46+
String expectedStr = "Lucene99HnswVectorsFormat(name=Lucene99HnswVectorsFormat, "
4747
+ "maxConn=16, beamWidth=128, flatVectorFormat=Lucene99FlatVectorsFormat)";
4848
assertEquals(expectedStr, knnVectorsFormat.toString());
4949
}
@@ -52,7 +52,7 @@ public void testKnnVectorsFormat() throws IOException {
5252
public void testKnnQuantizedHNSWVectorsFormat() throws IOException {
5353
// TOD improve the test with custom parameters
5454
KnnVectorsFormat knnVectorsFormat = getKnnVectorsFormat("int8_hnsw");
55-
String expectedStr = "ES92GPUHnswScalarQuantizedVectorsFormat(name=ES92GPUHnswScalarQuantizedVectorsFormat, "
55+
String expectedStr = "Lucene99HnswVectorsFormat(name=Lucene99HnswVectorsFormat, "
5656
+ "maxConn=16, beamWidth=128, flatVectorFormat=ES814ScalarQuantizedVectorsFormat";
5757
assertTrue(knnVectorsFormat.toString().startsWith(expectedStr));
5858
}

0 commit comments

Comments
 (0)