第三章 根据需求查找知识
3.1 需求与Knowledge检索的提出
第一章已经确定:
需求是智能系统开始组织Knowledge和形成解决方案的重要驱动力。
第二章进一步建立了需求解析理论,将需求中的:
- Object
- Attribute
- Value
- State
- Condition
- Goal
- Constraint
以及Relation、Context、Expected Result等组织成为Demand Structure。
但是,仅仅形成Demand Structure还不能解决问题。
系统还必须回答一个更重要的问题:
当前需求需要什么Knowledge?
在传统信息检索中,通常可以通过关键词、字符串、标签或者文本相似度寻找相关内容。
但是WSaiOS-SI所研究的不是简单的文本检索。
因为一个需求真正需要的Knowledge,未必包含需求中的原始词语。
例如:
“找出需要补货的产品。”
需求中可能没有出现:
Inventory
Safety Inventory
Sales Rate
Reorder Point
但这些Knowledge可能正是判断“是否需要补货”所必需的。
因此,WSaiOS-SI不能将:
需求词语 → Knowledge关键词
作为核心检索逻辑。
而应该建立:
Demand Structure → Knowledge Structure Matching → Relevant Knowledge
即:
DemandStructure→KnowledgeStructureMatching→RelevantKnowledgeDemandStructure \rightarrow KnowledgeStructureMatching \rightarrow RelevantKnowledge
因此,本章建立WSaiOS-SI的需求驱动Knowledge检索理论。
3.2 根据需求查找Knowledge的定义
在WSaiOS-SI中:
根据需求查找Knowledge,是根据当前Demand形成的Demand Structure,与已有Knowledge及Knowledge Structure进行结构匹配,以确定当前需求所需要、相关、可用和可运算的Knowledge的过程。
形式化表示为:
Kr=Retrieve(DS,KS,C)K_r = Retrieve(D_S,K_S,C)
其中:
- DSD_S:Demand Structure
- KSK_S:Knowledge Structure集合
- CC:Context
- KrK_r:Retrieved Knowledge
因此:
Demand
↓
Demand Analysis
↓
Demand Structure
↓
Knowledge Structure Matching
↓
Relevant Knowledge
这里的“查找”不是简单的搜索,而是:
根据需求结构确定知识结构之间的适配关系。
3.3 Knowledge检索不是关键词搜索
WSaiOS-SI必须明确区分:
Keyword Search
和:
Demand-driven Knowledge Retrieval
关键词搜索主要回答:
“哪些Knowledge包含这个词?”
而需求驱动Knowledge检索回答:
“哪些Knowledge能够参与解决当前Demand?”
二者的目标不同。
例如需求:
“判断某设备是否可以安全运行。”
关键词可能只有:
设备
安全
运行
但真正需要的Knowledge可能包括:
Device Class
Temperature Attribute
Voltage Attribute
Power State
Safety Rule
Operating Range
Error Condition
Maintenance Rule
其中部分Knowledge甚至可能完全不包含“安全运行”这几个文字。
因此:
KeywordMatch≠KnowledgeRelevanceKeywordMatch \neq KnowledgeRelevance
更准确地说:
KnowledgeRelevance=f(DemandStructure,KnowledgeStructure,Context)KnowledgeRelevance = f(DemandStructure,KnowledgeStructure,Context)
3.4 Knowledge检索的基本思想
WSaiOS-SI的Knowledge检索遵循:
先解析需求,再形成需求结构,再匹配Knowledge Structure。
基本过程:
需求
↓
需求解析
↓
Demand Structure
↓
Knowledge Requirement
↓
Knowledge Structure Matching
↓
Candidate Knowledge
↓
Knowledge Validation
↓
Relevant Knowledge
因此,Knowledge检索不是需求解析之前发生的。
正确关系是:
Demand→DemandAnalysis→DemandStructure→KnowledgeRetrievalDemand \rightarrow DemandAnalysis \rightarrow DemandStructure \rightarrow KnowledgeRetrieval
3.5 Knowledge Requirement
Demand Structure形成以后,首先需要确定:
当前需求究竟需要什么Knowledge?
这就是Knowledge Requirement。
Knowledge Requirement不是Knowledge本身,而是对所需Knowledge的结构描述。
例如:
“判断产品是否需要补货。”
可以形成:
Knowledge Requirement
│
├── Product Knowledge
├── Inventory Knowledge
├── Safety Inventory Knowledge
├── Demand Knowledge
├── Replenishment Rule
└── Decision Rule
因此:
DemandStructure→KnowledgeRequirementStructureDemandStructure \rightarrow KnowledgeRequirementStructure
Knowledge Requirement本身也可以被表示为Structure。
3.6 Knowledge Requirement的形成
Knowledge Requirement主要根据以下因素确定:
Demand
Object
Attribute
Value
State
Condition
Goal
Constraint
Expected Result
Context
例如:
Demand:
判断产品是否需要补货
解析后:
Object = Product
Attribute = Inventory
State = Low Inventory
Goal = Determine Replenishment
于是系统可以确定:
Required Knowledge:
Product Structure
Inventory Attribute
Inventory Value
Safety Inventory
Replenishment Rule
形成:
KR=KnowledgeRequirement(DS,C)KR = KnowledgeRequirement(D_S,C)
其中:
- KRKR:Knowledge Requirement
- DSD_S:Demand Structure
- CC:Context
3.7 从需求结构到Knowledge Structure
需求结构并不直接等于Knowledge Structure。
二者的关系是:
Demand Structure
↓
Knowledge Requirement
↓
Knowledge Structure Matching
↓
Knowledge Structure
例如:
Demand Structure
Product
Inventory
Low Inventory
Replenishment
可能匹配:
Knowledge Structure A
Product → Inventory
Knowledge Structure B
Inventory → Safety Inventory
Knowledge Structure C
Low Inventory → Reorder Rule
Knowledge Structure D
Reorder Rule → Replenishment Method
多个Knowledge Structure可以共同满足一个Demand。
因此:
DS→KS1,KS2,KS3,…,KSnD_S \rightarrow K_{S1},K_{S2},K_{S3},…,K_{Sn}
而不是:
DS→OneKnowledgeD_S \rightarrow OneKnowledge
3.8 Knowledge Structure的匹配对象
需求与Knowledge匹配时,不应该只比较文字。
至少需要比较:
Element
Relation
Structure
Attribute
Value
State
Condition
Rule
Operation
Method
Context
Constraint
Expected Result
因此:
Match(DS,KS)Match(D_S,K_S)
可以表示为:
M=ME+MR+MS+MA+MV+MT+MC+MQ+MO+MM+MXM = M_E+ M_R+ M_S+ M_A+ M_V+ M_T+ M_C+ M_Q+ M_O+ M_M+ M_X
其中:
- MEM_E:Element Fit
- MRM_R:Relation Fit
- MSM_S:Structure Fit
- MAM_A:Attribute Fit
- MVM_V:Value Fit
- MTM_T:State Fit
- MCM_C:Condition/Context Fit
- MQM_Q:Constraint Fit
- MOM_O:Operation Fit
- MMM_M:Method Fit
- MXM_X:Expected Result Fit
3.9 Element匹配
首先需要判断Demand中的Element与Knowledge中的Element是否存在结构对应。
例如:
Demand:
Product
Knowledge中可能存在:
Product
Product Model
Product Class
Product Entity
系统需要判断它们之间的关系,而不是只判断字符串是否相同。
因此:
ElementMatch=SemanticFit+StructuralFit+ContextFitElementMatch = SemanticFit + StructuralFit + ContextFit
Element匹配可以产生:
Exact Match
Semantic Match
Class Match
Related Match
Candidate Match
No Match
3.10 Object匹配
Demand中的Object是Knowledge检索的重要入口。
例如:
Demand Object = Product
系统首先寻找与Product相关的Knowledge Structure:
Product
├── Attribute
├── Class
├── Relation
├── State
├── Rule
└── Method
因此:
Object→ObjectKnowledgeObject \rightarrow ObjectKnowledge
但如果Demand中的Object是:
Specific Product A
则需要进一步进行Identity Matching。
因此:
Object Requirement
↓
Class Matching
↓
Identity Matching
↓
Object Knowledge
3.11 Attribute匹配
如果Demand需要某个Attribute:
Product
└── Inventory
Knowledge检索不能只搜索“Inventory”。
必须确认:
哪个Object的Inventory?
例如:
Warehouse.Inventory
Supplier.Inventory
Product.Inventory
Order.Inventory
它们文字上都可能包含“Inventory”,但结构意义不同。
因此:
AttributeMatch=ObjectBinding+AttributeSemanticFit+ContextFitAttributeMatch = ObjectBinding + AttributeSemanticFit + ContextFit
这意味着:
Attribute必须在Object和Context中进行匹配。
3.12 Value匹配
需求可能对Value存在要求。
例如:
“寻找库存低于100件的产品。”
需求结构:
Object = Product
Attribute = Inventory
Operator = <
Value = 100
Knowledge检索需要找到:
Product Inventory Values
而不是仅仅找到“100”。
因此:
ValueMatch=AttributeBinding+TypeMatch+UnitMatch+ContextMatch+ValidityMatchValueMatch = AttributeBinding + TypeMatch + UnitMatch + ContextMatch + ValidityMatch
例如:
100 USD
100 kg
100 pieces
100 degrees
它们虽然Value相同,但结构意义完全不同。
3.13 State匹配
需求中的State可能直接决定需要查找哪些Knowledge。
例如:
“查找当前处于故障状态的设备。”
Demand:
Object = Device
State = Fault
Knowledge检索需要寻找:
Device State Structure
Fault Conditions
Fault Rules
Fault Events
Fault History
因此:
StateRequirement→StateKnowledgeStateRequirement \rightarrow StateKnowledge
状态匹配还需要考虑:
- 当前时间;
- Context;
- State有效期;
- State来源;
- State转换规则。
3.14 Condition匹配
如果需求包含Condition:
“库存低于安全库存时进行补货。”
则Knowledge检索需要寻找:
Inventory
Safety Inventory
Comparison Rule
Replenishment Condition
其结构关系为:
Inventory+SafetyInventory+Comparison→ConditionInventory + SafetyInventory + Comparison \rightarrow Condition
因此Condition不是一个关键词,而是一个结构匹配要求。
3.15 Goal匹配
Goal决定Knowledge检索的方向。
例如:
Goal = Determine Replenishment
系统需要查找的不是所有Product Knowledge,而是:
Replenishment-related Knowledge
例如:
Inventory Rule
Demand Rule
Reorder Rule
Supplier Rule
Budget Rule
因此:
Goal→KnowledgePurposeGoal \rightarrow KnowledgePurpose
Goal可以决定:
哪些Knowledge虽然与Object有关,但对当前问题没有直接作用。
3.16 Constraint匹配
Constraint用于限制Knowledge检索范围。
例如:
“在预算不超过10万元的情况下选择设备。”
则Knowledge检索不仅需要:
Device Knowledge
还需要:
Price Knowledge
Budget Knowledge
Supplier Knowledge
Specification Knowledge
并且:
Price <= Budget
成为Knowledge Matching的重要约束。
因此:
KnowledgeMatching=DemandMatching+ConstraintSatisfactionKnowledgeMatching = DemandMatching + ConstraintSatisfaction
3.17 Context匹配
Context是Knowledge匹配的重要条件。
例如:
“当前美国市场销售的产品价格。”
需要匹配:
Product
Price
Market
Region
Currency
Time
同一个Product的Knowledge可能存在:
USA Price
China Price
EU Price
Historical Price
Wholesale Price
Retail Price
因此:
KnowledgeMeaning=f(Element,Relation,Context)KnowledgeMeaning = f(Element,Relation,Context)
没有Context,Knowledge匹配可能产生错误结果。
3.18 Relation匹配
Element匹配只是第一步。
真正决定Knowledge是否适用的关键之一是Relation。
例如需求:
Product
↓
Inventory
↓
Safety Inventory
如果Knowledge只包含:
Product
Inventory
虽然Element匹配,但关系结构不完整。
因此:
ElementMatch≠StructureMatchElementMatch \neq StructureMatch
必须进一步判断:
RelationMatchRelationMatch
即:
Knowledge中的Element是否按照需求所要求的Relation组织。
3.19 Structure匹配
最终,需要判断Knowledge Structure整体是否满足Demand Structure。
例如:
Demand Structure
Product
├── Inventory
├── Safety Inventory
└── Replenishment Rule
Knowledge Structure:
Knowledge Structure A
Product
└── Inventory
Knowledge Structure B
Product
└── Safety Inventory
Knowledge Structure C
Inventory
└── Replenishment Rule
三个Knowledge Structure共同组合以后:
Product
├── Inventory
├── Safety Inventory
└── Replenishment Rule
才能完整满足Demand Structure。
因此:
Knowledge检索可以产生多个候选Knowledge Structure,并通过结构组合形成满足需求的Knowledge Structure。
3.20 多Knowledge Structure匹配
一个Demand通常不是由一个Knowledge Structure独立满足。
因此:
DS→KS1+KS2+KS3D_S \rightarrow K_{S1} + K_{S2} + K_{S3}
再:
KS1+KS2+KS3→CompositeKnowledgeStructureK_{S1}+K_{S2}+K_{S3} \rightarrow CompositeKnowledgeStructure
例如:
Demand
判断产品是否需要补货
需要:
K1 = Product Knowledge
K2 = Inventory Knowledge
K3 = Safety Inventory Knowledge
K4 = Replenishment Rule
K5 = Budget Constraint
这些Knowledge可以通过Relation建立新的综合结构。
因此:
需求驱动Knowledge检索不仅可以查找已有Knowledge,还可以确定多个Knowledge之间需要建立什么结构关系。
3.21 Knowledge匹配的层级
Knowledge检索可以按照不同结构层级进行。
第一层:Element级匹配
Demand Element
↓
Knowledge Element
第二层:Attribute级匹配
Required Attribute
↓
Knowledge Attribute
第三层:Object级匹配
Required Object
↓
Knowledge Object
第四层:Relation级匹配
Required Relation
↓
Knowledge Relation
第五层:Structure级匹配
Demand Structure
↓
Knowledge Structure
第六层:Knowledge Structure级综合匹配
Multiple Knowledge Structures
↓
Integration
↓
Composite Knowledge Structure
因此:
Element→Attribute→Object→Relation→Structure→KnowledgeStructureElement \rightarrow Attribute \rightarrow Object \rightarrow Relation \rightarrow Structure \rightarrow KnowledgeStructure
3.22 Knowledge检索的候选集
结构匹配以后,不一定立即得到唯一Knowledge。
系统可以形成Candidate Knowledge Set:
KC={K1,K2,…,Kn}K_C=\{K_1,K_2,…,K_n\}
每个Candidate需要进行:
Semantic Fit
Element Fit
Relation Fit
Structure Fit
Context Fit
State Fit
Rule Fit
Operation Fit
Constraint Fit
Validity
因此:
Score(Ki)=F(DS,Ki,C)Score(K_i) = F(D_S,K_i,C)
这里的Score不是简单关键词相关度,而是结构适配度。
3.23 Knowledge相关性
定义Knowledge KiK_i 对Demand DD的结构相关性:
Relevance(Ki,D)=weE+wrR+wsS+waA+wvV+wtT+wcC+wqQ+woO+wmMRelevance(K_i,D) = w_eE + w_rR + w_sS + w_aA + w_vV + w_tT + w_cC + w_qQ + w_oO + w_mM
其中:
- EE:Element Fit
- RR:Relation Fit
- SS:Structure Fit
- AA:Attribute Fit
- VV:Value Fit
- TT:State Fit
- CC:Context Fit
- QQ:Constraint Fit
- OO:Operation Fit
- MM:Method Fit
权重可以根据Demand动态变化。
例如:
状态判断需求
可能提高State Fit权重。
而:
数值计算需求
可能提高Value Fit和Operation Fit权重。
因此:
Knowledge相关性不是固定评分,而是由当前Demand Structure决定。
3.24 Knowledge检索与需求优先级
Demand可能包含多个目标。
例如:
Goal A
判断库存
Goal B
判断缺货风险
Goal C
生成补货建议
不同Goal需要不同Knowledge。
因此Knowledge检索需要按照Demand内部优先级进行组织:
Demand
├── Goal A
│ └── Required Knowledge
│
├── Goal B
│ └── Required Knowledge
│
└── Goal C
└── Required Knowledge
然后:
Kreq=KA∪KB∪KCK_{req} = K_A \cup K_B \cup K_C
再建立它们之间的Relation。
3.25 Knowledge检索与Knowledge Gap
Knowledge检索不仅要找到“有什么”,还要确定:
还缺什么?
例如:
Demand Requirement:
Product
Inventory
Safety Inventory
Replenishment Rule
当前Knowledge只有:
Product
Inventory
那么:
Knowledge Gap:
Safety Inventory
Replenishment Rule
因此:
KnowledgeGap=KnowledgeRequirement−AvailableKnowledgeKnowledgeGap = KnowledgeRequirement – AvailableKnowledge
这与前面建立的感知理论直接连接:
KnowledgeGap→InformationRequirement→PerceptionKnowledgeGap \rightarrow InformationRequirement \rightarrow Perception
3.26 Knowledge检索与感知
当Knowledge不足时,系统不应该立即执行。
正确过程为:
Demand
↓
Demand Structure
↓
Knowledge Requirement
↓
Existing Knowledge Matching
↓
Knowledge Gap
↓
Information Requirement
↓
Perception
↓
New Information
↓
Element
↓
Relation
↓
Structure
↓
Knowledge
↓
Knowledge Matching Again
因此:
Knowledge检索与Perception共同形成需求驱动的知识获取机制。
这意味着:
Demand→KnowledgeSearch→KnowledgeGap→Perception→KnowledgeUpdateDemand \rightarrow KnowledgeSearch \rightarrow KnowledgeGap \rightarrow Perception \rightarrow KnowledgeUpdate
3.27 Knowledge检索与原始资料
当已有Knowledge不足时,系统可以进一步寻找原始资料。
但必须严格区分:
Original Data
Knowledge
Knowledge Structure
基本过程为:
OriginalData→Perception→SemanticUnderstanding→Element→Relation→Structure→KnowledgeOriginalData \rightarrow Perception \rightarrow SemanticUnderstanding \rightarrow Element \rightarrow Relation \rightarrow Structure \rightarrow Knowledge
因此,原始资料不能直接被视为Knowledge。
只有经过:
- 自主语义理解;
- Element识别;
- Relation组织;
- Structure形成;
- 必要验证;
才能形成可使用Knowledge。
3.28 Knowledge检索与Knowledge验证
找到Knowledge并不意味着Knowledge可以直接使用。
需要验证:
Semantic Validity
Source Validity
Context Validity
Temporal Validity
Structural Validity
Relation Validity
State Validity
Rule Validity
Consistency
因此:
RetrievedKnowledge→Validation→UsableKnowledgeRetrievedKnowledge \rightarrow Validation \rightarrow UsableKnowledge
如果出现冲突:
Knowledge A
Price = 100
Knowledge B
Price = 120
不能简单覆盖。
需要保留:
Source A
Value = 100
Source B
Value = 120
Context
Time
Validity
然后根据Demand判断当前需要哪一个Value。
3.29 Knowledge检索与时间
Knowledge具有时间属性。
例如:
Price = 100
Time = T1
Price = 120
Time = T2
如果Demand是:
“当前价格是多少?”
系统需要匹配最新有效Knowledge。
如果Demand是:
“去年价格是多少?”
则需要匹配历史Knowledge。
因此:
KnowledgeMatch=SemanticMatch+TemporalMatchKnowledgeMatch = SemanticMatch + TemporalMatch
时间也是Context的一部分。
3.30 Knowledge检索与State
Knowledge本身也可能包含State。
例如:
Product
Inventory = 100
State = Available
需求:
“找出当前不可售产品。”
系统必须匹配:
Product State
Availability State
Inventory State
Sales State
因此Knowledge检索需要根据Demand确定:
当前需要哪个State维度。
3.31 Knowledge检索与Rule
有些需求不能仅通过Object、Attribute和Value解决。
例如:
“判断产品是否符合销售条件。”
需要:
Product
Certification
Market
Compliance Rule
Sales Rule
因此Knowledge检索必须寻找Rule。
Demand→RequiredRule→RuleKnowledgeDemand \rightarrow RequiredRule \rightarrow RuleKnowledge
Rule可能决定:
State
Operation
Eligibility
Decision
因此Rule是Knowledge检索的重要结构组成。
3.32 Knowledge检索与Method
如果Demand要求执行操作,则Knowledge检索还需要找到相关Method。
例如:
“计算订单总价。”
可能需要:
Order
Quantity
Unit Price
Discount Rule
Tax Rule
Calculate Total Method
因此:
Demand→RequiredMethodKnowledgeDemand \rightarrow RequiredMethodKnowledge
但必须区分:
查找到Method Knowledge ≠ 调用Method。
正确过程:
Demand
↓
Method Knowledge Matching
↓
Method Matching
↓
Instantiation
↓
Method Call
↓
Operation
3.33 Knowledge检索与可运算Knowledge Structure
最终目标不是获得大量Knowledge,而是找到:
能够参与当前问题运算的Knowledge Structure。
因此:
RelevantKnowledge≠ComputableKnowledgeRelevantKnowledge \neq ComputableKnowledge
进一步需要判断:
ComputableKnowledge=Knowledge+Structure+Method+Rule+Operation+ConditionComputableKnowledge = Knowledge + Structure + Method + Rule + Operation + Condition
因此:
Demand
↓
Knowledge Structure Matching
↓
Computable Knowledge Structure
↓
Instantiation
↓
Method
↓
Operation
3.34 Knowledge检索的完整结构模型
可以建立:
Demand
│
▼
Demand Analysis
│
▼
Demand Structure
│
▼
Knowledge Requirement
│
▼
Existing Knowledge Set
│
▼
Knowledge Structure Matching
│
┌────────────────┼────────────────┐
▼ ▼ ▼
Element Match Relation Match Context Match
│ │ │
└────────────────┼────────────────┘
▼
Structure Match
│
▼
Candidate Knowledge
│
▼
Validation
│
┌──────────┴──────────┐
▼ ▼
Relevant Conflict
│ │
▼ ▼
Usable Knowledge Resolution
│
▼
Knowledge Sufficiency
│
┌───────┴────────┐
▼ ▼
Enough Insufficient
│ │
▼ ▼
Operation Knowledge Gap
│
▼
Perception
│
▼
New Knowledge
│
└──────→ Matching Again
3.35 Knowledge检索的递归性
Knowledge检索并不一定只执行一次。
因为第一次检索可能发现:
Knowledge Gap
于是产生新的Knowledge Requirement。
新的Knowledge获取后,又可能发现:
新的Relation
新的Condition
新的State
新的Rule
因此需要再次匹配。
形成:
D→K1→Gap1→K2→Gap2→K3→…D \rightarrow K_1 \rightarrow Gap_1 \rightarrow K_2 \rightarrow Gap_2 \rightarrow K_3 \rightarrow …
直到:
KnowledgeSufficiency(D,Kt)=TrueKnowledgeSufficiency(D,K_t)=True
或者达到:
Unavailable
Insufficient
Need User Input
No Valid Knowledge
因此:
需求驱动Knowledge检索具有递归和迭代特征。
3.36 Knowledge检索的停止条件
Knowledge检索不能无限进行。
因此需要建立停止条件。
当:
RequiredKnowledge⊆AvailableKnowledgeRequiredKnowledge \subseteq AvailableKnowledge
或者:
KnowledgeSufficiency≥ThresholdKnowledgeSufficiency \geq Threshold
并且:
Structure Valid
Condition Valid
Constraint Satisfied
Expected Result Supported
则可以停止检索并进入后续运算。
否则继续:
Knowledge Gap
↓
Perception
↓
Knowledge Update
↓
Matching
因此:
Knowledge检索的停止条件由Demand的知识满足程度决定,而不是由搜索次数决定。
3.37 Knowledge检索结果
根据匹配结果,Knowledge检索可以产生:
1. 完全匹配
Full Match
需求所需Knowledge已经完整存在。
2. 部分匹配
Partial Match
已有部分Knowledge,但仍存在Knowledge Gap。
3. 多结构匹配
Multiple Structure Match
需要多个Knowledge Structure共同满足需求。
4. 候选匹配
Candidate Match
存在多个可能Knowledge。
5. 冲突匹配
Conflicted Knowledge
不同Knowledge之间存在冲突。
6. 无匹配
No Match
当前Knowledge体系没有适用结构。
7. 不可确定
Uncertain Match
Context或Information不足。
8. 需要感知
Perception Required
需要获取新Information。
3.38 Knowledge检索与结构综合
多个Knowledge Structure匹配以后,可以形成综合Knowledge Structure。
例如:
K1 = Product Structure
K2 = Inventory Structure
K3 = Sales Structure
K4 = Replenishment Rule Structure
根据Demand:
“判断是否需要补货”
系统建立:
K1
↓
Product
↓
Inventory
↓
Sales
↓
Replenishment Rule
↓
Decision Structure
因此:
K1+K2+K3+K4+R→KS∗K_1+K_2+K_3+K_4+R \rightarrow K_S^*
其中:
- KS∗K_S^*:综合Knowledge Structure
- RR:Structure Relation
这与前面建立的“Knowledge Structure Synthesis”理论直接连接。
3.39 Knowledge检索与需求变化
需求发生变化时,Knowledge Requirement也会发生变化。
例如:
旧Demand:
判断当前库存是否足够
需要:
Inventory
Order Quantity
变为:
判断未来30天库存是否足够
则需要增加:
Historical Sales
Forecast
Future Demand
Lead Time
Supplier Information
因此:
Demandt≠Demandt+1Demand_t \neq Demand_{t+1}
会导致:
KnowledgeRequirementt≠KnowledgeRequirementt+1KnowledgeRequirement_t \neq KnowledgeRequirement_{t+1}
进一步:
KnowledgeStructuret→KnowledgeStructuret+1KnowledgeStructure_t \rightarrow KnowledgeStructure_{t+1}
因此需求变化可以直接驱动Knowledge结构变化。
3.40 需求变化与Knowledge重生成
如果需求变化导致Structure发生变化,则原有综合Knowledge不能无条件继续保留。
按照前面已经建立的结构生命周期规则:
删除旧结构 → 清除旧综合Knowledge → 保留原始资料 → 按当前结构重新生成Knowledge。
因此:
旧Demand
↓
旧Demand Structure
↓
旧Knowledge Structure
↓
旧Derived Knowledge
当需求发生重大变化:
New Demand
↓
New Demand Structure
↓
Structure Change
↓
Clear Old Derived Knowledge
↓
Preserve Original Data
↓
New Knowledge Requirement
↓
New Knowledge Generation
因此:
Knowledge检索不是永久固定的,Knowledge的有效组织方式受到当前Demand Structure影响。
3.41 Knowledge检索与原始资料保护
必须严格保持:
OriginalData≠DerivedKnowledgeOriginalData \neq DerivedKnowledge
因此,即使需求发生变化、Structure被删除或者Knowledge重新生成:
Original Data
│
├── 保留
│
▼
Current Demand
↓
Current Structure
↓
New Knowledge
这意味着:
Knowledge可以被清除和重新生成,而原始资料不因Knowledge结构变化而被删除。
这是WSaiOS-SI Knowledge检索和Knowledge生成机制的重要基础。
3.42 Knowledge检索不是LLM检索
WSaiOS-SI的Knowledge检索理论不以LLM为基础。
核心路径为:
Demand
↓
Demand Structure
↓
Knowledge Requirement
↓
Knowledge Structure Matching
↓
Knowledge
如果系统使用LLM,它最多作为外部辅助:
Demand
↓
WSaiOS-SI Demand Structure
↓
Knowledge Structure Matching
↓
Optional External LLM Assistance
↓
Candidate Information
↓
WSaiOS-SI Validation
↓
Knowledge
而不能变为:
Demand
↓
LLM
↓
LLM认为相关
↓
直接作为Knowledge
因为:
相关性判断、结构匹配、Knowledge形成和Knowledge验证必须由WSaiOS-SI自身结构智能理论负责。
3.43 需求驱动Knowledge检索的核心模型
最终可以建立:
Demand
│
▼
Demand Structure
│
▼
Knowledge Requirement
│
▼
Knowledge Structure Set
│
▼
┌─────────────────────────┐
│ Structural Matching │
│ │
│ Element │
│ Object │
│ Attribute │
│ Value │
│ State │
│ Relation │
│ Condition │
│ Goal │
│ Constraint │
│ Context │
│ Rule │
│ Operation │
└────────────┬────────────┘
▼
Candidate Knowledge
│
▼
Validation
│
▼
Relevant Knowledge
│
▼
Knowledge Sufficiency
┌──────┴──────┐
▼ ▼
Enough Insufficient
│ │
▼ ▼
Structure Knowledge Gap
Operation │
▼
Perception
│
▼
New Knowledge
│
└──────→ Matching
3.44 需求—Knowledge匹配的形式化
设:
DSD_S
为Demand Structure。
设:
KS={K1,K2,…,Kn}K_S=\{K_1,K_2,\ldots,K_n\}
为Knowledge Structure集合。
则需求驱动Knowledge检索:
KR=Match(DS,KS,C)K_R = Match(D_S,K_S,C)
其中:
KR⊆KSK_R \subseteq K_S
如果单一Knowledge Structure不能满足Demand,则:
KR={K1,K2,…,Km}K_R = \{K_1,K_2,\ldots,K_m\}
并进行结构综合:
KC=Integrate(K1,K2,…,Km,R,C,DS)K_C = Integrate(K_1,K_2,\ldots,K_m,R,C,D_S)
其中:
- KCK_C:综合Knowledge Structure
- RR:Structure Relations
- CC:Context
Knowledge充分性可以表示为:
Sufficiency(DS,KC)Sufficiency(D_S,K_C)
如果:
Sufficiency=TrueSufficiency=True
则进入:
StructureOperationStructureOperation
否则:
KnowledgeGap→InformationRequirement→PerceptionKnowledgeGap \rightarrow InformationRequirement \rightarrow Perception
3.45 需求查找Knowledge的完整逻辑
综合本章,可以形成完整理论链:
Demand→DemandAnalysis→DemandStructure→KnowledgeRequirement→KnowledgeStructureMatching→CandidateKnowledge→Validation→RelevantKnowledgeDemand \rightarrow DemandAnalysis \rightarrow DemandStructure \rightarrow KnowledgeRequirement \rightarrow KnowledgeStructureMatching \rightarrow CandidateKnowledge \rightarrow Validation \rightarrow RelevantKnowledge
当Knowledge不足:
RelevantKnowledge→KnowledgeGap→InformationRequirement→Perception→NewInformation→Element→Relation→Structure→Knowledge→KnowledgeMatchingRelevantKnowledge \rightarrow KnowledgeGap \rightarrow InformationRequirement \rightarrow Perception \rightarrow NewInformation \rightarrow Element \rightarrow Relation \rightarrow Structure \rightarrow Knowledge \rightarrow KnowledgeMatching
最终:
Knowledge→Structure→Operation→Capability→CognitionKnowledge \rightarrow Structure \rightarrow Operation \rightarrow Capability \rightarrow Cognition
3.46 本章理论结论
根据需求查找Knowledge的核心,不是:
“搜索需求中的关键词。”
而是:
“根据需求结构匹配能够参与解决当前问题的Knowledge Structure。”
其完整过程为:
需求 → 需求解析 → Demand Structure → Knowledge Requirement → Knowledge Structure Matching → Knowledge Validation → Relevant Knowledge
需求中的:
- Object;
- Attribute;
- Value;
- State;
- Condition;
- Goal;
- Constraint;
- Relation;
- Context;
- Expected Result;
共同决定当前需要什么Knowledge。
因此:
KnowledgeRelevance=f(DemandStructure,KnowledgeStructure,Context)KnowledgeRelevance = f(DemandStructure,KnowledgeStructure,Context)
而不是:
KnowledgeRelevance=KeywordSimilarityKnowledgeRelevance = KeywordSimilarity
当一个Knowledge Structure不足以满足需求时,系统可以匹配多个Knowledge Structure:
K1+K2+⋯+Kn→CompositeKnowledgeStructureK_1+K_2+\cdots+K_n \rightarrow CompositeKnowledgeStructure
形成能够支撑当前Demand的综合Knowledge Structure。
如果已有Knowledge不足:
KnowledgeRequirement−AvailableKnowledge=KnowledgeGapKnowledgeRequirement – AvailableKnowledge = KnowledgeGap
则进一步:
KnowledgeGap→InformationRequirement→Perception→NewKnowledgeKnowledgeGap \rightarrow InformationRequirement \rightarrow Perception \rightarrow NewKnowledge
因此,需求驱动Knowledge检索形成一个循环:
Demand
↓
Demand Structure
↓
Knowledge Requirement
↓
Knowledge Structure Matching
↓
Knowledge
↓
Knowledge Sufficiency?
├── Yes → Structure Operation
│
└── No
↓
Knowledge Gap
↓
Perception
↓
New Information
↓
Element / Relation / Structure
↓
New Knowledge
↓
Knowledge Matching Again
最终,WSaiOS-SI建立的不是传统意义上的“搜索框式知识检索”,而是一种需求驱动的结构化Knowledge检索机制:
需求决定需要什么知识,需求结构决定知识的结构匹配方向,Knowledge Structure决定知识之间如何组织,Knowledge Gap决定是否需要继续感知,而经过验证并满足当前需求的Knowledge Structure最终进入结构运算过程。
因此,本章形成WSaiOS-SI从“需求”进入“Knowledge”的关键理论桥梁:
Demand→DemandStructure→KnowledgeRequirement→KnowledgeStructureMatching→Knowledge\boxed{ Demand \rightarrow DemandStructure \rightarrow KnowledgeRequirement \rightarrow KnowledgeStructureMatching \rightarrow Knowledge }
并与整个WSaiOS-SI总体智能链保持一致:
需求→知识→结构→运算→能力→认知→决策→方法→执行→反馈→学习→演化\boxed{ 需求 \rightarrow 知识 \rightarrow 结构 \rightarrow 运算 \rightarrow 能力 \rightarrow 认知 \rightarrow 决策 \rightarrow 方法 \rightarrow 执行 \rightarrow 反馈 \rightarrow 学习 \rightarrow 演化 }
这里的Knowledge不再是被动存储的信息集合,而是根据当前需求被主动匹配、组织、验证并进入后续结构运算的可使用知识结构。