Office Hours — We're using LLMs to file insurance claims at scale in production. The model confidently makes mistakes and we have no visibility into failures until customers complain weeks later. How do I catch this before it becomes a liability nightmare? A daily developer question about AI/LLMs, answered with a direct, opinionated take. 2026-12-04T12:00:00.000Z Office Hours Office Hours office-hoursq-and-apractical-ai

Office Hours — We're using LLMs to file insurance claims at scale in production. The model confidently makes mistakes and we have no visibility into failures until customers complain weeks later. How do I catch this before it becomes a liability nightmare?

A daily developer question about AI/LLMs, answered with a direct, opinionated take.

Daily One question from the trenches, one opinionated answer.

We’re using LLMs to file insurance claims at scale in production. The model confidently makes mistakes and we have no visibility into failures until customers complain weeks later. How do I catch this before it becomes a liability nightmare?

This is the core problem with LLMs in high-stakes workflows: they hallucinate with conviction, and by the time you discover the error, real money and reputation are already gone. Insurance claims are a worst-case scenario because the feedback loop is long, the stakes are high, and the model’s confidence doesn’t correlate with correctness.

The Real Issue Isn’t Detection, It’s Latency

You’re trying to catch errors after deployment. That’s too late. The standard playbook—LLM-as-judge, human auditing, exception handling—all assume you have time to catch mistakes before they propagate. Insurance claims don’t give you that luxury. By the time a customer calls to complain their claim was filed wrong, you’ve already:

  • Filed incorrect paperwork with regulators or carriers
  • Created liability exposure
  • Damaged customer trust
  • Triggered compliance reviews

The honest framing: you can’t reliably catch these failures after the fact at scale. You need to prevent them from happening in the first place.

Three Layers of Defense (and Their Trade-Offs)

Layer 1: Deterministic verification before filing

Before the LLM output goes anywhere near a claims system, run it through a rules engine that validates:

  • Required fields are populated (not just present, but semantically valid)
  • Extracted amounts match source documents (use OCR + regex to anchor)
  • Claim type matches the supporting documentation
  • Policy details cross-reference correctly against your policy database

This isn’t about trusting the LLM. It’s about treating its output as untrusted input and validating against external systems of record.

def validate_claim_before_filing(llm_output, source_document, policy_db):
    errors = []
    
    # Amount extraction: verify LLM's number appears in source doc
    if llm_output["claim_amount"]:
        source_amounts = extract_amounts_from_ocr(source_document)
        if float(llm_output["claim_amount"]) not in source_amounts:
            errors.append(f"Claim amount {llm_output['claim_amount']} not found in source")
    
    # Policy lookup: cross-reference against canonical system
    policy = policy_db.get(llm_output["policy_id"])
    if not policy:
        errors.append(f"Policy {llm_output['policy_id']} not found")
    elif policy.status != "active":
        errors.append(f"Policy is {policy.status}, not active")
    
    # Required field presence
    required = ["claim_type", "incident_date", "claim_amount", "policy_id"]
    for field in required:
        if not llm_output.get(field):
            errors.append(f"Missing required field: {field}")
    
    return {"valid": len(errors) == 0, "errors": errors, "output": llm_output}

# In your filing workflow:
validation = validate_claim_before_filing(llm_output, raw_pdf, policy_db)
if not validation["valid"]:
    # Route to human review, don't file
    queue_for_manual_review(llm_output, validation["errors"])
    return {"status": "pending_review", "reason": validation["errors"]}

# Only file if validation passed
file_claim(validation["output"])

This catches probably 60-70% of errors: hallucinated amounts, wrong policy IDs, missing fields. The LLM can still get the semantics wrong (misclassifying injury type, missing exclusions), but at least the data integrity is anchored to reality.

Layer 2: Confidence calibration + audit sampling

Don’t assume all LLM outputs are equally trustworthy. Use a secondary model or heuristic to flag uncertain extractions before they go to the filing layer. Anthropic’s research shows LLMs can detect their own uncertainty at better-than-random rates.

Run a “verify” pass on high-uncertainty extractions:

def get_extraction_confidence(llm_output, llm_client):
    # Ask the model to rate its own confidence
    verify_prompt = f"""
    You previously extracted this claim:
    {json.dumps(llm_output, indent=2)}
    
    Rate your confidence in EACH field (0-100). 
    For any field below 60, explain why you're uncertain.
    """
    
    verification = llm_client.messages.create(
        model="claude-opus-5-5",
        max_tokens=1000,
        messages=[{"role": "user", "content": verify_prompt}]
    )
    
    return parse_confidence_ratings(verification.content)

# Then:
confidence = get_extraction_confidence(llm_output, client)
low_confidence_fields = [f for f, score in confidence.items() if score < 60]

if low_confidence_fields:
    # Don't file yet. Sample this for human review.
    audit_sample.append({
        "claim_id": llm_output["id"],
        "uncertain_fields": low_confidence_fields,
        "output": llm_output
    })

This adds latency (one extra model call per claim), but it surfaces uncertainty before filing. Humans review the uncertain cases; confident cases go straight through. You’re trading throughput for safety on the marginal cases where the model is actually tentative.

Layer 3: Post-filing audit loop (the safety net you can’t skip)

You still need a weekly or daily audit of a random sample of filed claims, pulled from your carrier or regulator’s system, then compared against source documents and your LLM’s original extractions. This won’t catch everything before complaints, but it will catch systematic failures.

def audit_filed_claims(sample_size=100):
    # Pull a random sample of recently filed claims from carrier system
    filed_claims = get_sample_from_carrier_api(sample_size)
    
    for filed_claim in filed_claims:
        # Retrieve original LLM output and source document
        llm_output = claim_archive.get(filed_claim["claim_id"])
        source_doc = document_store.get(filed_claim["claim_id"])
        
        # Compare what the LLM extracted vs. what was actually filed
        mismatches = []
        for field in ["amount", "type", "incident_date"]:
            if llm_output.get(field) != filed_claim.get(field):
                mismatches.append({
                    "field": field,
                    "llm_said": llm_output.get(field),
                    "filed_as": filed_claim.get(field)
                })
        
        if mismatches:
            # Either your filing system modified the LLM output,
            # or the LLM lied. Both are bad.
            escalate_to_compliance(filed_claim["claim_id"], mismatches)
        
        # Spot-check: does the filed claim match the source document?
        source_truth = extract_ground_truth_from_pdf(source_doc)
        for field in ["amount", "type"]:
            if filed_claim.get(field) != source_truth.get(field):
                # The model extracted wrong, and it went straight to filing
                flag_for_correction(filed_claim["claim_id"])

This audit loop won’t save you from every mistake, but it will catch systemic failures (the model systematically undercounting amounts, misclassifying claim types) within days instead of weeks.

What Doesn’t Work (And Why Teams Try It Anyway)

LLM-as-judge: A second LLM reviewing the first LLM’s output. Research from Anthropic and UK AISI shows AI judges generate 96% false positives while missing actual failures. You end up with noise, not signal.

Confidence scores from the model: The model’s self-reported confidence is not predictive of correctness. Claude might be 95% confident it extracted the right amount and be completely wrong.

Human spot-checking: Only catches errors humans happen to notice. If the model systematically misclassifies injury types in a way that’s plausible to a human reader skimming quickly, you’ll miss it.