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

Add the rerank command to the ES|QL grammar. #119857

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

afoucret
Copy link
Contributor

@afoucret afoucret commented Jan 9, 2025

Description

This is a draft PR that introduce a new RERANK ES|QL command,

The rerank command use an inference task of type reranker to reorder the rows of the result.

Command syntax:

| RERANK "the quick brown fox" ON title WITH my-reranker

Checklist

  • Create grammar for the new command
  • Create the logical plan for the command
  • Parse the command to a logical plan
  • Create the physical plan for the command
  • Command planning
  • Command execution through an AsyncOperator leveraging the infernce service

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

Successfully merging this pull request may close these issues.

2 participants