One Claim, Every Kind

Read the post
Every kind, one claimWho handles it? Expense claim 7731 Item Client dinner Amount $640.00 Date Thursday 14 Nov Note Dinner with the Halden team. TRATTORIATOTAL 640.00 receipt photo Written rulesExpense policy1. Over $500 → managermatch2. Receipt attached?yes3. Over $2,000 → financeno$640.00receipteach rule written by a personTo a managerAlso used for: tax calculations Machine learning: predictsPast claims$85ok$1,900fraud$420ok$60ok↓ its weights01review line 0.5$640dinnerThursday0.12+0.05 +0.04 +0.03illustrativeLow riskAlso used for: spam filters, credit scores, churn scores Deep learning: reads the photothe receipt, as pixelsvendorTrattoriadate14 Novtotal640.00 ✓a learned model with a deep network insideRead: 640.00Also used for: photo search, speech-to-text Generative AI: writesSummarise for the managerClientdinner,$640.Receiptmatches;lowrisk.Approveorquery?one token at a timeDrafts a summaryAlso used for: chat assistants, image generators Agent: all of them togetherHarnessmodelchooses each stepread receiptdeep learningcheck policywritten rulesscore riskmachine learningdraft summaryits language modelFiledmay file, cannot approveAlso used for: coding agents A person decidesManager’s inbox: claim 7731receipt640.00, matchesrule firedover $500 → managerrisk score0.12, lowsummarydrafted, check itApproveDecided by a person Written rulesManager Machine learningLow risk Deep learningRead Generative AISummary AgentFiled A personDecides Who handles it? Expense claim 7731 Client dinner $640.00 Thursday 14 Nov Dinner with the Halden team. TRATTORIATOTAL 640.00 Written rulesExpense policy1. Over $500 → managermatch2. Receipt attached?yes3. Over $2,000 → financeno$640.00receipteach rule written by a personTo a managerAlso used for: tax calculations Machine learning: predictsPast claims$85ok$1,900fraud$420ok$60ok↓ its weights01review line 0.5$640dinnerThursday0.12+0.05 +0.04 +0.03illustrativeLow riskAlso used for: spam filters, credit scores, churn scores Deep learning: reads the photothe receipt, as pixelsvendorTrattoriadate14 Novtotal640.00 ✓a learned model with a deep network insideRead: 640.00Also used for: photo search, speech-to-text Generative AI: writesSummarise for the managerClientdinner,$640.Receiptmatches;lowrisk.Approveorquery?one token at a timeDrafts a summaryAlso used for: chat assistants, image generators Agent: all of them togetherHarnessmodelchooses each stepread receiptdeep learningcheck policywritten rulesscore riskmachine learningdraft summaryits language modelFiledmay file, cannot approveAlso used for: coding agents A person decidesManager’s inbox: claim 7731receipt640.00, matchesrule firedover $500 → managerrisk score0.12, lowsummarydrafted, check itApproveDecided by a person Written rulesManager Machine learningLow risk Deep learningRead Generative AISummary AgentFiled A personDecides
  1. An expense claim arrives: $640 for a client dinner, with a receipt photo. Each kind of AI can take one part of this chore.
  2. Written rules apply a policy people wrote, the same way every time: over $500 goes to a manager. Best where each decision must be explained.
  3. A model learned from past claims and their outcomes how much each detail matters, and scores this claim. Best where history has known outcomes.
  4. A learned model with a deep network inside reads the receipt’s pixels and predicts vendor, date and total. Best for images, speech and messy input.
  5. A generative model, the kind behind chat assistants, writes new text token by token: a summary for the manager. Best for drafting; check its facts.
  6. An agent ties them together: its model calls each kind as a tool to read, check, score and summarise. Best for multi-step chores within limits.
  7. The manager checks the receipt and the rule that fired, then decides. Each kind did its part; the judgment stays with a person.

Drawn for Foundations chapter 1. The claim, the receipt, the past claims and the scores are illustrative.