跳到主要内容
火花工坊
一个嵌套流程图提示词:高层流程的某一步展开为子流程

一个嵌套流程图提示词:高层流程的某一步展开为子流程

来源:GitHub 仓库 XYD-GIS/paper-toolkits 文件约 100 行,约 4.5 KB

一个嵌套/层级流程图提示词。

它解决的是:高层流程的某一步需要展开为子流程(如 "Step B" 内部还有 3 个子步骤)。

它的结构:

  • 布局:两层垂直流
  • Tier 1(顶层,主流程):横向高层流程,4 个节点,Step B 右上角带放大镜图标,用不同软色填充
  • Tier 2(底层,展开子流程):大虚线矩形,左上角标 "{被展开步骤} Details",内含 3-5 个子流程节点
  • 连接:Tier 1 横向实线箭头;从 Step B 到下方虚线矩形用细虚线连接;Tier 2 内部横向实线箭头
  • 文字:顶部加粗标题,节点标签加粗(≤ 3 词),虚线矩形下方斜体灰 caption
  • 风格:扁平矢量、学术出版风格、Arial、粉彩、纯白底、16:9
  • 负向约束:不要照片、不要 3D 阴影、不要重投影、不要卡通、不要模糊的"展开"标记、不要 emoji、不要过度拥挤的子流程

填空示例(特征工程展开):见提示词本体里的填空示例。

调优提示:

  • 想展开多个步骤 → 把 prompt 复制两份,每份展开一个不同 step
  • 子流程内有判断或循环 → 参考 branched.md / loop.md
  • 虚线连接不明显 → 在 prompt 中加说明

Mermaid 等价代码(含子图 subgraph): flowchart TD A[Data Acquisition] --> B[Feature Engineering 🔍] B --> C[Training] C --> D[Evaluation]

subgraph "Feature Engineering Details" B1[Tokenize] --> B2[Embed] B2 --> B3[Aggregate] end

B -.-> B1

直接粘到 https://mermaid.live 可看预览并导出 SVG/PNG。

适合谁:

  • 写论文要画嵌套/层级流程图的科研小组成员
  • 高层流程某一步需要展开为子流程的人
  • 想要学术出版风格或 Mermaid 版本的人

用法: 把这段提示词复制到 AI 工具里,把占位符填上就行。

提示词

A nested flowchart for an academic paper on {主题,如 multi-stage processing}, where one of the high-level steps is expanded into a detailed sub-flowchart.

LAYOUT: Two-tier vertical flow.

TIER 1 (top, main flow): A horizontal high-level flow with {主流程节点数,如 four} nodes:
- High-level step A: rounded rectangle, label "{步骤 A 名}", soft blue fill
- High-level step B: rounded rectangle with a small "magnifying glass" icon on its top-right corner, label "{步骤 B 名}", soft green fill — this is the "zoomed-in" step
- High-level step C: rounded rectangle, label "{步骤 C 名}", soft orange fill
- High-level step D: rounded rectangle, label "{步骤 D 名}", soft purple fill

TIER 2 (bottom, expanded sub-flow): A large dashed rectangle (labeled "{被展开步骤} Details" at top-left) containing 3-5 sub-process nodes:
- Sub-step B1: rounded rectangle, label "{子步骤 1 名}"
- Sub-step B2: rounded rectangle, label "{子步骤 2 名}"
- Sub-step B3: rounded rectangle, label "{子步骤 3 名}"

CONNECTIONS:
- Tier 1: Horizontal solid arrows A → B → C → D
- A thin dashed line (or two dashed lines) connecting High-level step B to the dashed sub-rectangle below, indicating "this is the expanded view"
- Tier 2: Horizontal solid arrows B1 → B2 → B3 within the dashed rectangle

TEXT:
- Title at top, bold Arial: "{图标题}"
- All node labels in bold Arial, ≤ 3 words
- Caption below the dashed rectangle in italic gray: "{被展开步骤} expanded for clarity."

STYLE: flat vector, academic publication style, Arial sans-serif, pastel palette, pure white background. Aspect ratio 16:9.

Negative constraints: NO photorealistic, NO 3D shading, NO heavy drop shadows, NO cartoon, NO ambiguous "expansion" markers (the dashed connection must be visually clear), NO emoji, NO overcrowded sub-flow (max 5 sub-steps).

# 填空示例
{主题} = multi-stage NLP processing
{主流程节点数} = four
{步骤 A 名} = Data Acquisition
{步骤 B 名} = Feature Engineering
{步骤 C 名} = Model Training
{步骤 D 名} = Evaluation
{被展开步骤} = Feature Engineering
{子步骤 1 名} = Tokenize
{子步骤 2 名} = Embed
{子步骤 3 名} = Aggregate
{图标题} = Method Overview with Feature Engineering Expansion

评论 0

更多

登录后可点赞、收藏、评论和举报。

还没有评论,先发起一个具体问题。

0/2000