From 34a0b6d91a576c75aee6f2bb2428e3ec04dc5db8 Mon Sep 17 00:00:00 2001 From: Jonathan Ellis Date: Thu, 9 Jan 2025 11:17:22 -0600 Subject: [PATCH] add FUSED_ADC construction back to Bench --- .../main/java/io/github/jbellis/jvector/example/Bench.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/jvector-examples/src/main/java/io/github/jbellis/jvector/example/Bench.java b/jvector-examples/src/main/java/io/github/jbellis/jvector/example/Bench.java index bcf8d9b38..c2c4a7eec 100644 --- a/jvector-examples/src/main/java/io/github/jbellis/jvector/example/Bench.java +++ b/jvector-examples/src/main/java/io/github/jbellis/jvector/example/Bench.java @@ -46,7 +46,7 @@ public static void main(String[] args) throws IOException { var efConstructionGrid = List.of(100); // List.of(60, 80, 100, 120, 160, 200, 400, 600, 800); var efSearchGrid = List.of(1.0, 2.0); List> buildCompression = Arrays.asList( -// ds -> new PQParameters(ds.getDimension() / 8, 256, ds.similarityFunction == VectorSimilarityFunction.EUCLIDEAN, UNWEIGHTED), + ds -> new PQParameters(ds.getDimension() / 8, 256, ds.similarityFunction == VectorSimilarityFunction.EUCLIDEAN, UNWEIGHTED), __ -> CompressorParameters.NONE ); List> searchCompression = Arrays.asList( @@ -55,8 +55,9 @@ public static void main(String[] args) throws IOException { ds -> new PQParameters(ds.getDimension() / 8, 256, ds.similarityFunction == VectorSimilarityFunction.EUCLIDEAN, UNWEIGHTED) ); List> featureSets = Arrays.asList( -// EnumSet.of(FeatureId.INLINE_VECTORS), - EnumSet.of(FeatureId.NVQ_VECTORS) + EnumSet.of(FeatureId.NVQ_VECTORS), + EnumSet.of(FeatureId.NVQ_VECTORS, FeatureId.FUSED_ADC), + EnumSet.of(FeatureId.INLINE_VECTORS) ); // args is list of regexes, possibly needing to be split by whitespace.