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

Important: The answer below is generated by the Gemini AQA model. To verify this answer, please visit: {{named_link_html(check_url, check_url) | safe}}
{{ md_to_html(response) | safe }}

Answerable probability: {{"%.6f"|format(probability|float)}}
Grounding attributions:
{{ final_context | safe }}
{% for source in search_result %} {% set section_url = named_link_html(source.section.url, source.section.url) %} [{{loop.index}}]{{ section_url | safe}}
{% endfor %}
{% else %}

{{ question }}

Important: The answer below is generated by the Gemini Pro model. To verify this answer, please visit: {{named_link_html(check_url, check_url) | safe}}
{{ md_to_html(response) | safe }}

{% for source in search_result %}
{{md_to_html(source.section.content) | safe}}Reference [{{loop.index}}]
{% endfor %}
{% for source in search_result %} {% set section_url = named_link_html(source.section.url, source.section.url) %} [{{loop.index}}]{{ section_url | safe}} ({{ source.distance }})
{% endfor %}
{% 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 %}