Examples of Instruction-like Prompts for Language Models
Instruction-like prompts consist of direct commands that guide a language model to perform a specific task. These prompts can be tailored for a wide range of applications, including machine translation (e.g., 'Translate...') and text summarization (e.g., 'Summarize...').
0
1
References
Reference of Foundations of Large Language Models Course
Reference of Foundations of Large Language Models Course
Reference of Foundations of Large Language Models Course
Reference of Foundations of Large Language Models Course
Reference of Foundations of Large Language Models Course
Reference of Foundations of Large Language Models Course
Reference of Foundations of Large Language Models Course
Tags
Ch.2 Generative Models - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Ch.3 Prompting - Foundations of Large Language Models
Related
Example of a Prompt Template for Machine Translation
Code-like Prompt Templates
A developer is testing different ways to ask a language model to translate the English sentence 'The cat sat on the mat' into French. Consider the following three approaches:
Translate the following English text to French: The cat sat on the matEnglish: The cat sat on the mat Question: What is the French translation of this English sentence? Answer:- `def translate_to_french(english_text): """Translates the given English text to French.""" return model.translate(english_text)
input = "The cat sat on the mat" output = translate_to_french(input)`
Which option correctly identifies the format of each approach?
Examples of Instruction-like Prompts for Language Models
Improving Idiomatic Machine Translation
Constructing Machine Translation Prompts
Learn After
Example of an Instruction-like Prompt Template for Machine Translation
Example of an Instruction-like Prompt for English-to-Spanish Translation
Example of an Instruction-like Prompt for Chinese-to-English Translation
Example of a Simplified Instruction for Chinese Translation
A developer needs a language model to translate a specific sentence. Which of the following prompts best exemplifies a direct, command-based instruction for this task?
Evaluating Prompt Effectiveness for Translation
Example of a Standard Instruction for English-to-Chinese Translation
Crafting a Prompt for Customer Feedback Analysis