An SQL Chatbot powered by LLM for generating SQL queries and their graphical analysis using natural language questions.
For now, this application works well with PostgreSQL and I am working to make sure the other databases are also functional.
demo.video.mp4
If you have a locally hosted database, use a tool like ngrok on your terminal to expose it to the internet.
Your exposed host should look like this:
Use the provided credentials to log in to your database as shown

This app does not collect any user data or any other credentials.
To run this project locally,
-
Clone the repository
-
Install all requirements using
pip install -r requirements.txt -
Get a Vanna API key from here
-
For testing purposes, replace the
vanna_api_keyvariable in line 13 of theapp.pywith the Vanna API key.However, during deployment, ensure you get rid of the new line since pushing sensitive data to GitHub or deployment platforms is not recommended.
-
Run the code below to execute
streamlit run app.py -
Deploy your app to Streamlit Cloud or your preferred platform
