How deepesh611/multi-agent-fraud-detection-system works
This is an insurance-claim fraud detection and analysis product. Its main workflow takes claim data through feature engineering, rule-based detection, LLM investigation, and business-friendly explanation; the Streamlit interface supports dashboard exploration and natural-language questions. A separate RAG path builds embeddings from stored claims and combines retrieval with database queries to answer questions. The README documents the end-to-end data pipeline; sampled source confirms several agent calls and storage operations. Some UI and vector-index details are documented but not fully shown in the excerpts.
Main entry points: fraud_detection.db Fraud SQLite Store · orchestrator.py Agent Orchestrator · query_agent.py RAG Query Agent · llm_client.py LLM Client
Components 16
User Interface
- Streamlit Dashboard
src/app/app.py - Dashboard Analytics
src/app/ui_utils.py
Fraud Workflow
- Agent Orchestrator
src/orchestrator.py - Fraud Rules
src/fraud/rules.py - Claim Investigator
src/agents/investigation_agent.py - Fraud Explanation
src/agents/explanation_agent.py - RAG Query Agent
src/agents/query_agent.py
Data and Retrieval
- Claims Generator
src/data/generator.py - Claims ETL
src/data/etl.py - Fraud SQLite Store
data/processed/fraud_detection.db - SQL Query Helper
src/agents/sql_agent.py - Embedding Builder
src/rag/embeddings.py - Fraud Vector Store
src/rag/vector_store.py
AI Services
- LLM Client
src/utils/llm_client.py - OpenRouter LLM
Other components
- Analyst
Connections 23
- Analyst → Streamlit Dashboard: uses
README.md - Streamlit Dashboard → Dashboard Analytics: loads analytics
src/app/app.py - Streamlit Dashboard → Agent Orchestrator: submits queries
src/app/app.py - Dashboard Analytics → Agent Orchestrator: creates
src/app/ui_utils.py - Claims Generator → Claims ETL: produces claims for
README.md - Claims ETL → Fraud SQLite Store: writes tables
README.md - Fraud SQLite Store → Fraud Rules: provides claims to
src/fraud/rules.py - Fraud Rules → Fraud SQLite Store: stores fraud flags
src/fraud/rules.py - Agent Orchestrator → Fraud Rules: runs detection
src/orchestrator.py - Agent Orchestrator → Claim Investigator: investigates cases
src/orchestrator.py - Agent Orchestrator → Fraud Explanation: generates reports
src/orchestrator.py - Agent Orchestrator → RAG Query Agent: routes questions
src/orchestrator.py - Claim Investigator → Fraud SQLite Store: reads claim context
src/agents/investigation_agent.py - Fraud Explanation → Fraud SQLite Store: reads fraud findings
src/agents/explanation_agent.py - Claim Investigator → LLM Client: requests analysis
src/agents/investigation_agent.py - Fraud Explanation → LLM Client: requests explanation
src/agents/explanation_agent.py - Embedding Builder → Fraud SQLite Store: reads claim records
src/rag/embeddings.py - Embedding Builder → Fraud Vector Store: builds retrieval data
README.md - RAG Query Agent → Fraud Vector Store: retrieves cases
src/agents/query_agent.py - RAG Query Agent → SQL Query Helper: executes statistics query
src/agents/query_agent.py - SQL Query Helper → Fraud SQLite Store: queries records
src/agents/sql_agent.py - RAG Query Agent → LLM Client: composes answers
src/agents/query_agent.py - LLM Client → OpenRouter LLM: sends chat requests
src/utils/llm_client.py