Designing a Prompt for Information Extraction
A developer needs to use a language model to extract the main company name mentioned in a business news headline. They want the model to learn this task from just a few examples. Based on the provided examples, construct a complete text prompt that first demonstrates the task and then asks the model to process a new, unseen headline.
0
1
Tags
Ch.2 Generative Models - Foundations of Large Language Models
Foundations of Large Language Models
Computing Sciences
Foundations of Large Language Models Course
Ch.3 Prompting - Foundations of Large Language Models
Application in Bloom's Taxonomy
Cognitive Psychology
Psychology
Social Science
Empirical Science
Science
Related
Example of a Sentiment Classification Task Instruction
Example of a Few-Shot Prompt for Chinese-to-English Translation
Example of a Positive Sentiment Text Snippet for Classification
A user provides a language model with the text below. By analyzing the structure and the relationship between the inputs and outputs, determine the specific task the user is instructing the model to perform.
Review: This movie was a masterpiece. The acting was superb.Sentiment: PositiveReview: I was really disappointed with the plot.Sentiment: NegativeReview: The film was okay, but not memorable.Sentiment: NeutralDesigning a Prompt for Information Extraction
Predicting Model Output from a Pattern