From 9c63ef84da08e4c3c377938f0e975a87572c7bba Mon Sep 17 00:00:00 2001 From: David Blanc Brioir Date: Thu, 1 Jan 2026 23:31:31 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20Am=C3=A9lioration=20hi=C3=A9rarchie=20v?= =?UTF-8?q?isuelle=20sections/chunks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Header section avec fond beige dégradé distinct des chunks - Icône 📂 + label "Section :" explicite avant le titre - Titre section en plus gros (1.2em, font-weight 600) - Badge nombre de passages en couleur accent - Zone chunks avec fond blanc pur pour contraster - Bordure section plus épaisse (2px) et arrondie (10px) - Summary text avec fond blanc semi-transparent pour lisibilité - Label "Concepts :" avant la liste des concepts Résultat: Hiérarchie visuelle très claire entre section et passages --- generations/library_rag/templates/search.html | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/generations/library_rag/templates/search.html b/generations/library_rag/templates/search.html index 656277b..327db1f 100644 --- a/generations/library_rag/templates/search.html +++ b/generations/library_rag/templates/search.html @@ -178,19 +178,23 @@

📚 Sections pertinentes avec passages

{% for section in results_data.sections %} -
- -
-
-

{{ section.title[:100] }}{% if section.title|length > 100 %}...{% endif %}

+
+ +
+
+ 📂 +

Section : {{ section.title[:120] }}{% if section.title|length > 120 %}...{% endif %}

+
+
⚡ {{ section.similarity }}% similaire - {{ section.chunks_count }} passage{% if section.chunks_count > 1 %}s{% endif %} + {{ section.chunks_count }} passage{% if section.chunks_count > 1 %}s{% endif %}
{% if section.summary_text and section.summary_text != section.title and section.summary_text != section.section_path %} -

{{ section.summary_text[:200] }}{% if section.summary_text|length > 200 %}...{% endif %}

+

{{ section.summary_text[:250] }}{% if section.summary_text|length > 250 %}...{% endif %}

{% endif %} {% if section.concepts %} -
+
+ Concepts : {% for concept in section.concepts %} {{ concept }} {% endfor %} @@ -198,9 +202,9 @@ {% endif %}
- + {% if section.chunks %} -
+
{% for chunk in section.chunks %}