{% extends 'base.html' %} {% block content %}
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
{{ messages[0][1] }}
{% endif %} {% endwith %}
Document AI

Enter a query and get an answer based on stored context.

{% if answer %}
Answer:

{{ answer }}
Tokens Used: {{ token_count }}
{% endif %}
Previous Queries
{% for question, answer in history %}
Query: {{ question }}

Answer: {{ answer }}
{% endfor %}
{% endblock %}