{# The one Ask form. A new question: which papers, the question or points, what is read of each paper, More settings, the model, the cost, then Ask. In a chat: the next question first, the rest folded under it. #} {% import "_run_form.html" as run with context %} {% import "_paper_picker.html" as picker with context %} {% if ask.follow_up %}{% set keep_key = "ask-" ~ ask.follow_up %}{% elif ask.short %}{% set keep_key = "ask-" ~ ask.papers[0].stem if ask.papers else "ask-paper" %}{% else %}{% set keep_key = "ask" %}{% endif %} {% macro papers_read() %} {% if ask.short %} {% for paper in ask.papers %}{% endfor %} {% elif ask.about == "papers" %} {{ picker.field(ask, picked, url_for('explore.ask_page')) }} {% elif ask.about == "list" %} {% if ask.list_name %}
The {{ ask.list_papers | length }} papers in {{ ask.list_name }}; every one is read
{% for paper in ask.list_papers %}{{ paper.name }}{% endfor %}
{% else %}

Choose a list above.

{% endif %} {% elif ask.about == "theme" %} {% if ask.theme_papers %}
The {{ ask.theme_papers | length }} papers of this theme; every one is read
{% for paper in ask.theme_papers %}{{ paper.name }}{% endfor %}
{% else %}

Choose a theme above.

{% endif %} {% elif ask.closest %}
{% with field = ask.closest %}{% include "_setting.html" %}{% endwith %}
{% endif %} {% endmacro %} {% include "_missing.html" %}
{% if ask.follow_up %} {% else %} {% endif %} {% if ask.follow_up %}
What is read of each paper, the answer's length and the model
{{ run.fields(ask.main) }}{{ run.fields(ask.more) }}
{{ run.uses(ask.uses) }}
{{ run.fields(ask.models) }}
{% else %} {{ papers_read() }} {% if ask.answer_as == "answer" %} {% endif %} {% if ask.main %}
{{ run.fields(ask.main) }}
{% endif %} {{ run.more(ask.more, "How the answer is written: its length, citations and follow-up questions" if ask.answer_as == "answer" else "How papers are cited") }} {{ run.uses(ask.uses) }}
{{ run.fields(ask.models) }}
{% endif %} {{ run.cost_line() }} {{ run.run_button("Ask") }}