Learn Before
Constructing a Code-like Prompt for Entity Extraction
You need to create a prompt that instructs a large language model to extract the name of a company from a news headline. Using the key-value pair format for demonstrations, write a complete, self-contained prompt that includes one clear example to guide the model. The prompt should then ask the model to perform the task on a new, unseen headline: 'Global Tech Inc. announces record profits.'
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
Analyze the following prompt, which is designed to extract the primary color mentioned in a product description. What is the fundamental flaw in the way the example is provided to the model?
Task: Extract the primary color from the product description. [Description] = [This t-shirt is available in many colors.] [Description] = [The vibrant red car gleamed in the sun.] [Color] =Constructing a Code-like Prompt for Entity Extraction
Refining a Prompt's Demonstrations