Skip to content

Commit fb3caa7

Browse files
authored
Add inference fields to semantic text docs (#132471)
1 parent 7ec5b41 commit fb3caa7

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
@@ -486,6 +486,29 @@ PUT test-index
486486
}
487487
```
488488

489+
## Troubleshooting semantic_text fields [troubleshooting-semantic-text-fields]
490+
491+
If you want to verify that your embeddings look correct, you can view the
492+
inference data that `semantic_text` typically hides using `fields`.
493+
494+
```console
495+
POST test-index/_search
496+
{
497+
"query": {
498+
"match": {
499+
"my_semantic_field": "Which country is Paris in?"
500+
},
501+
"fields": [
502+
"_inference_fields"
503+
]
504+
}
505+
}
506+
```
507+
508+
This will return verbose chunked embeddings content that is used to perform
509+
semantic search for `semantic_text` fields.
510+
511+
489512
## Limitations [limitations]
490513

491514
`semantic_text` field types have the following limitations:

0 commit comments

Comments
 (0)