Crafting an Extraction Command
You are working with a large language model that has been fine-tuned to follow instructions. Your task is to extract specific details from the text below and present them in a structured format.
Text: 'The quarterly report for Acme Corp, released on October 26, 2023, showed a revenue of $150 million and a net profit of $12 million. The report was signed by CEO Jane Doe.'
Write a clear and specific command that you would give to the model to extract the company name, report date, revenue, and CEO's name, and format the output as a JSON object.
0
1
Tags
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Creation in Bloom's Taxonomy
Cognitive Psychology
Psychology
Social Science
Empirical Science
Science
Related
Example of a Generic Prompt Template for Information Extraction
A developer is using a large language model that has been specifically adapted to follow commands for pulling structured data from text. The goal is to extract the names of companies and the specific products they launched from the following news snippet:
'Yesterday's tech summit was a showcase of innovation. Innovate Inc. unveiled its new QuantumLeap Processor, while competitor FutureTech debuted its advanced AI-Driven Assistant. Both products are expected to hit the market by year's end.'
Which of the following commands is most likely to produce the desired structured output of company-product pairs?
Crafting an Extraction Command
Diagnosing Inconsistent Extraction Performance