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
+31-1Lines changed: 31 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,9 +46,39 @@ including:
46
46
**Requirements**
47
47
48
48
To use this command, you must deploy your LLM model in Elasticsearch as
49
-
an [≈inference endpoint](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put) with the
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
53
+
54
+
`COMPLETION`commands may time out when processing large datasets or complex prompts. The default timeout is 10 minutes, but you can increase this limit if necessary.
55
+
56
+
How you increase the timeout depends on your deployment type:
57
+
58
+
::::{tab-set}
59
+
:::{tab-item} {{ech}}
60
+
* You can adjust {{es}} settings in the [Elastic Cloud Console](docs-content://deploy-manage/deploy/elastic-cloud/edit-stack-settings.md)
61
+
* You can also adjust the `search.default_search_timeout` cluster setting using [Kibana's Advanced settings](kibana://reference/advanced-settings.md#kibana-search-settings)
62
+
:::
63
+
64
+
:::{tab-item} Self-managed
65
+
* You can configure at the cluster level by setting `search.default_search_timeout` in `elasticsearch.yml` or updating via [Cluster Settings API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-settings)
66
+
* You can also adjust the `search:timeout` setting using [Kibana's Advanced settings](kibana://reference/advanced-settings.md#kibana-search-settings)
67
+
* Alternatively, you can add timeout parameters to individual queries
68
+
:::
69
+
70
+
:::{tab-item} {{serverless-full}}
71
+
* Requires a manual override from Elastic Support because you cannot modify timeout settings directly
72
+
:::
73
+
::::
74
+
75
+
If you don't want to increase the timeout limit, try the following:
76
+
77
+
* Reduce data volume with `LIMIT` or more selective filters before the `COMPLETION` command
78
+
* Split complex operations into multiple simpler queries
79
+
* Configure your HTTP client's response timeout (Refer to [HTTP client configuration](/reference/elasticsearch/configuration-reference/networking-settings.md#_http_client_configuration))
80
+
81
+
52
82
**Examples**
53
83
54
84
Use the default column name (results stored in `completion` column):
0 commit comments