Skip to content

omkarjavali/chat_with_sql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Chat with Your MySQL Database Like a Pro! 🗂️💬

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!

✨ Features

🔥 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.


📥 Installation & Setup

🚀 Prerequisites

Python 3.8+ installed
MySQL Database with connection credentials
GROQ API Key for AI-powered magic

⚙️ Setup Instructions

1️⃣ Clone this repo

git clone https://github.com/your-repo/chat-with-mysql.git
cd chat-with-mysql

2️⃣ Install dependencies

pip install -r requirements.txt

3️⃣ Run the app! 🚀

python -m streamlit run app.py

🛠️ How It Works

1️⃣ Connect to your MySQL database 🔗

2️⃣ Enter your GROQ API key 🔑

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! 📊

💡 Why Use This?

✅ 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.

🏆 Tech Stack

  • Streamlit – Fast, interactive UI
  • LangChain – AI-driven SQL generation
  • GROQ AI – Natural language processing
  • MySQL – The powerhouse database
  • Python – Because Python rocks! 🐍

📜 License

This project is licensed under the MIT License.

🚀 Ready to supercharge your database queries? Give it a try now! 🔥

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages