{% extends "themis/base.html" %} {% load humanize %} {% block title %}{{ item.title }} — {{ themis_app_name }}{% endblock %} {% block content %}
← Libraries

{{ item.title }}

{% if item.item_type %}
{{ item.item_type }}
{% endif %} {% if item.file_type %}
{{ item.file_type }}
{% endif %}
{% if item.s3_key %} ↓ Download {% endif %} Edit
{% csrf_token %}
Delete
Embedding Status: {% if item.embedding_status == "completed" %} Completed {% elif item.embedding_status == "processing" %} Processing {% elif item.embedding_status == "failed" %} Failed {% else %} Pending {% endif %} {% if item.embedding_model_name %} Model: {{ item.embedding_model_name }} {% endif %}
{% if item.error_message %}
{{ item.error_message }}
{% endif %}
File Size
{{ item.file_size|default:0|intcomma }} bytes
Chunks
{{ item.chunk_count|default:0 }}
Images
{{ item.image_count|default:0 }}
Concepts
{{ concepts|length }}
{% if concepts %}

Referenced Concepts

{% for concept in concepts %}
{{ concept.name }} {% if concept.concept_type %} ({{ concept.concept_type }}) {% endif %}
{% endfor %}
{% endif %} {% if images %}

Images ({{ images|length }})

{% for img in images %}
{% if img.s3_key %} {{ img.description|default:'Image' }} {% endif %}
{{ img.image_type|default:"image" }} {% if img.analysis_status == "completed" %} analyzed {% elif img.analysis_status == "failed" %} analysis failed {% elif img.analysis_status == "skipped" %} no vision model {% endif %} {% if img.vision_model_name %} {{ img.vision_model_name }} {% endif %}
{% if img.description %}

{{ img.description }}

{% endif %} {% if img.ocr_text %}
Extracted Text (OCR)

{{ img.ocr_text }}

{% endif %} {% if not img.description and not img.ocr_text %} 🔍 Click to view full image {% endif %}
{% endfor %}
{% endif %} {% if chunks %}

Chunks ({{ chunks|length }})

{% for chunk in chunks|slice:":10" %}
Chunk {{ chunk.chunk_index }} ({{ chunk.chunk_size }} chars) {% if chunk.embedding %} embedded {% else %} no vector {% endif %}

{{ chunk.text_preview }}

{% endfor %} {% if chunks|length > 10 %}

… and {{ chunks|length|add:"-10" }} more chunks

{% endif %}
{% endif %} {% endblock %}