forked from umich-ai-resources/ITS-Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
620 lines (577 loc) · 26.6 KB
/
Copy pathindex.html
File metadata and controls
620 lines (577 loc) · 26.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>A Question's Journey — AI Evaluation Pipeline</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
:root{
--blue:#00274C; /* UMich blue */
--blue-2:#0a3a6b;
--maize:#FFCB05; /* UMich maize */
--maize-deep:#E0AE00;
--arrow:#3B7CC9; /* connector blue (matches deck) */
--csv-green:#1F9D57;
--csv-green-2:#178a4c;
--ink:#0C1B2A;
--muted:#5C6B7A;
--line:#E4E9EE;
--bg:#EEF1F5;
--card:#FFFFFF;
--bw:clamp(92px,11.5vw,126px); /* badge width */
--disp:"Archivo",system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
--body:"Inter",system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
--mono:ui-monospace,"SF Mono","JetBrains Mono",Menlo,Consolas,monospace;
}
*{box-sizing:border-box}
html,body{margin:0}
body{
font-family:var(--body);
color:var(--ink);
background:radial-gradient(120% 120% at 50% 0%, #f6f8fb 0%, var(--bg) 70%);
-webkit-font-smoothing:antialiased;
}
.slide{
position:relative;
min-height:100vh;
display:flex;
flex-direction:column;
background:var(--card);
overflow:hidden;
}
/* ---------- header ---------- */
header{
padding:clamp(20px,3.2vh,34px) clamp(28px,4vw,64px) 0;
display:flex;
align-items:flex-start;
justify-content:space-between;
gap:24px;
}
.title-wrap{animation:rise .6s ease both}
h1{
font-family:var(--disp);
font-weight:800;
color:var(--blue);
font-size:clamp(28px,4vw,52px);
line-height:1.02;
letter-spacing:-.015em;
margin:0;
}
.subtitle{
margin:10px 0 0;
color:var(--muted);
font-size:clamp(13px,1.35vw,18px);
font-weight:500;
max-width:60ch;
}
.counter{
flex:0 0 auto;
font-family:var(--mono);
font-size:clamp(11px,1.1vw,13px);
letter-spacing:.04em;
color:var(--blue);
background:#F4F7FA;
border:1px solid var(--line);
padding:8px 14px;
border-radius:999px;
white-space:nowrap;
margin-top:6px;
}
.counter b{color:var(--maize-deep)}
/* ---------- pipeline ---------- */
.pipeline{
margin:clamp(18px,3vh,34px) auto clamp(6px,1.4vh,16px);
width:100%;
max-width:1080px;
padding:0 clamp(20px,3vw,48px);
display:grid;
grid-template-columns:var(--bw) 1fr var(--bw) 1fr var(--bw) 1fr var(--bw);
align-items:center;
column-gap:clamp(4px,.8vw,12px);
row-gap:12px;
}
.badge{
grid-row:1;
width:var(--bw);
height:var(--bw);
border-radius:24px;
background:var(--card);
border:2px solid var(--line);
display:grid;
place-items:center;
cursor:pointer;
padding:0;
box-shadow:0 6px 16px rgba(12,27,42,.06);
transition:transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
animation:pop .5s ease both;
}
.badge:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.badge svg{width:64%;height:64%}
.badge.active{
border-color:var(--maize);
transform:translateY(-5px);
box-shadow:0 0 0 5px rgba(255,203,5,.30), 0 18px 34px rgba(12,27,42,.16);
}
.b1{grid-column:1}.b2{grid-column:3}.b3{grid-column:5}.b4{grid-column:7}
.nlabel{
grid-row:2;
text-align:center;
line-height:1.15;
}
.nlabel .t{
font-family:var(--disp);
font-weight:700;
font-size:clamp(12px,1.25vw,16px);
color:var(--muted);
transition:color .35s;
}
.nlabel.active .t{color:var(--blue)}
.nlabel .s{
display:block;
margin-top:3px;
font-family:var(--mono);
font-size:clamp(9px,.85vw,11px);
color:#9AA7B4;
letter-spacing:.01em;
}
.nlabel.active .s{color:var(--maize-deep)}
.l1{grid-column:1}.l2{grid-column:3}.l3{grid-column:5}.l4{grid-column:7}
/* arrows */
.arrow{grid-row:1;position:relative;height:46px;display:flex;align-items:center}
.a1{grid-column:2}.a2{grid-column:4}.a3{grid-column:6}
.arrow .track{height:5px;width:100%;border-radius:99px;background:var(--line);transition:background .45s}
.arrow.lit .track{background:linear-gradient(90deg,var(--arrow),var(--blue))}
.arrow .head{
position:absolute;right:-1px;top:50%;transform:translateY(-50%);
width:0;height:0;
border-top:8px solid transparent;border-bottom:8px solid transparent;
border-left:12px solid var(--line);
transition:border-left-color .45s;
}
.arrow.lit .head{border-left-color:var(--blue)}
.arrow .pulse{
position:absolute;top:50%;left:6%;
width:13px;height:13px;border-radius:50%;
background:var(--maize);
box-shadow:0 0 0 5px rgba(255,203,5,.22);
transform:translate(-50%,-50%);
opacity:0;
}
.arrow.pulsing .pulse{animation:travel 1.15s ease-in-out infinite}
@keyframes travel{0%{left:6%;opacity:0}18%{opacity:1}82%{opacity:1}100%{left:94%;opacity:0}}
/* ---------- stage (swapping detail) ---------- */
.stage-shell{
flex:1;
min-height:0;
padding:clamp(6px,1.4vh,14px) clamp(28px,4vw,64px) 0;
display:flex;
flex-direction:column;
}
.stage{
position:relative;
flex:1;
min-height:230px;
}
.panel{
position:absolute;inset:0;
display:flex;flex-direction:column;align-items:center;justify-content:center;
gap:14px;
opacity:0;
transform:translateY(10px);
pointer-events:none;
transition:opacity .4s ease, transform .4s ease;
overflow:auto;
}
.panel.show{opacity:1;transform:none;pointer-events:auto}
/* file chip */
.filechip{
display:inline-flex;align-items:center;gap:9px;
font-family:var(--mono);font-size:clamp(12px,1.2vw,14px);
color:var(--blue);background:#F2F6FA;border:1px solid var(--line);
padding:7px 14px;border-radius:10px;font-weight:600;
}
.filechip .dot{width:9px;height:9px;border-radius:3px;background:var(--csv-green)}
/* spreadsheet */
.sheet{
border-collapse:separate;border-spacing:0;
border:1px solid #D8DEE5;border-radius:12px;overflow:hidden;
box-shadow:0 10px 30px rgba(12,27,42,.10);
background:#fff;
font-size:clamp(12px,1.25vw,15px);
max-width:min(900px,94%);
animation:rise .5s ease both;
}
.sheet th,.sheet td{padding:11px 16px;text-align:left;border-bottom:1px solid #EAEEF2;border-right:1px solid #EAEEF2;vertical-align:top}
.sheet th:last-child,.sheet td:last-child{border-right:none}
.sheet tr:last-child td{border-bottom:none}
.sheet thead th{
background:#F4F7FA;color:var(--blue);font-weight:700;font-family:var(--mono);
font-size:.92em;letter-spacing:.02em;
}
.sheet .rownum{width:34px;text-align:center;background:#F7F9FB;color:#9AA7B4;font-family:var(--mono);font-weight:600}
.sheet .qcell{font-weight:600;color:var(--ink)}
.sheet .rcell{color:#33414F;max-width:560px;line-height:1.45;font-size:.9em}
.sheet .goblue-min{color:var(--blue);font-weight:800}
/* request cards */
.reqcard{display:flex;flex-direction:column;gap:12px;width:min(640px,94%);animation:rise .5s ease both}
.msg{border-radius:14px;padding:14px 18px;border:1px solid var(--line);background:#fff;box-shadow:0 6px 18px rgba(12,27,42,.06)}
.msg.system{border-left:5px solid var(--maize);background:#FFFDF4}
.msg.user{border-left:5px solid var(--arrow)}
.msg .role{
display:inline-block;font-family:var(--mono);font-size:11px;letter-spacing:.08em;
text-transform:uppercase;color:var(--muted);margin-bottom:6px;font-weight:600;
}
.msg.system .role{color:var(--maize-deep)}
.msg.user .role{color:var(--arrow)}
.msg p{margin:0;font-size:clamp(13px,1.35vw,16px);line-height:1.45;color:var(--ink)}
.target{
align-self:center;display:inline-flex;align-items:center;gap:8px;
font-size:clamp(12px,1.2vw,14px);color:var(--muted);font-weight:500;margin-top:2px;
}
.target b{color:var(--blue)}
.target .pillm{background:var(--blue);color:#fff;font-family:var(--mono);font-size:.85em;padding:4px 9px;border-radius:7px;font-weight:600}
/* thinking */
.thinking{display:flex;flex-direction:column;align-items:center;gap:16px;animation:rise .5s ease both}
.thinking .robotbig{width:clamp(96px,14vw,140px);height:clamp(96px,14vw,140px)}
.thinking .bubble{
background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 18px;
font-weight:600;color:var(--ink);box-shadow:0 6px 18px rgba(12,27,42,.06);
font-size:clamp(13px,1.3vw,16px);
}
.dots{display:flex;gap:8px}
.dots span{width:11px;height:11px;border-radius:50%;background:var(--maize);animation:blink 1.1s infinite ease-in-out}
.dots span:nth-child(2){animation-delay:.18s}
.dots span:nth-child(3){animation-delay:.36s}
.status{font-family:var(--mono);font-size:clamp(11px,1.1vw,13px);color:var(--muted);letter-spacing:.02em}
/* answer */
.answercard{
width:min(720px,96%);background:#fff;border:1px solid var(--line);border-radius:16px;
box-shadow:0 14px 38px rgba(12,27,42,.12);overflow:hidden;animation:rise .5s ease both;
}
.ans-head{
display:flex;align-items:center;gap:12px;padding:13px 20px;border-bottom:1px solid var(--line);
background:#F8FAFC;
}
.aibadge{background:var(--blue);color:var(--maize);font-family:var(--mono);font-weight:700;font-size:12px;padding:5px 11px;border-radius:8px;letter-spacing:.03em}
.ans-head .lbl{font-family:var(--mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:600}
.ans-body{padding:18px 22px}
.ans-body p{margin:0 0 11px;font-size:clamp(13px,1.4vw,16.5px);line-height:1.52;color:#243240}
.ans-body p:last-child{margin-bottom:0}
.goblue{
font-family:var(--disp);font-weight:800;font-size:clamp(16px,1.7vw,21px)!important;
letter-spacing:.04em;color:var(--blue);
background:linear-gradient(transparent 58%, var(--maize) 58%);
display:inline-block;padding:0 4px;
}
/* ---------- caption ---------- */
.caption{
margin:clamp(8px,1.6vh,16px) auto clamp(6px,1.2vh,12px);
max-width:1080px;width:100%;padding:0 clamp(28px,4vw,64px);
}
.eyebrow{
font-family:var(--mono);font-size:clamp(10px,1vw,12px);letter-spacing:.14em;
text-transform:uppercase;color:var(--maize-deep);font-weight:700;margin-bottom:5px;
}
.captext{font-size:clamp(14px,1.6vw,20px);font-weight:600;color:var(--blue);line-height:1.35;max-width:80ch}
/* ---------- controls ---------- */
.controls{
display:flex;align-items:center;justify-content:space-between;gap:16px;
padding:0 clamp(28px,4vw,64px) clamp(10px,1.6vh,16px);
max-width:1080px;width:100%;margin:0 auto;
}
.dots-nav{display:flex;gap:9px;align-items:center}
.dnav{width:11px;height:11px;border-radius:50%;background:#D6DDE4;border:none;cursor:pointer;padding:0;transition:.3s}
.dnav:hover{background:#B6C0CA}
.dnav.on{background:var(--maize);width:26px;border-radius:6px}
.dnav:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.btns{display:flex;gap:10px}
.btn{
font-family:var(--body);font-weight:600;font-size:clamp(13px,1.3vw,15px);
padding:10px 20px;border-radius:11px;cursor:pointer;border:1px solid var(--line);
background:#fff;color:var(--blue);transition:.2s;
}
.btn:hover{border-color:#C7D0D9;background:#F7F9FB}
.btn.primary{background:var(--blue);color:#fff;border-color:var(--blue)}
.btn.primary:hover{background:var(--blue-2)}
.btn:disabled{opacity:.4;cursor:not-allowed}
.btn:focus-visible{outline:3px solid var(--maize);outline-offset:2px}
.auto{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:clamp(12px,1.2vw,14px);font-weight:500}
.auto button{
border:1px solid var(--line);background:#fff;border-radius:9px;cursor:pointer;
padding:8px 14px;font-weight:600;color:var(--blue);font-family:var(--body);font-size:.95em;
}
.auto button:hover{background:#F7F9FB}
/* ---------- footer (deck chrome) ---------- */
footer{
height:clamp(40px,5.2vh,52px);
background:var(--blue);
display:flex;align-items:center;justify-content:space-between;
padding:0 clamp(20px,3vw,40px) 0 clamp(14px,2vw,22px);
}
footer .m{height:62%;width:auto}
footer .ftxt{
font-family:var(--mono);font-size:clamp(10px,1vw,12px);letter-spacing:.06em;
color:rgba(255,255,255,.55);font-weight:500;
}
/* ---------- animations ---------- */
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes pop{from{opacity:0;transform:scale(.82)}to{opacity:1;transform:scale(1)}}
@keyframes blink{0%,80%,100%{opacity:.25;transform:scale(.85)}40%{opacity:1;transform:scale(1)}}
@media (prefers-reduced-motion: reduce){
*{animation:none!important;transition:none!important}
.arrow.pulsing .pulse{opacity:0}
}
@media (max-width:560px){
.pipeline{column-gap:2px}
.nlabel .s{display:none}
}
</style>
</head>
<body>
<div class="slide">
<header>
<div class="title-wrap">
<h1>A Question's Journey</h1>
<p class="subtitle">Following one example all the way through the automation — from the input CSV to a saved, evaluated response.</p>
</div>
<div class="counter">STEP <b id="cur">1</b> / 5</div>
</header>
<!-- ===== pipeline ===== -->
<div class="pipeline" id="pipeline">
<!-- Node 1: Input CSV -->
<button class="badge b1" data-node="0" aria-label="Go to step: read the question from the input CSV">
<svg viewBox="0 0 80 96" aria-hidden="true">
<path d="M8 4 H52 L72 24 V92 H8 Z" fill="#EAEEF2" stroke="#CDD5DD" stroke-width="2" stroke-linejoin="round"/>
<path d="M52 4 L72 24 H52 Z" fill="#CDD5DD"/>
<rect x="16" y="33" width="34" height="4.5" rx="2.25" fill="#1F9D57"/>
<rect x="16" y="43" width="40" height="4" rx="2" fill="#C2CCD4"/>
<rect x="16" y="51" width="28" height="4" rx="2" fill="#C2CCD4"/>
<rect x="3" y="63" width="52" height="27" rx="5" fill="#1F9D57"/>
<text x="29" y="81" text-anchor="middle" font-family="Archivo, sans-serif" font-weight="800" font-size="15" letter-spacing="1" fill="#fff">CSV</text>
</svg>
</button>
<div class="arrow a1" data-arrow="0"><div class="track"></div><div class="head"></div><div class="pulse"></div></div>
<!-- Node 2: Python -->
<button class="badge b2" data-node="1" aria-label="Go to step: package the request in the Python script">
<svg viewBox="0 0 256 255" aria-hidden="true">
<defs>
<linearGradient id="pyB" x1="12.96%" y1="12.04%" x2="79.64%" y2="78.2%">
<stop offset="0" stop-color="#387EB8"/><stop offset="1" stop-color="#366994"/>
</linearGradient>
<linearGradient id="pyY" x1="19.13%" y1="20.58%" x2="90.74%" y2="88.43%">
<stop offset="0" stop-color="#FFE052"/><stop offset="1" stop-color="#FFC331"/>
</linearGradient>
</defs>
<path fill="url(#pyB)" d="M126.916.072c-64.832 0-60.784 28.115-60.784 28.115l.072 29.128h61.868v8.745H41.631S.145 61.355.145 126.77c0 65.417 36.21 63.097 36.21 63.097h21.61v-30.356s-1.165-36.21 35.632-36.21h61.362s34.475.557 34.475-33.319V33.97S194.67.072 126.916.072zM92.802 19.66a11.12 11.12 0 0 1 11.13 11.13 11.12 11.12 0 0 1-11.13 11.13 11.12 11.12 0 0 1-11.13-11.13 11.12 11.12 0 0 1 11.13-11.13z"/>
<path fill="url(#pyY)" d="M128.757 254.126c64.832 0 60.784-28.115 60.784-28.115l-.072-29.127h-61.868v-8.745h86.441s41.486 4.705 41.486-60.712c0-65.416-36.21-63.096-36.21-63.096h-21.61v30.355s1.165 36.21-35.632 36.21h-61.362s-34.475-.557-34.475 33.32v56.013s-5.235 33.897 62.518 33.897zm34.114-19.586a11.12 11.12 0 0 1-11.13-11.13 11.12 11.12 0 0 1 11.13-11.131 11.12 11.12 0 0 1 11.13 11.13 11.12 11.12 0 0 1-11.13 11.13z"/>
</svg>
</button>
<div class="arrow a2" data-arrow="1"><div class="track"></div><div class="head"></div><div class="pulse"></div></div>
<!-- Node 3: AI Model -->
<button class="badge b3" data-node="2" aria-label="Go to step: send the question to the AI model">
<svg viewBox="0 0 96 96" aria-hidden="true">
<g fill="none" stroke="#00274C" stroke-width="4" stroke-linecap="round" stroke-linejoin="round">
<line x1="48" y1="14" x2="48" y2="24"/>
<rect x="22" y="24" width="52" height="44" rx="13" fill="#fff"/>
<rect x="13" y="38" width="9" height="17" rx="3.5" fill="#fff"/>
<rect x="74" y="38" width="9" height="17" rx="3.5" fill="#fff"/>
</g>
<circle cx="48" cy="11" r="4.6" fill="#FFCB05" stroke="#00274C" stroke-width="3"/>
<circle cx="38" cy="45" r="6" fill="#00274C"/>
<circle cx="58" cy="45" r="6" fill="#00274C"/>
<rect x="37" y="57" width="22" height="4.5" rx="2.25" fill="#00274C"/>
</svg>
</button>
<div class="arrow a3" data-arrow="2"><div class="track"></div><div class="head"></div><div class="pulse"></div></div>
<!-- Node 4: Output CSV -->
<button class="badge b4" data-node="3" aria-label="Go to step: save the response to the output CSV">
<svg viewBox="0 0 80 96" aria-hidden="true">
<path d="M8 4 H52 L72 24 V92 H8 Z" fill="#EAEEF2" stroke="#CDD5DD" stroke-width="2" stroke-linejoin="round"/>
<path d="M52 4 L72 24 H52 Z" fill="#CDD5DD"/>
<rect x="16" y="33" width="34" height="4.5" rx="2.25" fill="#1F9D57"/>
<rect x="16" y="43" width="40" height="4" rx="2" fill="#C2CCD4"/>
<rect x="16" y="51" width="28" height="4" rx="2" fill="#C2CCD4"/>
<rect x="3" y="63" width="52" height="27" rx="5" fill="#1F9D57"/>
<text x="29" y="81" text-anchor="middle" font-family="Archivo, sans-serif" font-weight="800" font-size="15" letter-spacing="1" fill="#fff">CSV</text>
</svg>
</button>
<!-- labels -->
<div class="nlabel l1" data-node="0"><div class="t">Input CSV</div><span class="s">input_questions.csv</span></div>
<div class="nlabel l2" data-node="1"><div class="t">Python Script</div><span class="s">automation</span></div>
<div class="nlabel l3" data-node="2"><div class="t">AI Model</div><span class="s">GPT 5.5</span></div>
<div class="nlabel l4" data-node="3"><div class="t">Output CSV</div><span class="s">output.csv</span></div>
</div>
<!-- ===== stage ===== -->
<div class="stage-shell">
<div class="stage" id="stage">
<!-- 1: input -->
<div class="panel" data-panel="0">
<div class="filechip"><span class="dot"></span>input_questions.csv</div>
<table class="sheet">
<thead><tr><th class="rownum">#</th><th>question</th></tr></thead>
<tbody><tr><td class="rownum">1</td><td class="qcell">What is U-M GPT?</td></tr></tbody>
</table>
</div>
<!-- 2: package -->
<div class="panel" data-panel="1">
<div class="reqcard">
<div class="msg system">
<span class="role">System prompt</span>
<p>You are a helpful assistant. Always say GO BLUE! at the end of your response.</p>
</div>
<div class="msg user">
<span class="role">Question</span>
<p>What is U-M GPT?</p>
</div>
<div class="target">Packaged and sent to <span class="pillm">GPT 5.5</span></div>
</div>
</div>
<!-- 3: ask / thinking -->
<div class="panel" data-panel="2">
<div class="thinking">
<div class="robotbig">
<svg viewBox="0 0 96 96" aria-hidden="true" width="100%" height="100%">
<g fill="none" stroke="#00274C" stroke-width="4" stroke-linecap="round" stroke-linejoin="round">
<line x1="48" y1="14" x2="48" y2="24"/>
<rect x="22" y="24" width="52" height="44" rx="13" fill="#fff"/>
<rect x="13" y="38" width="9" height="17" rx="3.5" fill="#fff"/>
<rect x="74" y="38" width="9" height="17" rx="3.5" fill="#fff"/>
</g>
<circle cx="48" cy="11" r="4.6" fill="#FFCB05" stroke="#00274C" stroke-width="3"/>
<circle cx="38" cy="45" r="6" fill="#00274C"/>
<circle cx="58" cy="45" r="6" fill="#00274C"/>
<rect x="37" y="57" width="22" height="4.5" rx="2.25" fill="#00274C"/>
</svg>
</div>
<div class="bubble">“What is U-M GPT?”</div>
<div class="dots"><span></span><span></span><span></span></div>
<div class="status">GPT 5.5 is generating a response…</div>
</div>
</div>
<!-- 4: response -->
<div class="panel" data-panel="3">
<div class="answercard">
<div class="ans-head"><span class="aibadge">GPT 5.5</span><span class="lbl">Response</span></div>
<div class="ans-body">
<p>U-M GPT is the University of Michigan’s AI chat tool, designed to give U-M students, faculty, and staff access to generative AI in a university-supported environment. It can help with tasks like brainstorming, drafting, summarizing, coding, tutoring-style explanations, and general productivity.</p>
<p>It is similar to tools like ChatGPT, but provided through U-M and intended for the university community, often with privacy, accessibility, and institutional-use considerations in mind.</p>
<p><span class="goblue">GO BLUE!</span></p>
</div>
</div>
</div>
<!-- 5: output -->
<div class="panel" data-panel="4">
<div class="filechip"><span class="dot"></span>output.csv</div>
<table class="sheet">
<thead><tr><th class="rownum">#</th><th>question</th><th>response</th></tr></thead>
<tbody>
<tr>
<td class="rownum">1</td>
<td class="qcell">What is U-M GPT?</td>
<td class="rcell">U-M GPT is the University of Michigan’s AI chat tool, designed to give U-M students, faculty, and staff access to generative AI in a university-supported environment. It can help with tasks like brainstorming, drafting, summarizing, coding… <span class="goblue-min">GO BLUE!</span></td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- caption -->
<div class="caption">
<div class="eyebrow" id="eyebrow">Step 1 — Read the question</div>
<div class="captext" id="captext">The script reads each question from the input CSV. Here, a single example: “What is U-M GPT?”</div>
</div>
<!-- controls -->
<div class="controls">
<div class="auto"><button id="play" aria-label="Auto-play the walkthrough">▶ Auto-play</button></div>
<div class="dots-nav" id="dotsNav" role="tablist" aria-label="Steps"></div>
<div class="btns">
<button class="btn" id="back" aria-label="Previous step">Back</button>
<button class="btn primary" id="next" aria-label="Next step">Next</button>
</div>
</div>
</div>
<!-- ===== footer / deck chrome ===== -->
<footer>
<svg class="m" viewBox="0 0 100 80" aria-label="University of Michigan">
<path d="M6 72 V8 H28 L50 38 L72 8 H94 V72 H72 V40 L54 62 H46 L28 40 V72 Z" fill="#FFCB05"/>
</svg>
<span class="ftxt">AI MODEL EVALUATION FRAMEWORK · ITS</span>
</footer>
</div>
<script>
const steps = [
{ node:0, arrows:[], pulse:null, eyebrow:"Step 1 — Read the question",
caption:"The script reads each question from the input CSV. Here, a single example: “What is U-M GPT?”" },
{ node:1, arrows:[0], pulse:0, eyebrow:"Step 2 — Package the request",
caption:"The Python script pairs the question with a system prompt and packages both into a request for the model." },
{ node:2, arrows:[0,1], pulse:1, eyebrow:"Step 3 — Send to the model",
caption:"The request is sent to the AI model under evaluation — in this run, GPT 5.5." },
{ node:2, arrows:[0,1], pulse:null, eyebrow:"Step 4 — Get the response",
caption:"The model generates and returns its answer — ending with “GO BLUE!”, exactly as the system prompt instructs." },
{ node:3, arrows:[0,1,2], pulse:2, eyebrow:"Step 5 — Save the result",
caption:"The script writes the question and its response to output.csv — one row per question, ready for evaluation." },
];
const nodeToStep = [0,1,2,4]; // clicking a node jumps to where it first becomes active
let i = 0;
let auto = null;
const badges = [...document.querySelectorAll('.badge')];
const nlabels = [...document.querySelectorAll('.nlabel')];
const arrows = [...document.querySelectorAll('.arrow')];
const panels = [...document.querySelectorAll('.panel')];
const dotsNav = document.getElementById('dotsNav');
// build progress dots
steps.forEach((_, idx) => {
const b = document.createElement('button');
b.className = 'dnav';
b.setAttribute('role','tab');
b.setAttribute('aria-label', 'Go to step ' + (idx+1));
b.addEventListener('click', () => { stopAuto(); go(idx); });
dotsNav.appendChild(b);
});
const dnavs = [...dotsNav.children];
function render(){
const s = steps[i];
badges.forEach((b,n)=> b.classList.toggle('active', s.node===n));
nlabels.forEach((l,n)=> l.classList.toggle('active', s.node===n));
arrows.forEach((a,n)=>{
a.classList.toggle('lit', s.arrows.includes(n));
a.classList.toggle('pulsing', s.pulse===n);
});
panels.forEach((p,n)=> p.classList.toggle('show', n===i));
document.getElementById('eyebrow').textContent = s.eyebrow;
document.getElementById('captext').textContent = s.caption;
document.getElementById('cur').textContent = i+1;
dnavs.forEach((d,n)=> d.classList.toggle('on', n===i));
const next = document.getElementById('next');
document.getElementById('back').disabled = (i===0);
next.textContent = (i===steps.length-1) ? 'Replay' : 'Next';
}
function go(n){ i = Math.max(0, Math.min(steps.length-1, n)); render(); }
function nextStep(){
if(i===steps.length-1){ go(0); } else { go(i+1); }
}
document.getElementById('next').addEventListener('click', ()=>{ stopAuto(); nextStep(); });
document.getElementById('back').addEventListener('click', ()=>{ stopAuto(); go(i-1); });
badges.forEach(b => b.addEventListener('click', ()=>{ stopAuto(); go(nodeToStep[+b.dataset.node]); }));
// keyboard nav (handy when presenting)
window.addEventListener('keydown', (e)=>{
if(['ArrowRight','ArrowDown',' ','Enter'].includes(e.key)){ e.preventDefault(); stopAuto(); nextStep(); }
else if(['ArrowLeft','ArrowUp'].includes(e.key)){ e.preventDefault(); stopAuto(); go(i-1); }
});
// auto-play
const playBtn = document.getElementById('play');
function stopAuto(){ if(auto){ clearInterval(auto); auto=null; playBtn.textContent='▶ Auto-play'; } }
playBtn.addEventListener('click', ()=>{
if(auto){ stopAuto(); return; }
playBtn.textContent='❚❚ Pause';
if(i===steps.length-1) go(0);
auto = setInterval(()=>{
if(i===steps.length-1){ stopAuto(); } else { go(i+1); }
}, 3200);
});
render();
</script>
</body>
</html>