Skip to content

Commit 2371cae

Browse files
authored
[DOCS] Fixes response object indentation in semantic text tutorial (#112915)
1 parent c456e13 commit 2371cae

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

docs/reference/search/search-your-data/semantic-search-semantic-text.asciidoc

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,12 @@ query from the `semantic-embedding` index:
179179
"hits": [
180180
{
181181
"_index": "semantic-embeddings",
182-
"_id": "6DdEuo8B0vYIvzmhoEtt",
183-
"_score": 24.972616,
182+
"_id": "Jy5065EBBFPLbFsdh_f9",
183+
"_score": 21.487484,
184184
"_source": {
185+
"id": 8836652,
185186
"content": {
187+
"text": "There are a few foods and food groups that will help to fight inflammation and delayed onset muscle soreness (both things that are inevitable after a long, hard workout) when you incorporate them into your postworkout eats, whether immediately after your run or at a meal later in the day. Advertisement. Advertisement.",
186188
"inference": {
187189
"inference_id": "my-elser-endpoint",
188190
"model_settings": {
@@ -197,17 +199,17 @@ query from the `semantic-embedding` index:
197199
}
198200
]
199201
}
200-
},
201-
"id": 1713868,
202-
"text": "There are a few foods and food groups that will help to fight inflammation and delayed onset muscle soreness (both things that are inevitable after a long, hard workout) when you incorporate them into your postworkout eats, whether immediately after your run or at a meal later in the day. Advertisement. Advertisement."
202+
}
203203
}
204204
},
205205
{
206206
"_index": "semantic-embeddings",
207-
"_id": "-zdEuo8B0vYIvzmhplLX",
208-
"_score": 22.143118,
207+
"_id": "Ji5065EBBFPLbFsdh_f9",
208+
"_score": 18.211695,
209209
"_source": {
210+
"id": 8836651,
210211
"content": {
212+
"text": "During Your Workout. There are a few things you can do during your workout to help prevent muscle injury and soreness. According to personal trainer and writer for Iron Magazine, Marc David, doing warm-ups and cool-downs between sets can help keep muscle soreness to a minimum.",
211213
"inference": {
212214
"inference_id": "my-elser-endpoint",
213215
"model_settings": {
@@ -222,17 +224,17 @@ query from the `semantic-embedding` index:
222224
}
223225
]
224226
}
225-
},
226-
"id": 3389244,
227-
"text": "During Your Workout. There are a few things you can do during your workout to help prevent muscle injury and soreness. According to personal trainer and writer for Iron Magazine, Marc David, doing warm-ups and cool-downs between sets can help keep muscle soreness to a minimum."
227+
}
228228
}
229229
},
230230
{
231231
"_index": "semantic-embeddings",
232-
"_id": "77JEuo8BdmhTuQdXtQWt",
233-
"_score": 21.506052,
232+
"_id": "Wi5065EBBFPLbFsdh_b9",
233+
"_score": 13.089405,
234234
"_source": {
235+
"id": 8800197,
235236
"content": {
237+
"text": "This is especially important if the soreness is due to a weightlifting routine. For this time period, do not exert more than around 50% of the level of effort (weight, distance and speed) that caused the muscle groups to be sore.",
236238
"inference": {
237239
"inference_id": "my-elser-endpoint",
238240
"model_settings": {
@@ -247,12 +249,9 @@ query from the `semantic-embedding` index:
247249
}
248250
]
249251
}
250-
},
251-
"id": 363742,
252-
"text": "This is especially important if the soreness is due to a weightlifting routine. For this time period, do not exert more than around 50% of the level of effort (weight, distance and speed) that caused the muscle groups to be sore."
252+
}
253253
}
254-
},
255-
(...)
254+
}
256255
]
257256
------------------------------------------------------------
258257
// NOTCONSOLE

0 commit comments

Comments
 (0)