Files
xianjing-ai/knowledge/decision_tree.yaml
T

72 lines
2.1 KiB
YAML
Raw Normal View History

# 判定树:规则按 order 依次匹配,命中第一条即输出推荐
# 条件支持:slot_equals / slot_contains / always
version: 1
rules:
- id: prefer_a_line
order: 10
description: 明确倾向 A 类或传感场景
when_all:
- type: slot_contains
slot: tech_category
value: A
then:
product_bundle: ["XJ-A100", "XJ-A-GW"]
tech_line: A类传感
summary: 按 A 类传感路线匹配主机 + 网关组合,适合监测类诉求。
confidence: 0.82
- id: prefer_b_line
order: 20
description: 明确倾向 B 类或控制/产线
when_all:
- type: slot_contains
slot: tech_category
value: B
then:
product_bundle: ["XJ-B200", "XJ-B-IO"]
tech_line: B类控制
summary: 按 B 类控制路线匹配控制器 + IO 扩展,适合产线联动。
confidence: 0.8
- id: scenario_production
order: 30
description: 未指定大类但场景像产线 → 偏 B
when_all:
- type: slot_contains
slot: scenario
value: 产线
then:
product_bundle: ["XJ-B200", "XJ-B-IO"]
tech_line: B类控制(场景推断)
summary: 根据产线场景初步偏向 B 类控制方案,建议人工确认指标后锁定型号。
confidence: 0.68
- id: scenario_outdoor
order: 40
description: 户外监测 → 偏 A
when_all:
- type: slot_contains
slot: scenario
value: 户外
then:
product_bundle: ["XJ-A100", "XJ-A-GW"]
tech_line: A类传感(场景推断)
summary: 根据户外监测场景初步偏向 A 类传感方案,需确认防护与供电约束。
confidence: 0.66
- id: fallback_uncertain
order: 1000
description: 兜底:信息不足或不确定
when_all:
- type: always
then:
product_bundle: ["待专家确认"]
tech_line: 待判定
summary: 当前信息尚不足以稳定定型,建议补充指标或转人工销售确认。
confidence: 0.4
handoff: true
# 低于该置信度则建议转人工
handoff_confidence_below: 0.55