You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: x-pack/plugin/inference/src/yamlRestTest/resources/rest-api-spec/test/inference/70_text_similarity_rank_retriever.yml
+48-5Lines changed: 48 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -76,8 +76,30 @@ setup:
76
76
retriever:
77
77
standard:
78
78
query:
79
-
term:
80
-
topic: "science"
79
+
bool: {
80
+
should: [
81
+
{
82
+
constant_score: {
83
+
filter: {
84
+
term: {
85
+
subtopic: "technology"
86
+
}
87
+
},
88
+
boost: 10
89
+
}
90
+
},
91
+
{
92
+
constant_score: {
93
+
filter: {
94
+
term: {
95
+
subtopic: "astronomy"
96
+
}
97
+
},
98
+
boost: 1
99
+
}
100
+
}
101
+
]
102
+
}
81
103
rank_window_size: 10
82
104
inference_id: my-rerank-model
83
105
inference_text: "How often does the moon hide the sun?"
0 commit comments