Files
spring-ai/multimodal/output/02-extraction.txt
T

21 lines
683 B
Plaintext

# 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