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

NO_RELEVANT_SQL #1367

Open
ai-dev-heeddata opened this issue Mar 5, 2025 · 1 comment
Open

NO_RELEVANT_SQL #1367

ai-dev-heeddata opened this issue Mar 5, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@ai-dev-heeddata
Copy link

The Ask service fails to generate a relevant SQL query for certain user questions, resulting in a "NO_RELEVANT_SQL" error. This occurs even when the service successfully retrieves relevant table schemas or data snippets.

Steps to reproduce the behavior:

Submit the following query to the Ask service: "What is the average salary of male and female employees grouped by department?"

Observe that the service transitions through the "understanding," "searching," and "planning" states.

The service will then return a "failed" status with the error code "NO_RELEVANT_SQL".

Image

@ai-dev-heeddata ai-dev-heeddata added the bug Something isn't working label Mar 5, 2025
@onlyjackfrost
Copy link
Contributor

NO_RELEVANT_SQL might happened because the sql generated by LLM is not working(invalid function/expression).
Could you help paste the generated SQL statement in the wren-engine container log?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants