| {"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/1002.pdf"}}]}, {"role": "model", "parts": [{"text": "{\"document_type\": \"VAT INVOICE\", \"customer_name\": \"Worcester Muslim Welfare Association\", \"supplier_name\": \"Crowle Consultancy Ltd\", \"supplier_vat_number\": \"269618164\", \"customer_vat_number\": null, \"tax_inclusive_total_amount\": 1800.0, \"tax_exclusive_total_amount\": 1500.0, \"total_tax_amount\": 300.0, \"total_amount\": 1800.0, \"paid_or_unknown\": \"unknown\", \"invoice_date\": \"2023-06-09\", \"invoice_due_date\": \"2023-06-30\", \"currency\": \"GBP\", \"invoice_or_receipt_number_or_transaction_id\": \"INV-0256\", \"expense_category\": \"Professional fees\", \"description_of_goods_or_services\": \"GS Services associated with attending meetings, providing cost advice and preparing quantities for the External Shell of the Building. Also completing quality and inspection reports (by Simon Dutton) - 5no.\", \"is_marketplace_document\": false, \"primary_expense_category\": \"Professional fees\", \"payment_info_card_last4\": null, \"is_cis_applicable\": false, \"tax_information\": {\"tax_lines\": [{\"tax_code\": \"20%\", \"tax_rate\": \"20.0\", \"tax_amount\": 300.0, \"amount_on_which_tax_amount_is_calculated_using_tax_rate\": 1500.0, \"total_amount_including_tax\": 1800.0}]} }"}]}]} |