Skip to content

Commit 0ec9e78

Browse files
authored
Tidy up the bfloat16 yaml tests (#138664)
1 parent 0597767 commit 0ec9e78

9 files changed

+0
-350
lines changed

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

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ setup:
8383
- match: { hits.hits.1.fields.name.0: "rabbit.jpg" }
8484
---
8585
"kNN multi-field search only":
86-
- requires:
87-
cluster_features: "gte_v8.7.0"
88-
reason: 'multi-field kNN search added to search endpoint in 8.7'
8986
- do:
9087
search:
9188
index: test
@@ -102,9 +99,6 @@ setup:
10299
- match: { hits.hits.1.fields.name.0: "moose.jpg" }
103100
---
104101
"kNN search plus query":
105-
- requires:
106-
cluster_features: "gte_v8.4.0"
107-
reason: 'kNN added to search endpoint in 8.4'
108102
- do:
109103
search:
110104
index: test
@@ -129,9 +123,6 @@ setup:
129123
- match: { hits.hits.2.fields.name.0: "rabbit.jpg" }
130124
---
131125
"kNN multi-field search with query":
132-
- requires:
133-
cluster_features: "gte_v8.7.0"
134-
reason: 'multi-field kNN search added to search endpoint in 8.7'
135126
- do:
136127
search:
137128
index: test
@@ -154,9 +145,6 @@ setup:
154145
- match: { hits.hits.2.fields.name.0: "moose.jpg" }
155146
---
156147
"kNN search with filter":
157-
- requires:
158-
cluster_features: "gte_v8.4.0"
159-
reason: 'kNN added to search endpoint in 8.4'
160148
- do:
161149
search:
162150
index: test
@@ -195,9 +183,6 @@ setup:
195183

196184
---
197185
"kNN search with explicit search_type":
198-
- requires:
199-
cluster_features: "gte_v8.4.0"
200-
reason: 'kNN added to search endpoint in 8.4'
201186
- do:
202187
catch: bad_request
203188
search:
@@ -216,9 +201,6 @@ setup:
216201

217202
---
218203
"Test nonexistent field is match none":
219-
- requires:
220-
cluster_features: "gte_v8.16.0"
221-
reason: 'non-existent field handling improved in 8.16'
222204
- do:
223205
search:
224206
index: test
@@ -266,9 +248,6 @@ setup:
266248

267249
---
268250
"KNN Vector similarity search only":
269-
- requires:
270-
cluster_features: "gte_v8.8.0"
271-
reason: 'kNN similarity added in 8.8'
272251
- do:
273252
search:
274253
index: test
@@ -287,9 +266,6 @@ setup:
287266
- match: { hits.hits.0.fields.name.0: "moose.jpg" }
288267
---
289268
"Vector similarity with filter only":
290-
- requires:
291-
cluster_features: "gte_v8.8.0"
292-
reason: 'kNN similarity added in 8.8'
293269
- do:
294270
search:
295271
index: test
@@ -325,8 +301,6 @@ setup:
325301
---
326302
"Knn search with mip":
327303
- requires:
328-
cluster_features: "gte_v8.11.0"
329-
reason: 'mip similarity added in 8.11'
330304
test_runner_features: "close_to"
331305

332306
- do:
@@ -414,8 +388,6 @@ setup:
414388
---
415389
"Knn search with _name":
416390
- requires:
417-
cluster_features: "gte_v8.15.0"
418-
reason: 'support for _name in knn was added in 8.15'
419391
test_runner_features: "close_to"
420392

421393
- do:
@@ -450,39 +422,7 @@ setup:
450422
- match: { hits.hits.2.matched_queries.0: "my_knn_query" }
451423

452424
---
453-
"kNN search on empty index should return 0 results and not an error":
454-
- requires:
455-
cluster_features: "gte_v8.15.1"
456-
reason: 'Error fixed in 8.15.1'
457-
- do:
458-
indices.create:
459-
index: test_empty
460-
body:
461-
mappings:
462-
properties:
463-
vector:
464-
type: dense_vector
465-
- do:
466-
search:
467-
index: test_empty
468-
body:
469-
fields: [ "name" ]
470-
knn:
471-
field: vector
472-
query_vector: [ -0.5, 90.0, -10, 14.8, -156.0 ]
473-
k: 2
474-
num_candidates: 3
475-
476-
- match: { hits.total.value: 0 }
477-
---
478425
"Vector rescoring has no effect for non-quantized vectors and provides same results as non-rescored knn":
479-
- requires:
480-
reason: 'Quantized vector rescoring is required'
481-
test_runner_features: [capabilities]
482-
capabilities:
483-
- method: GET
484-
path: /_search
485-
capabilities: [knn_quantized_vector_rescore_oversample]
486426
- skip:
487427
features: "headers"
488428

@@ -571,9 +511,6 @@ setup:
571511

572512
---
573513
"Updating dim to null is not allowed":
574-
- requires:
575-
cluster_features: "mapper.npe_on_dims_update_fix"
576-
reason: "dims update fix"
577514
- do:
578515
indices.create:
579516
index: test_index
@@ -598,9 +535,6 @@ setup:
598535

599536
---
600537
"Searching with no data dimensions specified":
601-
- requires:
602-
cluster_features: "search.vectors.no_dimensions_bugfix"
603-
reason: "Search with no dimensions bugfix"
604538

605539
- do:
606540
indices.create:

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

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,6 @@ setup:
8484
indices.refresh: { }
8585
---
8686
"Test knn search":
87-
- requires:
88-
capabilities:
89-
- method: POST
90-
path: /_search
91-
capabilities: [ optimized_scalar_quantization_bbq ]
92-
test_runner_features: capabilities
93-
reason: "BBQ scoring improved and changed with optimized_scalar_quantization_bbq"
9487
- do:
9588
search:
9689
index: bbq_hnsw
@@ -113,13 +106,6 @@ setup:
113106
- match: { hits.hits.2._id: "2" }
114107
---
115108
"Vector rescoring has same scoring as exact search for kNN section":
116-
- requires:
117-
reason: 'Quantized vector rescoring is required'
118-
test_runner_features: [capabilities]
119-
capabilities:
120-
- method: GET
121-
path: /_search
122-
capabilities: [knn_quantized_vector_rescore_oversample]
123109
- skip:
124110
features: "headers"
125111

@@ -241,9 +227,6 @@ setup:
241227
vector: [1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0]
242228
---
243229
"Test index configured rescore vector":
244-
- requires:
245-
cluster_features: ["mapper.dense_vector.rescore_vector"]
246-
reason: Needs rescore_vector feature
247230
- skip:
248231
features: "headers"
249232
- do:
@@ -332,10 +315,6 @@ setup:
332315
- match: { hits.hits.2._score: $rescore_score2 }
333316
---
334317
"Test index configured rescore vector updateable and settable to 0":
335-
- requires:
336-
cluster_features: ["mapper.dense_vector.rescore_zero_vector"]
337-
reason: Needs rescore_zero_vector feature
338-
339318
- do:
340319
indices.create:
341320
index: bbq_rescore_0_hnsw
@@ -390,9 +369,6 @@ setup:
390369
- match: { .bbq_rescore_update_hnsw.mappings.properties.vector.index_options.rescore_vector.oversample: 0 }
391370
---
392371
"Test index configured rescore vector score consistency":
393-
- requires:
394-
cluster_features: ["mapper.dense_vector.rescore_zero_vector"]
395-
reason: Needs rescore_zero_vector feature
396372
- skip:
397373
features: "headers"
398374
- do:
@@ -570,9 +546,6 @@ setup:
570546

571547
---
572548
"default oversample value":
573-
- requires:
574-
cluster_features: ["mapper.dense_vector.default_oversample_value_for_bbq"]
575-
reason: "Needs default_oversample_value_for_bbq feature"
576549
- do:
577550
indices.get_mapping:
578551
index: bbq_hnsw

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

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -378,13 +378,6 @@ setup:
378378
---
379379
# Won't be true for larger datasets, but this helps checking kNN vs rescoring vs exact search
380380
"Vector rescoring has the same scoring as exact search for kNN section":
381-
- requires:
382-
reason: 'Quantized vector rescoring is required'
383-
test_runner_features: [capabilities]
384-
capabilities:
385-
- method: GET
386-
path: /_search
387-
capabilities: [knn_quantized_vector_rescore_oversample]
388381
- skip:
389382
features: "headers"
390383

@@ -434,36 +427,6 @@ setup:
434427
- match: { hits.hits.2._score: $rescore_score2 }
435428

436429
---
437-
"Test bad quantization parameters":
438-
- do:
439-
catch: bad_request
440-
indices.create:
441-
index: bad_hnsw_quantized
442-
body:
443-
mappings:
444-
properties:
445-
vector:
446-
type: dense_vector
447-
dims: 5
448-
element_type: byte
449-
index: true
450-
index_options:
451-
type: int8_hnsw
452-
453-
- do:
454-
catch: bad_request
455-
indices.create:
456-
index: bad_hnsw_quantized
457-
body:
458-
mappings:
459-
properties:
460-
vector:
461-
type: dense_vector
462-
dims: 5
463-
index: false
464-
index_options:
465-
type: int8_hnsw
466-
---
467430
"Test create, merge, and search cosine":
468431
- do:
469432
indices.create:
@@ -539,9 +502,6 @@ setup:
539502
- match: { hits.hits.2._id: "3"}
540503
---
541504
"Test create, merge, and search dot_product":
542-
- requires:
543-
cluster_features: "gte_v8.12.0"
544-
reason: 'kNN float to byte quantization added in 8.12'
545505
- do:
546506
indices.create:
547507
index: hnsw_byte_quantized_merge_dot_product
@@ -616,9 +576,6 @@ setup:
616576
- match: { hits.hits.2._id: "3"}
617577
---
618578
"Test index configured rescore vector":
619-
- requires:
620-
cluster_features: ["mapper.dense_vector.rescore_vector"]
621-
reason: Needs rescore_vector feature
622579
- skip:
623580
features: "headers"
624581
- do:
@@ -691,10 +648,6 @@ setup:
691648
- match: { hits.hits.2._score: $rescore_score2 }
692649
---
693650
"Test index configured rescore vector updateable and settable to 0":
694-
- requires:
695-
cluster_features: ["mapper.dense_vector.rescore_zero_vector"]
696-
reason: Needs rescore_zero_vector feature
697-
698651
- do:
699652
indices.create:
700653
index: int8_rescore_0_hnsw
@@ -749,9 +702,6 @@ setup:
749702
- match: { .int8_rescore_update_hnsw.mappings.properties.vector.index_options.rescore_vector.oversample: 0 }
750703
---
751704
"Test index configured rescore vector score consistency":
752-
- requires:
753-
cluster_features: ["mapper.dense_vector.rescore_zero_vector"]
754-
reason: Needs rescore_zero_vector feature
755705
- skip:
756706
features: "headers"
757707
- do:

0 commit comments

Comments
 (0)