I need someone to help me with my llm project

i am learning LLms by doing projects, today i was making a text to SQL project, but i am facing so many errors, and chatgpt is giving me nothing but wrong answers. I will add the github link to the code here, if someone would please check it and give me answers.
My problem with the project is in the output, it is most of the time giving me 0 even though sql is returning a valid number, also a lot of simple questions are not working. for example: “how many small t-shirts do we have“. it outputs there is no small tshirts even though there is

this is the github link: GitHub - Alii-Jaffal/sql-qa-assistant: Ask natural language questions to any SQL database and get answers automatically.

and thank you so much to whoever that can help me

1 Like

Even if the LLM’s output is correct, it can sometimes be somewhat ambiguous, so you might need to correct the notation precisely to integrate it with SQL.