Skip to content

Commit 085121e

Browse files
afoucretSamiul-TheSoccerFan
authored andcommitted
[ES|QL] RERANK command default inferenceId (elastic#128685)
* [ES|QL] Make inferenceId optional for the `RERANK` command (default to `.rerank-v1-elasticsearch`) * lint * Remove old test. * Fix failing test
1 parent e9e7bc1 commit 085121e

File tree

7 files changed

+417
-392
lines changed

7 files changed

+417
-392
lines changed

x-pack/plugin/esql/src/main/antlr/EsqlBaseParser.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ rrfCommand
304304
;
305305

306306
rerankCommand
307-
: DEV_RERANK queryText=constant ON rerankFields WITH inferenceId=identifierOrParameter
307+
: DEV_RERANK queryText=constant ON rerankFields (WITH inferenceId=identifierOrParameter)?
308308
;
309309

310310
completionCommand

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParser.interp

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)