Add multimodal module: receipt images to Java records on the real OpenAI, Anthropic and Ollama models against an OCR-backed local server, validation, repair retry, accuracy by photo condition

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JXVi2GMQ7bR5EmbUFdDj7N
This commit is contained in:
Claude
2026-10-09 07:07:57 +00:00
parent b0bba995e6
commit d67ac0630b
31 changed files with 1339 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
# What the arithmetic checks catch, and what they cannot
correct receipt -> PASSES validation
line total is not qty x unit price -> [line 'Flat White': 2 x 4.50 is 9.00, not 9.50]
a digit misread in one unit price (3.75 -> 3.15) -> [lines add up to 12.15, subtotal says 12.75]
total does not equal subtotal + tax -> [subtotal 12.75 + tax 1.12 is 13.87, total says 13.97]
currency the app does not support -> [currency US$ is not one of [EUR, GBP, INR, USD]]
merchant name typo (text, not arithmetic) -> PASSES validation
item name typo (text, not arithmetic) -> PASSES validation
The last two are wrong and pass: arithmetic cannot check spelling.