diff --git a/generations/library_rag/templates/search.html b/generations/library_rag/templates/search.html index defc75b..d247415 100644 --- a/generations/library_rag/templates/search.html +++ b/generations/library_rag/templates/search.html @@ -6,23 +6,23 @@
@@ -138,11 +139,11 @@
{% if results_data.mode == "hierarchical" %} - + 🌳 Recherche hiérarchique ({{ results_data.sections|length }} sections) {% else %} - + 📄 Recherche simple {% endif %} @@ -162,7 +163,7 @@ {% if results_data.fallback_reason %} -
+
⚠️ Mode hiérarchique forcé : {{ results_data.fallback_reason }}
💡 Essayez une requête sur un sujet présent dans le corpus (ex: "croyance", "signe", "inférence") ou basculez en mode Auto-détection. @@ -178,17 +179,17 @@

📂 {{ section.title }} - {{ section.chunks_count }} passage{% if section.chunks_count > 1 %}s{% endif %} - ⚡ {{ section.similarity }}% similaire + {{ section.chunks_count }} passage{% if section.chunks_count > 1 %}s{% endif %} + ⚡ {{ section.similarity }}% similaire

-

{{ section.section_path }}

+

📍 {{ section.section_path }}

{% if section.summary_text %}

{{ section.summary_text }}

{% endif %} {% if section.concepts %}
{% for concept in section.concepts %} - {{ concept }} + {{ concept }} {% endfor %}
{% endif %} @@ -198,15 +199,21 @@ {% if section.chunks %}
{% for chunk in section.chunks %} -
-
- ⚡ {{ chunk.similarity }}% similaire +
+
+ {% if chunk.work and chunk.work.author %} + {{ chunk.work.author }} + {% endif %} + {% if chunk.work and chunk.work.title %} + {{ chunk.work.title }} + {% endif %} + ⚡ {{ chunk.similarity }}% similaire
"{{ chunk.text }}"
+ Section : {{ chunk.sectionPath or section.section_path or '—' }}  â”‚  Type : {{ chunk.unitType or '—' }}  â”‚  - Langue : {{ (chunk.language or '—') | upper }}  â”‚  - Index : {{ chunk.orderIndex or '—' }} + Langue : {{ (chunk.language or '—') | upper }}
{% if chunk.keywords %}