{% if not history %}

Insurance Assistant (RAG)

Ask a question about Etiqa Takaful (Motor & Car policies).

{% endif %} {% for chat in history[:-1] %} {% if chat.type == 'human' %}

{{ chat.content if chat.content is string else chat.content.content }}

{% elif chat.type == 'ai' %}
MultiDom RAG

{{ answer_text|safe }}

{% endif %} {% endfor %} {% if answer %}
Thinking... view source & thoughts...
{% if source %}

Source:

{{ source }}

{% endif %} {% if thoughts %}
View Agent Thoughts (ReAct Process):

{{ thoughts | safe }}

{% endif %} {% if validation %}

Validation:

{{ validation[1] }}

{% endif %}
MultiDom RAG

{{ answer|safe }}

{% endif %}