Skip to content

Commit 33bc8f3

Browse files
author
elasticsearchmachine
committed
Fix tests
1 parent 9e0c372 commit 33bc8f3

File tree

2 files changed

+50
-50
lines changed

2 files changed

+50
-50
lines changed

x-pack/plugin/esql/qa/testFixtures/src/main/resources/vector-cosine-similarity.csv-spec

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@ gray | 0.9082483053207397
4141
| keep color, score
4242
;
4343

44-
color:text | score:double
45-
cyan | 1.5
46-
teal | 1.5
47-
turquoise | 1.495
48-
aqua marine | 1.482
49-
azure | 1.458
50-
lavender | 1.457
51-
honeydew | 1.456
52-
mint cream | 1.456
53-
gainsboro | 1.454
54-
gray | 1.454
44+
color:text | score:double
45+
cyan | 1.5
46+
teal | 1.5
47+
turquoise | 1.489
48+
aqua marine | 1.465
49+
azure | 1.416
50+
lavender | 1.414
51+
honeydew | 1.412
52+
mint cream | 1.412
53+
gainsboro | 1.408
54+
gray | 1.408
5555
;
5656

5757
similarityWithLiteralVectors
@@ -64,7 +64,7 @@ row a = 1
6464
;
6565

6666
similarity:double
67-
0.978
67+
0.956
6868
;
6969

7070
similarityWithStats
@@ -78,7 +78,7 @@ similarity:double
7878
;
7979

8080
avg:double | min:double | max:double
81-
0.832 | 0.5 | 1.0
81+
0.664 | 0.0 | 1.0
8282
;
8383

8484
similarityWithNull
@@ -104,8 +104,8 @@ row vector = to_dense_vector([1, 2, 3])
104104
| eval similarity = round(v_cosine(vector, [0, 1, 2]), 3)
105105
;
106106

107-
vector: dense_vector | similarity:double
108-
[1.0, 2.0, 3.0] | 0.978
107+
vector:dense_vector | similarity:double
108+
[1.0, 2.0, 3.0] | 0.956
109109
;
110110

111111
similarityWithVectorField
@@ -122,15 +122,15 @@ from colors
122122
| keep color, similarity
123123
;
124124

125-
color:text | similarity:double
126-
cyan | 1.0
127-
teal | 1.0
128-
turquoise | 0.9890533685684204
129-
aqua marine | 0.964962363243103
130-
azure | 0.916246771812439
131-
lavender | 0.9136701822280884
132-
mint cream | 0.9122757911682129
133-
honeydew | 0.9122424125671387
134-
gainsboro | 0.9082483053207397
135-
gray | 0.9082483053207397
125+
color:text | similarity:double
126+
cyan | 1.0
127+
teal | 1.0
128+
turquoise | 0.9781067967414856
129+
aqua marine | 0.929924726486206
130+
azure | 0.8324936032295227
131+
lavender | 0.827340304851532
132+
mint cream | 0.8245516419410706
133+
honeydew | 0.8244848847389221
134+
gainsboro | 0.8164966106414795
135+
gray | 0.8164966106414795
136136
;

x-pack/plugin/esql/qa/testFixtures/src/main/resources/vector-dot-product.csv-spec

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@ from colors
4040
;
4141

4242
color:text | score:double
43-
azure | 32513.75
44-
cyan | 32513.75
45-
white | 32513.75
46-
mint cream | 32195.0
47-
snow | 31876.25
48-
honeydew | 31557.5
49-
ivory | 31557.5
50-
sea shell | 30792.5
51-
lavender | 30601.25
52-
old lace | 30282.5
43+
azure | 65026.0
44+
cyan | 65026.0
45+
white | 65026.0
46+
mint cream | 64388.5
47+
snow | 63751.0
48+
honeydew | 63113.5
49+
ivory | 63113.5
50+
sea shell | 61583.5
51+
lavender | 61201.0
52+
old lace | 60563.5
5353
;
5454

5555
similarityWithLiteralVectors
@@ -62,7 +62,7 @@ row a = 1
6262
;
6363

6464
similarity:double
65-
4.5
65+
8.0
6666
;
6767

6868
similarityWithStats
@@ -75,7 +75,7 @@ from colors
7575
;
7676

7777
avg:double | min:double | max:double
78-
39519.017 | 0.5 | 65025.5
78+
79037.034 | 0.0 | 130050.0
7979
;
8080

8181
similarityWithNull
@@ -102,8 +102,8 @@ row vector = to_dense_vector([1, 2, 3])
102102
| eval similarity = round(v_dot_product(vector, [0, 1, 2]), 3)
103103
;
104104

105-
vector: dense_vector | similarity:double
106-
[1.0, 2.0, 3.0] | 4.5
105+
vector:dense_vector | similarity:double
106+
[1.0, 2.0, 3.0] | 8.0
107107
;
108108

109109
similarityWithVectorField
@@ -120,14 +120,14 @@ from colors
120120
;
121121

122122
color:text | similarity:double
123-
azure | 65025.5
124-
cyan | 65025.5
125-
white | 65025.5
126-
mint cream | 64388.0
127-
snow | 63750.5
128-
honeydew | 63113.0
129-
ivory | 63113.0
130-
sea shell | 61583.0
131-
lavender | 61200.5
132-
old lace | 60563.0
123+
azure | 130050.0
124+
cyan | 130050.0
125+
white | 130050.0
126+
mint cream | 128775.0
127+
snow | 127500.0
128+
honeydew | 126225.0
129+
ivory | 126225.0
130+
sea shell | 123165.0
131+
lavender | 122400.0
132+
old lace | 121125.0
133133
;

0 commit comments

Comments
 (0)