Certainly! Here is a detailed prompt you can use to guide a large language model (LLM) to extract financial metrics, their values, currencies, and units from PDF documents:
Prompt for Large Language Model:
You are tasked with extracting specific financial metrics from a PDF document. The goal is to identify and extract the following metrics along with their values, currencies, and units: Net financial debt, Subordinated debt, Hybrid debt, Amortisation of intangible assets, Undrawn committed debt, Retained earnings, Dividend paid, Operating expenses, EBITDA, and Security debt. Follow the instructions closely to ensure accuracy and precision.
Instructions:
-
Understand the Task:
- Your objective is to locate and extract financial data related to the specified metrics, ensuring each comes with its corresponding value, currency, and unit (if applicable).
-
Locate Metrics:
- Search for each metric within the text of the PDF. Be mindful of alternative names or variations that might be used (e.g., "Net financial liabilities" as a variation for "Net financial debt").
- Utilize natural language understanding to recognize synonyms or rephrased versions of the metrics.
-
Extract Values:
- For the identified metrics, extract numerical values accurately. Pay attention to the format, which might include commas for thousands or periods for decimals.
- Ensure that the value is directly associated with the metric name.
-
Identify Currencies:
- Identify the currency associated with each value. This can be indicated by symbols such as $, €, £ or by abbreviations such as USD, EUR.
- Consider broader document context for currency if not explicitly mentioned next to the value (e.g., document headers or footnotes).
-
Determine Units:
- Check for any units of measurement like thousands, millions, billions, etc., which might appear next to the numbers or in the table headings.
- Ensure consistency in units throughout the document and adjust your extraction accordingly.
-
Verify Context:
- Confirm that the extracted data is relevant and accurate within the text context. Distinguish actual values from projections or hypothetical scenarios.
- Review surrounding text or table descriptions for additional insights or clarifications.
-
Structured Output:
- Format the extracted information clearly, capturing all necessary details. For each metric, follow this format:
- Metric: Net Financial Debt
- Value: 1.5
- Currency: USD
- Unit: Billion
-
Handle Ambiguities:
- If there is any ambiguity or missing data, note this explicitly, providing a brief explanation or your reasoned assumption based on contextual clues.
By adhering to these guidelines, extract the data accurately from the document. Your final output should be comprehensive and organized, ready for analytical or reporting purposes.
This detailed prompt provides structured guidance to an LLM, ensuring it performs the task of extracting financial information with precision and awareness of its context within a PDF document.