GitHunt
SH

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 .txt file.


๐Ÿ“š 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_Chatbot

2๏ธโƒฃ Create Virtual Environment

python -m venv mentor
mentor\Scripts\activate  # On MAC: source venv/bin/activate 

3๏ธโƒฃ Install Dependencies

pip install -r requirements.txt

4๏ธโƒฃ Set Environment Variables (Create a .env file and add)

GOOGLE_API_KEY=your_gemini_api_key

5๏ธโƒฃ Run the Application

streamlit run app.py