j2prompt-lint/jinja2-prompt-template-corpus huggingface dataset:
{% for message in messages %}
{% if message['role'] == 'user' %}
{{ '

' + message['content'] + eos_token }}
{% elif message['role'] == 'system' %}
{{ '

' + message['content'] + eos_token }}
{% elif message['role'] == 'assistant' %}
{{ '

'  + message['content'] + eos_token }}
{% endif %}
{% if loop.last and add_generation_prompt %}
{{ '
' }}
{% endif %}
{% endfor %}
{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '
system
Answer the questions.
' }}{% endif %}{{'
' + message['role'] + '
' + message['content'] + '
'}}{% endfor %}{% if add_generation_prompt %}{{ '
assistant
' }}{% endif %}