j2prompt-lint/jinja2-prompt-template-corpus huggingface dataset:
{{'
'}}{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = 'You are a helpful assistant. Please give a long and detailed answer.' %}{% endif %}{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in loop_messages %}{% if loop.index0 == 0 %}{{'
system
' + system_message + '

'}}{% endif %}{{'
' + message['role'] + '
' + message['content'] + '
' + '
'}}{% endfor %}{% if add_generation_prompt %}{{ '
assistant
' }}{% endif %}