{% extends "base.html" %} {% block title %}知识库{% endblock %} {% block content %}
{% for item in knowledge_stats %}
{{ item.label }}
{{ item.value }}
{% endfor %}

治理对象导航

按治理对象切换当前列表和维护入口,保持法规、RAG、字段、模板和通知口径统一。

{{ active_governance_object.detail_title }}

{{ active_governance_object.detail_copy }}

当前对象:{{ active_governance_object.title }}
{% for action in active_governance_object.actions %}

{{ action }}

该操作在 V1 通过后台维护与治理台入口统一承接。

{% endfor %}

{{ governance_action_hub.title }}

用当前治理对象作为焦点,快速进入审核、资料包和处理历史入口。

{% for item in governance_action_hub.status_items %} {{ item.label }}:{{ item.value }} {% endfor %}
{% for action in governance_action_hub.quick_actions %} {{ action.label }} {% endfor %}

固定通知策略

Demo 首版固定仅支持执行完成或执行异常两类飞书通知口径。

{% for section in governance_sections %}

{{ section.title }}

{{ section.desc }}

{% endfor %}

法规规则包

按章-条-要求项-模板字段维护规则包,并向审核节点输出结构化依据。

{% for item in rule_tree %} {% endfor %}
编码 章节 规则名称 模板字段 状态
{{ item.code }} {{ item.chapter }} {{ item.item }} {{ item.field }} {{ item.status }}

RAG 文档源

支持法规、模板与业务资料分层管理。

{% for source in knowledge_sources %} {% endfor %}
编码 名称 类型 范围 状态
{{ source.code }} {{ source.name }} {{ source.type }} {{ source.scope }} {{ source.status }}

RAG 切片

展示切片摘要、章节与召回状态。

{% for chunk in rag_chunks %} {% endfor %}
切片 ID 文档 章节 摘要 状态
{{ chunk.chunk_id }} {{ chunk.document_name }} {{ chunk.chapter }} {{ chunk.summary }} {{ chunk.status }}

字段 Schema

维护强一致字段、回填字段和来源优先级。

{% for field in field_schemas %} {% endfor %}
字段编码 字段名称 类型 可回填 强一致 状态
{{ field.field_code }} {{ field.field_name }} {{ field.field_type }} {{ field.fillable }} {{ field.strict_consistency }} {{ field.status }}

Word 模板与字段映射

维护输出模板版本、占位符数量和字段映射摘要。

{% for item in template_mappings %} {% endfor %}
模板名称 输出类型 版本 占位符数量 字段映射摘要 状态
{{ item.template_name }} {{ item.output_type }} {{ item.version }} {{ item.placeholder_count }} {{ item.field_mapping_summary }} {{ item.status }}

责任人映射

责任人实体字段直接按通知载荷口径展示。

{% for item in owner_mappings %} {% endfor %}
owner_role owner_name department chapter_scope risk_scope feishu_user_id feishu_open_id feishu_name notify_enabled
{{ item.owner_role }} {{ item.owner_name }} {{ item.department }} {{ item.chapter_scope }} {{ item.risk_scope }} {{ item.feishu_user_id }} {{ item.feishu_open_id }} {{ item.feishu_name }} {{ item.notify_enabled }}

飞书通知配置

V1 Demo 固定支持 `task_completed` 与 `task_failed` 两类通知。

{% for item in feishu_configs %} {% endfor %}
配置名称 notify_reason 渠道 消息模板 状态
{{ item.config_name }} {{ item.notify_reason }} {{ item.channel }} {{ item.message_template }} {{ item.status }}
{% endblock %}