26 lines
2.9 KiB
Plaintext
26 lines
2.9 KiB
Plaintext
%%{init: {"flowchart": {"wrappingWidth": 420}}}%%
|
||
flowchart TB
|
||
%% 依据:lpt-ai src/llm/recall.ts recallCheckRules(5 条常量)、recallPrompt()、
|
||
%% normalizeRecallResultInner 的「分析判定 / 查漏依据 / 表达依据 / 分析覆盖」校验段。
|
||
%% 本图只讲 CHECK;HINT 见 prompt-hint.mmd。
|
||
|
||
classDef src fill:#ffe1e1,stroke:#c0392b,stroke-width:3.5px,color:#7b1414
|
||
classDef api fill:#e8f0fe,stroke:#1a56b0,stroke-width:1.2px,color:#111
|
||
classDef take fill:#e7f6ea,stroke:#2e8b57,stroke-width:1.2px,color:#14532d
|
||
classDef use fill:#f3f0fb,stroke:#6b4fa0,stroke-width:1.2px,color:#3b2a63
|
||
classDef origin fill:#fff3cd,stroke:#b8860b,stroke-dasharray:4 3,color:#664d03
|
||
classDef note fill:#f7f7f7,stroke:#999,stroke-dasharray:4 3,color:#333
|
||
classDef warn fill:#ffe1e1,stroke:#c0392b,stroke-width:2.2px,color:#7b1414
|
||
|
||
S["「入口」system = 公共 10 条 + recallCheckRules 5 条"]:::api
|
||
S -->|"规则 1–3"| C1["1. CHECK: kind=CHECK,hints=[],findings最多12且item id唯一。"]:::use
|
||
C1 --> C2["2. findings:[{id,<br/>category:"EXPRESSED"#124;"POSSIBLY_MISSING"#124;"INSUFFICIENT_EXPRESSION"#124;<br/>"RECALL_CONFLICT"#124;"REFERENCE_CONFLICT"#124;"NOT_IN_REFERENCE",<br/>clue:string(不超过120字符),explanation:string(不超过360字符),<br/>citations:[{unitId,start,end,quote}],<br/>expressionEvidence:[{nodeId,field:"TITLE"#124;"NOTES",start,end,quote}]}]。"]:::use
|
||
C2 --> C3["3. CHECK中没给判断或没有 finding 引用的单位是 UNANALYZED,绝不能默认遗漏;<br/>未知、排除或未分析不出可信缺口。<br/>有未送/未分析资料只能 PARTIAL,全部排除/未分析是 INSUFFICIENT。<br/>不能宣称全领域完整或已掌握。"]:::use
|
||
|
||
S -->|"规则 4–5"| C4["4. EXPRESSED/INSUFFICIENT_EXPRESSION/RECALL_CONFLICT 至少1资料引文和1表达引文;<br/>POSSIBLY_MISSING 至少1已ANALYZED知识资料引文,不证明忘了;<br/>REFERENCE_CONFLICT 至少2相异资料引文;<br/>NOT_IN_REFERENCE 资料引文为空、表达引文至少1,不判错。"]:::use
|
||
C4 --> C5["5. ANALYZED必须至少一个合法finding引用此单位。<br/>POSSIBLY_MISSING不得引用 APPLICATION 或 EXCLUDED/UNANALYZED 单位。<br/>六类finding加UNANALYZED分别解释,不提供成绩或待办总数。<br/>线索简短可帮助继续想,说明含具体依据和不确定性,<br/>不宣称理解或应用能力。"]:::use
|
||
|
||
C3 --> V["「说明」CHECK 的校验<br/>· assessments:未给判断的单位由服务补 UNANALYZED,不算遗漏<br/>· findings 每条 category 按规则 4 检查引文条数与来源类型<br/>· 引用未分析单位的 finding 整条丢弃(保留其他 finding)<br/>· analysisStatus 由有 ANALYZED 知识单元的数量与完整性推导<br/>· hints 必须为空数组"]:::note
|
||
C5 --> V
|
||
C2 --> MSG["「源」user 消息<br/>type=recall-check,hintForm=null"]:::origin
|