diff --git a/python/ebook_search/api/static/style.css b/python/ebook_search/api/static/style.css index c869d55..5447825 100644 --- a/python/ebook_search/api/static/style.css +++ b/python/ebook_search/api/static/style.css @@ -138,3 +138,12 @@ th { color: #9f1d20; font-weight: 700; } + +.notice { + margin: 8px 0; + padding: 8px 12px; + border-left: 4px solid #c8881d; + background: #fcf3e2; + color: #6b4a06; + font-weight: 600; +} diff --git a/python/ebook_search/api/templates/partials/results.html b/python/ebook_search/api/templates/partials/results.html index bc29eec..72e933b 100644 --- a/python/ebook_search/api/templates/partials/results.html +++ b/python/ebook_search/api/templates/partials/results.html @@ -23,6 +23,16 @@ {% endif %}

Answer

+ {% if low_confidence|default(false) %} +

Low retrieval confidence — answer generation was skipped.

+ {% endif %} + {% set report = citation_report|default(none) %} + {% if report is not none and not report.grounded %} +

Unverified — no source citations were found in this answer.

+ {% endif %} + {% if report is not none and report.invalid %} +

Invalid citations: {{ report.invalid|join(", ") }} (no matching source).

+ {% endif %}

{{ answer }}

{% if response.results %}