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