learntodriveai.dev/Machine Learning/Approach Selection Across Modelling Paradigms
Machine LearningProject 207 units

Approach Selection Across Modelling Paradigms

Willem de VriesVP of Claims Operations · Insurance company · Amsterdam, Netherlands
Email · from Willem
I've been told AI can help. I've also seen AI transformation projects use one hammer for every nail.
Chat with Willem

What you hand back

  • An approach-selection memo for four pipeline pieces
  • A fraud scorer with a fairness audit
  • Hierarchical policy retrieval with clause citations
  • A decision-letter drafter with citation checks
  • Four model cards and a system-properties memo
  • An operations runbook with quarterly audit cadence

7 units

  1. Unit 1: The Brief, the Constraints, and the Four Pieces

    Set up the project, read Willem's email, and pin down the four pieces and the constraints.

    Open unit 1
  2. Unit 2: The Approach-Selection Memo Across Four Pieces

    Score each pipeline piece on accuracy, cost, latency and explainability, then send Willem the approach-selection memo.

    Open unit 2
  3. Unit 3: Architecture Spec: Three Agents, Four Schemas, Phase-Scoped MCP

    Split the pipeline into three agents, commit four schemas at their edges, and set routing and guardrail rules.

    Open unit 3
  4. Unit 4: Fraud Scorer Build + Fairness Audit + Sarah Chen Consult

    Build the fraud scorer, remove a suspect feature, and run the fairness audit with a senior consult.

    Open unit 4
  5. Unit 5: Hierarchical Retrieval + LLM Decision Drafter + Async Delegation

    Build hierarchical policy retrieval and the letter drafter, and hand citation verification to the Copilot coding agent.

    Open unit 5
  6. Unit 6: Multi-Agent Integration + Coherence Catches + Third SKILL

    Wire the four pieces into one pipeline, catch the schema mismatches between agents, and write the third skill.

    Open unit 6
  7. Unit 7: Model Cards, System-Properties Memo, and Handover

    Write four model cards, the system-properties memo and the operations runbook, then hand the project over.

    Open unit 7
Read the full brief

You're designing a four-piece claims-processing pipeline for Willem de Vries, VP of Claims Operations at Verzekeraar Digitaal, a Dutch insurance company in Amsterdam. His team currently does everything manually -- categorise the claim, score it for fraud, match it against policy clauses, draft the decision letter. He has been told AI can help and is wary of "one hammer for every nail" projects.

The discipline skills: approach selection across classical ML, RAG, and LLM generation -- chosen per pipeline piece against accuracy, cost, latency, and explainability; hierarchical retrieval over a versioned policy corpus with citation tracking built into the architecture; safety guardrails and contradiction handling tuned to the domain; a fairness audit that names which definition was chosen and why; multi-agent decomposition with explicit schemas at every boundary; model cards written for two readers -- Willem and the Dutch DPA.

The AI-direction lesson: approach is not one paradigm for the whole project. It's one paradigm per problem piece, chosen against multi-objective constraints that conflict. AI's first answers lean toward the elegant one-size choice -- accuracy on one dimension, flat retrieval over a structured corpus, confidence signals where confidence isn't calibrated, citations without verification, a single fairness metric without naming the trade -- though current models are better at the one-model default than they used to be. The new register is architecture-as-direction: you name the four-paradigm decomposition, the multi-objective scoring surface, the fairness definition, the agent schemas, the guardrail thresholds. AI executes inside that spec.

Your Role

Approach-selection architect for a regulated insurance pipeline. GDPR Article 22, the Dutch DPA's audit expectations, the 14-days-to-5-days processing goal, the 80,000-claims-per-year volume, the latency budgets you will have to draw out of Willem, and the augment-not-replace constraint shape every decision.

The register shifts again. Last time the recipe was the direction surface; this time the architecture spec is -- four pipeline pieces, three custom-agents bounded by JSON schemas, and a fairness decision that travels to the regulator. AI's job is execution within the architecture. Dr. Sarah Chen is on call again for the fairness-architecture work; you haven't worked with her since Hayashi Pharmaceutical.

What's New

Last time you fine-tuned an open-weight model for Ama Mensah on a tight budget, with the prompting/RAG/fine-tuning comparison run before any training. That comparison vocabulary -- "prompting solves behaviour, RAG solves knowledge, fine-tuning solves consistency" -- is the bridge into this one. You ran it on one problem there. You'll run it on four here.

What's genuinely new: multi-objective optimisation with the Pareto frontier as the decision surface, not a single ranking. Hierarchical retrieval that mirrors how a claims handler actually searches, with citation tracking built in so every policy reference resolves back to a real clause. Fairness definitions that are mathematically incompatible -- demographic parity, equalised odds, predictive parity can't all hold at once; choosing among them is a values decision you communicate to two audiences. Multi-agent decomposition where three agents produce locally correct output that doesn't compose globally, until the schema at every boundary becomes the contract. Async delegation to the GitHub Copilot coding agent for bounded sub-tasks. Model cards as the artefact that accompanies each piece into production.

The hard parts cluster on the new terrain. AI's first proposal may well be a plausible per-piece hybrid, but it will be unmeasured. Its first fraud-scoring comparison will report F1 only. Its first cascading router will mix deterministic rules with a confidence layer. Its first retrieval will be flat. Its first multi-agent decomposition will leave the boundaries implicit. The discipline rests on catching the default at each juncture and writing the architecture that makes the catch durable.

Tools

  • Claude Code -- project memory grows substantially; three custom-agents authored (classification-config, retrieval-config, generation-guardrails); phase-scoped MCP adapted to four phases
  • Anthropic SDK -- the prompting baseline and the LLM decision drafter in production (familiar)
  • scikit-learn + XGBoost / LightGBM + SHAP -- the classical fraud scorer with feature-level explainability for the GDPR audit trail (familiar)
  • Hugging Face transformers + sentence-transformers + pgvector -- the hierarchical RAG over the policy corpus (familiar surface, new architecture)
  • FastAPI + Docker + MLflow -- two production endpoints and a tracking server (familiar)
  • Fairlearn (or equivalent) -- demographic parity, equalised odds, predictive parity computed across protected attributes (new). The fairness-audit unit walks through setup
  • GitHub Copilot coding agent -- async delegation for two bounded sub-tasks specified as GitHub issues with acceptance criteria (new)
  • SKILL.md (agentskills.io) -- a third authored skill, approach-decision, encoding the multi-objective comparison workflow; rag-eval and eval-fine-tuned-model are the precedents (familiar pattern, new contents)
  • Python, pytest, Git/GitHub -- pytest extended with schema-conformance checks at agent boundaries, citation-accuracy checks, and disaggregated retrieval evaluation

Materials

You receive:

  • first-contact-email.md -- Willem's terse direct email
  • claims-data-sample/ -- about 2,000 historical claims with categorisation labels, fraud flags, amounts, policy IDs, and simulated protected attributes
  • policy-corpus-sample/ -- 13 policy documents across property, auto, and liability, in both 2024 and 2025 versions
  • schemas/ -- empty; you fill it during the architecture unit
  • training-rubric.md, general-capability-eval-template.json -- rubric and table structure for the per-piece approach comparison
  • fairness-toolkit-example.py -- a minimal script computing the three fairness definitions, adapted during the audit
  • citation-verification-template.py -- a template you either fill yourself or assign to the Copilot coding agent
  • model-card-template.md -- the template for the four model cards you write at handover
  • cost-estimator.py -- extended for cost-per-claim averaging across the cascading architecture
  • operations-runbook-template.md -- the monitoring-to-action mapping the runbook will hold
  • docker-compose.yml, requirements.txt -- the four-service skeleton and the deliberately compatibility-coordinated multi-paradigm stack (the requirements header explains why the pinned set is not bumped piecemeal even when newer releases exist)
  • CLAUDE.md -- imports AGENTS.md, with placeholder sections labelled for the substantial content you'll add
  • AGENTS.md -- the universal rules carried forward, plus three custom-agent placeholders
  • .mcp-phases.template.md -- phase-scoped MCP template for the four P20 phases
  • skills/_template/, tests/coherence/ -- the SKILL.md template and the coherence-test directory, which ships with designed-in failure fixtures you encounter during multi-agent integration
Materials · 39 files
Start Project 20

You work at a computer with a terminal. Signed in, your place is saved.