Skip to content
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

basic KNN support in SEARCH for ES|QL #110054

Draft
wants to merge 6 commits into
base: esql/search
Choose a base branch
from

Conversation

tteofili
Copy link
Contributor

This is a draft prototype for supporting basic KNN search in ES|QL (within SEARCH command).
This supports running a query like:

SEARCH collection [| RANK KNN(embedding, [0.1, 0.2, 0.3])]

Copy link
Contributor

@ioanatia ioanatia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - and now I have a better understanding of what types of changes are needed to add a new predicate.
Some tests would help at least to better exemplify the functionality, e.g. in x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/EsqlSearchActionIT.java and x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer/LocalPhysicalPlanOptimizerTests.java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants