A portfolio-ready Retrieval-Augmented Generation chatbot for insurance policies, handbooks, and FAQs.
Users can upload PDFs and ask questions such as:
- Am I covered?
- Does collision include hail?
- How much is my deductible?
- Can I rent a replacement car?
- FastAPI
- LangChain
- Gemini
- FAISS or Chroma
- PDF ingestion
- Vector search
- RAG prompt with source references
cd insurance_policy_rag_chatbot
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
cp .env.example .envAdd your Gemini API key to .env:
GOOGLE_API_KEY=your_api_key_here
VECTOR_DB=faissuvicorn app.main:app --reloadOpen:
http://127.0.0.1:8000/docs
- Upload one or more PDFs using
/upload - Ask a question using
/chat
Example /chat body:
{
"question": "Does collision coverage include hail damage?"
}In another terminal:
streamlit run streamlit_app.pyThis project demonstrates:
- RAG
- LLM API integration
- Vector search
- PDF ingestion
- Insurance-domain question answering
- FastAPI backend development
- LangChain orchestration