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