Example

Example of a Constraint-First Prompt for Grammaticality Judgment

When evaluating grammaticality, a prompt can be organized by stating strict constraints on the answer format and meanings before presenting the target sentence. For instance, the prompt might begin with the rules: 'Yes or No? Yes = the following sentence is grammatically correct. No = it contains grammatical errors.' Right after these explicit instructions, the sentence to be judged is provided: 'LLMs are powerful models but are expensive to build.', followed by the desired response 'Yes'.

0

1

Updated 2026-04-19

Contributors are:

Who are from:

Tags

Ch.2 Generative Models - Foundations of Large Language Models

Foundations of Large Language Models

Computing Sciences

Related