A Conversational AI Chatbot built with **Streamlit, LangChain, and Google Gemini **.
This AI tutor answers only Data Science-related doubts while maintaining conversation awareness with memory.
β
Uses Google Gemini 1.5 Pro (Free API)
β
Conversation Memory (Remembers past interactions)
β
Built with LangChain & Streamlit for a simple UI
β
Free Deployment on Streamlit Cloud
- Frontend: Streamlit
- AI Model: Google Gemini 1.5 Pro (via LangChain)
- Memory: LangChain ConversationBufferMemory
- Deployment: Streamlit Cloud
π¦ AI-Data-Science-Tutor β£ π .env # Stores Google API Key (DO NOT SHARE) β£ π config.py # Loads API key from .env β£ π app.py # Main Chatbot App (Streamlit) β£ π requirements.txt # Python Dependencies β π README.md # This File
git clone https://github.com/YOUR-USERNAME/AI-Data-Science-Tutor.git
cd AI-Data-Science-Tutor
2οΈβ£ Create a Virtual Environment (Recommended)
python -m venv venv
Activate it:
Windows: venv\Scripts\activate
Mac/Linux: source venv/bin/activate
3οΈβ£ Install Dependencies
pip install -r requirements.txt
4οΈβ£ Get Google Gemini API Key
Go to Google AI Studio
Sign in β Get API Key
Copy the API key
Create a .env file in the project folder & add:
GOOGLE_API_KEY=your-api-key
5οΈβ£ Run the Chatbot
streamlit run app.py
π Deploy on Streamlit Cloud (Free)
Push your code to GitHub
bash
git add .
git commit -m "Initial commit"
git push origin main
Go to Streamlit Cloud
Sign in with GitHub
Deploy App β Set app.py as the main file
Click "Deploy" π
π€ How It Works
Enter your Data Science-related question
The AI responds with an explanation
Conversation Memory maintains context
π Troubleshooting
LangChain Community Module Not Found?
Run this:
bash
pip install --upgrade langchain langchain-community langchain-google-genai
Streamlit Not Found?
bash
pip install streamlit
π― Next Steps
Improve UI design
Add more AI capabilities
Deploy on Hugging Face Spaces
π‘ Credits
Developed by: Your Name
Model: Google Gemini
Frameworks: LangChain, Streamlit
β Like This Project? Give It a Star on GitHub! β
---
### **π‘ Whatβs Included?**
βοΈ Installation Steps
βοΈ API Key Setup
βοΈ Running Instructions
βοΈ Deployment Guide
βοΈ Troubleshooting Section
π‘ **Next Steps:**
- Upload this **`README.md`** to GitHub
- Create a **`requirements.txt`** by running:
```bash
pip freeze > requirements.txt