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
{applies_to}`stack: preview 9.1` If you use the preconfigured `.elser-2-elastic` endpoint that utilizes the ELSER model as a service (ELSER on EIS), you can
37
-
set up `semantic_text` with the following API request:
36
+
## Default and custom endpoints
38
37
39
-
```console
40
-
PUT my-index-000001
41
-
{
42
-
"mappings": {
43
-
"properties": {
44
-
"inference_field": {
45
-
"type": "semantic_text",
46
-
"inference_id": ".elser-2-elastic"
47
-
}
48
-
}
49
-
}
50
-
}
51
-
```
38
+
### Using the default ELSER endpoint
52
39
53
40
If you use the preconfigured `.elser-2-elasticsearch` endpoint, you can set up
54
41
`semantic_text` with the following API request:
@@ -66,6 +53,8 @@ PUT my-index-000001
66
53
}
67
54
```
68
55
56
+
### Using a custom endpoint
57
+
69
58
To use a custom {{infer}} endpoint instead of the default
70
59
`.elser-2-elasticsearch`, you
71
60
must [Create {{infer}} API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put)
@@ -109,6 +98,32 @@ PUT my-index-000003
109
98
}
110
99
```
111
100
101
+
### Using ELSER on EIS
102
+
103
+
```{applies_to}
104
+
stack: preview 9.1
105
+
serverless: preview
106
+
```
107
+
108
+
If you use the preconfigured `.elser-2-elastic` endpoint that utilizes the ELSER model as a service ([ELSER on EIS](docs-content://explore-analyze/elastic-inference/eis.md#elser-on-eis)), you can
109
+
set up `semantic_text` with the following API request:
110
+
111
+
```console
112
+
PUT my-index-000001
113
+
{
114
+
"mappings": {
115
+
"properties": {
116
+
"inference_field": {
117
+
"type": "semantic_text",
118
+
"inference_id": ".elser-2-elastic"
119
+
}
120
+
}
121
+
}
122
+
}
123
+
```
124
+
125
+
While we do encourage experimentation, we do not recommend implementing production use cases on top of this feature while it is in Technical Preview.
126
+
112
127
## Parameters for `semantic_text` fields [semantic-text-params]
0 commit comments