{% extends "ewoooc_base.html" %} {% block title %}PPT 視覺審核歷史{% endblock %} {% block ewooo_content %}

PPT 視覺審核歷史 reports/ 目錄過去 7 日 .pptx

{% if error %}
{{ error }}
{% endif %}
PPT_VISION_ENABLED: {% if vision_enabled %} 已啟用 — 每日 22:00 cron 自動跑 minicpm-v 視覺檢查,發現問題推送 Telegram {% else %} 未啟用 — 設 PPT_VISION_ENABLED=true 並在 188 主機安裝 LibreOffice 即生效 {% endif %}
過去 7 日 PPT 檔案
{% for f in files %} {% else %} {% endfor %}
檔名大小 (KB) 修改時間動作
{{ f.name }} {{ f.size_kb }} {{ f.mtime }} 由 audit cron 22:00 自動執行
過去 7 日無 PPT 生成
視覺審核歷史紀錄(最近 100 筆)
{% for r in audit_records %} {% else %} {% endfor %}
審核時間檔名結果 問題數信心度 耗時 ms錯誤訊息動作
{{ r.audited_at }} {{ r.pptx_filename }} {% if r.audit_status == 'passed' %} 通過 {% elif r.audit_status == 'failed' %} 有問題 {% elif r.audit_status == 'skipped' %} 跳過 {% elif r.audit_status == 'error' %} 錯誤 {% else %} {{ r.audit_status }} {% endif %} {{ r.issues_count }} {{ "%.2f"|format(r.confidence) }} {{ r.duration_ms }} {{ (r.error_msg or '')[:80] }} {% if r.audit_status in ('failed', 'error') %} {% endif %}
尚無審核紀錄(migration 030 跑過後即會累積)
{% if rag_fixes %}
RAG 自動修法建議 — 對最近 3 筆 failed audit 從 ai_insights 召回相似案例修法
{% for fix in rag_fixes %}
{{ fix.pptx_filename }} {{ fix.audited_at }}
{{ fix.error_msg }}
    {% for h in fix.hits %}
  • {{ h.insight_type }} 相似度 {{ "%.2f"|format(h.similarity) }} {{ h.content }}{% if h.content|length >= 200 %}…{% endif %}
  • {% endfor %}
{% endfor %}
{% endif %}

審核結果:有問題才推 Telegram(避免靜默無問題洗版)。 手動觸發單檔審核需 SSH 到 188 主機執行: python3 -c "from services.ppt_vision_service import ppt_vision_service; print(ppt_vision_service.check_ppt_file('reports/xxx.pptx'))"

{% if audit_30d_stats and audit_30d_stats.total > 0 %}
過去 30 日 PPT 審核統計 資料來源:ppt_audit_results 全表聚合
總筆數 {{ audit_30d_stats.total }}
通過 {{ audit_30d_stats.passed }}
失敗 {{ audit_30d_stats.failed }}
錯誤 {{ audit_30d_stats.error }}
通過率 {{ "%.0f"|format(audit_30d_stats.pass_rate) }}%
總 issue 數 {{ audit_30d_stats.total_issues }}
通過 audit 平均信心度:{{ "%.2f"|format(audit_30d_stats.avg_confidence) }}
{% endif %} {% if top_failure_files %}
Top 10 失敗檔案(30d) — 反覆失敗的 PPT 檔案,需手動處理或調整 generator
{% for f in top_failure_files %} {% endfor %}
檔名 失敗次數 總 issue 最近審核
{{ f.filename }} {{ f.attempts }} {{ f.total_issues }} {{ f.last_audit }}
{% endif %} {% if (not audit_30d_stats or audit_30d_stats.total == 0) and not vision_enabled %}
為什麼這頁空?
{% endif %}

Operation Ollama-First v5.0 / Phase 47 — PPT 視覺審核歷史 (3 表深挖:ppt_audit_results / reports/ 檔案系統 / ai_insights RAG)

{% endblock %}