prompt delimiter
A marker, such as an XML-style tag or a fenced block, that separates the parts of a prompt so the model can tell instructions from data.
In more detail
Delimiters make prompts clearer and easier to test. They are structure, not security: a malicious document can imitate or close a tag, so escape inserted text and never rely on delimiters to stop prompt injection.
Related terms
- prompt template — A prompt with placeholders that code fills in for each request, such as the user's question or retrieved passages.
- prompt injection — An attack in which text a model reads overrides or redirects the instructions it was given, because instructions and data share one channel.
- spotlighting — Marking untrusted text in a prompt, by delimiting, interleaving a marker or encoding it, so the model can tell it is data and not instructions.
Taught in
- Anatomy Of A Prompt — AI Engineering: LLM Apps, RAG & Agents
- Reasoning Techniques — AI Engineering: LLM Apps, RAG & Agents