To effectively extract the required metrics from PDF files, it's essential to create a prompt that guides an AI or data extraction tool to identify, extract, and organize the information accurately. Below is a structured prompt tailored for this purpose:
PDF Data Extraction Prompt
Objective:
Extract and organize specified financial metrics from PDF documents of various companies. Ensure that the values, currency (if applicable), and units (e.g., thousand, million) are identified and recorded for each metric, despite any slight variations in metric names.
Process:
-
Identify the Metrics:
- Locate the following metrics within the document by scanning both tables and text:
- Net financial debt
- Subordinated debt
- Hybrid debt
- Amortisation of intangible assets
- Undrawn committed debt
- Retained earnings
- Dividend paid
- Operating expenses
- EBITDA
- Security debt
-
Account for Variations in Names:
- Be aware that metric names might slightly vary (e.g., "Divident" vs. "Dividend").
- Use semantic understanding to recognize alternate terminologies or abbreviations (e.g., "EBITDA" may be referred to as "Earnings Before Interest, Taxes, Depreciation, and Amortization").
-
Extract Values:
- For each metric identified, extract the numerical value.
- Ensure that all relevant numerical data is captured accurately.
-
Extract Currency:
- If a currency is specified (e.g., USD, EUR), extract and associate it with the corresponding value.
- Consider contextual cues within the document that may hint at the currency used.
-
Extract Units:
- Identify and extract the unit of measure (e.g., thousand, million) associated with each value.
- Pay attention to any notes or labels that indicate the scale.
-
Compilation into Structured Format:
- Organize the extracted data into a structured format, such as a table or JSON file, with the following fields:
- Company Name
- Metric Name
- Value
- Currency (if applicable)
- Unit
Example Output:
| Company Name | Metric Name | Value | Currency | Unit |
|---|
| Company A | Net financial debt | 1,200 | USD | million |
| Company A | Subordinated debt | 300 | EUR | thousand |
| Company A | EBITDA | 550 | | million |
| ... | ... | ... | ... | ... |
Additional Instructions:
- Ensure all data is captured accurately and within the context provided in the PDF.
- Maintain consistency in formatting and naming conventions for ease of analysis.
- Handle any ambiguities or uncertainties by noting them and, if possible, provide a confidence score for each extraction.
- Document any encountered issues or deviations from expected outputs for further review.
This prompt is designed to guide an extraction tool or AI model in efficiently handling the complexity and variability inherent in PDF documents, thereby ensuring accurate data capture for further analysis.