Find answers from the community

Updated 4 weeks ago

Retry sql query engine for error handling

Has someone created or has the knowledge of a RetrySQLQueryEngine? - the one which retries to generate proper sql statement if it errors out once?
W
d
3 comments
Not sure if there is, But I saw this workflow example for Text-2-sql which may help you with starting up in the same direction: https://github.com/run-llama/llama_index/blob/main/docs/docs/examples/workflow/advanced_text_to_sql.ipynb

You can check if the query is correct or not , if not then reform it with another event inside the workflow and test again.
@WhiteFang_Jr - Thanks
i see that Workflows are being used a lot these days by llama-index ....would need to explore them
Add a reply
Sign up and join the conversation on Discord