Skip to content
BENIBIX Learn

Prompt Delimiter

AI🛠️ Working with AIPrompt Writing Techniques

Also known as Delimiter (Prompting), Prompt Tags

A mark that fences off one part of a prompt from another.

Think of it like

Think of it like a fence round a garden. It shows where one part ends and the next one starts.

Example

Jack pastes a customer email between two tags. Then he asks for a one-line summary. The model reads the email as text, not as orders to follow.

Why it matters

It cuts mix-ups between your orders and the text being worked on. It is also one small guard against orders hidden in that text.

Definition

A prompt delimiter is a mark that separates the parts of a prompt, so the model can tell them apart. Common ones are triple quotes, lines of hash marks, and tags like <article> and </article>. They keep your instructions apart from the text the model should work on. That matters most when the text is long or comes from someone else. It also helps when the text itself holds orders the model should not follow.

Example code

text
Sum up the article below in three bullet points.

<article>
{article_text}
</article>
The tags fence off the article, so the model can tell the text apart from the task.
The tags fence off the article. An order hidden inside it is read as text, not followed.

Common mistake

Thinking delimiters make a prompt safe. They help the model, but a clever text can still slip orders through.

Key takeaways

  1. 1
    Fences off parts. Task apart from text.
  2. 2
    Tags, quotes, hashes. Any clear mark.
  3. 3
    Helps, not a lock. Not full safety.

Learn it properly