Skip to content

Commit bdfd2d1

Browse files
authored
Add inference fields to semantic text docs (#132471) (#132504)
1 parent adad883 commit bdfd2d1

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

docs/reference/elasticsearch/mapping-reference/semantic-text.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,29 @@ PUT test-index
445445
}
446446
```
447447

448+
## Troubleshooting semantic_text fields [troubleshooting-semantic-text-fields]
449+
450+
If you want to verify that your embeddings look correct, you can view the
451+
inference data that `semantic_text` typically hides using `fields`.
452+
453+
```console
454+
POST test-index/_search
455+
{
456+
"query": {
457+
"match": {
458+
"my_semantic_field": "Which country is Paris in?"
459+
},
460+
"fields": [
461+
"_inference_fields"
462+
]
463+
}
464+
}
465+
```
466+
467+
This will return verbose chunked embeddings content that is used to perform
468+
semantic search for `semantic_text` fields.
469+
470+
448471
## Limitations [limitations]
449472

450473
`semantic_text` field types have the following limitations:

0 commit comments

Comments
 (0)