{% extends "ui/templates/base/layout.html" %} {% block content %}

Accounting Intelligence · Phase 13

ARRR Internal Accounting Model

Tenant-specific model trained only from accountant-reviewed outcomes. No external AI API is required. New models start in shadow mode and never post to Tally.

Phase 12 AI
{% if message %}
{{ message }}
{% endif %} {% if error %}
{{ error }}
{% endif %}
Runtime
{{ 'Internal model enabled' if summary.enabled else 'Shadow only' }}
Apply threshold
{{ '%.0f'|format(summary.minimum_apply_probability * 100) }}%
Shadow predictions
{{ summary.predictions }}
Reviewed live accuracy
{{ summary.live_accuracy }}%

To allow an active model to update suggestions after shadow validation, set ACCOUNTING_INTERNAL_MODEL_ENABLED=true on the ERP server. Even then it changes only the suggested Accounting Nature; ledger mapping and human review remain unchanged.

Model versions

{% for m in summary.models %} {% else %}{% endfor %}
VersionTrainingClassesValidationTop-2Status
{{ m.version_label }}
{{ m.algorithm }}
{{ m.training_examples }} train / {{ m.validation_examples }} validation {{ m.class_count }} · {{ m.vocabulary_size }} features {{ '%.1f'|format(m.validation_accuracy * 100) }}% {{ '%.1f'|format(m.validation_top2_accuracy * 100) }}% {{ 'Active' if m.is_active else 'Shadow' }} {% if not m.is_active %}
{% endif %}
No internal model trained yet.

Recent shadow/live predictions

{{ summary.reviewed_predictions }} reviewed · {{ summary.correct_predictions }} correct · {{ summary.applied_predictions }} applied to suggestions

{% for p in predictions %} {% else %}{% endfor %}
SourceModelNature IDProbabilityModeOutcome
{{ p.source_type }} #{{ p.source_record_id }} #{{ p.model_id }} {{ p.predicted_nature_id }} {{ '%.1f'|format(p.predicted_probability * 100) }}% {{ 'Shadow' if p.shadow_mode else 'Live suggestion' }} {% if p.prediction_correct is sameas true %}Correct{% elif p.prediction_correct is sameas false %}Corrected by reviewer{% else %}Awaiting review{% endif %}
No model predictions yet.
{% endblock %}