diff --git a/examples/async_extract_key_value_pdf.ipynb b/examples/async_extract_key_value_pdf.ipynb index d65eb05..132cf6b 100644 --- a/examples/async_extract_key_value_pdf.ipynb +++ b/examples/async_extract_key_value_pdf.ipynb @@ -203,6 +203,19 @@ " \"date\": \"date of the invoice\",\n", " }\n", "\n", + "# If you want to extract line items from an invoice you can follow this structure\n", + "extract_instruction = {\n", + " \"line_items\": {\n", + " \"description\": \"Item description\",\n", + " \"quantity\": \"Item quantity as integer\",\n", + " \"unit_prices\": \"Item unit price as a decimal number\",\n", + " \"net_amounts\": \"Item net amount before tax as a decimal number\",\n", + " \"tax_rate\": \"Item tax rate percentage as a decimal number\",\n", + " \"tax_amount\": \"Item tax amount charged as a decimal number\",\n", + " \"total_amount\": \"Item total amount including tax as a decimal number\",\n", + " }\n", + " }\n", + "\n", "# extract returns a tuple containing the markdown as a string and total time\n", "file_id = ap.async_extract_key_value(example_local_file, extract_instruction)\n", "\n",