liveBook · Manning

Prompt

As explained in Prompt Engineering in Practice

A prompt is an instruction and context artifact supplied to a model to specify a task, constraints, and expected output.

A prompt is an engineered interface for a model task, not merely a message. It specifies the work, supplies context and inputs, constrains behavior, and defines a usable result. Treat it like an API contract: make its expectations explicit so outputs can be reviewed and tested. section 1.4 section 1.3

Separate the parts that do different jobs:

  • Instructions state the task and intended audience. section 1.4
  • A labeled input section holds the material to process; a placeholder marks what changes between runs. section 1.4
  • Output requirements name the required sections or format, making results easier to compare and reuse. section 1.4

Incident-summary prompt

Instructions: Read the incident report and write a concise post-incident summary for engineers. Identify what failed, the main timeline, and follow-up actions. Output: One-sentence summary; short timeline; action items. Incident report: {{incident_report_text}}. Keeping the report in its own labeled section distinguishes changing input from the task specification. section 1.4

Clear labels help organize a prompt, but they do not enforce a security boundary: user messages and retrieved documents can influence the output alongside trusted instructions. Check for conflicting requirements. For example, an HR assistant told both to be maximally helpful and not to disclose employee records may treat an urgent request as an exception; a narrower policy-only scope removes that ambiguity. section 10.1 section 10.3.2

Test a prompt against representative inputs, review and version changes, and document failures. Avoid accumulating every use case in one instruction block; focused prompts are easier to change and debug. When a prompt is replaced, deprecate it before archiving its history rather than deleting the audit trail. section 1.3 section 11.6.10 section 11.3.9

How Prompt Engineering in Practice covers it

How deep it goes
Works through a componentized incident-summary prompt and a management lifecycle; defers deployment pipelines, telemetry backends, and multimodel routing.
Examples
Uses an incident-report template and an HR policy chatbot’s conflicting instructions to show design and failure.
What it assumes
Assumes familiarity with APIs, version control, debugging, and system design, but no machine learning background.
What you can do after
Practice/perform it: draft, test, review, deploy, and retire a prompt through a structured lifecycle.
How it connects
Connects prompts to API contracts, version control, trusted input, and prompt security.

Also explained in

Compare how 50 books explain prompt →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Prompt Engineering in Practice. The section links point to the parts of the book it draws on.