From 6a2ec10d7bc1a6e8ead1e95801c1818375334e1f Mon Sep 17 00:00:00 2001 From: David Blanc Brioir Date: Thu, 1 Jan 2026 23:54:44 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20Ajout=20auteur,=20=C5=93uvre=20et=20hi?= =?UTF-8?q?=C3=A9rarchie=20dans=20header=20section?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Badge auteur (récupéré du premier chunk de la section) - Badge œuvre (récupéré du premier chunk de la section) - Hiérarchie complète avec icône 🗂️ (chapterTitle du premier chunk) Ex: "Peirce: CP 7.316" - Fond beige léger pour la hiérarchie - Affichage au-dessus du titre de section Structure header de section: 1. Auteur + Œuvre (badges) 2. Titre section avec icône 📂 3. Hiérarchie complète (chapterTitle) 4. Similarité + nombre passages 5. Résumé LLM 6. Concepts --- generations/library_rag/templates/search.html | 30 ++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/generations/library_rag/templates/search.html b/generations/library_rag/templates/search.html index 327db1f..8a9e1b7 100644 --- a/generations/library_rag/templates/search.html +++ b/generations/library_rag/templates/search.html @@ -181,11 +181,33 @@
-
- 📂 -

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

+ + {% 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 %} + + +
+ 📂 +

{{ 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 %}