| {"systemInstruction": {"parts": [{"text": "You are an invoice extractor. Output ONLY valid JSON."}]}, "contents": [{"role": "user", "parts": [{"fileData": {"mimeType": "image/jpeg", "fileUri": "gs://tune-test-pur/test-train-3/1038.jpg"}}]}, {"role": "model", "parts": [{"text": "{\"document_type\": \"SALES INVOICE\", \"customer_name\": \"Green Farm Ltd\", \"supplier_name\": \"Heron Designs Limited\", \"supplier_vat_number\": \"GB 379410771\", \"customer_vat_number\": null, \"tax_inclusive_total_amount\": 288.0, \"tax_exclusive_total_amount\": 240.0, \"total_tax_amount\": 48.0, \"total_amount\": 288.0, \"paid_or_unknown\": \"unknown\", \"invoice_date\": \"2024-03-13\", \"invoice_due_date\": \"2024-03-14\", \"currency\": \"GBP\", \"invoice_or_receipt_number_or_transaction_id\": \"SI-12321\", \"expense_category\": \"Vehicle\", \"description_of_goods_or_services\": \"Hitchlock, QD34 Lock\", \"is_marketplace_document\": false, \"primary_expense_category\": \"Vehicle\", \"payment_info_card_last4\": null, \"is_cis_applicable\": false, \"tax_information\": {\"tax_lines\": [{\"tax_code\": \"20.00\", \"tax_rate\": \"20.0\", \"tax_amount\": \"48.0\", \"amount_on_which_tax_amount_is_calculated_using_tax_rate\": \"240.0\", \"total_amount_including_tax\": \"288.0\"}]}, \"is_marketplace_document\": false}"}]}]} |