Files
wecom_it_smart_desk/docs/02-技术文档/技术架构/class-exclusion-engine.mermaid
T

39 lines
1.1 KiB
Plaintext
Raw Normal View History

%% 代答排除匹配引擎架构图
%% 来源:增量设计-知识库迭代-开发任务分解-20260712.md §4.1
graph TB
subgraph "代答排除匹配引擎"
Engine[ExclusionService<br/>匹配引擎入口]
Chain[ExclusionChain<br/>责任链调度]
subgraph "策略模式 - 4种匹配器"
M1[KeywordMatcher<br/>关键词匹配]
M2[RegexMatcher<br/>正则匹配]
M3[IntentMatcher<br/>意图匹配]
M4[CategoryMatcher<br/>分类排除]
end
Engine --> Chain
Chain --> M1
Chain --> M2
Chain --> M3
Chain --> M4
end
subgraph "外部依赖"
Dify[Dify 意图识别<br/>复用审批意图链路]
TriageDB[triage_sessions<br/>分诊结果]
RuleDB[(exclusion_rules)]
LogDB[(exclusion_logs)]
end
M3 -->|调用| Dify
M4 -->|查询| TriageDB
Engine -->|读取规则| RuleDB
Engine -->|记录命中| LogDB
style M1 fill:#dbeafe,stroke:#3b82f6
style M2 fill:#fce7f3,stroke:#ec4899
style M3 fill:#ede9fe,stroke:#8b5cf6
style M4 fill:#dcfce7,stroke:#07C160