Browse Source

Add inference fields to semantic text docs (#132471) (#132504)

Kathleen DeRusso 2 months ago
parent
commit
bdfd2d1ef8
1 changed files with 23 additions and 0 deletions
  1. 23 0
      docs/reference/elasticsearch/mapping-reference/semantic-text.md

+ 23 - 0
docs/reference/elasticsearch/mapping-reference/semantic-text.md

@@ -445,6 +445,29 @@ PUT test-index
 }
 ```
 
+## Troubleshooting semantic_text fields [troubleshooting-semantic-text-fields]
+
+If you want to verify that your embeddings look correct, you can view the
+inference data that `semantic_text` typically hides using `fields`.
+
+```console
+POST test-index/_search
+{
+    "query": {
+        "match": {
+            "my_semantic_field": "Which country is Paris in?"
+        },
+        "fields": [
+            "_inference_fields"
+          ]
+    }
+}
+```
+
+This will return verbose chunked embeddings content that is used to perform
+semantic search for `semantic_text` fields.
+
+
 ## Limitations [limitations]
 
 `semantic_text` field types have the following limitations: