From 8fac9a0c0c5775dd0294a06e4314091047157160 Mon Sep 17 00:00:00 2001 From: Ritesh Agarwal Date: Tue, 28 Jan 2025 21:05:53 -0800 Subject: [PATCH] fix: Randomly pick similarity when not provided explicitly. Change-Id: I9a2a7955d3cd8884ff68adb3e0fb92dcf6c3c15d Reviewed-on: https://review.couchbase.org/c/TAF/+/222566 Tested-by: Build Bot Reviewed-by: --- pytests/aGoodDoctor/n1ql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytests/aGoodDoctor/n1ql.py b/pytests/aGoodDoctor/n1ql.py index 382fb05be..8e3f8c8a2 100644 --- a/pytests/aGoodDoctor/n1ql.py +++ b/pytests/aGoodDoctor/n1ql.py @@ -326,7 +326,7 @@ def create_indexes(self, buckets, skip_index=False, base64=False, xattr=False): dim = workload.get("dim") similarity = TestInputSingleton.input.param( "similarity", - random.choice("L2_SQUARED", "EUCLIDEAN_SQUARED", "COSINE", "DOT")) + random.choice(["L2_SQUARED", "EUCLIDEAN_SQUARED", "COSINE", "DOT"])) nProbe = vector_defn["nProbe"] description = vector_defn.get("description", "IVF,%s" % vector_defn.get("quantization", "SQ8")) vector_fields = "'dimension': {}, 'description': '{}', 'similarity': '{}', 'scan_nprobes': {}".format(