j2prompt-lint/jinja2-prompt-template-corpus huggingface dataset:
A chat between a human and an artificial intelligence bot. The bot gives helpful, detailed, and polite answers to the human's questions.
{% for message in messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ '|Human|: ' + content + '\n|Bot|: ' }}{% elif message['role'] == 'assistant' %}{{ content + '
\n' }}{% endif %}{% endfor %}
{%- for message in messages %}
{{ '
' + message['role'] + '\n' + message['content'] + '
\n' }}
{%- endfor %}
{%- if add_generation_prompt %}
{{ '
assistant\n' }}
{%- endif %}