Triple Hashes: Structuring Multi-Step Instructions
The '###' delimiter is highly effective for breaking down complex prompts into distinct, sequential steps or sections, particularly beneficial for 'chain-of-thought' prompting where the LLM needs to follow a logical progression to complete a task.
The top 3
- Why Triple Hashes Excel in Multi-Step LLM Instructions: Triple hashes (`###`) are highly effective for structuring multi-step instructions by creating clear, distinct sections, reducing ambiguity, improving parsing accuracy, and preventing context bleeding in complex prompts, thereby enhancing model understanding and output consistency.
- Top 3 Alternative Delimiters for LLM Prompt Structuring: While triple hashes are effective, other top delimiters include triple backticks (```) for code blocks, XML-like tags (`<section>...</section>`) for semantic structure, and triple hyphens (---) for separating large content blocks, each optimizing clarity for distinct prompt architectures.
- Essential Best Practices for Robust LLM Delimiter Use: To maximize delimiter effectiveness, consistently use the same delimiter for similar types of information, explicitly define its meaning at the beginning of your prompt, choose visually clear markers, and avoid overuse to prevent confusion and enhance the model's understanding of instructions.
Sources
Open the full topic