Leading Delimiter Formats for LLM Safety

Triple backticks (```), triple hashes (###), and XML-like tags (<tag>...</tag>) are highly recommended for robust LLM safety, providing clear boundaries for instructions and content, especially for structured data or code blocks. These multi-character delimiters are less ambiguous and more effective than single characters.

Sources

Open the full topic