File size: 1,476 Bytes
4bef5cf |
1 |
{"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/1040.pdf"}}]}, {"role": "model", "parts": [{"text": "{\"document_type\": \"INVOICE\", \"customer_name\": \"Dungey Construction Ltd\", \"supplier_name\": \"Xero (UK) Ltd\", \"supplier_vat_number\": \"891621118\", \"customer_vat_number\": null, \"tax_inclusive_total_amount\": 37.2, \"tax_exclusive_total_amount\": 31.0, \"total_tax_amount\": 6.2, \"total_amount\": 37.2, \"paid_or_unknown\": \"unknown\", \"invoice_date\": \"2021-11-02\", \"invoice_due_date\": \"2021-11-02\", \"currency\": \"GBP\", \"invoice_or_receipt_number_or_transaction_id\": \"INV-10010751\", \"expense_category\": \"Software as a Service\", \"description_of_goods_or_services\": \"Dungey Construction Ltd. Monthly Subscription, Standard, 02 Nov 2021 to 01 Dec 2021. Dungey Construction Ltd. Monthly fee, CIS Contractor, 02 Nov 2021 to 01 Dec 2021\", \"is_marketplace_document\": false, \"primary_expense_category\": \"Software as a Service\", \"payment_info_card_last4\": null, \"is_cis_applicable\": false, \"tax_information\": {\"tax_lines\": [{\"tax_code\": \"20%\", \"tax_rate\": \"20.0\", \"tax_amount\": \"6.2\", \"amount_on_which_tax_amount_is_calculated_using_tax_rate\": \"31.0\", \"total_amount_including_tax\": \"37.2\"}]}, \"is_marketplace_document\": false}"}]}]} |