{% extends 'admin/base.html.twig' %} {% block title %}System Dashboard{% endblock %} {% block body %}
{# ===================================================== #} {# HEADER #} {# ===================================================== #}

System Overview

RAG Enterprise
{# ===================================================== #} {# GOVERNANCE BLOCK #} {# ===================================================== #}
System Governance
Current User:
{{ app.user.userIdentifier }}
Roles:
{{ app.user.roles|join(', ') }}
{# ===================================================== #} {# VECTOR INFRASTRUCTURE #} {# ===================================================== #} {% if vectorHealth is defined %} {% set status = vectorHealth.status %} {% set badgeClass = status starts with 'OK' ? 'bg-success' : (status == 'INCONSISTENT_MISSING_VECTOR' ? 'bg-warning text-dark' : 'bg-danger') %}
Vector Infrastructure
Status
{{ status }}
NDJSON Chunks
{{ vectorHealth.ndjson_chunk_count|number_format(0, ',', '.') }}
Vector Index Chunks
{{ vectorHealth.vector_chunk_count|number_format(0, ',', '.') }}
{% if status starts with 'OK' %}
Infrastructure is consistent.
{% elseif status == 'INCONSISTENT_MISSING_VECTOR' %}
Vector index missing. Rebuild recommended.
{% else %}
Index inconsistency detected. Immediate review required.
{% endif %}
{% endif %} {# ===================================================== #} {# KNOWLEDGE CAPACITY #} {# ===================================================== #} {% set percent = chunkLimit > 0 ? (chunkCount / chunkLimit * 100)|round(1) : 0 %}
Knowledge Capacity
Chunks: {{ chunkCount|number_format(0, ',', '.') }} / {{ chunkLimit|number_format(0, ',', '.') }}
{{ percent }}%
System optimized for maximum {{ chunkLimit|number_format(0, ',', '.') }} chunks. {% if percent >= 95 %}
Capacity limit nearly reached. {% endif %}
{# ===================================================== #} {# CRITICAL OPERATIONS (SUPER ADMIN ONLY) #} {# ===================================================== #} {% if is_granted('ROLE_SUPER_ADMIN') %}
Critical Operations
Full system reset removes:
  • All documents & versions
  • NDJSON index
  • FAISS vector index
  • All ingest jobs
This action is irreversible.
{% for label, messages in app.flashes %} {% for message in messages %}
{{ message }}
{% endfor %} {% endfor %}
{% endif %}
{% endblock %}