🔍 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)
{% 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 trouvées
{% for section in results_data.sections %}
{{ section.title[:80] }}{% if section.title|length > 80 %}...{% endif %}
⚡ {{ section.similarity }}% similaire
{% if section.summary_text %}
{{ section.summary_text[:150] }}{% if section.summary_text|length > 150 %}...{% endif %}
{% endif %}
{% if section.concepts %}
{% for concept in section.concepts %}
{{ concept }}
{% endfor %}
{% endif %}
{% endfor %}
đź“„ Passages les plus pertinents
{% for chunk in results_data.results[:20] %}
{% 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 %}
{% endif %}
{% 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 %}