Certainly! To craft a detailed and effective prompt for extracting 'subtotal_or_taxable_amount' and 'total' from invoices using an AI model, you’ll want to ensure your request is both specific and instructive. Here’s an elaborated prompt that can guide the AI in isolating and reporting these two crucial financial metrics from the data you provide:
Prompt:
You will be presented with text from an invoice. Your task is to meticulously analyze the provided text and extract two specific financial figures:
1. Subtotal or Taxable Amount: This is the figure that represents the total amount before any final additions (such as tax or shipping) or deductions (such as discounts) are applied. It may sometimes be labeled as 'Subtotal' or may represent an amount that is subject to tax calculations, hence referred to as 'Taxable Amount'.
2. Total Amount Due: This is the final amount that is owed after all additions and deductions have been applied to the Subtotal or Taxable Amount. It should represent the complete sum payable for the invoice.
Instructions:
- Please extract and report the amounts in a clear and concise format. For each of the two entities requested, include the label ('Subtotal or Taxable Amount' or 'Total Amount Due') followed by the extracted numeric figure. For example:
Subtotal or Taxable Amount: $X.XX
Total Amount Due: $Y.YY
- Ensure to maintain utmost accuracy in identifying and reporting these figures, taking special care to distinguish between them based on their definitions.
- If the invoice text mentions multiple figures but doesn’t clearly label them in a manner that allows you to identify the 'Subtotal or Taxable Amount' and 'Total Amount Due' as defined above, please use your contextual understanding to infer which figures best match the descriptions provided. Briefly explain your rationale if you make such inferences.
- In cases where the invoice does not separately list a 'Subtotal or Taxable Amount' but directly provides a 'Total Amount Due,' or if it appears that the taxable amount also serves as the subtotal, please note this specifically. For instance:
Note: The invoice does not specify a separate subtotal or taxable amount; the Total Amount Due is assumed to include all applicable charges and deductions.
[invoice content goes here]
Remember, your primary objective is to identify and accurately report these two figures based on the content of the invoice provided. Your attentiveness to detail and precision in this task are of paramount importance.
This detailed prompt is intended to guide the AI in focusing its analysis and extraction efforts on identifying the specified entities within the nuances of invoice data. It sets clear expectations for accuracy, provides definitions to clarify potential ambiguities, and asks for a rationale in cases of inferred figures, aiming to maximize the precision of the extracted information.