PromptFragmentationsverteilung
PromptFragment is a descriptive term used in the field of prompt engineering to denote a fragment of a prompt that can be combined with other fragments to form a complete instruction or query for a language model. A prompt fragment typically contains one or more of the following elements: role guidance, stylistic constraints, background or context, and task instructions. By composing a library of fragments, practitioners can assemble prompts quickly, reuse proven guidance, and experiment with different formulations without rewriting from scratch.
Design and use: Fragments are often stored as templates with placeholders such as {topic} or {audience}, enabling
Benefits and considerations: The modular approach improves consistency, reduces cognitive load, and accelerates iteration. However, fragmentation
Example: A simple fragment might read "You are a concise, helpful assistant." Another fragment might read "Explain