{% extends "base.html" %} {% block title %}What the AI Sees{% endblock %} {# Read-only view of the assembled system prompt. Exists so an admin can tell "my knowledge entry never reached the prompt" apart from "the model saw it and chose not to use it" — the two have completely different fixes. #} {% block content %}

What the AI Sees

Back to Knowledge Base
{{ active_count }}
Active entries
{{ total_count - active_count }}
Inactive (not sent)
{{ prompt | length }}
Prompt characters
{% if kb_included %}
Knowledge included
{% else %}
Knowledge NOT included
{% endif %}
{% if not kb_included and total_count %}
You have {{ total_count }} knowledge entr{{ 'y' if total_count == 1 else 'ies' }}, but none reached the prompt. Check that at least one is marked Active.
{% endif %}
This is the exact text sent to the AI ahead of every customer question. Entries are capped at {{ kb_cap }} characters in total — past that, later entries are dropped (lowest sort order is kept first). If something you wrote appears here but the AI still will not say it, the wording of the entry is the thing to change, not the setup.
Assembled system prompt
{{ prompt }}
{% endblock %}