{% extends "ewoooc_base.html" %} {% block title %}Caller 反饋趨勢{% endblock %} {% block ewooo_content %}

Caller 反饋趨勢 過去 {{ days }} 日

{% if error %}
{{ error }}
{% endif %}
{% if episode_distribution %}
蒸餾池狀態(learning_episodes 過去 {{ days }} 日) 資料來源:learning_episodes — 展現 RAG 學習鏈路飽和度
{% for status, cnt in episode_distribution.items() %}
{% if status == 'pending' %} 待處理 {% elif status == 'awaiting_review' %} 待審核 {% elif status == 'approved' %} 已晉升 {% elif status == 'rejected_quality' %} 品質拒 {% elif status == 'rejected_hallucination' %} 幻覺拒 {% elif status == 'rejected_duplicate' %} 重複拒 {% elif status == 'rejected_human' %} 人工拒 {% elif status == 'expired' %} 已過期 {% else %}{{ status }}{% endif %} {{ cnt }}
{% endfor %}
{% endif %} {% if rag_root_causes %}
RAG 自動根因建議 — 對最差 3 名 caller 自動從 ai_insights 召回相似案例
{% for rc in rag_root_causes %}
{{ rc.caller }} {{ "%.2f"|format(rc.avg_score) }}/5 {{ rc.feedback_n }} 筆反饋
    {% for h in rc.hits %}
  • {{ h.insight_type }} 相似度 {{ "%.2f"|format(h.similarity) }} {{ h.content }}{% if h.content|length >= 200 %}…{% endif %}
  • {% endfor %}
{% endfor %}
{% endif %} {% if recommendations %}
智能建議
    {% for rec in recommendations %}
  • {% if rec.action == 'review' %}{% else %}{% endif %} {{ rec.caller }}:{{ rec.reason }}
  • {% endfor %}
{% endif %}
呼叫端 × 反饋分佈 (平均分數升序排列,最差先看)
{% for caller, info in trends %} {% else %} {% endfor %}
呼叫端平均 總數趨勢分布
{{ caller }} {{ "%.2f"|format(info.avg_score) }}/5 {{ info.thumbs_up }} {{ info.thumbs_down }} {{ info.total_feedback }} {% if info.trend == 'positive' %} 正向 {% elif info.trend == 'negative' %} 負向 {% elif info.trend == 'neutral' %} 中性 {% else %} 無資料 {% endif %}
{% set pct = (info.avg_score / 5 * 100)|int %}
無反饋資料

Operation Ollama-First v5.0 / Phase 29 — Caller 反饋趨勢

{% endblock %}