Applying a Prompt Template for a New Task
You are given a generic prompt template for an information extraction task: 'You will be provided with a text. Your task is to {task-description}'. Your goal is to extract the names of all companies mentioned in a business news article. Using the provided template, write the complete and specific prompt you would give to a language model to accomplish this goal.
0
1
Tags
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Application in Bloom's Taxonomy
Cognitive Psychology
Psychology
Social Science
Empirical Science
Science
Related
Example of a Task Description for Keyword Extraction
Example of a Task Description for Event Extraction
Example of a Task Description for Coreference and Anaphora Resolution
Consider the following instruction given to a language model: 'You will be provided with a text. Your task is to identify and list all the dates mentioned.' Which portion of this instruction constitutes the generic, reusable template that could be adapted for other information extraction goals?
Applying a Prompt Template for a New Task
A data science team needs to create a system that can perform several different information extraction tasks, such as identifying company names, extracting key dates, and listing product features from various documents. Which of the following prompt structures provides the most effective and reusable foundation for these different tasks?