From 65adc02d6e40c53f686eff2ad64648229ae30ca3 Mon Sep 17 00:00:00 2001 From: David Blanc Brioir Date: Thu, 1 Jan 2026 16:16:50 +0100 Subject: [PATCH] fix: Hide duplicate summary text when identical to title Problem: Sections showed title twice (once as title, once as summary_text) Cause: summary_text contains same content as title in current data Solution: Only show summary_text if different from title and section_path Condition: summary_text != title AND summary_text != section_path --- generations/library_rag/templates/search.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generations/library_rag/templates/search.html b/generations/library_rag/templates/search.html index 7b9510d..2b50e9a 100644 --- a/generations/library_rag/templates/search.html +++ b/generations/library_rag/templates/search.html @@ -184,7 +184,7 @@ {{ section.title[:80] }}{% if section.title|length > 80 %}...{% endif %} ⚡ {{ section.similarity }}% similaire - {% if section.summary_text %} + {% if section.summary_text and section.summary_text != section.title and section.summary_text != section.section_path %}

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

{% endif %} {% if section.concepts %}