Learn Before
Example of a Zero-Shot Prompt for Grammar Correction
A zero-shot prompt for grammar correction involves providing a direct instruction to an LLM without any examples. The model is expected to perform the task based solely on this instruction. For instance, a simple prompt could be: Correct the grammar of the following sentence: {*sentence*} where {*sentence*} is a placeholder for the user's text.
0
1
Tags
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models
Computing Sciences
Foundations of Large Language Models Course
Related
Iterative Prompt Adjustment in Zero-Shot Learning
Example of a Persona-based Prompt for Grammar Correction
Origin of Zero-Shot Learning Ability in LLMs
Example of a Zero-Shot Prompt for Grammar Correction
A developer wants a large language model to classify customer feedback. They provide the model with the following prompt:
You are an expert sentiment analysis system. Classify the following customer review as 'Positive', 'Negative', or 'Neutral'. Provide only the label. Review: 'The battery life is impressive, but the screen is too dim.'Which of the following statements best explains why this approach tests the model's ability to generalize to a new task based on instructions alone?Revising a Prompt for Generalization
A research team is testing a large language model's ability to perform a task it has not been specifically trained on: summarizing news articles into a single sentence. Which of the following prompts is a clear example of a zero-shot approach?
Learn After
A user wants an AI assistant to fix grammatical errors in a sentence. Which of the following instructions best accomplishes this task by relying solely on a direct command, without showing the AI any examples of corrections?
Crafting a Direct Instruction for Grammar Correction
Consider the following instruction given to a language model: 'I will provide a sentence with a grammatical error, followed by the correction. Your task is to fix the grammar in the new sentence I give you. Example: "She don't like coffee." -> "She doesn't like coffee." Now, correct this sentence: "They is going to the park."' This instruction is a valid example of a prompt that relies solely on a direct command without providing any examples to guide the model.