🔍 Recherche sémantique
Posez une question en langage naturel pour trouver des passages pertinents
{% if query %}
·
{% if results_data %}
{{ results_data.total_chunks }} passage{% if results_data.total_chunks > 1 %}s{% endif %} trouvé{% if results_data.total_chunks > 1 %}s{% endif %}
{% if results_data.mode == "hierarchical" %}
🌳 Recherche hiérarchique ({{ results_data.sections|length }} sections)
{% elif results_data.mode == "summary" %}
📚 Résumés uniquement (90% visibilité)
{% else %}
đź“„ Recherche simple
{% endif %}
{% if author_filter or work_filter %}
{% if author_filter %}
{{ author_filter }}
{% endif %}
{% if work_filter %}
{{ work_filter }}
{% endif %}
{% endif %}
{% if results_data.fallback_reason %}
⚠️ Mode hiérarchique forcé : {{ results_data.fallback_reason }}
💡 Essayez une requête sur un sujet présent dans le corpus (ex: "croyance", "signe", "inférence") ou basculez en mode Auto-détection.
{% endif %}
{% if results_data.results %}
{% if results_data.mode == "hierarchical" and results_data.sections %}
📚 Sections pertinentes avec passages
{% for section in results_data.sections %}
{% if section.chunks %}
{% for chunk in section.chunks %}
{% if chunk.work and chunk.work.author %}
{{ chunk.work.author }}
{% endif %}
{% if chunk.work and chunk.work.title %}
{{ chunk.work.title }}
{% endif %}
⚡ {{ chunk.similarity }}% similaire
"{{ chunk.text }}"
Section : {{ chunk.sectionPath or '—' }} │
Type : {{ chunk.unitType or '—' }} │
Langue : {{ (chunk.language or '—') | upper }}
{% if chunk.keywords %}
{% for kw in chunk.keywords %}
{{ kw }}
{% endfor %}
{% endif %}
{% endfor %}
{% else %}
Aucun passage trouvé pour cette section
{% endif %}
{% endfor %}
{% elif results_data.mode == "summary" %}
{% for result in results_data.results %}
{{ result.title }}
{% if result.text and result.text != result.title %}
{% if result.text|length > 400 %}
{{ result.text[:397] }}...
{% else %}
{{ result.text }}
{% endif %}
{% endif %}
{% if result.concepts %}
Concepts :
{% for concept in result.concepts[:8] %}
{{ concept }}
{% endfor %}
{% if result.concepts|length > 8 %}
+{{ result.concepts|length - 8 }} autres
{% endif %}
{% endif %}
{% if result.chunks_count > 0 %}
📄 {{ result.chunks_count }} passage{% if result.chunks_count > 1 %}s{% endif %} détaillé{% if result.chunks_count > 1 %}s{% endif %}
{% endif %}
{% if result.section_path %}
│ Section : {{ result.section_path[:70] }}{% if result.section_path|length > 70 %}...{% endif %}
{% endif %}
{% endfor %}
{% else %}
{% for result in results_data.results %}
"{{ result.text }}"
Type : {{ result.unitType or '—' }} │
Langue : {{ (result.language or '—') | upper }} │
Index : {{ result.orderIndex or '—' }}
{% if result.keywords %}
{% for kw in result.keywords %}
{{ kw }}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% else %}
đź”®
Aucun résultat trouvé
Essayez une autre formulation ou modifiez vos filtres.
{% endif %}
{% else %}
đź’ˇ Suggestions de recherche
Voici quelques exemples de questions que vous pouvez poser :
{% endif %}
{% endblock %}