{% extends "ewoooc_base.html" %} {% block title %}知識晉升審核{% endblock %} {% block ewooo_content %} {% import "admin/_observability_labels.html" as obs_label %} {% set total_dist = (episode_distribution_30d.values() | sum) if episode_distribution_30d else 0 %} {% set approved_30d = episode_distribution_30d.get('approved', 0) if episode_distribution_30d else 0 %} {% set rejected_30d = namespace(value=0) %} {% if episode_distribution_30d %}{% for status, cnt in episode_distribution_30d.items() %}{% if status.startswith('rejected') %}{% set rejected_30d.value = rejected_30d.value + cnt %}{% endif %}{% endfor %}{% endif %} {% set approval_rate = (approved_30d / total_dist * 100) if total_dist > 0 else 0 %}
知識晉升審核 · 人工審核 / 去重 / 防污染

知識晉升審核

先審核高權重學習片段,避免錯誤知識污染業績建議。

待審核
{{ episodes|length }}高權重待審片段
知識庫
{{ kb_size or 0 }}ai_insights 已晉升
30 日通過率
{{ "%.0f"|format(approval_rate) }}%{{ approved_30d }}/{{ total_dist }} 個片段
30 日拒絕
{{ rejected_30d.value }}品質 / 幻覺 / 重複 / 人工拒
{% if error %}
{{ error }}
{% endif %}
審核佇列

待審核片段

{{ episodes|length }} 筆

權重 ≥ 0.8 必經審核;24 小時無回應自動降權。

{% if episodes %} {% for ep in episodes %}
學習片段 #{{ ep.id }} {{ obs_label.insight(ep.episode_type) }}{% if ep.source_table %}{{ obs_label.source(ep.source_table) }} #{{ ep.source_id }}{% endif %}權重 {{ "%.2f"|format(ep.weight) }}品質 {{ "%.2f"|format(ep.quality_score) }}
{{ ep.created_at }}
{{ ep.distilled_text }}
{% if ep.similar_insights %}
Top 3 相似已晉升知識(用來判斷是否重複)
    {% for sim in ep.similar_insights %}
  • #{{ sim.id }}{{ obs_label.insight(sim.insight_type) }}相似度 {{ "%.2f"|format(sim.similarity) }}{{ sim.content }}{% if sim.content|length >= 180 %}…{% endif %}
  • {% endfor %}
{% else %}
知識庫無相似度 ≥ 0.7 的相似內容,可能是新領域知識。
{% endif %}
{% endfor %} {% else %}
目前無待審核片段。
{% endif %}
{% if latest_insights %}
知識庫

最近 10 筆 ai_insights

{% for i in latest_insights %}{% endfor %}
#類型期間SKU建立時間預覽
#{{ i.id }}{{ i.insight_type }}{{ i.period or '—' }}{{ i.product_sku or '—' }}{{ i.created_at }}{{ i.preview }}{% if i.preview|length >= 160 %}…{% endif %}
{% endif %}

知識晉升審核

{% endblock %}