{% extends "library/_layout.html" %} {% from "_macros.html" import icon %} {% set section = "knowledge" %} {% block title %}{{ document.title }} - {{ brand.name }}{% endblock %} {% block heading %}{{ document.title }}{% endblock %} {% block library_content %}
{{ icon("chevron-right", "icon--sm") }} Back to {{ document.base.name if document.base else "the base" }}

{{ t("Details") }}

{{ t("Searched along with the contents, so a line here helps a model find it.") }}

{% if document.base %}
{# Moving a document changes who can see it, which is the point of bases. Only bases this person can write to are offered. #}

{{ t("Moving it changes who can see it.") }}

{% endif %}
Kind
{{ document.kind }}
{% if document.source_url %}
Source
{{ document.source_url }}
{% endif %} {% if document.pages %}
Pages
{{ document.pages }}
{% endif %} {% if document.size_bytes %}
Size
{{ document.human_size }}
{% endif %}
Text
{{ "{:,}".format(document.extracted_text|length) }} characters {%- if document.truncated %} · truncated{% endif %}
{% if document.extraction_error %}
{{ icon("warning", "alert__icon") }} {{ document.extraction_error }}
{% endif %}
{% if is_owner %}
{% if document.stored_name %} Download {% endif %}
{% endif %}
{% if document.is_image and document.stored_name %}

{{ t("Preview") }}

{{ document.title }}
{% elif document.extracted_text %}

{{ t("Text") }}

{{ t("What a model is given when it reads this.") }}

{{ document.extracted_text }}
{% endif %} {% endblock %}