Skip to content

Adesh2204/Intrabot-AI

Repository files navigation

πŸ€– Intrabot-AI

Intrabot-AI is an offline-first organizational chatbot designed to answer employee queries by retrieving information from secure internal databases. It ensures data privacy, security, and reliability by running completely offline. When offline data is insufficient, it can fallback to Google Gemini API for extended answers.


πŸš€ Features

  • Offline-First β†’ Retrieves answers from local knowledge base (ChromaDB + embeddings)
  • Role-Based Access β†’ Employees, HR, IT, and Admins see only what they are authorized to view
  • Gemini Fallback β†’ When the local database lacks answers, Gemini API provides extended support
  • Secure & Private β†’ No sensitive organizational data is sent outside unless explicitly needed
  • Lightweight & Fast β†’ Works without internet dependency
  • Custom Chat UI β†’ User-friendly interface for employees

πŸ› οΈ Tech Stack

  • Frontend: React / Streamlit (Chatbox UI)
  • Backend: FastAPI (Python)
  • Vector DB: ChromaDB
  • Embeddings: all-MiniLM-L6-v2 (Sentence Transformers)
  • LLM (Offline): GPT4All / LLaMA (optional)
  • Fallback Model: Google Gemini (gemini-pro)

πŸ“‚ Project Structure

Intrabot-AI/
β”œβ”€β”€ frontend/                    # React/Streamlit UI
β”œβ”€β”€ offline-org-chatbot/         # Core chatbot logic
β”œβ”€β”€ src/                        # Source code modules
β”œβ”€β”€ venv/                       # Virtual environment
β”œβ”€β”€ api.py                      # FastAPI backend
β”œβ”€β”€ gemini_client.py            # Google Gemini integration
β”œβ”€β”€ rbac.py                     # Role-based access control
β”œβ”€β”€ retrieval.py                # Document retrieval logic
β”œβ”€β”€ requirements.txt            # Dependencies
β”œβ”€β”€ .gitignore                  # Git ignore rules
└── README.md                   # Documentation

⚑ Setup & Installation

1. Clone the repository

git clone https://github.com/Adesh2204/Intrabot-AI.git
cd Intrabot-AI

2. Create virtual environment

python -m venv venv
source venv/bin/activate    # Mac/Linux
venv\Scripts\activate      # Windows

3. Install dependencies

pip install -r requirements.txt

4. Set environment variables

Create a .env file and add:

GEMINI_API_KEY=your_api_key_here

5. Start the application

Backend Server

python api.py
# or
uvicorn api:app --reload

Frontend (if using Streamlit)

streamlit run frontend/app.py

Frontend (if using React)

cd frontend
npm install
npm start

🎯 Usage

  1. Open the chat UI
  2. Ask questions like:
    • "How do I apply for leave?" β†’ (Offline HR docs answer)
    • "Write a leave application draft" β†’ (Gemini fallback answer)
    • "How do I reset my office email password?" β†’ (Offline IT docs answer)
  3. Role-based responses based on your access level

πŸ“Έ Screenshots

πŸ”Ή Chatbot Interface

Intrabot-AI Interface

Showcasing the clean, user-friendly chat interface


🌟 Future Enhancements

  • Multilingual support (Hindi, Spanish, etc.)
  • Voice-enabled chatbot with speech recognition
  • Analytics dashboard for admins to track usage
  • Integration with Slack, MS Teams, and ERP systems
  • Mobile app for on-the-go access
  • Advanced RBAC with department-wise permissions

🀝 Contributing

  1. Fork the project
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“œ License

This project is licensed under the MIT License. See the LICENSE file for details.


πŸ‘¨β€πŸ’» Authors

  • Adesh2204 - Lead Developer - @Adesh2204
  • Team Intrabot-AI - Hackathon 2025

πŸ† Acknowledgments

  • Developed during Hackathon 2025
  • Inspired by the need for secure, offline-first enterprise chatbots
  • Thanks to the open-source community for amazing tools and libraries

🚨 Security & Privacy

  • Data Privacy: All organizational data stays on-premises
  • Secure by Design: No external data transmission unless explicitly needed
  • Role-Based Access: Users only see information they're authorized to access
  • Audit Trail: All interactions are logged for compliance

Built with ❀️ for secure enterprise communication

About

πŸ€– Offline-first organizational chatbot with secure internal knowledge base, role-based access control, and Google Gemini API fallback. Built for enterprises to answer employee queries privately while maintaining data security. Developed during Hackathon 2025.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors