Example

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

Updated 2026-05-02

Contributors are:

Who are from:

Tags

Ch.3 Prompting - Foundations of Large Language Models

Foundations of Large Language Models

Computing Sciences

Foundations of Large Language Models Course

Related