Ever wished you could just ask your database questions in plain English and get results instantly? Well, now you can! Chat with MySQL is an AI-powered Streamlit app that lets you query your database effortlesslyβno SQL expertise required!
π Ask a question β Get SQL β See instant results!
π₯ AI-Powered Querying β Just type your question, and our AI will generate SQL for you!
β‘ Real-Time Data Retrieval β Connect to your MySQL database and get live insights!
π¨ Sleek & Modern UI β Enjoy a beautifully designed dark-themed interface.
π§ Context-Aware Conversations β Chat history keeps track of your queries for smarter responses.
π Secure API Handling β Uses .env for secure key storage.
β Python 3.8+ installed
β MySQL Database with connection credentials
β GROQ API Key for AI-powered magic
1οΈβ£ Clone this repo
git clone https://github.com/your-repo/chat-with-mysql.git
cd chat-with-mysql2οΈβ£ Install dependencies
pip install -r requirements.txt3οΈβ£ Run the app! π
python -m streamlit run app.py1οΈβ£ Connect to your MySQL database π
2οΈβ£ Enter your GROQ API key π
- use the following link to generate your api key: https://console.groq.com/keys
3οΈβ£ Ask questions like:
- "What are the top 5 customers by total orders?"
- "Show me the monthly sales trends."
- "List all products with low inventory."
4οΈβ£ See the AI-generated SQL & live results! π
β
No SQL? No Problem! β AI converts natural language into SQL instantly.
β
Save Time & Effort β No more manual query writing.
β
Powerful Analytics β Turn raw data into actionable insights fast.
- Streamlit β Fast, interactive UI
- LangChain β AI-driven SQL generation
- GROQ AI β Natural language processing
- MySQL β The powerhouse database
- Python β Because Python rocks! π
This project is licensed under the MIT License.
π Ready to supercharge your database queries? Give it a try now! π₯