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.
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.
Async ACORD Policy Intake & Native pgvector HNSW Clause Search#
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_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.
Building regulated document processing or claims/underwriting workflows? Explore my AI Engineering and Software Architecture practices or schedule a consultation.
Production Case Studies & Capabilities
Explore how these engineering patterns are deployed in production systems and available through client engagements.
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.
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.
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?
What sensitive fields are scrubbed by the outbound PII/PHI redaction sandbox?
How are high-impact claims and underwriting decisions controlled?
Related Technical Articles
Building a Guarded AI SDR Platform: Opt-Out Suppression, 5-Dimension ICP Scoring, and Bi-Directional CRM Sync
How ai-sdr combines FastAPI, pgvector buying-signal retrieval, 5-dimension ICP + BANT/MEDDIC scoring, retroactive email/domain opt-out suppression, manager-gated sequences, and bi-directional HubSpot/Salesforce sync.
Architecting a Self-Hosted AI Paralegal: Hybrid pgvector Search, Word Track Changes, and PostgreSQL RLS
How to engineer a privacy-first legal operations platform with PostgreSQL pgvector HNSW + GIN hybrid retrieval, native OOXML Word Track Changes redlines, PII/privilege guardrails, Bates stamping, and hash-chained audit logs.