Skip to content

Commit

Permalink
Simplify the int8_hnsw MIP yaml test (#104331) (#104404)
Browse files Browse the repository at this point in the history
The test is unnecessarily complicated with its vectors. This simplifies
the vectors and the test. We mainly care about extreme weirdness &
server level failures.

closes: #104297
  • Loading branch information
benwtrent authored Jan 16, 2024
1 parent e4bbea7 commit 96593fe
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,23 +249,23 @@ setup:
id: "1"
body:
name: cow.jpg
vector: [230.0, 300.33, -34.8988, 15.555, -200.0]
vector: [1, 2, 3, 4, 5]

- do:
index:
index: mip
id: "2"
body:
name: moose.jpg
vector: [-0.5, 10.0, -13, 14.8, 15.0]
vector: [1, 1, 1, 1, 1]

- do:
index:
index: mip
id: "3"
body:
name: rabbit.jpg
vector: [0.5, 111.3, -13.0, 14.8, -156.0]
vector: [1, 2, 2, 2, 2]

# We force merge into a single segment to make sure scores are more uniform
# Each segment can have a different quantization error, which can affect scores and mip is especially sensitive to this
Expand All @@ -286,7 +286,7 @@ setup:
num_candidates: 3
k: 3
field: vector
query_vector: [-0.5, 90.0, -10, 14.8, -156.0]
query_vector: [1, 2, 3, 4, 5]


- length: {hits.hits: 3}
Expand All @@ -303,7 +303,7 @@ setup:
num_candidates: 3
k: 3
field: vector
query_vector: [-0.5, 90.0, -10, 14.8, -156.0]
query_vector: [1, 2, 3, 4, 5]
filter: { "term": { "name": "moose.jpg" } }


Expand Down

0 comments on commit 96593fe

Please sign in to comment.