-
Notifications
You must be signed in to change notification settings - Fork 25.2k
[ES|QL] COMPLETION command analysis. #126677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ES|QL] COMPLETION command analysis. #126677
Conversation
Pinging @elastic/es-analytical-engine (Team:Analytics) |
@@ -3642,6 +3633,117 @@ public void testResolveRerankScoreField() { | |||
} | |||
} | |||
|
|||
public void testResolveCompletionInferenceId() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ℹ️ The code that does the inference resolution is from the #123074 PR.
prompt = prompt.transformUp(UnresolvedAttribute.class, ua -> maybeResolveAttribute(ua, childrenOutput)); | ||
} | ||
|
||
if (prompt.resolved() && DataType.isString(prompt.dataType()) == false) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ℹ️ We support only text as prompt.
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/analysis/Analyzer.java
Outdated
Show resolved
Hide resolved
x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis/AnalyzerTests.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does what is says - looks good to me
This PR implement resolution of expressions for the
COMPLETION
command in theAnalyzer
.Work for the completion command is tracked in: #124405
PS: the command is available only for snapshot build.