{% extends "base.html" %} {% block title %}Document Chunks - Deep Research System{% endblock %} {% block extra_head %} {% endblock %} {% block content %}
Back to Document

Document Chunks

Document: {{ document.filename or document.title or "Untitled" }}
Total Chunks: {{ total_chunks }} chunk{{ 's' if total_chunks != 1 else '' }} across {{ chunks_by_collection|length }} collection{{ 's' if chunks_by_collection|length != 1 else '' }}
{% if chunks_by_collection %} {% for collection_name, collection_data in chunks_by_collection.items() %}

{{ collection_data.name }}

{{ collection_data.chunks|length }} chunk{{ 's' if collection_data.chunks|length != 1 else '' }}
{% for chunk in collection_data.chunks %}
Chunk #{{ chunk.index + 1 }}
Words: {{ chunk.word_count }}
Position: {{ chunk.start_char }}-{{ chunk.end_char }}
ID: {{ chunk.id }}
{{ chunk.text }}
Embedding: {{ chunk.embedding_model }} ({{ chunk.embedding_model_type }}) {% if chunk.embedding_dimension %} | Dimension: {{ chunk.embedding_dimension }} {% endif %} | Created: {{ chunk.created_at.strftime('%Y-%m-%d %H:%M') if chunk.created_at else 'N/A' }}
{% endfor %}
{% endfor %} {% else %}

No chunks found for this document.

The document may not be indexed yet.

{% endif %}
{% endblock %}