We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To improve validation, we could try to run the query through the syntax checker and, in case of errors, ask the LLM to fix them.
If we "know" the query is targeting existing indices, we could even try to execute the query (e.g. with a limit 1) to see if it is valid.
limit 1
The esql tooling exposes a validation function, which validate the syntax:
kibana/x-pack/plugins/inference/server/tasks/nl_to_esql/validate_esql_query.ts
Line 8 in 5c298a1
One issue might be extracting errors from those validators to a format the LLM could more easily understand.
If we have other way to check / validate the query, we should also experiment with those.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
To improve validation, we could try to run the query through the syntax checker and, in case of errors, ask the LLM to fix them.
If we "know" the query is targeting existing indices, we could even try to execute the query (e.g. with a
limit 1
) to see if it is valid.The esql tooling exposes a validation function, which validate the syntax:
kibana/x-pack/plugins/inference/server/tasks/nl_to_esql/validate_esql_query.ts
Line 8 in 5c298a1
One issue might be extracting errors from those validators to a format the LLM could more easily understand.
If we have other way to check / validate the query, we should also experiment with those.
The text was updated successfully, but these errors were encountered: