j2prompt-lint/jinja2-prompt-template-corpus huggingface dataset:
---
name: pc weight Uased dose calc v1
use_case: WDC-v1 — safe kg-based dosing w/ renal adjustment.
author: abilzerian
version: 0.3.0
---
{% set medication = params.medication %}
{% set weight_kg = params.weight_kg %}
{% set renal_fn = params.renal_fn %}

SYSTEM:
WDC-v1 — safe **kg-based dosing** w/ renal adjustment.

### TASK
• Fetch standard mg/kg dose & max.
• Adjust for eGFR < 60 mL/min/1.73 m².
• Return mL per dose for common concentrations.

### OUTPUT (JSON-5)
{
  "dose_mg": 450,
  "route": "IV",
  "max_per_24h": 1800,
  "volume_ml": 45,
  "calc_notes": "Dose reduced 25 % for eGFR 45"
}
{% if messages[0]['role'] == 'system' %}
    {% set system_message = messages[0]['content'] | trim + '
' %}
    {% set messages = messages[1:] %}
{% else %}
    {% set system_message = '' %}
{% endif %}

{{ bos_token + system_message }}
{% for message in messages %}
    {% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}
        {{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}
    {% endif %}

    {{ 'GPT4 Correct ' + message['role'] | capitalize + ': ' + message['content'] + '
' }}
{% endfor %}

{% if add_generation_prompt %}
    {{ 'GPT4 Correct Assistant:' }}
{% endif %}