ShubhamMohanty680/AI_Mentor_Chatbot
An AI-powered mentor chatbot built with Streamlit, LangChain, and Hugging Face LLMs that delivers strict, domain-specific guidance. It enforces hard module boundaries and adapts responses based on configurable industry experience.
๐ค AI Mentor Chatbot (Module-Enforced Learning Assistant)
An interactive AI-powered mentor chatbot built with Streamlit, LangChain, and Hugging Face LLMs that provides strict, domain-specific mentorship.
The system enforces hard module boundaries to ensure focused, distraction-free learning with a mentor persona configurable by industry experience.
โจ Features
-
๐ฏ Strict Module Enforcement
Answers are generated only for the selected module. Out-of-scope questions are explicitly refused. -
๐งโ๐ซ Experience-Based Mentorship
Responses adapt dynamically based on selected years of industry experience. -
๐ Dynamic LLM Routing
Automatically selects the best Hugging Face model for each domain:- Python, EDA โ DeepSeek
- SQL, Power BI โ LLaMA
- Machine Learning, Deep Learning โ Qwen
- Generative AI, Agentic AI โ MiMo
-
๐ฌ Persistent Chat Memory
Maintains conversation context per module and resets automatically when the module changes. -
๐จ Modern Chat UI
Clean, ChatGPT-style interface built using custom HTML + CSS inside Streamlit. -
๐ฅ Chat History Export
Download complete conversations as a.txtfile.
๐ Supported Modules
- Python
- SQL
- Power BI
- Exploratory Data Analysis (EDA)
- Machine Learning
- Deep Learning
- Generative AI
- Agentic AI
๐ Tech Stack
- Frontend: Streamlit, HTML, CSS
- LLM Orchestration: LangChain
- Models: Hugging Face Inference API
- State Management: Streamlit Session State
- Environment Management: python-dotenv
๐ Project Structure
โโโ app.py # Module & experience selection UI
โโโ pages/
โ โโโ mentor.py # Mentor chatbot interface
โโโ .env # Hugging Face API token
โโโ requirements.txt
โโโ README.md
๐ Use Cases
- Focused technical learning without topic drift
- Interview preparation with strict domain boundaries
- Mentor-style Q&A for beginners and intermediates
- Portfolio-ready AI application demonstrating LLM control
โ๏ธ Installation & Setup
1๏ธโฃ Clone the Repository
git clone https://github.com/ShubhamMohanty680/AI_Mentor_Chatbot.git
cd AI_Mentor_Chatbot2๏ธโฃ Create Virtual Environment
python -m venv mentor
mentor\Scripts\activate # On MAC: source venv/bin/activate 3๏ธโฃ Install Dependencies
pip install -r requirements.txt4๏ธโฃ Set Environment Variables (Create a .env file and add)
GOOGLE_API_KEY=your_gemini_api_key5๏ธโฃ Run the Application
streamlit run app.py