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
Copy file name to clipboardExpand all lines: docs/reference/query-languages/esql/_snippets/commands/layout/completion.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,13 @@ stack: preview 9.1.0
7
7
8
8
The `COMPLETION` command allows you to send prompts and context to a Large Language Model (LLM) directly within your ES|QL queries, to perform text generation tasks.
9
9
10
-
**Syntax**
10
+
### Syntax
11
11
12
12
```esql
13
13
COMPLETION [column =] prompt WITH inference_id
14
14
```
15
15
16
-
**Parameters**
16
+
### Parameters
17
17
18
18
`column`
19
19
: (Optional) The name of the output column containing the LLM's response.
@@ -28,7 +28,7 @@ COMPLETION [column =] prompt WITH inference_id
28
28
: The ID of the [inference endpoint](docs-content://explore-analyze/elastic-inference/inference-api.md) to use for the task.
29
29
The inference endpoint must be configured with the `completion` task type.
30
30
31
-
**Description**
31
+
## Description
32
32
33
33
The `COMPLETION` command provides a general-purpose interface for
34
34
text generation tasks using a Large Language Model (LLM) in ES|QL.
@@ -43,13 +43,13 @@ including:
43
43
- Content rewriting
44
44
- Creative generation
45
45
46
-
**Requirements**
46
+
## Requirements
47
47
48
48
To use this command, you must deploy your LLM model in Elasticsearch as
49
49
an [inference endpoint](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put) with the
50
50
task type `completion`.
51
51
52
-
**Handling timeouts**
52
+
### Handling timeouts
53
53
54
54
`COMPLETION` commands may time out when processing large datasets or complex prompts. To increase timeout limits for these operations, the configuration methods vary by deployment type:
55
55
@@ -75,7 +75,7 @@ Requires a manual override from Elastic Support as users cannot modify timeout s
75
75
76
76
* Reduce data volume with `LIMIT` or more selective filters before the `COMPLETION` command
77
77
* Split complex operations into multiple simpler queries
78
-
* Configure your HTTP client's response timeout (Refer to [HTTP client configuration](/reference/configuration-reference/networking-settings.md#_http_client_configuration)
78
+
* Configure your HTTP client's response timeout (Refer to [HTTP client configuration](/reference/elasticsearch/configuration-reference/networking-settings.md#_http_client_configuration)
0 commit comments