This repository contains a Golang-based AI microservice designed to assist insurance claim assessment by providing risk scoring, fraud detection, and claim summarization. The service can be integrated into existing claims and underwriting systems to enhance automation and decision-making.
- Risk Scoring: Assigns a risk score (1-10) based on claim details.
- Fraud Detection: Analyzes claims for potential fraud based on historical data.
- Claim Summarization: Generates a concise summary of claim reports.
- REST API: Exposes endpoints for claims applications to interact with AI models.
- Test-Driven Development: Includes unit tests to ensure reliability.
- Docker Support: Easily deployable via containerization.
- Language: Golang
- Web Framework: Gin
- Database: MongoDB
- Cache: Redis (optional)
- AI Integration: OpenAI API or local ML models
- Containerization: Docker
Endpoint: POST /risk-score
{
"claim_id": "CLAIM123",
"policy_id": "POL456",
"amount": 10000,
"incident_type": "Cargo Theft",
"claim_history": ["CLAIM001", "CLAIM002"]
}
Response:
{ "risk_score": 8 }
Endpoint: POST /fraud-check
{
"claim_id": "CLAIM123",
"policy_id": "POL456",
"amount": 50000,
"incident_description": "Stolen shipment but no police report",
"claimant_history": ["CLAIM001"]
}
Response:
{ "fraud_risk": "HIGH" }
Endpoint: POST /summarize-claim
{
"claim_report": "The insured reported a total loss of cargo due to an accident on 5th March 2025. No injuries, police report filed."
}
Response:
{ "summary": "Cargo lost in accident on 5th March 2025. No injuries, police report filed." }
- Clone the repository:
git clone https://github.com/nish1013/ai-claims-assessment.git cd ai-claims-assessment
- Install dependencies:
go mod tidy
- Run the service:
go run main.go
- Run tests:
go test ./...
- Follow clean code principles.
- Ensure all features are covered with unit tests.
- Use pull requests for changes and improvements.
This project is licensed under the MIT License.