# Prompt Delimiter

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

**Field:** Artificial Intelligence  
**Category:** Working with AI  
**Also known as:** Delimiter (Prompting), Prompt Tags

## Think of it like

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

## 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

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.

## 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.

## 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.

## Common mistake

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

## Three principles

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

## Related terms

- [Prompt (AI)](https://learn.benibix.com/term/ai/prompt)
- [Prompt Template](https://learn.benibix.com/term/ai/prompt-template)
- [Structured Output (LLM)](https://learn.benibix.com/term/ai/structured-output)

## Taught in

- [Prompt Delimiters and Tags](https://learn.benibix.com/learn/ai-working-with-ai/prompt-delimiters-and-tags): Prompt Engineering, 4/16

![A prompt with a task at the top. Below it, tags fence off an article. Inside the article, one line tells the model to ignore the task. A note says it is read as text.](https://learn.benibix.com/diagrams/pr-prompt-delimiter.svg)

---

Source: https://learn.benibix.com/term/ai/prompt-delimiter
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
