Short Answer

Crafting a Constraining Command for an LLM

A data scientist is using a large language model to classify thousands of user product reviews. For their data processing pipeline to work correctly, the model's output for each review must be only one of the following three words: 'satisfied', 'dissatisfied', or 'neutral'. Write a single, imperative sentence that you would add to the end of their prompt to ensure the model provides the output in this exact format.

0

1

Updated 2025-10-04

Contributors are:

Who are from:

Tags

Ch.3 Prompting - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Application in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science