@@ -18,31 +18,30 @@ COMPLETION [column =] prompt WITH inference_id
1818` column`
1919: (Optional) The name of the output column containing the LLM's response.
2020 If not specified, the results will be stored in a column named `completion`.
21- If the specified column already exists, it will be overwritten with the new completion results.
21+ If the specified column already exists, it will be overwritten with the new results.
2222
2323` prompt`
24- : The input text or expression that will be used as the prompt for the completion .
24+ : The input text or expression used to prompt the LLM .
2525 This can be a string literal or a reference to a column containing text.
2626
2727` inference_id`
28- : The ID of the inference endpoint to use for text completion .
28+ : The ID of the [ inference endpoint](docs-content://explore-analyze/elastic-inference/inference-api) to use for the task .
2929 The inference endpoint must be configured with the `completion` task type.
3030
3131**Description**
3232
3333The `COMPLETION` command provides a general-purpose interface for
34- text generation using a Large Language Model (LLM) in ES|QL.
34+ text generation tasks using a Large Language Model (LLM) in ES|QL.
3535
36- ` COMPLETION` supports a wide range of text generation tasks. Depending on your
37- prompt and the model you use, you can perform arbitrary text generation,
36+ ` COMPLETION` supports a wide range of text generation tasks. Depending on your
37+ prompt and the model you use, you can perform arbitrary text generation tasks
3838including :
3939
4040- Question answering
4141- Summarization
4242- Translation
4343- Content rewriting
4444- Creative generation
45- - ...
4645
4746The command works with any LLM deployed to
4847the [Elasticsearch inference API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put)
0 commit comments