File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
docs/reference/query-languages/esql/_snippets/commands/layout Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,26 @@ The `COMPLETION` command allows you to send prompts and context to a Large Langu
99
1010**Syntax**
1111
12+ ::::{tab-set}
13+
14+ :::{tab-item} Serverless and >= 9.2.0
15+
1216` ` ` esql
1317COMPLETION [column =] prompt WITH { "inference_id" : "my_inference_endpoint" }
1418` ` `
1519
20+ :: :
21+
22+ :::{tab-item} 9.1.x only
23+
24+ ` ` ` esql
25+ COMPLETION [column =] prompt WITH ny_inference_endpoint
26+ ` ` `
27+
28+ :: :
29+
30+ ::: :
31+
1632**Parameters**
1733
1834` column`
@@ -24,7 +40,7 @@ COMPLETION [column =] prompt WITH { "inference_id" : "my_inference_endpoint" }
2440: The input text or expression used to prompt the LLM.
2541 This can be a string literal or a reference to a column containing text.
2642
27- ` inference_id `
43+ ` my_inference_endpoint `
2844: The ID of the [inference endpoint](docs-content://explore-analyze/elastic-inference/inference-api.md) to use for the task.
2945 The inference endpoint must be configured with the `completion` task type.
3046
@@ -75,7 +91,7 @@ How you increase the timeout depends on your deployment type:
7591If you don't want to increase the timeout limit, try the following :
7692
7793* Reduce data volume with `LIMIT` or more selective filters before the `COMPLETION` command
78- * Split complex operations into multiple simpler queries
94+ * Split complex operations into multiple simpler queries
7995* Configure your HTTP client's response timeout (Refer to [HTTP client configuration](/reference/elasticsearch/configuration-reference/networking-settings.md#_http_client_configuration))
8096
8197
You can’t perform that action at this time.
0 commit comments