feat(scenarios): 支持场景配置加载与首页展示
This commit is contained in:
22
configs/document_review.yaml
Normal file
22
configs/document_review.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
id: document_review
|
||||
name: 文档审核助手
|
||||
description: 检查合同、制度或 SOP 中的风险点和缺失项
|
||||
applicable_questions:
|
||||
- 合同审核
|
||||
- 制度审核
|
||||
agent:
|
||||
role: 文档审核专家
|
||||
goal: 根据审核规则和知识库内容输出结构化审核意见
|
||||
instructions:
|
||||
- 不确定的问题必须标记为需人工复核
|
||||
- 输出必须包含风险等级和修改建议
|
||||
rag:
|
||||
enabled: true
|
||||
collection: document_review
|
||||
top_k: 5
|
||||
tools:
|
||||
- check_required_fields
|
||||
output:
|
||||
type: document_review_report
|
||||
audit:
|
||||
enabled: true
|
||||
22
configs/knowledge_qa.yaml
Normal file
22
configs/knowledge_qa.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
id: knowledge_qa
|
||||
name: 知识库问答助手
|
||||
description: 用于 SOP、制度、客服知识库和内部文档问答
|
||||
applicable_questions:
|
||||
- SOP 问答
|
||||
- 制度问答
|
||||
agent:
|
||||
role: 知识库问答专家
|
||||
goal: 基于知识库内容回答用户问题
|
||||
instructions:
|
||||
- 回答必须优先基于检索内容
|
||||
- 不确定时说明缺失信息
|
||||
rag:
|
||||
enabled: true
|
||||
collection: knowledge_qa
|
||||
top_k: 5
|
||||
tools:
|
||||
- generate_action_items
|
||||
output:
|
||||
type: general_answer
|
||||
audit:
|
||||
enabled: true
|
||||
23
configs/quality_analysis.yaml
Normal file
23
configs/quality_analysis.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
id: quality_analysis
|
||||
name: 质量异常分析助手
|
||||
description: 用于分析生产质量异常、检索 SOP、生成处理建议
|
||||
applicable_questions:
|
||||
- 质量异常分析
|
||||
- 缺陷原因定位
|
||||
agent:
|
||||
role: 质量管理专家
|
||||
goal: 根据用户问题、知识库和工具结果,输出可执行的质量分析报告
|
||||
instructions:
|
||||
- 回答必须基于知识库或工具结果
|
||||
- 涉及质量风险时给出风险等级
|
||||
rag:
|
||||
enabled: true
|
||||
collection: quality_analysis
|
||||
top_k: 5
|
||||
tools:
|
||||
- query_demo_records
|
||||
- calculate_rate
|
||||
output:
|
||||
type: quality_report
|
||||
audit:
|
||||
enabled: true
|
||||
24
configs/risk_audit.yaml
Normal file
24
configs/risk_audit.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
id: risk_audit
|
||||
name: 风险审核助手
|
||||
description: 用于财务、采购、报销和合同风险审核
|
||||
applicable_questions:
|
||||
- 财务审核
|
||||
- 采购审核
|
||||
- 合同风险分析
|
||||
agent:
|
||||
role: 风险审核专家
|
||||
goal: 识别业务材料中的风险点并给出审核建议
|
||||
instructions:
|
||||
- 风险点必须说明依据
|
||||
- 缺失材料要单独列出
|
||||
rag:
|
||||
enabled: true
|
||||
collection: risk_audit
|
||||
top_k: 5
|
||||
tools:
|
||||
- check_required_fields
|
||||
- calculate_rate
|
||||
output:
|
||||
type: risk_audit_report
|
||||
audit:
|
||||
enabled: true
|
||||
23
configs/ticket_assistant.yaml
Normal file
23
configs/ticket_assistant.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
id: ticket_assistant
|
||||
name: 工单处理助手
|
||||
description: 用于客服、售后和运维工单的分类与回复建议
|
||||
applicable_questions:
|
||||
- 客服工单
|
||||
- 售后工单
|
||||
agent:
|
||||
role: 工单处理专家
|
||||
goal: 判断工单类别、优先级并生成处理建议
|
||||
instructions:
|
||||
- 需要人工处理时明确标记
|
||||
- 回复建议要简洁可执行
|
||||
rag:
|
||||
enabled: true
|
||||
collection: ticket_assistant
|
||||
top_k: 5
|
||||
tools:
|
||||
- query_demo_records
|
||||
- generate_action_items
|
||||
output:
|
||||
type: ticket_response
|
||||
audit:
|
||||
enabled: true
|
||||
Reference in New Issue
Block a user