[ES|QL] Add doc for the COMPLETION command#131010
Conversation
|
Pinging @elastic/es-docs (Team:Docs) |
|
Pinging @elastic/es-analytical-engine (Team:Analytics) |
🔍 Preview links for changed docs |
There was a problem hiding this comment.
My main thought reading this is that "completion" is kind of a misnomer, or it's underselling the power of the command. This is really a more general-purpose LLM text generation interface using ESQL. I'm thinking the docs could be clearer if you agree:
- for me "completion" suggests it only finishes incomplete text
- actually does arbitrary text generation tasks (qa, summarization, translation, etc.) based on the model you use
- we could frame the capabilities as "text generation" instead of "completion"
TBC I'm not expecting we rename the command, just how we describe it 😄
docs/reference/query-languages/esql/_snippets/commands/layout/completion.md
Show resolved
Hide resolved
|
@afoucret just confirming, is COMPLETION landing in 9.1? Checking because we need to add the command to the Kibana inline docs manually, unlike functions/operators which works automatically |
| **Description** | ||
|
|
||
| The `COMPLETION` processing command provides a general-purpose interface for | ||
| text generation using a Large Language Model (LLM) in ES|QL. | ||
|
|
||
| `COMPLETION`supports a wide range of text generation tasks. Depending on your | ||
| prompt and the model you use, you can perform arbitrary text generation, | ||
| including: | ||
|
|
||
| - Question answering | ||
| - Summarization | ||
| - Translation | ||
| - Content rewriting | ||
| - Creative generation | ||
| - ... | ||
|
|
||
| The command works with any LLM deployed to | ||
| the [Elasticsearch inference API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put) | ||
| and can be chained with other ES|QL commands for further processing. |
There was a problem hiding this comment.
I have completely rewritten the command description to emphasize it's multi-purpose LLM based text generation capabilities. @leemthompo Is it better for you?
There was a problem hiding this comment.
Thanks for iterating @afoucret, the power of COMPLETION is much clearer now! I have a suggestion for the intro sentence, and some minor edits.
The last outstanding question for me is how we make the inference endpoint requirement clearer.
docs/reference/query-languages/esql/_snippets/commands/layout/completion.md
Outdated
Show resolved
Hide resolved
docs/reference/query-languages/esql/_snippets/commands/layout/completion.md
Outdated
Show resolved
Hide resolved
docs/reference/query-languages/esql/_snippets/commands/layout/completion.md
Outdated
Show resolved
Hide resolved
docs/reference/query-languages/esql/_snippets/commands/layout/completion.md
Outdated
Show resolved
Hide resolved
docs/reference/query-languages/esql/_snippets/commands/layout/completion.md
Outdated
Show resolved
Hide resolved
docs/reference/query-languages/esql/_snippets/commands/layout/completion.md
Outdated
Show resolved
Hide resolved
docs/reference/query-languages/esql/_snippets/commands/layout/completion.md
Outdated
Show resolved
Hide resolved
docs/reference/query-languages/esql/_snippets/commands/layout/completion.md
Outdated
Show resolved
Hide resolved
docs/reference/query-languages/esql/_snippets/commands/layout/completion.md
Outdated
Show resolved
Hide resolved
docs/reference/query-languages/esql/_snippets/commands/layout/completion.md
Outdated
Show resolved
Hide resolved
…completion.md Co-authored-by: Liam Thompson <leemthompo@gmail.com>
…completion.md Co-authored-by: Liam Thompson <leemthompo@gmail.com>
Co-authored-by: Liam Thompson <leemthompo@gmail.com>
docs/reference/query-languages/esql/_snippets/commands/layout/completion.md
Outdated
Show resolved
Hide resolved
leemthompo
left a comment
There was a problem hiding this comment.
Thanks for iterating, approving with few final nits, a fix for the broken link I provided, and knowing you will fix the Requirements section 👍
docs/reference/query-languages/esql/_snippets/commands/layout/completion.md
Outdated
Show resolved
Hide resolved
docs/reference/query-languages/esql/_snippets/commands/layout/completion.md
Outdated
Show resolved
Hide resolved
docs/reference/query-languages/esql/_snippets/commands/layout/completion.md
Outdated
Show resolved
Hide resolved
docs/reference/query-languages/esql/_snippets/commands/layout/completion.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Liam Thompson <leemthompo@gmail.com>
💚 Backport successful
|
…king * upstream/main: (100 commits) Term vector API on stateless search nodes (elastic#129902) TEST Fix ThreadPoolMergeSchedulerStressTestIT testMergingFallsBehindAndThenCatchesUp (elastic#131636) Add inference.put_custom rest-api-spec (elastic#131660) ESQL: Fewer serverless docs in tests (elastic#131651) Skip search on indices with INDEX_REFRESH_BLOCK (elastic#129132) Mute org.elasticsearch.indices.cluster.RemoteSearchForceConnectTimeoutIT testTimeoutSetting elastic#131656 [jdk] Resolve EA OpenJDK builds to our JDK archive (elastic#131237) Add optimized path for intermediate values aggregator (elastic#131390) Correctly handling download_database_on_pipeline_creation within a pipeline processor within a default or final pipeline (elastic#131236) Refresh potential lost connections at query start for `_search` (elastic#130463) Add template_id to patterned-text type (elastic#131401) Integrate LIKE/RLIKE LIST with ReplaceStringCasingWithInsensitiveRegexMatch rule (elastic#131531) [ES|QL] Add doc for the COMPLETION command (elastic#131010) ESQL: Add times to topn status (elastic#131555) ESQL: Add asynchronous pre-optimization step for logical plan (elastic#131440) ES|QL: Improve generative tests for FORK [130015] (elastic#131206) Update index mapping update privileges (elastic#130894) ESQL: Added Sample operator NamedWritable to plugin (elastic#131541) update `kibana_system` to grant it access to `.chat-*` system index (elastic#131419) Clarify heap size configuration (elastic#131607) ...
…-tracking * upstream/main: (44 commits) Term vector API on stateless search nodes (elastic#129902) TEST Fix ThreadPoolMergeSchedulerStressTestIT testMergingFallsBehindAndThenCatchesUp (elastic#131636) Add inference.put_custom rest-api-spec (elastic#131660) ESQL: Fewer serverless docs in tests (elastic#131651) Skip search on indices with INDEX_REFRESH_BLOCK (elastic#129132) Mute org.elasticsearch.indices.cluster.RemoteSearchForceConnectTimeoutIT testTimeoutSetting elastic#131656 [jdk] Resolve EA OpenJDK builds to our JDK archive (elastic#131237) Add optimized path for intermediate values aggregator (elastic#131390) Correctly handling download_database_on_pipeline_creation within a pipeline processor within a default or final pipeline (elastic#131236) Refresh potential lost connections at query start for `_search` (elastic#130463) Add template_id to patterned-text type (elastic#131401) Integrate LIKE/RLIKE LIST with ReplaceStringCasingWithInsensitiveRegexMatch rule (elastic#131531) [ES|QL] Add doc for the COMPLETION command (elastic#131010) ESQL: Add times to topn status (elastic#131555) ESQL: Add asynchronous pre-optimization step for logical plan (elastic#131440) ES|QL: Improve generative tests for FORK [130015] (elastic#131206) Update index mapping update privileges (elastic#130894) ESQL: Added Sample operator NamedWritable to plugin (elastic#131541) update `kibana_system` to grant it access to `.chat-*` system index (elastic#131419) Clarify heap size configuration (elastic#131607) ...
No description provided.