Back to Glossary

What is Delimiter?

Technique Glossary term: Delimiter
Short Answer

Special characters or markers used to separate different parts of a prompt.

Delimiters are special characters, symbols, or text markers that help separate different sections of a prompt, making it easier for the AI to understand the structure and parse the information correctly.

Common delimiters include:

  • Triple backticks: ``` for code blocks
  • Triple dashes: --- for section breaks
  • Angle brackets: < > for structured data
  • Colons: : for key-value pairs
  • Newlines: Line breaks for visual separation

💡 Examples

Code Separation

Using backticks to separate code from instructions.

Here is the code: ```python def hello_world(): print("Hello, World!") ``` Please explain what this function does.
This function defines a simple Python function called `hello_world()` that prints the text "Hello, World!" when called.

✅ Best Practices

  • Use consistent delimiter patterns
  • Choose delimiters that won't appear in content
  • Provide clear labels for each section
  • Use visual spacing for better readability

🎯 Use Cases

  • Code analysis and explanation
  • Structured data processing
  • Multi-part instructions
  • Content organization
  • Template creation