Example of a Persona-based Prompt for Grammar Correction
A prompt for a grammar correction task can be structured to guide a Large Language Model by defining its persona, the nature of the input, and the expected output. For instance, a complete prompt might look like this:
You are a helpful assistant, and are great at grammar correction.
You will be provided with a sentence in English. The task is to output the correct sentence.
Input: She don’t like going to the park.
This example first establishes the model's role as a grammar expert, then specifies the task, and finally provides the actual input sentence, clearly labeled with the 'Input:' field.
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?
LLM Application: Code Debugging
Example of a Persona-based Prompt for Grammar Correction
An automated system designed to improve writing quality is given the following sentence: 'After finishing the report, the computer was shut down by the intern.' Which of the following outputs represents the most effective correction to improve the sentence's clarity and logical structure?
Optimizing Automated Text Correction
Distinguishing Error Types in Text Correction
Example of a Persona-based Prompt for Grammar Correction
A user is constructing a set of instructions for a language model to perform a grammar correction task. Which of the following lines from their instructions is specifically intended to establish the model's role and expertise?
Improving a Grammar Correction Prompt
Analyzing a Prompt Component
A user wants to use a language model to correct grammatical errors in their sentences. To get the best and most consistent results, which of the following instructions is the most effective to provide to the model?
Example of a Persona-based Prompt for Grammar Correction
Evaluating a Task Instruction for a Language Model
Improving a Vague Task Instruction
Example of a Persona-based Prompt for Grammar Correction
Example of a Grammatical Error Correction Input-Output Pair
An engineer is testing a program designed to automatically correct grammatical errors. To specifically test the program's ability to handle subject-verb agreement mistakes, which of the following sentences would serve as the most effective and unambiguous input?
Analyzing a Test Input for Grammar Correction
Creating a Test Case for a Grammar Correction Model
Learn After
Using Visual Cues to Differentiate Prompt Fields
A user wants a language model to summarize a short paragraph into a single sentence. Considering the goal of creating a clear and effective set of instructions, which of the following prompts is better structured to guide the model towards the desired output?
Improving a Flawed Prompt for Grammar Correction
Constructing a Prompt for Text Rephrasing