{% extends "base.html" %} {% block title %}Dashboard - RAGVersion{% endblock %} {% block content %}

Dashboard

Total Documents
{{ stats.total_documents|default(0)|int|string }}
{% if stats.recent_changes %} +{{ stats.recent_changes }} in last 7 days {% endif %}
Total Versions
{{ stats.total_versions|default(0)|int|string }}
{{ "%.2f"|format(stats.average_versions_per_document|default(0)) }} avg per document
Storage Used
{% set mb = (stats.total_storage_bytes|default(0) / 1024 / 1024) %} {% if mb >= 1 %} {{ "%.2f"|format(mb) }} MB {% else %} {{ "%.2f"|format(stats.total_storage_bytes|default(0) / 1024) }} KB {% endif %}
Recent Activity
{{ stats.recent_activity_count|default(0) }}
Last 7 days

Top Documents

View All
{% if top_docs %}
{% for doc in top_docs %} {% endfor %}
File Name Type Versions Size Last Updated Actions
{{ doc.file_name }}
{{ doc.file_path }}
{{ doc.file_type }} {{ doc.version_count }} {% set kb = doc.file_size / 1024 %} {% if kb < 1024 %} {{ "%.1f"|format(kb) }} KB {% else %} {{ "%.1f"|format(kb / 1024) }} MB {% endif %} {{ doc.updated_at.strftime('%Y-%m-%d %H:%M') if doc.updated_at else 'N/A' }} View
{% else %}

No documents tracked yet

Start tracking documents using the CLI: ragversion track ./documents

{% endif %}
{% if stats.documents_by_file_type %}

File Type Distribution

{% for file_type, count in stats.documents_by_file_type.items()|sort(attribute=1, reverse=True) %} {% endfor %}
File Type Count Percentage Distribution
{{ file_type }} {{ count }} {% set percent = (count / stats.total_documents * 100) if stats.total_documents > 0 else 0 %} {{ "%.1f"|format(percent) }}%
{% set percent = (count / stats.total_documents * 100) if stats.total_documents > 0 else 0 %}
{% endif %} {% endblock %}