ClaimRAG-Engine is an AI-native claims automation and intelligence platform built with:
- FastAPI backend for RAG, LLM agents, workflows
- Streamlit frontend for interactive chatbot & dashboards
- RAG ingestion pipeline
- Fraud detection intelligence
- Human-in-the-loop review flow
The system enables policy interpretation, claim evaluation, document analysis, and real-time Q/A using modern Retrieval-Augmented Generation.
- Context-aware policy lookup
- Claim coverage interpretation
- Document-based answer generation
- Multi-step reasoning engines
- Custom agent workflows
- Eligibility validation
- Coverage constraints extraction
- Missing info detection
- Automated decision support
- ML + LLM signal verification
- Risk score generation
- Suspicious activity detection
- Manual review triggers
- Policy ingestion
- PDF → text parsing
- Cleanup, chunking & vectorization
- Vector store indexing
- Chatbot interface
- Real-time RAG responses
- Claim submission UI
- Logs / analytics (optional)
ClaimRAG-Engine/
│
├── backend/
│ ├── src/
│ │ ├── api/
│ │ ├── core/
│ │ ├── ingestion/
│ │ ├── rag/
│ │ └── agents/
│ ├── main.py
│ ├── pyproject.toml
│ └── uv.lock
│
├── frontend/
│ ├── app.py
│ ├── components/
│ ├── utils/
│ └── requirements.txt
│
├── .gitignore
├── README.md
└── LICENSE (optional)
cd backenduv venv
.\.venv\Scripts\activateuv syncuvicorn backend.main:app --reload📍 http://localhost:8000
📍 http://127.0.0.1:8000/api/v1/query/ (Swagger UI)
To ingest policy documents:
uv run -m src.ingestion.ingestionThis will:
- Load PDFs / docs
- Clean + chunk text
- Create embeddings
- Store into vector database
cd frontendpip install -r requirements.txtstreamlit run app.pyThe Streamlit UI communicates with the FastAPI backend through endpoints like:
For RAG-based chatbot responses.
For claim scoring & eligibility.
For fraud detection workflows.
Make sure the FastAPI backend is running before starting the Streamlit UI.
Create backend/.env:
OPENAI_API_KEY=your_key_here
VECTOR_DB_PATH=./data/vector_store
MODEL_NAME=gpt-4o-mini
Create frontend/.env:
API_URL=http://localhost:8000
.env to Git.
Add to .gitignore.
cd backend
uvicorn backend.main:app --reloadcd frontend
streamlit run app.py| Component | Technology |
|---|---|
| Backend | FastAPI, LangChain, RAG |
| Frontend | Streamlit |
| Embeddings | Gemini |
| Vector Store | Postgres-Pgvector |
| Agents | LangChain Agents |
| Packaging | UV |
If this project helps you, consider starring ⭐ the repo!