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
You can use either preconfigured endpoints in your `semantic_text` fields which
43
+
are ideal for most use cases or create custom endpoints and reference them in
44
+
the field mappings.
45
+
46
+
### Using the default ELSER endpoint
47
+
40
48
If you use the preconfigured `.elser-2-elasticsearch` endpoint, you can set up
41
49
`semantic_text` with the following API request:
42
50
@@ -53,6 +61,8 @@ PUT my-index-000001
53
61
}
54
62
```
55
63
64
+
### Using a custom endpoint
65
+
56
66
To use a custom {{infer}} endpoint instead of the default
57
67
`.elser-2-elasticsearch`, you
58
68
must [Create {{infer}} API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put)
@@ -96,6 +106,35 @@ PUT my-index-000003
96
106
}
97
107
```
98
108
109
+
### Using ELSER on EIS
110
+
111
+
```{applies_to}
112
+
stack: preview 9.1
113
+
serverless: preview
114
+
```
115
+
116
+
If you use the preconfigured `.elser-2-elastic` endpoint that utilizes the ELSER model as a service through the Elastic Inference Service ([ELSER on EIS](docs-content://explore-analyze/elastic-inference/eis.md#elser-on-eis)), you can
117
+
set up `semantic_text` with the following API request:
118
+
119
+
```console
120
+
PUT my-index-000001
121
+
{
122
+
"mappings": {
123
+
"properties": {
124
+
"inference_field": {
125
+
"type": "semantic_text",
126
+
"inference_id": ".elser-2-elastic"
127
+
}
128
+
}
129
+
}
130
+
}
131
+
```
132
+
133
+
::::{note}
134
+
While we do encourage experimentation, we do not recommend implementing production use cases on top of this feature while it is in Technical Preview.
135
+
136
+
::::
137
+
99
138
## Parameters for `semantic_text` fields [semantic-text-params]
0 commit comments