Skip to content

Commit fc22aa4

Browse files
committed
Remove confidence_interval from yaml checks
1 parent f5cd1d3 commit fc22aa4

File tree

3 files changed

+0
-81
lines changed

3 files changed

+0
-81
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/180_update_dense_vector_type.yml

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,30 +1438,6 @@ setup:
14381438
- match: { test_index.mappings.properties.embedding.index_options.m: 32 }
14391439
- match: { test_index.mappings.properties.embedding.index_options.ef_construction: 200 }
14401440

1441-
- do:
1442-
indices.put_mapping:
1443-
index: test_index
1444-
body:
1445-
properties:
1446-
embedding:
1447-
type: dense_vector
1448-
dims: 4
1449-
index_options:
1450-
type: int8_hnsw
1451-
m: 32
1452-
ef_construction: 200
1453-
confidence_interval: 0.3
1454-
1455-
- do:
1456-
indices.get_mapping:
1457-
index: test_index
1458-
1459-
- match: { test_index.mappings.properties.embedding.type: dense_vector }
1460-
- match: { test_index.mappings.properties.embedding.index_options.type: int8_hnsw }
1461-
- match: { test_index.mappings.properties.embedding.index_options.m: 32 }
1462-
- match: { test_index.mappings.properties.embedding.index_options.ef_construction: 200 }
1463-
- match: { test_index.mappings.properties.embedding.index_options.confidence_interval: 0.3 }
1464-
14651441
- do:
14661442
catch: /illegal_argument_exception/ # fails because m = 10 is less than the current value of 20
14671443
indices.put_mapping:
@@ -1475,7 +1451,6 @@ setup:
14751451
type: int8_hnsw
14761452
ef_construction: 200
14771453
m: 10
1478-
confidence_interval: 0.3
14791454

14801455
- do:
14811456
catch: /illegal_argument_exception/ # fails because m = 16 by default, which is less than the current value of 20
@@ -1489,7 +1464,6 @@ setup:
14891464
index_options:
14901465
type: int8_hnsw
14911466
ef_construction: 200
1492-
confidence_interval: 0.3
14931467

14941468
---
14951469
"Allowed dense vector updates on same type but different other index_options, int4_hnsw":
@@ -1612,26 +1586,6 @@ setup:
16121586
- match: { test_index.mappings.properties.embedding.type: dense_vector }
16131587
- match: { test_index.mappings.properties.embedding.index_options.type: int8_flat }
16141588

1615-
- do:
1616-
indices.put_mapping:
1617-
index: test_index
1618-
body:
1619-
properties:
1620-
embedding:
1621-
type: dense_vector
1622-
dims: 4
1623-
index_options:
1624-
type: int8_flat
1625-
confidence_interval: 0.3
1626-
1627-
- do:
1628-
indices.get_mapping:
1629-
index: test_index
1630-
1631-
- match: { test_index.mappings.properties.embedding.type: dense_vector }
1632-
- match: { test_index.mappings.properties.embedding.index_options.type: int8_flat }
1633-
- match: { test_index.mappings.properties.embedding.index_options.confidence_interval: 0.3 }
1634-
16351589
---
16361590
"Allowed dense vector updates on same type but different other index_options, int4_flat":
16371591
- requires:
@@ -1661,26 +1615,6 @@ setup:
16611615
- match: { test_index.mappings.properties.embedding.type: dense_vector }
16621616
- match: { test_index.mappings.properties.embedding.index_options.type: int4_flat }
16631617

1664-
- do:
1665-
indices.put_mapping:
1666-
index: test_index
1667-
body:
1668-
properties:
1669-
embedding:
1670-
type: dense_vector
1671-
dims: 4
1672-
index_options:
1673-
type: int4_flat
1674-
confidence_interval: 0.3
1675-
1676-
- do:
1677-
indices.get_mapping:
1678-
index: test_index
1679-
1680-
- match: { test_index.mappings.properties.embedding.type: dense_vector }
1681-
- match: { test_index.mappings.properties.embedding.index_options.type: int4_flat }
1682-
- match: { test_index.mappings.properties.embedding.index_options.confidence_interval: 0.3 }
1683-
16841618
---
16851619
"Allowed dense vector updates on same type but different other index_options, bbq_disk":
16861620
- requires:

x-pack/plugin/inference/src/yamlRestTest/resources/rest-api-spec/test/inference/10_semantic_text_field_mapping.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,6 @@ setup:
600600
type: int8_hnsw
601601
m: 20
602602
ef_construction: 100
603-
confidence_interval: 1.0
604603

605604
- do:
606605
indices.get_mapping:
@@ -609,7 +608,6 @@ setup:
609608
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.type": "int8_hnsw" }
610609
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.m": 20 }
611610
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.ef_construction": 100 }
612-
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.confidence_interval": 1.0 }
613611

614612
- do:
615613
index:
@@ -641,7 +639,6 @@ setup:
641639
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.type": int8_hnsw }
642640
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.m": 20 }
643641
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.ef_construction": 100 }
644-
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.confidence_interval": 1.0 }
645642

646643
---
647644
"Specifying incompatible dense vector index options will fail":
@@ -811,7 +808,6 @@ setup:
811808
type: int8_hnsw
812809
m: 16
813810
ef_construction: 100
814-
confidence_interval: 1.0
815811

816812
- do:
817813
indices.get_mapping:
@@ -820,7 +816,6 @@ setup:
820816
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.type": "int8_hnsw" }
821817
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.m": 16 }
822818
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.ef_construction": 100 }
823-
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.confidence_interval": 1.0 }
824819

825820
- do:
826821
indices.put_mapping:
@@ -835,7 +830,6 @@ setup:
835830
type: int8_hnsw
836831
m: 20
837832
ef_construction: 90
838-
confidence_interval: 1.0
839833

840834
- do:
841835
indices.get_mapping:
@@ -844,7 +838,6 @@ setup:
844838
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.type": "int8_hnsw" }
845839
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.m": 20 }
846840
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.ef_construction": 90 }
847-
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.confidence_interval": 1.0 }
848841

849842
- do:
850843
catch: /Cannot update parameter \[index_options\]/

x-pack/plugin/inference/src/yamlRestTest/resources/rest-api-spec/test/inference/10_semantic_text_field_mapping_bwc.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,6 @@ setup:
500500
type: int8_hnsw
501501
m: 20
502502
ef_construction: 100
503-
confidence_interval: 1.0
504503

505504
- do:
506505
indices.get_mapping:
@@ -509,7 +508,6 @@ setup:
509508
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.type": "int8_hnsw" }
510509
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.m": 20 }
511510
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.ef_construction": 100 }
512-
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.confidence_interval": 1.0 }
513511

514512
- do:
515513
index:
@@ -530,7 +528,6 @@ setup:
530528
type: int8_hnsw
531529
m: 20
532530
ef_construction: 100
533-
confidence_interval: 1.0
534531
chunks:
535532
- text: "these are not the droids you're looking for"
536533
embeddings: [ 0.04673296958208084, -0.03237321600317955, -0.02543032355606556, 0.056035321205854416 ]
@@ -545,7 +542,6 @@ setup:
545542
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.type": "int8_hnsw" }
546543
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.m": 20 }
547544
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.ef_construction": 100 }
548-
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.confidence_interval": 1.0 }
549545

550546
---
551547
"Specifying incompatible dense vector index options will fail":
@@ -715,7 +711,6 @@ setup:
715711
type: int8_hnsw
716712
m: 16
717713
ef_construction: 100
718-
confidence_interval: 1.0
719714

720715
- do:
721716
indices.get_mapping:
@@ -724,7 +719,6 @@ setup:
724719
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.type": "int8_hnsw" }
725720
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.m": 16 }
726721
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.ef_construction": 100 }
727-
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.confidence_interval": 1.0 }
728722

729723
- do:
730724
indices.put_mapping:
@@ -739,7 +733,6 @@ setup:
739733
type: int8_hnsw
740734
m: 20
741735
ef_construction: 90
742-
confidence_interval: 1.0
743736

744737
- do:
745738
indices.get_mapping:
@@ -748,7 +741,6 @@ setup:
748741
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.type": "int8_hnsw" }
749742
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.m": 20 }
750743
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.ef_construction": 90 }
751-
- match: { "test-index-options.mappings.properties.semantic_field.index_options.dense_vector.confidence_interval": 1.0 }
752744

753745
- do:
754746
catch: /Cannot update parameter \[index_options\]/

0 commit comments

Comments
 (0)