Skip to content

Commit f452dfc

Browse files
Add yml test
1 parent 9c1db2d commit f452dfc

File tree

1 file changed

+15
-0
lines changed
  • x-pack/plugin/gpu/src/yamlRestTest/resources/rest-api-spec/test/gpu

1 file changed

+15
-0
lines changed

x-pack/plugin/gpu/src/yamlRestTest/resources/rest-api-spec/test/gpu/10_basic.yml renamed to x-pack/plugin/gpu/src/yamlRestTest/resources/rest-api-spec/test/gpu/10_hnsw.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,18 @@
9999
k: 10
100100
- match: { hits.total.value: 5 }
101101
- match: { hits.hits.0._id: "2" }
102+
103+
- do:
104+
indices.forcemerge:
105+
index: my_vectors
106+
max_num_segments: 1
107+
108+
- do:
109+
search:
110+
index: my_vectors
111+
body:
112+
knn:
113+
field: embedding
114+
query_vector: [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]
115+
k: 10
116+
- match: { hits.total.value: 5 }

0 commit comments

Comments
 (0)