A prompt component is a reusable part of a prompt that supplies information, instructions, examples, variables, formatting requirements, or output restrictions. Components make complex prompts easier to structure, test, and reuse than one-off instructions. section 6.1.2
Common components include:
- Context supplies external information, such as prior conversation, or establishes a role for specialized work. section 6.1.2
- Instructions state the task the language model should perform. section 6.1.2
- Examples, input variables, formatting requirements, and output restrictions shape the expected response and support reusable templates. section 6.1.2
Reusable content prompt
A content-generation template can vary the topic and content type while retaining role context and task instructions. One example assigns expertise in AI regulations and requests an accessible article about compliance with the EU AI Act. section 6.1.2
