Stop sequences and delimiters
About
Why Stop Sequences and Delimiters Are Critical
The Purpose of Stop Sequences and Delimiters
Where They Fit in the Prompt Lifecycle
Different Patterns
1. Section Delimiters
2. Instruction Delimiters
INSTRUCTIONS:
DATA:
3. Output Delimiters
4. Stop Sequences (Hard Stop)
5. Multi-Section Delimiter Patterns
Common Mistakes
1. Not Using Delimiters in Complex Prompts
2. Weak or Ambiguous Delimiters
3. Not Enforcing Output Boundaries
4. Ignoring Stop Sequences in API Usage
5. Mixing Delimiters and Content
Sample Prompts
Without Delimiters
With Delimiters and Stop Control
Last updated