{% 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. Please verify this answer by visiting the source pages.
{{ md_to_html(response) | safe }}

Source pages

    {% for source in search_result %} {% set section_url = named_link_html(source.section.url, source.section.url) %}
  1. {{ section_url | safe}}
  2. {% endfor %}
{% 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 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 %}