Skip to content
Back to Portfolio
CoverLens - AI document pipeline for insurance compliance

CoverLens

AI document pipeline and requirement matching for a platform that checks subcontractor insurance against project requirements

Client: GNP Brokerage · New York · United States 🇺🇸
PythonFastAPILlamaCloudLlamaIndexOpenAIpgvectorRabbitMQRedis

Highlights

Situation

A broker for contractors checks the insurance of the subcontractors that general contractors hire. It has about 40 such clients and over 9,000 subcontractor records, and a gap can mean denied claims or delays.

Task

Build the document AI for a compliance platform: turn certificates, policies and endorsements into structured data, and check wording requirements such as an endorsement clause, with a fixed rule deciding pass or fail.

Action

Built a pipeline on LlamaCloud Parse, Split and Extract that types each segment, and matched wording by vector and full-text search over pgvector behind a two-signal gate.

Result

The pipeline reads uploaded bundles into structured records that a deterministic grader checks, and the wording gate was calibrated on 17 cases from two vendors' policy bundles, replacing manual document review.

Core Team

Viacheslav Danilov

Viacheslav Danilov

Lead AI/ML Engineer

Symfa

Barcelona · Spain 🇪🇸

Aleksandr Nasstrom

Aleksandr Nasstrom

Lead Software Engineer

Symfa

Barcelona · Spain 🇪🇸

Nathan Y

Nathan Y

Compliance Specialist

GNP Brokerage

New York · United States 🇺🇸

Tzipi Gelbart

Tzipi Gelbart

Chief Technology Officer

GNP Brokerage

New York · United States 🇺🇸

Overview

GNP Brokerage is an insurance broker for contractors. It manages insurance compliance for the subcontractors that general contractors (GCs) hire: certificates of insurance (COIs), policies, endorsements, limits and expiry dates. The business has about 40 GC clients and over 9,000 subcontractor records. A subcontractor that falls out of compliance can lead to denied claims, contract breaches and project delays.

CoverLens is the AI part of the compliance platform that Symfa built for GNP. The platform is multi-tenant, with an admin portal, a GC portal, a central login, a vendor landing page, a FastAPI backend and a document worker. The worker turns each uploaded file into structured records, and a grader checks those records against the requirements of a project.

The AI work covers the document pipeline, its AI integration, the retrieval and the semantic matching. The grading, the form-read, the operations read and the portals were team work.

Data

The inputs are uploaded files and the requirements that they are checked against:

  • •Files: PDFs and raster images, born-digital or scanned. One upload can be a scanned bundle that holds several documents.
  • •Segments: Each document in an upload is typed as a COI, a policy, an endorsement or other.
  • •Requirements: Limits, dates and checkboxes grade from extracted fields. Wording requirements, such as an endorsement clause, grade by retrieval.
  • •Calibration set: 17 cases from the policy bundles of two vendors, 8 from one and 9 from the other, used to set the thresholds of the wording match.

Methods

The document worker takes each upload through four stages, shown in Figure 1:

  • Stage 1 (Intake): The backend queues a job in RabbitMQ, and the worker picks it up, with up to five jobs at once by default. Raster images become PDFs. The file is hashed with SHA-256, and a Redis cache holds the LlamaCloud file id, so a retry does not upload it again. The worker also has retries, timeouts and health checks.
  • Stage 2 (Read):
    • •Parse and Split: LlamaCloud Parse and Split run in parallel and type each segment. A deterministic safety net splits repeated ACORD 25 face pages of one scanned bundle.
    • •Extract: LlamaCloud Extract runs on each segment, four at a time per job, with schemas generated from one shared compliance field schema. The Parse and Extract versions are pinned. This pipeline replaced an earlier optical character recognition (OCR) path.
    • •Form-read: On a born-digital ACORD 25, the checkbox columns and the carrier are read again from the PDF content.
    • •Operations read: A small OpenAI model reads the Description of Operations and the certificate holder box again. A field is kept only if its quote appears verbatim in the parsed text.
  • Stage 3 (Index): Policy, endorsement and other segments are split by meaning with the LlamaIndex semantic splitter and embedded with OpenAI text-embedding-3-small, at 1536 dimensions, into pgvector. The table has a Hierarchical Navigable Small World (HNSW) index and a full-text index. The worker then reports completed or error, and the backend stores the result and fires a trigger event.
  • Stage 4 (Grade): A deterministic coverage-graph grader walks the holder, the certificate, the line of coverage, the policy and the supporting pages, and writes a status for each requirement. A language model never decides pass or fail, which keeps results auditable. An operator's waiver or override outranks the engine verdict.
Figure 1. The CoverLens pipeline in four stages. Violet boxes are model steps, pink boxes are fixed-rule steps, and blue boxes are queue and storage.

A wording requirement, such as an endorsement clause, has no field to compare. The operator's wording is embedded and searched by vector and by full text, and the best sentence of each candidate is scored for how much of the wording it covers. A two-signal gate accepts a hit when wording coverage is at least 0.90, or when cosine similarity is at least 0.60 together with wording coverage of at least 0.60. The match is retrieval, not generation, and it does not check negation.

Results

The pipeline replaces reading each document by hand with structured records and a status for each requirement. Figure 2 shows the flow in the admin portal, on fictional demo data.

Figure 2. Walkthrough of the admin portal on fictional data: certificate extraction, requirement checks, and bundle splitting.
  • •Documents: A bundle is split into typed segments, and each segment is read into the fields of its schema. Images are converted to PDFs before parsing.
  • •Verdicts: Pass or fail comes from a deterministic grader, never from a language model, and an operator can waive or override a status.
  • •Wording match: The gate thresholds of 0.90 and 0.60 come from calibration on 17 cases from two vendors' policy bundles. In that calibration, a look-alike clause scored a higher cosine (0.7015) than the true hit (0.4950), so cosine alone cannot decide. Wording coverage corrects it.
  • •Embedding width: A check re-embedded 739 chunks and 17 requirements at 3072 and 1536 dimensions. It found no verdict difference across 85 combinations, so the index uses 1536.

Conclusion

CoverLens splits the work the way compliance needs it. Models read the documents and find the wording, and a fixed grader decides pass or fail, so every result can be audited. Operator waivers and overrides stay above the engine verdict.

The wording match is retrieval and does not check negation. Its thresholds rest on 17 calibration cases from two vendors' policy bundles, which is a small set.

Keep Exploring

InsurTech

Time-series forecasting dashboard for monthly insurance claims and costs using SARIMAX seasonal models, scenario stress-testing, and AI-generated summaries.

April 2026
Medical Devices

Non-invasive ICP monitoring using deep learning on cerebral blood flow signals from near-infrared photonic sensors.

December 2025