liveBook · Manning

Prompt

As explained in How Large Language Models Work

A prompt is an input text or other input provided to a language model to elicit an output.

A prompt is input text given to a language model to elicit a desired output. It can specify the task, detail, tone, format, and boundaries. Prompting therefore constrains behavior rather than guaranteeing understanding or truth. section 5.1 section 4.4

Useful prompts turn broad requests into bounded tasks, such as:

  • Organizing messy data into comma-separated values for Excel. section 5.1
  • Grouping free-form survey responses into summarized themes. section 5.1
  • Roleplaying as a car salesperson or producing other stylized writing. section 5.1

Prompt engineering is the practice of crafting these inputs. Because models can be sensitive to exact wording, limited choices and fixed data sources can reduce unpredictable user input. Novel-request detection is difficult to make error-free, so prevention is often safer than detection. section 4.4

Figure 5.2 Commercial LLMs like ChatGPT are designed to follow instructions (within some limits) and can perform a lot of low-cognition or pattern-matching tasks with very high efficacy. These tasks include stylized writing, such as pattern matching, and instruction following, such as roleplaying as a car salesperson.
figure

Illustrates instruction following, pattern-matching tasks, and roleplaying within limits. section 5.1

How How Large Language Models Work covers it

How deep it goes
Defines prompting and explains framing sensitivity, but defers detailed prompt construction and model internals.
Examples
Uses CSV conversion, survey-theme categorization, car-salesperson roleplay, and stylized writing as examples.
What you can do after
Apply it by framing bounded inputs for data processing, categorization, or stylized generation while limiting unpredictable requests.
How it connects
Connects prompting with prompt engineering, fine-tuning, tokenization, training, and novelty detection.

Also explained in

Compare how 50 books explain prompt →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of How Large Language Models Work. The section links point to the parts of the book it draws on.