From 3d20a54d06373d97d2fb680c5d784636667abaf2 Mon Sep 17 00:00:00 2001 From: David Blanc Brioir Date: Thu, 1 Jan 2026 23:59:00 +0100 Subject: [PATCH] =?UTF-8?q?refactor:=20R=C3=A9organisation=20header=20sect?= =?UTF-8?q?ion=20en=203=20lignes=20claires?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ligne 1 : Auteur | Œuvre | Similarité | Nb passages Ligne 2 : 🗂️ Hiérarchie (chapterTitle) Ligne 3 : 📂 Titre section Plus compact et hiérarchie mieux visible avant le titre --- generations/library_rag/templates/search.html | 46 +++++++++---------- 1 file changed, 21 insertions(+), 25 deletions(-) diff --git a/generations/library_rag/templates/search.html b/generations/library_rag/templates/search.html index 8a9e1b7..05bf1cd 100644 --- a/generations/library_rag/templates/search.html +++ b/generations/library_rag/templates/search.html @@ -181,36 +181,32 @@
- - {% if section.chunks and section.chunks[0].work %} +
- {% if section.chunks[0].work.author %} - {{ section.chunks[0].work.author }} + {% if section.chunks and section.chunks[0].work %} + {% if section.chunks[0].work.author %} + {{ section.chunks[0].work.author }} + {% endif %} + {% if section.chunks[0].work.title %} + {{ section.chunks[0].work.title }} + {% endif %} {% endif %} - {% if section.chunks[0].work.title %} - {{ section.chunks[0].work.title }} - {% endif %} -
- {% endif %} - - -
- 📂 -

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

-
- - - {% if section.chunks and section.chunks[0].chapterTitle %} -
- 🗂️ {{ section.chunks[0].chapterTitle }} -
- {% endif %} - - -
⚡ {{ section.similarity }}% similaire {{ section.chunks_count }} passage{% if section.chunks_count > 1 %}s{% endif %}
+ + + {% if section.chunks and section.chunks[0].chapterTitle %} +
+ 🗂️ {{ section.chunks[0].chapterTitle }} +
+ {% endif %} + + +
+ 📂 +

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

+
{% if section.summary_text and section.summary_text != section.title and section.summary_text != section.section_path %}

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

{% endif %}