{% if doc_data.content is not mapping and doc_data.content|length > input_char_limit %}
Showing first {{ input_char_limit }} characters of {{
doc_data.content|length }}
Show Full Document
{% endif %} {% if doc_data.metadata %}
View Metadata
{% endif %} {% if doc_data.attachments %}
{% if doc_data.attachments|length == 1 %}
{% set att = doc_data.attachments[0] %}
{% set att_url = att.url if att.url else ('data:' ~ (att.mime_type or 'image/jpeg') ~ ';base64,' ~ att.data if att.data else '') %}
{% if att_url and 'application/pdf' not in att_url[:30] %}
{% else %}
๐ View Attachment
{% endif %}
{% else %}
๐ View Attachments ({{ doc_data.attachments|length }})
{% endif %}
{% endif %}
โ Expected Output
{% if doc_data.expected_value is not none %}{{ doc_data.expected_value }}{% else %}No expected output for this task{% endif %}
{% for model_result in doc_data.model_results %}
{% set status = 'neutral' if model_result.is_correct is none else ('correct' if model_result.is_correct else 'incorrect') %}
▼
{{ model_result.model }}
{% if status == 'correct' %}โ CORRECT{% elif status == 'incorrect' %}โ INCORRECT{% else %}{{ 'SCORED' if model_result.task_scores else 'NO GROUND TRUTH' }}{% endif %}
{% if model_result.example_score is not none %}(Score: {{ "%.2f"|format(model_result.example_score) }}){% endif %}