fix: trim gen2D slide content to prevent overflow beyond header/footer
Deploy Slides / build-and-deploy (push) Successful in 1m16s
Deploy Slides / build-and-deploy (push) Successful in 1m16s
- Reduce Item count per slide: pipeline 4→3, solution 4→2, highlights 6→4 - Remove tech-stack architecture layering Item (moved to tech-stack grid) - Simplify eino-graph: shorter Go code, 3 Items→2 - Simplify prompt-agent: smaller mermaid, shorter Item text - Simplify async-task: merge 3 Items→2, remove footer - Simplify data-model: merge 4 grid items→2 - Simplify architecture: reduce ASCII diagram from 38 to 20 lines - Simplify dedup-ws: remove JSON code block, shorter Items - Simplify deployment: smaller mermaid, shorter Items - Simplify problem: shorter Item text, remove bullet lists - Simplify style-system: fix typo, shorter Item text
This commit is contained in:
@@ -2,28 +2,21 @@
|
||||
|
||||
Eino Chain 驱动的智能提示词生成
|
||||
|
||||
```mermaid {scale: 0.8}
|
||||
graph LR
|
||||
A[用户描述] --> B[风格合并]
|
||||
B --> C[三段式组装]
|
||||
C --> D[LLM 优化]
|
||||
D --> E[最终提示词]
|
||||
F[工程风格] --> B
|
||||
G[任务覆盖] --> B
|
||||
H[重试注入] --> D
|
||||
```
|
||||
|
||||
<Item title="① 风格合并">
|
||||
`finalStyle = merge(projectStyle, taskStyle)` — 工程风格为基底,任务风格逐键覆盖。自定义标签(`custom:` 前缀)自动提取。
|
||||
`finalStyle = merge(projectStyle, taskStyle)` — 工程风格为基底,任务风格逐键覆盖。自定义标签自动提取。
|
||||
</Item>
|
||||
|
||||
<Item title="② 三段式提示词组装">
|
||||
将合并后的风格信息组装为三段式规范提示词:
|
||||
- **主体描述**:用户输入的角色/场景描述
|
||||
- **风格约束**:美术风格、色调、线条等风格键
|
||||
- **技术规格**:尺寸、格式、透明背景等引擎适配参数
|
||||
**主体描述**(用户输入)+ **风格约束**(美术风格、色调、线条)+ **技术规格**(尺寸、格式、透明背景)
|
||||
</Item>
|
||||
|
||||
<Item title="③ LLM 优化 + 回退机制">
|
||||
调用 Eino Chain 将三段式提示词发给 DeepSeek 等 LLM 进行润色优化。**无 API Key 时自动回退到模板生成**,保证功能可用。优化失败时注入重试上下文,指导模型修正。
|
||||
调用 Eino Chain 发给 DeepSeek 润色。**无 API Key 自动回退模板**,失败时注入重试上下文。
|
||||
</Item>
|
||||
|
||||
```mermaid {scale: 0.65}
|
||||
graph LR
|
||||
A[用户描述] --> B[风格合并] --> C[三段式组装] --> D[LLM 优化] --> E[最终提示词]
|
||||
F[工程风格] --> B
|
||||
G[任务覆盖] --> B
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user