feat: 收口知识库治理入口与配置口径
This commit is contained in:
@@ -109,6 +109,88 @@ def get_platform_demo_context():
|
||||
{"label": "业务资料切片", "value": "342"},
|
||||
{"label": "最近人工校订", "value": "2 次"},
|
||||
]
|
||||
governance_sections = [
|
||||
{"title": "法规规则包", "desc": "维护章节规则、要求项与模板字段映射。"},
|
||||
{"title": "RAG 文档源", "desc": "统一管理法规资料、业务资料和模板来源。"},
|
||||
{"title": "RAG 切片", "desc": "查看切片摘要、召回状态和证据命中历史。"},
|
||||
{"title": "字段 Schema", "desc": "维护强一致字段、回填字段和来源优先级。"},
|
||||
{"title": "责任人映射", "desc": "按章节和风险类型维护飞书责任人实体。"},
|
||||
{"title": "飞书通知配置", "desc": "固定支持 task_completed / task_failed 两类通知。"},
|
||||
]
|
||||
rag_chunks = [
|
||||
{
|
||||
"chunk_id": "chunk-001",
|
||||
"document_name": "资料要求说明",
|
||||
"chapter": "CH1",
|
||||
"summary": "CH1.11.5 沟通记录需保留可追溯留痕。",
|
||||
"status": "已启用",
|
||||
},
|
||||
{
|
||||
"chunk_id": "chunk-002",
|
||||
"document_name": "批准证明文件格式要求",
|
||||
"chapter": "CH1",
|
||||
"summary": "注册证输出模板需满足固定版式字段映射。",
|
||||
"status": "待重建",
|
||||
},
|
||||
]
|
||||
field_schemas = [
|
||||
{
|
||||
"field_code": "product_name",
|
||||
"field_name": "产品名称",
|
||||
"field_type": "string",
|
||||
"fillable": "是",
|
||||
"strict_consistency": "是",
|
||||
"status": "启用",
|
||||
},
|
||||
{
|
||||
"field_code": "storage_condition",
|
||||
"field_name": "储存条件",
|
||||
"field_type": "string",
|
||||
"fillable": "是",
|
||||
"strict_consistency": "否",
|
||||
"status": "待校订",
|
||||
},
|
||||
]
|
||||
owner_mappings = [
|
||||
{
|
||||
"owner_role": "注册资料负责人",
|
||||
"owner_name": "张三",
|
||||
"department": "注册事务部",
|
||||
"chapter_scope": "CH1",
|
||||
"risk_scope": "字段冲突 / 缺失项",
|
||||
"feishu_user_id": "ou_demo_1",
|
||||
"feishu_open_id": "on_demo_1",
|
||||
"feishu_name": "张三",
|
||||
"notify_enabled": "是",
|
||||
},
|
||||
{
|
||||
"owner_role": "注册申报负责人",
|
||||
"owner_name": "李四",
|
||||
"department": "临床注册组",
|
||||
"chapter_scope": "CH2-CH6",
|
||||
"risk_scope": "完整性风险 / 导出阻断",
|
||||
"feishu_user_id": "ou_demo_2",
|
||||
"feishu_open_id": "on_demo_2",
|
||||
"feishu_name": "李四",
|
||||
"notify_enabled": "是",
|
||||
},
|
||||
]
|
||||
feishu_configs = [
|
||||
{
|
||||
"config_name": "注册审核完成通知",
|
||||
"notify_reason": "task_completed",
|
||||
"channel": "群机器人",
|
||||
"message_template": "审核完成摘要 + @处理人",
|
||||
"status": "启用",
|
||||
},
|
||||
{
|
||||
"config_name": "注册审核异常通知",
|
||||
"notify_reason": "task_failed",
|
||||
"channel": "群机器人",
|
||||
"message_template": "异常摘要 + @处理人",
|
||||
"status": "启用",
|
||||
},
|
||||
]
|
||||
mcp_connectors = [
|
||||
{"name": "飞书任务通知", "kind": "协同办公", "auth": "App Token", "status": "已连接", "sync": "5 分钟前"},
|
||||
{"name": "法规规则源导入", "kind": "法规服务", "auth": "文件轮询", "status": "待验证", "sync": "今天 08:50"},
|
||||
@@ -333,6 +415,11 @@ def get_platform_demo_context():
|
||||
"knowledge_sources": knowledge_sources,
|
||||
"rule_tree": rule_tree,
|
||||
"knowledge_stats": knowledge_stats,
|
||||
"governance_sections": governance_sections,
|
||||
"rag_chunks": rag_chunks,
|
||||
"field_schemas": field_schemas,
|
||||
"owner_mappings": owner_mappings,
|
||||
"feishu_configs": feishu_configs,
|
||||
"knowledge_filters": knowledge_filters,
|
||||
"knowledge_form": knowledge_form,
|
||||
"rule_form": rule_form,
|
||||
|
||||
Reference in New Issue
Block a user