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

Llamaindex seems not able to execute the generated SQL #77

Open
shaofengshi opened this issue Sep 19, 2024 · 0 comments
Open

Llamaindex seems not able to execute the generated SQL #77

shaofengshi opened this issue Sep 19, 2024 · 0 comments

Comments

@shaofengshi
Copy link
Contributor

shaofengshi commented Sep 19, 2024

When run the "gravitino_llamaIndex_demo.ipynb", in the "Define SQLJoinQueryEngine" step, it couldn't execute the generated SQL:

response = query_engine.query( "Tell me about the arts and culture of the city with the highest" " population" )

Querying SQL database: The first choice is more relevant as it mentions 'city_stats' and 'population' which could be used to determine the city with the highest population. The second choice does not provide any specific information that could be used to answer the question.
SQL query: SELECT city_name, population, country
FROM city_stats
ORDER BY population DESC
LIMIT 1;
SQL response: I'm sorry, but there was an error in retrieving the information about the city with the highest population. Can you provide me with the name of the city you are interested in so I can give you more specific information about its arts and culture?

As the generated SQL is correct, the Trino engine is active, so this problem seems from Llamaindex.

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

No branches or pull requests

1 participant