An AI-powered insurance premium prediction and intelligent policy assistant built using Machine Learning, FastAPI, Retrieval-Augmented Generation (RAG), Google Gemini, and ChromaDB.
Insurance AI Copilot is an intelligent web application that combines Machine Learning with Large Language Models (LLMs) to modernize insurance services.
The application predicts insurance premiums using a trained LightGBM model while simultaneously providing an AI-powered chatbot capable of answering insurance-related questions using Retrieval-Augmented Generation (RAG).
Unlike traditional chatbots, responses are generated from a dedicated knowledge base, producing more reliable and context-aware answers.
- Gemini-powered conversational assistant
- Context-aware responses using RAG
- Insurance-specific knowledge retrieval
- Natural language interactions
- Predict insurance premium instantly
- Machine Learning powered
- LightGBM prediction model
- Fast inference
- ChromaDB vector database
- Semantic document retrieval
- Grounded AI responses
- Reduced hallucinations
- High-performance REST API
- Modular architecture
- Easy deployment
- Scalable design
- Clean responsive interface
- Interactive chatbot
- Prediction dashboard
- User-friendly experience
User
โ
โโโโโโโโโโโผโโโโโโโโโโ
โ Web Frontend โ
โโโโโโโโโโโฌโโโโโโโโโโ
โ
FastAPI Backend
โโโโโโโโโโดโโโโโโโโโ
โ โ
โผ โผ
ML Prediction AI Chatbot
(LightGBM) (Gemini + RAG)
โ โ
โผ โผ
Premium Result ChromaDB
Knowledge Base
- HTML5
- CSS3
- JavaScript
- FastAPI
- Python
- LightGBM
- Pandas
- NumPy
- Scikit-learn
- Google Gemini API
- Retrieval-Augmented Generation (RAG)
- ChromaDB
- Docker
- Render
Insurance-AI-Copilot/
โ
โโโ backend/
โโโ frontend/
โโโ chatbot/
โโโ chroma_db/
โโโ models/
โโโ prompts/
โโโ utils/
โโโ static/
โโโ templates/
โโโ requirements.txt
โโโ Dockerfile
โโโ render.yaml
โโโ README.md
git clone https://github.com/Felix066/Insurance-AI-Copilot.gitcd Insurance-AI-Copilotpip install -r requirements.txtCreate a .env file
GOOGLE_API_KEY=YOUR_API_KEYuvicorn main:app --reloadOpen
http://localhost:8000
- User enters personal information.
- Data is preprocessed.
- LightGBM predicts insurance premium.
- Prediction is displayed instantly.
- User asks an insurance question.
- Relevant documents are retrieved from ChromaDB.
- Retrieved context is passed to Gemini.
- Gemini generates an accurate answer.
Model Used:
- LightGBM Regressor
Pipeline:
- Data Cleaning
- Feature Engineering
- Encoding
- Model Training
- Prediction
Question
โ
โผ
Embedding
โ
โผ
Vector Search
โ
โผ
Relevant Documents
โ
โผ
Gemini LLM
โ
โผ
AI Response
- User Authentication
- Policy PDF Upload
- Conversation Memory
- Admin Dashboard
- Premium History
- Analytics Dashboard
- Voice Assistant
- Multi-language Support
- Cloud Database Integration
- Explainable AI (XAI)
- Insurance Companies
- Policy Recommendation Systems
- Customer Support
- Insurance Education
- AI Assistants
- Digital Insurance Platforms
Contributions are welcome.
- Fork the repository
- Create a new branch
- Commit changes
- Open a Pull Request
This project is licensed under the MIT License.
Felix Danie Jose
B.Tech Computer Science (Artificial Intelligence)
GitHub: https://github.com/Felix066
LinkedIn: www.linkedin.com/in/felix-danie-jose
It motivates future development and helps others discover the project.