返回 ppt-master
05_prompt_chaining.svg
1 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720" width="1280" height="720">
2 <defs>
3 <filter id="cardShadow" x="-15%" y="-15%" width="140%" height="140%">
4 <feGaussianBlur in="SourceAlpha" stdDeviation="10"/>
5 <feOffset dx="0" dy="4" result="offsetBlur"/>
6 <feFlood flood-color="#000000" flood-opacity="0.12" result="shadowColor"/>
7 <feComposite in="shadowColor" in2="offsetBlur" operator="in" result="shadow"/>
8 <feMerge>
9 <feMergeNode in="shadow"/>
10 <feMergeNode in="SourceGraphic"/>
11 </feMerge>
12 </filter>
13 </defs>
14
15 <!-- Background -->
16 <rect width="1280" height="720" fill="#0F1117"/>
17
18 <!-- Page header -->
19 <g id="header">
20 <rect x="60" y="40" width="4" height="32" rx="2" fill="#5B9BD5"/>
21 <text x="78" y="66" font-family="'Helvetica Neue', Arial, sans-serif" font-size="28" font-weight="bold" fill="#E8E8EC">Workflow: Prompt Chaining</text>
22 </g>
23
24 <!-- Diagram image — top area -->
25 <g id="diagram">
26 <image href="../images/image_1.png" x="80" y="88" width="1120" height="300" preserveAspectRatio="xMidYMid meet"/>
27 </g>
28
29 <!-- Content: two-column below diagram -->
30 <!-- Left: When to use -->
31 <g id="when-to-use">
32 <rect x="60" y="400" width="560" height="260" rx="12" fill="#1A1D27" stroke="#2D3348" stroke-width="1" filter="url(#cardShadow)"/>
33 <use data-icon="chunk/target" x="84" y="422" width="24" height="24" fill="#5B9BD5"/>
34 <text x="118" y="442" font-family="'Helvetica Neue', Arial, sans-serif" font-size="18" font-weight="bold" fill="#5B9BD5">When to Use</text>
35
36 <text x="84" y="478" font-family="'Helvetica Neue', Arial, sans-serif" font-size="16" fill="#E8E8EC">Tasks cleanly decomposed into</text>
37 <text x="84" y="500" font-family="'Helvetica Neue', Arial, sans-serif" font-size="16" fill="#E8E8EC">fixed subtasks.</text>
38
39 <rect x="84" y="518" width="512" height="1" fill="#2D3348" fill-opacity="0.4"/>
40
41 <text x="84" y="546" font-family="'Helvetica Neue', Arial, sans-serif" font-size="15" fill="#9CA3AF">• Decompose task into sequential steps</text>
42 <text x="84" y="571" font-family="'Helvetica Neue', Arial, sans-serif" font-size="15" fill="#9CA3AF">• Each LLM call processes previous output</text>
43 <text x="84" y="596" font-family="'Helvetica Neue', Arial, sans-serif" font-size="15" fill="#9CA3AF">• Add programmatic "gate" checks</text>
44 <text x="84" y="621" font-family="'Helvetica Neue', Arial, sans-serif" font-size="15" fill="#9CA3AF">• Trade latency for higher accuracy</text>
45 </g>
46
47 <!-- Right: Examples -->
48 <g id="examples">
49 <rect x="650" y="400" width="570" height="260" rx="12" fill="#1A1D27" stroke="#2D3348" stroke-width="1" filter="url(#cardShadow)"/>
50 <use data-icon="chunk/code" x="674" y="422" width="24" height="24" fill="#D4845A"/>
51 <text x="708" y="442" font-family="'Helvetica Neue', Arial, sans-serif" font-size="18" font-weight="bold" fill="#D4845A">Examples</text>
52
53 <!-- Example 1 -->
54 <rect x="674" y="470" width="522" height="72" rx="8" fill="#0F1117" stroke="#2D3348" stroke-width="1"/>
55 <text x="694" y="496" font-family="'Helvetica Neue', Arial, sans-serif" font-size="15" fill="#E8E8EC" font-weight="bold">Marketing Copy Pipeline</text>
56 <text x="694" y="520" font-family="'Helvetica Neue', Arial, sans-serif" font-size="14" fill="#9CA3AF">Generate copy → Translate to target language</text>
57
58 <!-- Example 2 -->
59 <rect x="674" y="558" width="522" height="80" rx="8" fill="#0F1117" stroke="#2D3348" stroke-width="1"/>
60 <text x="694" y="584" font-family="'Helvetica Neue', Arial, sans-serif" font-size="15" fill="#E8E8EC" font-weight="bold">Document Writing Pipeline</text>
61 <text x="694" y="608" font-family="'Helvetica Neue', Arial, sans-serif" font-size="14" fill="#9CA3AF">Write outline → Check criteria → Write document</text>
62 <text x="694" y="626" font-family="'Helvetica Neue', Arial, sans-serif" font-size="13" fill="#6B7280">Each step makes the LLM call an easier task</text>
63 </g>
64
65 <!-- Footer -->
66 <g id="footer">
67 <text x="1220" y="700" text-anchor="end" font-family="'Helvetica Neue', Arial, sans-serif" font-size="10" fill="#6B7280">05</text>
68 </g>
69 </svg>
70
70 lines Plain Text