Skip to content

Commit 9586743

Browse files
tlwillkedjatnieks
authored andcommitted
CNDB-12981: Revert ADA002 VectorSourceModel change to BINARY_QUANTIZATION (#1580)
CNDB-12981: Revert ADA002 VectorSourceModel change to BINARY_QUANTIZATION Reverting the change to BINARY_QUANTIZATION from PRODUCT_QUANTIZATION. A simple change to VectorSourceModel. Ensures that both new and existing indexes the using the ada002 embedding model continue to use PQ for now. All of the other changes that were originally committed with it in 655080c remain intact.
1 parent 453a4de commit 9586743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java/org/apache/cassandra/index/sai/disk/vector/VectorSourceModel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
public enum VectorSourceModel
3636
{
37-
ADA002((dimension) -> new VectorCompression(BINARY_QUANTIZATION, dimension, 0.125), 2.0),
37+
ADA002((dimension) -> new VectorCompression(PRODUCT_QUANTIZATION, dimension, 0.125), 1.25),
3838
OPENAI_V3_SMALL((dimension) -> new VectorCompression(PRODUCT_QUANTIZATION, dimension, 0.0625), 1.5),
3939
OPENAI_V3_LARGE((dimension) -> new VectorCompression(PRODUCT_QUANTIZATION, dimension, 0.0625), 1.25),
4040
BERT(COSINE, (dimension) -> new VectorCompression(PRODUCT_QUANTIZATION, dimension, 0.25), __ -> 1.0),

0 commit comments

Comments
 (0)