Use Delimiters

When crafting prompts for language models, it's crucial to ensure clear separation between the actual data and the instructions or context provided to the model. This distinction is particularly important when using data-driven prompts, where we want the model to generate responses based on specific input information.

One effective technique to achieve this separation is by using delimiters to mark the boundaries between the prompt and the data. Delimiters act as clear indicators for the model to understand where the data begins and ends, helping it to generate responses more accurately.

Here's how you can use delimiters effectively:

Examples

Summarize the text delimited by triple curly braces into a single sentence.

{{{put_your_text_here}}}
Translate the text delimited by triple quotes into Arabic.

"""How are you?"""