Example

Example of a Complete Prompt for Polarity Classification

A complete prompt for a large language model can be constructed by combining an explicit instruction with the input text and an output indicator. The instruction sets the context and defines the task, such as polarity classification with a specific set of labels. This is followed by the input to analyze, and finally, an indicator that signals where the model should provide its answer. For example: 'Assume that the polarity of a text is a label chosen from {positive, negative, neutral}. Identify the polarity of the input. Input: I love the food here. It's amazing! Polarity:'

0

1

Updated 2026-05-02

Contributors are:

Who are from:

Tags

Ch.1 Pre-training - 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