{% extends "base.html" %} {% block title %}Documents{% endblock %} {% block content %} {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
{% for category, message in messages %}
{{ message }}
{% endfor %}
{% endif %} {% endwith %}

📚 Documents traités

Liste des documents analysés par le parser PDF

{% if documents %}
{{ documents|length }}
Documents
{{ documents|sum(attribute='summaries_count') }}
Résumés totaux
{{ documents|sum(attribute='chunks_count') }}
Chunks totaux
{% for doc in documents %}
{{ doc.name }} {% if doc.has_structured %} LLM {% endif %}
{% if doc.summaries_count %} {{ doc.summaries_count }} résumés {% endif %} {% if doc.authors_count %} {{ doc.authors_count }} auteur{{ 's' if doc.authors_count > 1 else '' }} {% endif %} {% if doc.chunks_count %} {{ doc.chunks_count }} chunks {% endif %} {% if doc.has_images %} {{ doc.image_count }} images {% endif %}
{% if doc.title or doc.author %}
{% if doc.title %}
Titre : {{ doc.title }}
{% endif %} {% if doc.author %}
Auteur : {{ doc.author }}
{% endif %}
{% endif %} {% if doc.toc and doc.toc|length > 0 %}
Table des matières :
    {% for item in doc.toc[:5] %}
  • {% if item.level == 1 %} {{ item.title }} {% else %} {{ item.title }} {% endif %}
  • {% endfor %} {% if doc.toc|length > 5 %}
  • ... et {{ doc.toc|length - 5 }} autres sections
  • {% endif %}
{% endif %}
👁️ Voir détails {% if doc.has_markdown %} 📄 Markdown {% endif %} {% if doc.has_chunks %} 📊 Chunks {% endif %} {% if doc.has_structured %} 🧠 Structure LLM {% endif %} 🔍 OCR brut
Dossier : output/{{ doc.name }}/
{% endfor %} {% else %}
📭

Aucun document traité

Uploadez un PDF pour commencer.

{% endif %}
Analyser un PDF
{% endblock %}