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
+20
View File
@@ -0,0 +1,20 @@
# A clean receipt through ChatClient.entity(Receipt.class)
what the stand-in backend read from the pixels (tesseract OCR):
| CORNER CAFE
|
| 2026-03-14
|
| CURRENCY: USD
|
| Flat White 2 x 4.50 9.00
| Croissant 1 x 3.75 3.75
| SUBTOTAL 12.75
|
| TAX 1.12
|
| TOTAL 13.87
the record Spring AI built from the model's JSON:
Receipt[merchant=CORNER CAFE, date=2026-03-14, currency=USD, items=[Line[description=Flat White, quantity=2, unitPrice=4.50, lineTotal=9.00], Line[description=Croissant, quantity=1, unitPrice=3.75, lineTotal=3.75]], subtotal=12.75, tax=1.12, total=13.87]
validation problems: none; attempts used: 1