I want to implement this model to convert Natural Language to SQL but on my own database. When I give a question outside of the database, it should give me an error and prompt me to ask a question on my database. I tried out a code but it is not getting connected with my database. I am using Chinook.db. Can anyone help in the same. If you have implemented the do let me know how did you do it.
I am using Hugging face(without API) and Langchain agent framework.
I want to implement this model to convert Natural Language to SQL but on my own database. When I give a question outside of the database, it should give me an error and prompt me to ask a question on my database. I tried out a code but it is not getting connected with my database. I am using Chinook.db. Can anyone help in the same. If you have implemented the do let me know how did you do it. I am using Hugging face(without API) and Langchain agent framework.