Skip to content

Commit 9907aad

Browse files
committed
Use 'num_candidates_factor' parameter and update num_candidates instead of k
1 parent 4c65c8a commit 9907aad

File tree

16 files changed

+50
-47
lines changed

16 files changed

+50
-47
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/210_knn_search_profile.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ setup:
105105
k: 3
106106
num_candidates: 3
107107
"rescore_vector":
108-
"oversample": 2.0
108+
"num_candidates_factor": 2.0
109109

110110
# We expect the knn search ops + rescoring num_cnaidates (for rescoring) per shard
111111
- match: { profile.shards.0.dfs.knn.0.vector_operations_count: 6 }
@@ -123,7 +123,7 @@ setup:
123123
num_candidates: 3
124124
similarity: 100000.0
125125
"rescore_vector":
126-
"oversample": 2.0
126+
"num_candidates_factor": 2.0
127127

128128
# We expect the knn search ops + rescoring num_cnaidates (for rescoring) per shard
129129
- match: { profile.shards.0.dfs.knn.0.vector_operations_count: 6 }

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/40_knn_search.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ setup:
589589
k: 3
590590
num_candidates: 3
591591
rescore_vector:
592-
oversample: 1.5
592+
num_candidates_factor: 1.5
593593

594594
# Compare scores as hit IDs may change depending on how things are distributed
595595
- match: { hits.total: 3 }

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/41_knn_search_bbq_hnsw.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ setup:
113113
k: 3
114114
num_candidates: 3
115115
rescore_vector:
116-
oversample: 1.5
116+
num_candidates_factor: 1.5
117117

118118
# Get rescoring scores - hit ordering may change depending on how things are distributed
119119
- match: { hits.total: 3 }

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/41_knn_search_byte_quantized.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ setup:
398398
field: vector
399399
query_vector: [0.5, 111.3, -13.0, 14.8, -156.0]
400400
rescore_vector:
401-
oversample: 1.5
401+
num_candidates_factor: 1.5
402402

403403
# Get rescoring scores - hit ordering may change depending on how things are distributed
404404
- match: { hits.total: 3 }

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/41_knn_search_half_byte_quantized.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ setup:
575575
k: 3
576576
num_candidates: 3
577577
rescore_vector:
578-
oversample: 1.5
578+
num_candidates_factor: 1.5
579579

580580
# Get rescoring scores - hit ordering may change depending on how things are distributed
581581
- match: { hits.total: 3 }

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/42_knn_search_bbq_flat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ setup:
112112
k: 3
113113
num_candidates: 3
114114
rescore_vector:
115-
oversample: 1.5
115+
num_candidates_factor: 1.5
116116

117117
# Get rescoring scores - hit ordering may change depending on how things are distributed
118118
- match: { hits.total: 3 }

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/42_knn_search_flat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ setup:
304304
k: 3
305305
num_candidates: 3
306306
rescore_vector:
307-
oversample: 1.5
307+
num_candidates_factor: 1.5
308308

309309
# Compare scores as hit IDs may change depending on how things are distributed
310310
- match: { hits.total: 3 }

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/42_knn_search_int4_flat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ setup:
371371
k: 3
372372
num_candidates: 3
373373
rescore_vector:
374-
oversample: 1.5
374+
num_candidates_factor: 1.5
375375

376376
# Get rescoring scores - hit ordering may change depending on how things are distributed
377377
- match: { hits.total: 3 }

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/42_knn_search_int8_flat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ setup:
288288
k: 3
289289
num_candidates: 3
290290
rescore_vector:
291-
oversample: 1.5
291+
num_candidates_factor: 1.5
292292

293293
# Get rescoring scores - hit ordering may change depending on how things are distributed
294294
- match: { hits.total: 3 }

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/45_knn_search_bit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ setup:
454454
k: 3
455455
num_candidates: 3
456456
rescore_vector:
457-
oversample: 1.5
457+
num_candidates_factor: 1.5
458458

459459
# Compare scores as hit IDs may change depending on how things are distributed
460460
- match: { hits.total: 3 }

0 commit comments

Comments
 (0)