{% if search_result[0] %} {% set check_url = search_result[0].section.url %} {% set probability = search_result[0].probability %} {% else %} {% set check_url = "None" %} {% set probability = "0.0" %} {% endif %} {% if aqa_response_in_html != "" %}

{{ question }}

{% if probability|float > 0.7 %}
Important: The answer below is generated by Gemini 1.5. To verify this answer, please visit: {{named_link_html(check_url, check_url) | safe}}

TL;DR

{{ md_to_html(response) | safe }}
{{ md_to_html(summary_response) | safe }}
{% else %}
I'm sorry, but I cannot answer this question at the moment. The answer to your question does not seem to be available in documentation.

However, based on the documentation available in the corpus, you could ask questions like:
{% endif %} {% else %}

{{ question }}

Important: The answer below is generated by the Gemini 1.5 model. To verify this answer, please visit: {{named_link_html(check_url, check_url) | safe}}
{{ md_to_html(response) | safe }}
{% endif %} {% if feedback_mode == "rewrite" %}
{% if aqa_response_in_html != "" %} (Answerable probability: {{"%.3f"|format(probability|float)}}) {% endif %}
{% elif feedback_mode == "like_and_dislike" %}
{% if aqa_response_in_html != "" %} (Answerable probability: {{"%.3f"|format(probability|float)}}) {% endif %}
{% else %}
{% if aqa_response_in_html != "" %} (Answerable probability: {{"%.3f"|format(probability|float)}}) {% endif %}
{% endif %}