Example of a Prompt for Classification via Completion
A simple prompting method for classification involves concatenating the input text with a cue phrase to form a complete prompt. For example, the input 'I love the food here. It’s amazing!' can be combined with 'I’m' to create the prompt: 'I love the food here. It’s amazing! I’m'. The model's generated completion is then used to determine the classification.

0
1
Tags
Ch.1 Pre-training - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Related
Example of a Prompt for Classification via Completion
A developer is building a system to categorize user reviews as either 'Positive' or 'Negative'. A traditional approach would involve a model that outputs a single, predefined label (e.g., the word 'Positive'). How does reframing this task as a text generation problem for a large language model fundamentally change the model's expected output?
Reframing Review Classification
Prompt Design for Generative Classification
Label Mapping for LLM-based Classification
Cloze Task Reframing for LLM-based Classification
Example of a Prompt for Classification via Completion
A developer wants to classify short product reviews as either 'Positive' or 'Negative'. The classification will be determined by interpreting the word or phrase a language model generates to continue a prompt. Which of the following prompt structures, where
[Review Text]is the customer's review, is best designed to leverage this specific classification method?Analyzing a Ticket Prioritization System
Interpreting Model Output for Classification
You’re building a single API endpoint that returns...
Your team is implementing a polarity text-classifi...
You’re launching a sentiment (polarity) classifica...
Create a Dual-Backend Polarity Classification Spec (BERT + Prompt-Completion) with Label Mapping
Designing a Robust Polarity Classifier: BERT vs Prompt-Completion and the Label-Mapping Contract
Choosing and Operationalizing a Sentiment Classifier Under Real Production Constraints
Debugging a Sentiment Pipeline: When Prompt-Completion and Label Mapping Disagree with a BERT Classifier
Designing a Consistent Polarity Classification Service Across BERT and Prompt-Completion Outputs
Stabilizing a Polarity Classifier When Migrating from BERT to Prompt-Completion
Unifying Sentiment Labels Across a BERT Classifier and a Prompt-Completion LLM
Learn After
A developer is building a system to automatically categorize customer support messages. The system works by taking the customer's message, appending a short phrase to it to create a prompt, and then using the language model's generated text to determine the category.
Given the customer message below, which appended phrase is best designed to classify the request type?
Customer Message: 'My internet connection keeps dropping every few hours. I've tried restarting my router, but it doesn't help. Can someone look into this?'
Troubleshooting a Prompt for News Classification
Deconstructing a Classification Prompt