Skip to content

Commit

Permalink
fix: Randomly pick similarity when not provided explicitly.
Browse files Browse the repository at this point in the history
Change-Id: I9a2a7955d3cd8884ff68adb3e0fb92dcf6c3c15d
Reviewed-on: https://review.couchbase.org/c/TAF/+/222566
Tested-by: Build Bot <[email protected]>
Reviewed-by: <[email protected]>
  • Loading branch information
ritalrw committed Jan 29, 2025
1 parent ec0b83f commit 8fac9a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytests/aGoodDoctor/n1ql.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8fac9a0

Please sign in to comment.