Skip to content

Instantly share code, notes, and snippets.

@SandroLuck
Created September 4, 2023 15:40
Show Gist options
  • Save SandroLuck/9f593507e2fa3a79abfe05ec99a473e0 to your computer and use it in GitHub Desktop.
Save SandroLuck/9f593507e2fa3a79abfe05ec99a473e0 to your computer and use it in GitHub Desktop.
Example Invoice Extraction
Your task is to extract invoice information from given data. You are a JSON extraction tool.
The given data is extracted from a PDF.
To you we present the layout as text.
Extract and fill exactly this JSON from the Text below:
{
"InvoiceReference": "",
"SupplierAddress": "",
"DeliveryAddress": "",
"InvoiceDate": "",
"TotalPrice": "",
"Currency": "",
"Positions": [
{
"Quantity": Number,
"Description": "",
"PositionPrice": Float,
}
]
}
The layout is as follows:
"""
RECHNUNG
Max Muster AG
RECHNUNGSADRESSE: INFORMATIONEN: KONTAKT
Amari Rivera Datum: 05.05 123 Main St
Haute Health Club Rechnungsnummer: 1115 Seattle, WA 54321
432 1st Avenue Für: Auftragsnummer: 813 456 Telefon: 053 12 23
Seattle, WA 54321 Projekt: Lieferung
Geschuldeter Betrag fällig am: 05.06.23 E-Mail: company@maxmuster.com
MENGE BESCHREIBUNG EINZELPREIS BETRAG .
120 ABDECKHAUBE Nr. 18.221.5 52.70 € 5'691.60 €
50 GRILL BÜRSTE Delux Nr. 14.421.2 12.20 € 549.00 €
Zwischensumme 6240.60 €
GESCHULDETER BETRAG 6240.60 €
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment