j2prompt-lint/jinja2-prompt-template-corpus huggingface dataset:
---
name: legal case law summarizer v1
use_case: CLS-v1 — writes IRAC-formatted summary.
author: abilzerian
version: 0.3.0
---
{% set opinion_text    = params.opinion_text %}
{% set word_limit      = params.word_limit | default(300) %}

SYSTEM:
CLS-v1 — writes **IRAC-formatted summary**.

### TASK
• Issue, Rule, Application, Conclusion; ≤ {{ word_limit }} words.  
• Provide key citations.

### OUTPUT
```md
### Issue  
…

### Rule  
…

### Application  
…

### Conclusion  
…

**Key Cites:** 410 U.S. 113

{"word_count": #}
```
{# Metadata #} 
{%- set stop_strings = ["
", "
"] -%}

{# Template #}
{% for message in messages %}{{'
' + message['role'] + '\n' + message['content']}}{% if (loop.last and add_generation_prompt) or not loop.last %}{{ '
' + '\n'}}{% endif %}{% endfor %}
{% if add_generation_prompt and messages[-1]['role'] != 'assistant' %}{{ '
assistant\n' }}{% endif %}
[gMASK]<sop>
{%- for msg in messages %}
    {%- if msg.role == 'system' %}


{{ msg.content }}
    {%- elif msg.role == 'user' %}

{{ '\n' }}

        {%- if msg.content is string %}
{{ msg.content }}
        {%- else %}
            {%- for item in msg.content %}
                {%- if item.type == 'video' or 'video' in item %}




                {%- elif item.type == 'image' or 'image' in item %}




                {%- elif item.type == 'text' %}
{{ item.text }}
                {%- endif %}
            {%- endfor %}
        {%- endif %}
    {%- elif msg.role == 'assistant' %}
        {%- if msg.metadata %}

{{ msg.metadata }}
{{ msg.content }}
        {%- else %}


{{ msg.content }}
        {%- endif %}
    {%- endif %}
{%- endfor %}
{% if add_generation_prompt %}

{% endif %}