Learn Before
Concept

Constraining LLM Output with a Direct Command

A direct, imperative command is a technique used in prompting to strictly limit a Large Language Model's output to a predefined set of options. For instance, the instruction 'Just answer: positive, negative, or neutral' forces the model to choose its response from only those three words, ensuring the output is structured and easily parsable for classification tasks.

0

1

Updated 2025-10-06

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

Related