{% extends "base.html" %} {% import "_icons.html" as icon %} {% import "_file_field.html" as files %} {% import "_papers.html" as papers with context %} {% import "_pager.html" as pager_ui %} {% import "_run_form.html" as run with context %} {% block title %}{% if q %}{{ q }} · {% endif %}Search · pepa{% endblock %} {% block content %} {% include "_page_head.html" %} {% if by == "similar" and not stems %}

No papers ticked

Tick papers in search results, a list or the Library, then press Find similar.

Back to search
{% endif %} {% if by == "words" and not indexed %}

No search index yet

Run Update search index from the Library once papers are prepared.

{% endif %} {% if by != "words" %}{% include "_missing.html" %}{% endif %} {% if by == "document" and not found %} {% if text %}

{{ text }}

{% if estimate and not estimate.no_reply %}
{% include "_look_in.html" %}{% with field = count_field %}{% include "_setting.html" %}{% endwith %}
{{ run.cost_line("Compared in " ~ estimate.pieces ~ (" piece" if estimate.pieces == 1 else " pieces") ~ ". " ~ estimate.words, estimate.approve) }}
Another text
{% else %}

This text could not be measured.{% if estimate %} {{ estimate.no_reply }}{% endif %}

Another text
{% endif %}
{% else %}
{{ files.file_field("file", "Or a file (.md, .txt or .docx)", ".md,.txt,.docx") }}
{% include "_look_in.html" %}{% with field = count_field %}{% include "_setting.html" %}{% endwith %}

If this costs more than your spending limit in Settings, or the cost is not known, you see the cost first.

{% if earlier %}

Earlier searches

{% endif %} {% endif %} {% endif %} {% if found and found.no_reply %}

This search did not run

{{ found.no_reply }}

{% if by != "words" %}Check the embedding model and key{% endif %}
{% elif found %}

{{ found.heading }}

{% if by == "document" %}Another text{% endif %}
{% if found.papers %} {{ papers.paper_list(found.papers, back=request.full_path) }} {% with collect_ticked = False, stems = [] %}{% include "_add_to_list.html" %}{% endwith %} {% else %}

No paper matches

Try fewer or plainer words{% if within %}, or look in the whole library{% endif %}{% if by == "words" %}, or search by meaning to find papers that use other words{% endif %}.

{% if by == "words" and q %}Search by meaning{% endif %}
{% endif %} {% if found.pages and found.pages > 1 %} {{ pager_ui.pager(found.page, found.pages, url_for('explore.explore_page', by='words', page=found.page - 1, **asked), url_for('explore.explore_page', by='words', page=found.page + 1, **asked), "Pages of results") }} {% endif %} {% endif %} {% endblock %}