Adam BlansettSenior Full-Stack & AI Engineer
AI Engineering
11 min read
Adam Blansett

Self-Hosted AI Insurance Operations: ACORD pgvector Indexing, FNOL SIU Triage, and Citation-Grounded Coverage

Architecting ai-insurance-ops with async Celery ACORD PDF ingestion, native pgvector HNSW search, weighted SIU FNOL claims triage, page-cited coverage verification, loss-run underwriting, and a PII/PHI redaction sandbox.

InsurTechACORDpgvectorClaims TriagePII/PHI RedactionFastAPIHITL Approvals

Insurance claims and underwriting teams spend immense manual effort parsing ACORD submissions, multi-endorsement commercial policies, First Notice of Loss (FNOL) narratives, and 3- to 5-year loss runs. Sending unredacted policyholder files—packed with SSNs, FEINs, dates of birth, VINs, and medical Member IDs—to external chatbots violates both privacy rules and audit standards.

Built as part of the open-source enterprise AI suite, AI Insurance Operations Platform (GitHub repository) pairs a Python 3.12 FastAPI + async SQLAlchemy 2.0 backend with a React 18 TypeScript console backed by Playwright E2E and Vitest suites.

Under `/api/v1/intake` and `/api/v1/jobs`, policies arrive as PDF, TXT, or JSON ACORD/declaration packets. Large documents queue asynchronously via `POST /api/v1/intake/policies/upload-async` into Celery workers, extracting schedules and page-numbered clauses into PostgreSQL `pgvector` HNSW cosine indexes (with automatic SQLite fallback for local development and CI).

FNOL Claims Triage, Reserve Sizing & Weighted SIU Routing#

Incoming loss reports hit `/api/v1/claims`, where deterministic normalization assigns severity tiers, preliminary reserve bands, and weighted Special Investigations Unit (SIU) fraud indicator scores before routing claims to five operational queues: `fast_track_desk`, `field_property`, `complex_casualty`, `cyber_incident`, and `siu_investigation`.

Page-Cited Coverage Verification & Loss-Run Underwriting#

When adjusters check coverage under `/api/v1/coverage`, the platform cross-references claim facts against base grants, endorsement buy-backs, sublimits, deductibles, condition notice windows, and exclusions—attaching exact `Policy · Page N · Section` citations to every finding. Meanwhile, `/api/v1/underwriting` runs line-of-business completeness checklists, aggregates 3/5-year loss ratios, computes composite risk scores and indicated premiums, and escalates outliers to senior underwriters.

hitl_insurance_gate.py
HITL_GATES = {
    "claim_reserve": {"claims_manager", "admin"},
    "siu_referral": {"claims_manager", "admin"},
    "coverage_determination": {"adjuster", "claims_manager", "admin"},
    "underwriting_decision": {"underwriter", "admin"},
}
  • Outbound PII/PHI Redaction Sandbox: Scrubs SSN, FEIN, DOB, Driver's License, VIN, Member ID, Email, Phone, and Luhn payment cards before external inference alongside local Ollama and offline `mock` modes.
  • Concurrency-Safe SHA-256 Audit Ledger (`/api/v1/audit`): Logs every intake, triage, coverage check, and HITL decision with tamper verification.
  • Production Hardening: HS256 JWT + 5-role RBAC, bounded connection pooling, HTTP retry/backoff, sliding-window rate limiting, CSP headers, `/api/v1/health/{live,ready}` probes, and Trivy + `npm audit` CI.
Operational Scope: Every reserve band, SIU score, and coverage citation surfaces as decision support inside role-scoped HITL gates—licensed adjusters and underwriters retain final sign-off authority.

Building regulated document processing or claims/underwriting workflows? Explore my AI Engineering and Software Architecture practices or schedule a consultation.

Applied Architecture

Production Case Studies & Capabilities

Explore how these engineering patterns are deployed in production systems and available through client engagements.

Case Study

AI Insurance Operations Platform

An open-source Python 3.12 (FastAPI), PostgreSQL/pgvector, and React 18 insurance operations suite delivering async ACORD PDF/TXT/JSON indexing, weighted SIU claims triage, page-cited coverage verification, 3/5-year loss-run underwriting, HITL gates, and a PII/PHI redaction sandbox.

Read Case Study
Related Engineering Service

AI Engineering & LLM Integration

Many AI initiatives fail in production due to prompt fragility, high token latency, hallucination risks, and lack of structured evaluation. I bridge the gap between experimental LLM prompts and deterministic software engineering.

Related Engineering Service

Software Architecture & System Design

Fast-moving teams frequently accrue hidden architectural liabilities: tangled domain logic, unmaintainable monoliths, or over-engineered microservices that paralyze development.

Frequently Asked Questions

How does ai-insurance-ops verify policy coverage without hallucinating exclusions or sublimits?
Every coverage check under /api/v1/coverage grounds grants, endorsement buy-backs, sublimits, deductibles, condition notice requirements, and exclusions against indexed ACORD and policy chunks, returning explicit Policy · Page N · Section citations.
What sensitive fields are scrubbed by the outbound PII/PHI redaction sandbox?
With LLM_REDACT_PII_FOR_CLOUD=true, the sandbox detects and masks SSNs, FEINs, dates of birth, driver's license numbers, VINs, insurance Member IDs, emails, phone numbers, and Luhn-validated payment card numbers before any external cloud model call.
How are high-impact claims and underwriting decisions controlled?
Four role-scoped HITL approval gates—claim_reserve, siu_referral, coverage_determination, and underwriting_decision—enforce HS256 JWT RBAC across viewer, adjuster, underwriter, claims_manager, and admin roles and append to a concurrency-safe SHA-256 audit ledger.
Share this technical guide

Need Help Solving This in Your Application?

I partner with founders, executives, and engineering leaders to design architectures, resolve production bottlenecks, and deliver resilient software.

Related Technical Articles