Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
182 lines (175 loc) · 50.1 KB
/
Copy pathindex.html
File metadata and controls
182 lines (175 loc) · 50.1 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
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="theme-color" content="#164b3f"><meta name="description" content="A practical 40-minute Evals 101 presentation with two simple examples and interactive visuals."><title>Evals explained · Evals 101</title><script>try{const savedTheme=localStorage.getItem('evals-explained-theme');document.documentElement.dataset.theme=savedTheme||(window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light');}catch{document.documentElement.dataset.theme='light';}</script><style>
:root{--paper:#f7f5ed;--ink:#183c34;--green:#164b3f;--lime:#d8e993;--muted:#5a7064;--line:#d9e0d3}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:20px/1.5 ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}button,select{font:inherit}button,summary{cursor:pointer}a{color:#2b6a58;text-underline-offset:3px}a:focus-visible,button:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid #9bb946;outline-offset:4px}[hidden]{display:none!important}.app-header{padding:18px 32px;display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--line)}.brand{font-size:18px;font-weight:800;letter-spacing:-.03em}.header-right{display:flex;gap:13px;align-items:center}.header-right span{font-size:12px;color:var(--muted)}.quiet-button{border:1px solid #bdc9b9;border-radius:100px;background:transparent;color:var(--ink);font-size:12px;padding:7px 15px;min-height:36px}.stage{max-width:1280px;margin:0 auto;padding:32px 52px 110px}.slide{min-height:calc(100svh - 208px);display:flex;flex-direction:column}.slide-top{display:flex;justify-content:space-between;gap:20px;margin-bottom:18px}.kicker{text-transform:uppercase;font-size:12px;font-weight:750;letter-spacing:.12em;color:var(--muted)}.slide-index{font-size:12px;font-weight:600;color:var(--muted)}h1{font-size:clamp(34px,4.2vw,58px);font-weight:650;line-height:1.08;letter-spacing:-.045em;margin:0 0 26px;max-width:1050px}.slide-body{flex:1;min-width:0}.slide-sources{margin-top:24px;padding-top:15px;font-size:11px;line-height:1.5;color:var(--muted)}.slide-sources a{color:var(--muted)}.slide-sources:empty{min-height:18px}.cover{padding:32px 46px;border-radius:26px;background:var(--green);color:#fffef5}.cover .kicker,.cover .slide-index{color:#b9d391}.cover h1{font-size:clamp(44px,6vw,78px);max-width:850px;margin:40px 0 30px}.cover-idea{font-size:31px;color:var(--lime);margin:0 0 12px;font-weight:600}.cover-sub{font-size:21px;max-width:630px;color:#e0ebe2;margin:0}.tags{display:flex;gap:10px;flex-wrap:wrap;margin-top:28px}.tags span{font-size:13px;border:1px solid #99b69766;border-radius:100px;padding:5px 13px}.two-cards,.three-cards{display:grid;grid-template-columns:1fr 1fr;gap:23px}.two-cards article,.three-cards article{border:1px solid var(--line);border-radius:18px;background:#fffdf7;padding:27px}.two-cards article.green{background:#e2ebd9}.two-cards h3,.three-cards h3{font-size:29px;line-height:1.2;letter-spacing:-.02em;margin:20px 0 16px}.two-cards p,.three-cards p{margin:0;font-size:22px}.example-code{margin-top:20px;background:#f1f3e9;border-radius:10px;padding:17px;font-size:28px}.takeaway{margin:25px 0 0;padding:15px 20px;border-left:3px solid #91ad42;background:#eaf0db;border-radius:0 12px 12px 0;font-size:21px}.source-strip{border-radius:15px;background:#e4ecda;padding:19px 25px}.source-strip p{margin:7px 0 0;font-size:25px}.valid-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:22px 0}.valid-grid blockquote{margin:0;padding:27px;border-radius:15px;border:1px solid var(--line);background:#fffdf7;font-size:28px;line-height:1.3}.valid-grid blockquote span{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin-top:17px}.variation-row{display:flex;gap:20px;align-items:center;justify-content:space-between;background:#f0f2e8;border-radius:12px;padding:16px 22px}.variation-row p{font-size:18px;margin:0}.variation-row button{flex:0 0 auto}.checks-table,.exercise-table{width:100%;border-collapse:collapse;font-size:22px;border-radius:15px;overflow:hidden;background:#fffdf7}.checks-table th,.exercise-table th{text-align:left;background:#e4ebd8;font-size:14px;text-transform:uppercase;letter-spacing:.06em}.checks-table td,.checks-table th,.exercise-table td,.exercise-table th{padding:20px;border-bottom:1px solid var(--line)}.checks-table tr:last-child td,.exercise-table tr:last-child td{border-bottom:0}.task{margin:0 0 19px;color:var(--muted);font-size:23px}.source-passage{margin:0;padding:30px;border-radius:18px;background:#fffdf7;border-left:4px solid #8ba74b;font-size:27px;line-height:1.5}.fact-chips,.three-chips{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0 0}.fact-chips span,.three-chips span{background:#e5eddb;color:var(--green);font-size:16px;border-radius:99px;padding:9px 16px;font-weight:650}.summary-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:19px}.summary-cards article{background:#fffdf7;border:1px solid var(--line);border-radius:18px;padding:24px}.summary-cards p{font-size:23px;line-height:1.45;margin:22px 0 0}.question{font-size:25px;font-weight:600;margin:25px 0 0}.rubric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.rubric-grid article{padding:21px;background:#fffdf7;border:1px solid var(--line);border-radius:14px}.rubric-grid strong{display:block;font-size:23px;margin-bottom:8px}.rubric-grid span{font-size:18px;line-height:1.4;display:block}.scale{font-size:16px;color:var(--muted);margin:18px 0}.assessment{border:1px solid var(--line);border-radius:13px;background:#fffdf7}.assessment summary{font-size:17px;font-weight:650;padding:15px 20px;color:var(--green)}.assessment-body{padding:0 20px 18px}.assessment table{border-collapse:collapse;width:100%;font-size:16px}.assessment td,.assessment th{padding:8px 10px;text-align:left;border-bottom:1px solid var(--line)}.assessment th{background:#e6ecd9;font-size:14px}.pass{color:#215c33;font-weight:750}.fail{color:#9f4d32}.mini{font-size:12px;line-height:1.45;color:var(--muted);margin:13px 0 0}.three-cards{grid-template-columns:repeat(3,1fr)}.three-cards h3{font-size:27px}.three-cards p{font-size:23px}.recap{font-size:28px;line-height:1.45;padding-left:30px;margin:8px 0 28px;max-width:1000px}.recap li{margin:22px 0;padding-left:7px}.controls{position:fixed;bottom:0;left:0;right:0;background:#f7f5edf2;backdrop-filter:blur(8px);border-top:1px solid var(--line);z-index:5}.controls-inner{max-width:1280px;padding:16px 34px;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:18px}.nav-buttons{display:flex;align-items:center;gap:14px}.nav-button{min-width:105px;background:var(--green);color:#fffdf4;border:0;border-radius:100px;padding:10px 19px;font-size:14px;font-weight:600}.nav-button:disabled{background:#d9dfd2;color:#7a887d;cursor:default}.counter{font-size:13px;color:var(--muted);min-width:46px;text-align:center}.slide-picker{font-size:13px;padding:8px 30px 8px 10px;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:9px;max-width:390px;width:100%}.progress{height:3px;background:#e0e6d5}.progress span{height:3px;background:var(--green);display:block;width:7.14%;transition:width .2s}.resources-dialog{border:1px solid var(--line);border-radius:20px;padding:30px;max-width:660px;width:calc(100% - 40px);color:var(--ink);background:var(--paper)}.resources-dialog::backdrop{background:#183c3470}.resources-dialog h2{font-size:30px;line-height:1.2;margin:0 0 20px}.resource-item{margin:18px 0;font-size:16px}.resource-item p{font-size:13px;color:var(--muted);margin:7px 0}.dialog-actions{text-align:right}.help-text{font-size:11px;color:var(--muted)}
.eval-viz{--v-ink:#183b31;--v-muted:#4c635a;--v-paper:#f7f4e9;--v-card:#fffdf7;--v-line:#dce3d5;--v-green:#e3eddb;--v-coral:#bc5140;--v-peach:#f7e4db;color:var(--v-ink);font:inherit;margin:28px 0}
.eval-viz *{box-sizing:border-box}.eval-viz h3,.eval-viz h4,.eval-viz p{margin:0}.eval-viz h3{font-size:clamp(23px,3vw,31px);line-height:1.2;letter-spacing:-.6px}.eval-viz h4{font-size:20px;line-height:1.3}.eval-viz p{line-height:1.55}.eval-viz button{font:inherit;cursor:pointer;touch-action:manipulation}.eval-viz button:focus-visible{outline:3px solid var(--v-coral);outline-offset:4px}.eval-viz .v-caption{color:var(--v-muted);font-size:14px;margin:14px 0 0}.eval-viz .v-eyebrow{font-size:12px;letter-spacing:1.4px;text-transform:uppercase;font-weight:700;color:var(--v-muted);margin-bottom:12px}.eval-viz .v-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.eval-viz .v-panel{background:var(--v-card);border:1px solid var(--v-line);border-radius:18px;padding:27px}.eval-viz .v-panel--green{background:var(--v-green)}.eval-viz .v-formula{font-size:clamp(25px,3.3vw,37px);font-weight:650;letter-spacing:-1px;margin:29px 0}.eval-viz .v-formula strong{background:var(--v-ink);color:var(--v-card);border-radius:8px;padding:3px 10px}.eval-viz .v-runs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.eval-viz .v-run{padding:7px 12px;border-radius:8px;background:var(--v-paper);font-size:14px}.eval-viz .v-button{border:0;border-radius:9px;padding:11px 17px;background:var(--v-ink);color:var(--v-card);font-size:15px;min-height:44px}.eval-viz .v-output{padding:17px;background:var(--v-card);border-radius:12px;line-height:1.55;margin:20px 0;min-height:102px}.eval-viz .v-shared{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;padding:18px;background:var(--v-paper);border-radius:12px;margin-top:16px;font-size:16px}.eval-viz .v-badge{display:inline-flex;align-items:center;gap:7px;padding:5px 10px;border-radius:40px;background:var(--v-green);font-size:13px;font-weight:650}.eval-viz .v-badge::before{content:'✓';font-weight:700}.eval-viz .v-icon{width:56px;height:56px;display:block;color:var(--v-ink);margin:0 0 20px}.eval-viz .v-panel h4+p{margin-top:12px}.eval-viz .v-example{font-size:15px;color:var(--v-muted);border-top:1px solid var(--v-line);padding-top:16px;margin-top:18px!important}.eval-viz .v-journey{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr auto 1fr;gap:10px;align-items:stretch;margin:22px 0}.eval-viz .v-node{padding:18px 15px;background:var(--v-card);border:1px solid var(--v-line);border-radius:12px;min-width:0}.eval-viz .v-node strong{display:block;font-size:16px;margin-bottom:6px}.eval-viz .v-node span{font-size:14px;color:var(--v-muted);display:block;line-height:1.45}.eval-viz .v-node--tool{background:var(--v-green)}.eval-viz .v-arrow{align-self:center;font-size:24px;color:var(--v-muted)}.eval-viz .v-invoice{background:var(--v-card);border:1px solid var(--v-line);border-radius:16px;padding:25px}.eval-viz .v-invoice header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--v-line);padding-bottom:15px;margin-bottom:12px}.eval-viz .v-invoice header strong{font-size:17px}.eval-viz .v-invoice dl{margin:0}.eval-viz .v-invoice dl>div{display:flex;gap:20px;justify-content:space-between;padding:10px 0;font-size:16px}.eval-viz .v-invoice dd{margin:0;font-variant-numeric:tabular-nums;font-weight:600}.eval-viz .v-invoice .v-total{margin-top:10px;padding-top:16px;border-top:1px solid var(--v-line);font-size:20px}.eval-viz .v-invoice .v-total dd{color:var(--v-coral)}.eval-viz .v-invoice-note{font-size:14px;color:var(--v-muted);padding-top:13px}.eval-viz .v-choice-label{font-size:20px;font-weight:650;display:block;margin-bottom:15px}.eval-viz .v-choices{display:grid;gap:10px}.eval-viz .v-choice{border:1px solid var(--v-line);background:var(--v-card);color:var(--v-ink);text-align:left;border-radius:11px;padding:14px 16px;line-height:1.5;min-height:55px}.eval-viz .v-choice[aria-pressed=true]{border-color:var(--v-ink);box-shadow:inset 0 0 0 1px var(--v-ink);background:var(--v-green)}.eval-viz .v-feedback{border-radius:12px;background:var(--v-green);padding:18px;margin-top:16px;line-height:1.55}.eval-viz .v-feedback strong{display:block;margin-bottom:7px}.eval-viz .v-feedback.is-fail{background:var(--v-peach)}.eval-viz .v-feedback code{font-size:14px;font-weight:650}.eval-viz .v-loop{list-style:none;padding:0;margin:22px 0;display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.eval-viz .v-loop li{position:relative;background:var(--v-card);border:1px solid var(--v-line);border-radius:13px;padding:20px 16px;min-width:0}.eval-viz .v-loop li+li::before{content:'→';position:absolute;left:-12px;top:21px;background:var(--v-paper);color:var(--v-muted);font-size:20px}.eval-viz .v-loop li:last-child{background:var(--v-green)}.eval-viz .v-loop-num{display:flex;width:30px;height:30px;align-items:center;justify-content:center;background:var(--v-paper);border-radius:50%;font-size:13px;margin-bottom:15px;font-weight:700}.eval-viz .v-loop h4{font-size:18px;margin-bottom:9px}.eval-viz .v-loop p{font-size:14px;color:var(--v-muted)}.eval-viz .v-return{display:flex;align-items:center;gap:10px;justify-content:center;color:var(--v-muted);font-size:14px;padding:12px}.eval-viz .v-return svg{width:40px;height:24px;flex-shrink:0}.eval-viz [hidden]{display:none!important}
@media(max-width:850px){.eval-viz .v-journey{grid-template-columns:1fr;gap:7px}.eval-viz .v-node{display:flex;justify-content:space-between;gap:20px;align-items:center}.eval-viz .v-node strong{margin:0}.eval-viz .v-node span{text-align:right}.eval-viz .v-arrow{justify-self:center;transform:rotate(90deg);font-size:20px}.eval-viz .v-loop{grid-template-columns:repeat(3,1fr)}.eval-viz .v-loop li+li::before{display:none}}
@media(max-width:600px){.eval-viz .v-grid{grid-template-columns:1fr}.eval-viz .v-panel{padding:22px}.eval-viz .v-loop{grid-template-columns:1fr 1fr}.eval-viz .v-output{min-height:0}.eval-viz .v-formula{font-size:29px}}
@media(prefers-reduced-motion:reduce){.eval-viz *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{.eval-viz{break-inside:avoid}.eval-viz .v-button,.eval-viz .v-choices{display:none}.eval-viz .v-feedback[hidden]{display:block!important}.eval-viz .v-loop{grid-template-columns:repeat(5,1fr)}.eval-viz .v-grid{grid-template-columns:1fr 1fr}}
.slide .eval-viz{margin:10px 0}.slide .eval-viz .v-panel{padding:24px}.slide .eval-viz .v-caption{font-size:15px}.slide .eval-viz .v-journey{margin:25px 0 30px}.slide .eval-viz .v-node{padding:26px 19px}.slide .eval-viz .v-node strong{font-size:18px}.slide .eval-viz .v-node span{font-size:15px}.slide .eval-viz .v-loop{margin-top:30px}.slide .eval-viz .v-loop li{padding:23px 18px}.slide .eval-viz .v-loop h4{font-size:22px}.slide .eval-viz .v-loop p{font-size:17px}.slide .eval-viz .v-panel h3{font-size:30px}.slide .eval-viz .v-panel p{font-size:20px}.slide .eval-viz .v-invoice .v-total{font-size:26px}.slide .eval-viz .v-choice{font-size:19px}.slide .eval-viz .v-feedback{font-size:16px}
.qa-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.qa-grid details{border:1px solid var(--line);border-radius:14px;background:#fffdf7}.qa-grid summary{font-size:22px;line-height:1.3;font-weight:600;padding:20px}.qa-grid details[open]{background:#e8efdc}.qa-grid p{font-size:18px;line-height:1.4;padding:0 20px 20px;margin:0;color:#355943}.qa-grid details[open] summary{padding-bottom:13px}
@media(max-width:1050px){.stage{padding:28px 30px 105px}.rubric-grid{grid-template-columns:repeat(2,1fr)}.source-passage{font-size:24px}.summary-cards p{font-size:20px}.slide .eval-viz .v-loop{grid-template-columns:repeat(3,1fr)}.slide .eval-viz .v-loop li+li:before{display:none}}
@media(max-width:760px){body{font-size:18px}.app-header{padding:13px 18px}.header-right>span,.help-text{display:none}.header-right{gap:8px}.quiet-button{font-size:11px;padding:7px 11px}.stage{padding:25px 18px 125px}.slide{min-height:calc(100svh - 215px)}h1{font-size:36px;margin-bottom:23px}.slide-top{margin-bottom:17px}.kicker{font-size:10px}.cover{padding:26px}.cover h1{font-size:48px;margin-top:32px}.cover-idea{font-size:26px}.cover-sub{font-size:19px}.two-cards,.three-cards,.valid-grid,.summary-cards{grid-template-columns:1fr}.two-cards article,.three-cards article{padding:22px}.two-cards h3{font-size:26px;margin:12px 0}.two-cards p,.three-cards p{font-size:20px}.takeaway{font-size:18px}.valid-grid blockquote{padding:22px;font-size:25px}.variation-row{flex-direction:column;align-items:stretch}.source-strip p{font-size:23px}.checks-table,.exercise-table{font-size:17px}.checks-table td,.checks-table th,.exercise-table td,.exercise-table th{padding:13px}.exercise-table th{font-size:11px}.task{font-size:19px}.source-passage{padding:22px;font-size:22px}.summary-cards p{font-size:22px;margin-top:13px}.rubric-grid{gap:10px}.rubric-grid article{padding:17px}.rubric-grid strong{font-size:18px}.rubric-grid span{font-size:16px}.assessment table{font-size:12px}.assessment td,.assessment th{padding:7px 5px}.question{font-size:22px}.recap{font-size:23px}.controls-inner{padding:12px 15px;gap:10px;flex-wrap:wrap}.slide-picker{order:2;max-width:none;font-size:12px}.nav-buttons{margin-left:auto;gap:8px}.nav-button{min-width:85px;padding:9px 14px;font-size:12px}.counter{font-size:12px}.slide .eval-viz .v-loop{grid-template-columns:1fr 1fr}.slide .eval-viz .v-panel p{font-size:18px}.slide .eval-viz .v-panel h3{font-size:25px}.slide .eval-viz .v-loop h4{font-size:19px}.slide .eval-viz .v-loop p{font-size:15px}.slide .eval-viz .v-node{padding:18px}.slide .eval-viz .v-choice{font-size:17px}.slide-sources{font-size:10px}}
@media(max-width:760px){.qa-grid{grid-template-columns:1fr;gap:12px}.qa-grid summary{font-size:20px;padding:18px}.qa-grid p{font-size:17px;padding:0 18px 18px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}@media print{.app-header,.controls{display:none}.stage{padding:0}.slide[hidden]{display:flex!important}.slide{break-after:page;min-height:0;padding:35px 0;margin-bottom:30px}.cover{background:white;color:var(--ink)}.cover .kicker,.cover .cover-idea,.cover .cover-sub{color:var(--ink)}.assessment{display:block}.assessment-body{display:block}.slide-sources{margin-top:20px}}
.toc-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.toc-item{display:flex;gap:18px;align-items:center;text-align:left;padding:20px;border:1px solid var(--line);border-radius:14px;background:#fffdf7;color:var(--ink)}.toc-item:hover{background:#e4ecda}.toc-number{color:var(--muted);font-size:14px}.toc-item strong{display:block;font-size:23px;line-height:1.25}.toc-item small{display:block;font-size:15px;color:var(--muted);margin-top:6px}.toc-time{margin-left:auto;white-space:nowrap;font-size:13px;color:var(--muted)}.toc-item:last-child{grid-column:1/-1}@media(max-width:760px){.toc-grid{grid-template-columns:1fr}.toc-item:last-child{grid-column:auto}.toc-item{padding:16px}.toc-item strong{font-size:19px}}
/* Evals explained — custom theme */
:root{--paper:#f8f7f1;--ink:#163e3b;--green:#12635b;--lime:#efdc9b;--muted:#637873;--line:#d6e2db;--surface:#fffefa;--surface-soft:#edf3eb;--shadow:0 12px 38px #153f3510;--cover-top:#164b45;--cover-bottom:#0c6862;--control-bg:#f8f7f1f2}
:root[data-theme="dark"]{color-scheme:dark;--paper:#102629;--ink:#e8f1eb;--green:#84d7bb;--lime:#efdc9b;--muted:#a1bab4;--line:#365450;--surface:#1b3537;--surface-soft:#23473f;--shadow:0 14px 40px #00000028;--cover-top:#123c3b;--cover-bottom:#0c5755;--control-bg:#102629f2}
body{background:var(--paper);color:var(--ink)}
.brand{display:flex;align-items:center;gap:10px;font-weight:750;letter-spacing:-.035em}
.brand-mark{width:29px;height:29px;flex:none;color:var(--green)}
.app-header{background:var(--paper)}
.quiet-button{border-color:var(--line);color:var(--ink);background:var(--surface)}
.quiet-button:hover{background:var(--surface-soft)}
.stage .cover{position:relative;overflow:hidden;background:radial-gradient(circle at 90% 100%,transparent 0 135px,#ffffff12 136px 137px,transparent 138px 225px,#ffffff10 226px 227px,transparent 228px),linear-gradient(135deg,var(--cover-top),var(--cover-bottom));box-shadow:var(--shadow)}
.cover .kicker,.cover .slide-index{color:#d9e9c4}
.cover .cover-idea{color:var(--lime)}
.cover .tags span{background:#ffffff08;border-color:#ffffff35}
.slide .two-cards article,.slide .three-cards article,.slide .summary-cards article,.slide .rubric-grid article,.slide .valid-grid blockquote,.slide .source-passage,.slide .qa-grid details,.slide .assessment,.slide .toc-item{background:var(--surface);border-color:var(--line);box-shadow:var(--shadow)}
.slide .two-cards article.green,.slide .source-strip,.slide .takeaway,.slide .qa-grid details[open],.slide .fact-chips span,.slide .three-chips span,.slide .variation-row{background:var(--surface-soft)}
.slide .takeaway{border-color:var(--green)}
.slide .example-code{background:var(--surface-soft)}
.slide .qa-grid p{color:var(--ink)}
.slide .toc-item:hover{background:var(--surface-soft);border-color:var(--green)}
.slide .toc-number{color:var(--green);font-weight:750}
.slide .toc-time{color:var(--muted)}
.slide .checks-table,.slide .exercise-table{background:var(--surface)}
.slide .checks-table th,.slide .exercise-table th,.slide .assessment th{background:var(--surface-soft)}
.slide .assessment td,.slide .assessment th{border-color:var(--line)}
.slide .eval-viz{--v-ink:var(--ink);--v-muted:var(--muted);--v-paper:var(--surface-soft);--v-card:var(--surface);--v-line:var(--line);--v-green:var(--surface-soft);--v-coral:#b5503b;--v-peach:#fae7de}
.slide .eval-viz .v-panel,.slide .eval-viz .v-node,.slide .eval-viz .v-loop li,.slide .eval-viz .v-invoice{box-shadow:var(--shadow)}
.controls{background:var(--control-bg);border-color:var(--line)}
.controls .progress{background:var(--line)}
.controls .nav-button{background:var(--green);color:var(--paper)}
.controls .nav-button:disabled{background:var(--line);color:var(--muted)}
.controls .slide-picker{background:var(--surface);border-color:var(--line)}
.resources-dialog{background:var(--paper);border-color:var(--line)}
[data-theme="dark"] a{color:#96ddc5}
[data-theme="dark"] .slide .eval-viz{--v-coral:#f2a68f;--v-peach:#4a332e}
[data-theme="dark"] .slide .eval-viz .v-button{background:var(--green);color:var(--paper)}
[data-theme="dark"] .slide .pass{color:#8bd7a6}
[data-theme="dark"] .slide .fail{color:#f2ad90}
[data-theme="dark"] .cover h1,[data-theme="dark"] .cover .cover-sub{color:#f5faf5}
@media(max-width:540px){.app-header{padding:12px 14px;gap:8px}.brand{font-size:14px;gap:7px}.brand-mark{width:24px;height:24px}.header-right{gap:6px}.quiet-button{font-size:10px;padding:7px 9px}}
@media print{:root,:root[data-theme="dark"]{--paper:white;--ink:#163e3b;--green:#12635b;--muted:#637873;--surface:white;--surface-soft:#edf3eb;--line:#d6e2db;--shadow:none}.stage .cover{background:white;box-shadow:none}.cover .kicker,.cover .slide-index{color:var(--muted)}}
</style></head><body><header class="app-header"><div class="brand"><svg class="brand-mark" viewBox="0 0 32 32" aria-hidden="true"><rect x="2" y="2" width="28" height="28" rx="9" fill="currentColor"/><path d="m9 16 5 5 9-10" fill="none" stroke="var(--paper)" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/></svg><span>Evals explained</span></div><div class="header-right"><span>40 minutes · Session 01</span><button class="quiet-button" type="button" id="resources-button">Sources</button><button class="quiet-button" type="button" id="theme-button" aria-label="Switch to dark theme">☾ Dark</button><button class="quiet-button" type="button" id="fullscreen-button">Full screen</button></div></header><main class="stage" id="presentation"><section class="slide cover" id="slide-1" data-slide="0" aria-labelledby="slide-title-1" ><div class="slide-top"><span class="kicker">Evals 101</span><span class="slide-index">01 / 14</span></div><h1 id="slide-title-1">How do we know our AI is working?</h1><div class="slide-body"><p class="cover-idea">Evals are a form of testing.</p><p class="cover-sub">AI makes repeatability and judging correctness harder.</p><div class="tags"><span>40 minutes</span><span>No coding required</span><span>Two simple examples</span></div></div><footer class="slide-sources"></footer></section>
<section class="slide" id="slide-2" data-slide="1" aria-labelledby="slide-title-2" hidden><div class="slide-top"><span class="kicker">Today’s session · 40 minutes</span><span class="slide-index">02 / 14</span></div><h1 id="slide-title-2">Table of contents</h1><div class="slide-body"><div class="toc-grid"><button type="button" class="toc-item" data-toc-slide="2"><span class="toc-number">01</span><span><strong>Testing and evals</strong><small>What they are</small></span><span class="toc-time">4 min →</span></button><button type="button" class="toc-item" data-toc-slide="3"><span class="toc-number">02</span><span><strong>What changes with AI?</strong><small>Variation and acceptable answers</small></span><span class="toc-time">6 min →</span></button><button type="button" class="toc-item" data-toc-slide="5"><span class="toc-number">03</span><span><strong>When do we use each?</strong><small>Interactive Q&A</small></span><span class="toc-time">4 min →</span></button><button type="button" class="toc-item" data-toc-slide="6"><span class="toc-number">04</span><span><strong>Summary eval</strong><small>Compare outputs and define a rubric</small></span><span class="toc-time">10 min →</span></button><button type="button" class="toc-item" data-toc-slide="9"><span class="toc-number">05</span><span><strong>Simple agent eval</strong><small>Invoice, calculator, and three checks</small></span><span class="toc-time">8 min →</span></button><button type="button" class="toc-item" data-toc-slide="12"><span class="toc-number">06</span><span><strong>Eval-driven development</strong><small>Baseline, change, rerun</small></span><span class="toc-time">6 min →</span></button><button type="button" class="toc-item" data-toc-slide="13"><span class="toc-number">07</span><span><strong>Recap</strong><small>Checks to use in your next change</small></span><span class="toc-time">2 min →</span></button></div></div><footer class="slide-sources">Select a topic to jump to it.</footer></section>
<section class="slide " id="slide-3" data-slide="2" aria-labelledby="slide-title-3" hidden><div class="slide-top"><span class="kicker">Start here</span><span class="slide-index">03 / 14</span></div><h1 id="slide-title-3">Testing and AI evals overlap.</h1><div class="slide-body"><div class="two-cards"><article><span class="kicker">Software testing</span><h3>Does it behave as expected?</h3><p>Compare behavior with requirements.</p><div class="example-code">2 × 10 + 3 × 2 = <strong>26</strong></div></article><article class="green"><span class="kicker">AI evals</span><h3>How reliably does it meet the task?</h3><p>Structured tests of answers or actions across examples.</p></article></div><p class="takeaway">Evals are testing adapted to measuring AI task performance.</p></div><footer class="slide-sources"><a href="https://developers.openai.com/api/docs/guides/evaluation-best-practices" target="_blank" rel="noopener noreferrer">OpenAI: Evaluation best practices ↗</a></footer></section>
<section class="slide " id="slide-4" data-slide="3" aria-labelledby="slide-title-4" hidden><div class="slide-top"><span class="kicker">What changes?</span><span class="slide-index">04 / 14</span></div><h1 id="slide-title-4">Two challenges come with AI.</h1><div class="slide-body"><div class="eval-viz" id="visual-two-challenges">
<div class="v-grid">
<article class="v-panel">
<svg class="v-icon" viewBox="0 0 56 56" aria-hidden="true"><path d="M7 12h12l13 16 12-16h6M7 44h12l13-16 12 16h6" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="m44 7 6 5-6 5m0 22 6 5-6 5" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
<p class="v-eyebrow">Challenge 01</p>
<h3>Behavior can vary.</h3>
<p style="margin-top:14px">The same request can produce different outputs.</p>
<p class="v-example">Repeat cases. Check reliability.</p>
</article>
<article class="v-panel v-panel--green">
<svg class="v-icon" viewBox="0 0 56 56" aria-hidden="true"><rect x="12" y="7" width="33" height="42" rx="5" fill="none" stroke="currentColor" stroke-width="2.5"/><path d="m19 21 3 3 5-6m5 4h7m-20 12 3 3 5-6m5 4h7" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
<p class="v-eyebrow">Challenge 02</p>
<h3>“Good” needs a definition.</h3>
<p style="margin-top:14px">Different answers can be valid.</p>
<p class="v-example">Define accuracy, coverage, and clarity.</p>
</article>
</div>
<p class="v-caption">A repeatable answer can still be wrong.</p>
</div>
</div><footer class="slide-sources"><a href="https://developers.openai.com/api/docs/guides/evaluation-best-practices" target="_blank" rel="noopener noreferrer">OpenAI: Evaluation best practices ↗</a></footer></section>
<section class="slide " id="slide-5" data-slide="4" aria-labelledby="slide-title-5" hidden><div class="slide-top"><span class="kicker">Multiple acceptable answers</span><span class="slide-index">05 / 14</span></div><h1 id="slide-title-5">Different words. Same correct meaning.</h1><div class="slide-body"><div class="eval-viz" id="visual-output-comparison"><div class="source-strip"><span class="kicker">Source</span><p>The launch has moved from Thursday to Friday.</p></div><div class="valid-grid"><blockquote>“Friday is the new launch date.”<span>Valid answer A</span></blockquote><blockquote>“The launch was postponed by one day, to Friday.”<span>Valid answer B</span></blockquote></div><div class="variation-row"><p data-summary-output aria-live="polite">Friday is the new launch date.</p><button class="v-button" type="button" data-next-summary>Another valid phrasing</button></div><p class="v-caption">Evaluate the meaning. Exact wording does not define correctness.</p></div></div><footer class="slide-sources"></footer></section>
<section class="slide " id="slide-6" data-slide="5" aria-labelledby="slide-title-6" hidden><div class="slide-top"><span class="kicker">Choose the check that matches the behavior.</span><span class="slide-index">06 / 14</span></div><h1 id="slide-title-6">When do we use each?</h1><div class="slide-body"><div class="qa-grid"><details><summary>Does arithmetic follow the rounding rule?</summary><p>Use a software test with the exact expected value.</p></details><details><summary>Does a missing document produce the right error?</summary><p>Use software tests for loading and error handling.</p></details><details><summary>Is the summary accurate and complete?</summary><p>Use an AI eval with a factual and quality rubric.</p></details><details><summary>Are the extracted invoice fields correct?</summary><p>Use an AI eval with exact comparisons to reviewed fields.</p></details><details><summary>Did the agent supply the right tool arguments?</summary><p>Inspect recorded tool calls against the source invoice.</p></details><details><summary>Did a prompt or model change improve the system?</summary><p>Run relevant software tests and the same AI eval cases.</p></details></div><p class="takeaway">An AI application usually needs both. Exact assertions can also be eval checks.</p></div><footer class="slide-sources"><a href="https://developers.openai.com/api/docs/guides/evaluation-best-practices" target="_blank" rel="noopener noreferrer">OpenAI: Evaluation best practices ↗</a></footer></section>
<section class="slide " id="slide-7" data-slide="6" aria-labelledby="slide-title-7" hidden><div class="slide-top"><span class="kicker">Example 01 · Summaries</span><span class="slide-index">07 / 14</span></div><h1 id="slide-title-7">Summarize this update.</h1><div class="slide-body"><p class="task">For a teammate who missed the meeting. Maximum 50 words.</p><blockquote class="source-passage">The team moved the product launch from 12 May to 19 May after finding a payment bug. Priya will fix the bug by 18 May. The signup flow is ready. The team will review progress on 17 May. The launch remains dependent on the payment fix being completed.</blockquote><div class="fact-chips"><span>19 May</span><span>Payment bug</span><span>Priya · 18 May</span><span>Launch depends on fix</span></div></div><footer class="slide-sources"><a href="https://developers.openai.com/cookbook/examples/evaluation/how_to_eval_abstractive_summarization" target="_blank" rel="noopener noreferrer">Inspired by OpenAI’s summarization Cookbook · original example ↗</a></footer></section>
<section class="slide " id="slide-8" data-slide="7" aria-labelledby="slide-title-8" hidden><div class="slide-top"><span class="kicker">Compare the outputs</span><span class="slide-index">08 / 14</span></div><h1 id="slide-title-8">Which summary would you send?</h1><div class="slide-body"><div class="summary-cards"><article><span class="kicker">Summary A</span><p>The launch moved to 19 May because of a payment bug. Priya will fix it by 18 May, and launch depends on that fix being completed.</p></article><article><span class="kicker">Summary B</span><p>The product will launch on 12 May. Payment testing is complete, and the team is ready to release.</p></article><article><span class="kicker">Summary C</span><p>The team discussed launch plans and a bug. Some work is ready, and progress will be reviewed.</p></article></div><p class="question">What specifically makes the others weaker?</p></div><footer class="slide-sources"><a href="https://developers.openai.com/cookbook/examples/evaluation/how_to_eval_abstractive_summarization" target="_blank" rel="noopener noreferrer">OpenAI Cookbook: Summary quality dimensions ↗</a></footer></section>
<section class="slide " id="slide-9" data-slide="8" aria-labelledby="slide-title-9" hidden><div class="slide-top"><span class="kicker">A simple rubric</span><span class="slide-index">09 / 14</span></div><h1 id="slide-title-9">Define “good” before scoring.</h1><div class="slide-body"><div class="rubric-grid"><article><strong>Consistency</strong><span>Supported by the source?</span></article><article><strong>Relevance</strong><span>Essential facts preserved?</span></article><article><strong>Coherence</strong><span>Ideas fit logically?</span></article><article><strong>Fluency</strong><span>Readable language?</span></article></div><p class="scale">1 = poor · 2 = partly meets · 3 = meets</p><details class="assessment"><summary>Reveal the worked assessment</summary><div class="assessment-body"><table><thead><tr><th>Criterion</th><th>A</th><th>B</th><th>C</th></tr></thead><tbody><tr><td>Consistency</td><td>3</td><td>1</td><td>3</td></tr><tr><td>Relevance</td><td>3</td><td>1</td><td>1</td></tr><tr><td>Coherence + fluency</td><td>3 / 3</td><td>3 / 3</td><td>3 / 3</td></tr><tr><td>Result</td><td class="pass">Pass</td><td class="fail">Fail: changed facts</td><td class="fail">Fail: omitted essentials</td></tr></tbody></table><p class="mini">Passing rule: consistency and relevance = 3; coherence and fluency ≥ 2; ≤ 50 words. Prepared judgments; simplified classroom scale.</p></div></details></div><footer class="slide-sources"><a href="https://developers.openai.com/cookbook/examples/evaluation/how_to_eval_abstractive_summarization" target="_blank" rel="noopener noreferrer">OpenAI Cookbook: Consistency, relevance, coherence, fluency ↗</a></footer></section>
<section class="slide " id="slide-10" data-slide="9" aria-labelledby="slide-title-10" hidden><div class="slide-top"><span class="kicker">Example 02 · One agent, one tool</span><span class="slide-index">10 / 14</span></div><h1 id="slide-title-10">A simple invoice agent.</h1><div class="slide-body"><div class="eval-viz" id="visual-agent-flow"><div class="v-journey" aria-label="One agent flow: invoice, model extracts and chooses tool, calculator totals items, model returns structured output, application validates">
<div class="v-node"><strong>Invoice</strong><span>Text + line items</span></div><span class="v-arrow" aria-hidden="true">→</span>
<div class="v-node"><strong>Model</strong><span>Extracts + calls tool</span></div><span class="v-arrow" aria-hidden="true">→</span>
<div class="v-node v-node--tool"><strong>Calculator</strong><span>Computes item total</span></div><span class="v-arrow" aria-hidden="true">→</span>
<div class="v-node"><strong>Model</strong><span>Returns fields</span></div><span class="v-arrow" aria-hidden="true">→</span>
<div class="v-node"><strong>Application</strong><span>Validates mismatch</span></div>
</div></div><div class="three-chips"><span>One agent</span><span>One calculator tool</span><span>Recorded calls + final result</span></div></div><footer class="slide-sources"><a href="https://github.com/RittikaJ/my-medium-blogs/blob/main/posts/published/2026-10-10-a-hands-on-guide-to-agent-evaluation-with-langfuse-f4bc8450e818.md" target="_blank" rel="noopener noreferrer">Adapted from Rittika Jindal’s agent evals guide ↗</a></footer></section>
<section class="slide " id="slide-11" data-slide="10" aria-labelledby="slide-title-11" hidden><div class="slide-top"><span class="kicker">An invoice with a mismatch</span><span class="slide-index">11 / 14</span></div><h1 id="slide-title-11">Is “needs review” a successful result?</h1><div class="slide-body"><div class="eval-viz" id="visual-invoice-agent">
<div class="v-grid">
<div class="v-invoice">
<header><strong>Paper Trail Supplies</strong><span class="v-eyebrow" style="margin:0">INV-001</span></header>
<dl><div><dt>2 notebooks × 10.00</dt><dd>20.00</dd></div><div><dt>3 pens × 2.00</dt><dd>6.00</dd></div><div class="v-total"><dt>Printed total</dt><dd>29.00</dd></div></dl>
<p class="v-invoice-note">The items sum to <strong>26.00</strong>.</p>
</div>
<div class="v-panel">
<span class="v-choice-label">What should a good agent do?</span>
<div class="v-choices" role="group" aria-label="Choose the expected invoice agent behavior">
<button class="v-choice" data-invoice-choice="overwrite" aria-pressed="false" type="button">Replace 29.00 with 26.00.</button>
<button class="v-choice" data-invoice-choice="review" aria-pressed="false" type="button">Preserve 29.00. Record 26.00. Flag the mismatch.</button>
</div>
<div class="v-feedback" data-invoice-feedback hidden aria-live="polite"><strong>A correct result can be “needs review.”</strong><p><code>printed_total: 29.00</code><br><code>calculated_total: 26.00</code><br><code>status: needs_review</code></p></div>
</div>
</div>
</div>
</div><footer class="slide-sources"><a href="https://github.com/RittikaJ/my-medium-blogs/blob/main/posts/published/2026-10-10-a-hands-on-guide-to-agent-evaluation-with-langfuse-f4bc8450e818.md" target="_blank" rel="noopener noreferrer">Rittika Jindal: Invoice agent and printed-total mismatch ↗</a></footer></section>
<section class="slide " id="slide-12" data-slide="11" aria-labelledby="slide-title-12" hidden><div class="slide-top"><span class="kicker">Three evaluation layers</span><span class="slide-index">12 / 14</span></div><h1 id="slide-title-12">Check the result and the actions.</h1><div class="slide-body"><div class="three-cards"><article><span class="kicker">01 · Output</span><h3>Correct fields?</h3><p>Printed total stays 29.00.</p></article><article><span class="kicker">02 · Tool</span><h3>Correct arguments?</h3><p>2 × 10.00 and 3 × 2.00.</p></article><article><span class="kicker">03 · Source</span><h3>Supported facts?</h3><p>Missing invoice number stays null.</p></article></div><p class="takeaway">A correct total can come from wrong arguments. Inspect the recorded tool calls.</p></div><footer class="slide-sources"><a href="https://github.com/RittikaJ/my-medium-blogs/blob/main/posts/published/2026-10-10-a-hands-on-guide-to-agent-evaluation-with-langfuse-f4bc8450e818.md" target="_blank" rel="noopener noreferrer">Rittika Jindal: Output, tool behavior, groundedness ↗</a></footer></section>
<section class="slide " id="slide-13" data-slide="12" aria-labelledby="slide-title-13" hidden><div class="slide-top"><span class="kicker">Build with evidence</span><span class="slide-index">13 / 14</span></div><h1 id="slide-title-13">Eval-driven development.</h1><div class="slide-body"><div class="eval-viz" id="visual-development-loop">
<ol class="v-loop" aria-label="Eval-driven development loop">
<li><span class="v-loop-num" aria-hidden="true">1</span><h4>Define success</h4><p>Write passing rules.</p></li>
<li><span class="v-loop-num" aria-hidden="true">2</span><h4>Build cases</h4><p>Normal, tricky, missing information.</p></li>
<li><span class="v-loop-num" aria-hidden="true">3</span><h4>Run baseline</h4><p>Save outputs and scores.</p></li>
<li><span class="v-loop-num" aria-hidden="true">4</span><h4>Make a change</h4><p>Change one thing.</p></li>
<li><span class="v-loop-num" aria-hidden="true">5</span><h4>Rerun + inspect</h4><p>Same cases. Read failures.</p></li>
</ol>
<div class="v-return"><svg viewBox="0 0 40 24" aria-hidden="true"><path d="M37 4v7a7 7 0 0 1-7 7H4m6-6-6 6 6 5" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg><span>Check improvements and regressions. Add useful failures.</span></div>
</div>
<p class="takeaway">Same cases and settings. Repeat when outputs vary. Keep some cases aside from tuning.</p></div><footer class="slide-sources"><a href="https://developers.openai.com/api/docs/guides/evaluation-best-practices" target="_blank" rel="noopener noreferrer">OpenAI: Eval best practices ↗</a><span class="source-sep"> · </span><a href="https://developers.openai.com/api/docs/guides/model-optimization" target="_blank" rel="noopener noreferrer">OpenAI: Model optimization ↗</a></footer></section>
<section class="slide " id="slide-14" data-slide="13" aria-labelledby="slide-title-14" hidden><div class="slide-top"><span class="kicker">Take it into your next change</span><span class="slide-index">14 / 14</span></div><h1 id="slide-title-14">Make “good” something we can check.</h1><div class="slide-body"><ul class="recap"><li>Use exact checks for precise answers; rubrics for multiple valid answers.</li><li>Evaluate agent actions as well as the final output.</li><li>Run the same cases before and after a change. Read failures.</li></ul><p class="takeaway">Next session: build a small dataset and compare two runs.</p></div><footer class="slide-sources"><a href="https://developers.openai.com/api/docs/guides/evaluation-best-practices" target="_blank" rel="noopener noreferrer">OpenAI: Evaluation best practices ↗</a></footer></section></main><nav class="controls" aria-label="Presentation controls"><div class="progress" aria-hidden="true"><span id="progress"></span></div><div class="controls-inner"><select class="slide-picker" id="slide-picker" aria-label="Choose a slide"><option value="0">01 · How do we know our AI is working?</option><option value="1">02 · Table of contents</option><option value="2">03 · Testing and AI evals overlap.</option><option value="3">04 · Two challenges come with AI.</option><option value="4">05 · Different words. Same correct meaning.</option><option value="5">06 · When do we use each?</option><option value="6">07 · Summarize this update.</option><option value="7">08 · Which summary would you send?</option><option value="8">09 · Define “good” before scoring.</option><option value="9">10 · A simple invoice agent.</option><option value="10">11 · Is “needs review” a successful result?</option><option value="11">12 · Check the result and the actions.</option><option value="12">13 · Eval-driven development.</option><option value="13">14 · Make “good” something we can check.</option></select><span class="help-text">← → to navigate</span><div class="nav-buttons"><button class="nav-button" id="previous" type="button" disabled>← Previous</button><span class="counter" id="counter" aria-live="polite">1 / 14</span><button class="nav-button" id="next" type="button">Next →</button></div></div></nav><dialog class="resources-dialog" id="resources-dialog" aria-labelledby="resources-title"><h2 id="resources-title">Sources & further reading</h2><div class="resource-item"><a href="https://developers.openai.com/api/docs/guides/evaluation-best-practices" target="_blank" rel="noopener noreferrer">OpenAI · Evaluation best practices ↗</a><p>Definitions, variability, representative cases, and human calibration.</p></div><div class="resource-item"><a href="https://developers.openai.com/cookbook/examples/evaluation/how_to_eval_abstractive_summarization" target="_blank" rel="noopener noreferrer">OpenAI Cookbook · How to evaluate a summarization task ↗</a><p>Four summary quality dimensions. Archived recipe; this session uses original text and a simplified rubric.</p></div><div class="resource-item"><a href="https://github.com/RittikaJ/my-medium-blogs/blob/main/posts/published/2026-10-10-a-hands-on-guide-to-agent-evaluation-with-langfuse-f4bc8450e818.md" target="_blank" rel="noopener noreferrer">Rittika Jindal · A Hands-On Guide to Agent Evals with Langfuse ↗</a><p>Invoice agent, calculator calls, traces, groundedness, and needs_review.</p></div><div class="resource-item"><a href="https://developers.openai.com/api/docs/guides/model-optimization" target="_blank" rel="noopener noreferrer">OpenAI · Model optimization ↗</a><p>Establish evals and measure prompt changes.</p></div><div class="dialog-actions"><button class="quiet-button" id="close-resources" type="button">Close sources</button></div></dialog><script>
const slides=[...document.querySelectorAll('.slide')];let current=0;const picker=document.getElementById('slide-picker');const previous=document.getElementById('previous');const next=document.getElementById('next');const counter=document.getElementById('counter');const dialog=document.getElementById('resources-dialog');
function showSlide(index,updateHash=true){current=Math.max(0,Math.min(slides.length-1,index));slides.forEach((s,i)=>{s.hidden=i!==current;});picker.value=String(current);previous.disabled=current===0;next.disabled=current===slides.length-1;counter.textContent=(current+1)+' / '+slides.length;document.getElementById('progress').style.width=((current+1)/slides.length*100)+'%';if(updateHash)history.replaceState(null,'','#slide-'+(current+1));window.scrollTo(0,0);}
document.querySelectorAll('[data-toc-slide]').forEach(button=>button.addEventListener('click',()=>showSlide(Number(button.dataset.tocSlide))));
previous.addEventListener('click',()=>showSlide(current-1));next.addEventListener('click',()=>showSlide(current+1));picker.addEventListener('change',()=>showSlide(Number(picker.value)));
document.addEventListener('keydown',e=>{if(dialog.open||['INPUT','TEXTAREA','SELECT'].includes(document.activeElement.tagName))return;if(e.key==='ArrowRight'||e.key==='PageDown'){e.preventDefault();showSlide(current+1);}else if(e.key==='ArrowLeft'||e.key==='PageUp'){e.preventDefault();showSlide(current-1);}else if(e.key==='Home'){e.preventDefault();showSlide(0);}else if(e.key==='End'){e.preventDefault();showSlide(slides.length-1);}});
function fromHash(){const match=location.hash.match(/^#slide-(\d+)$/);showSlide(match?Number(match[1])-1:0,false);}fromHash();addEventListener('hashchange',fromHash);
document.getElementById('resources-button').addEventListener('click',()=>dialog.showModal());document.getElementById('close-resources').addEventListener('click',()=>dialog.close());dialog.addEventListener('click',e=>{if(e.target===dialog){const r=dialog.getBoundingClientRect();if(e.clientX<r.left||e.clientX>r.right||e.clientY<r.top||e.clientY>r.bottom)dialog.close();}});
document.getElementById('fullscreen-button').addEventListener('click',async()=>{try{if(document.fullscreenElement)await document.exitFullscreen();else await document.documentElement.requestFullscreen();}catch{}});document.addEventListener('fullscreenchange',()=>{document.getElementById('fullscreen-button').textContent=document.fullscreenElement?'Exit full screen':'Full screen';});
(() => {
const summaryRoot = document.getElementById('visual-output-comparison');
if (summaryRoot) {
const phrasings = [
'Friday is the new launch date.',
'The launch was postponed by one day, to Friday.',
'Launch is now scheduled for Friday rather than Thursday.'
];
let phrasingIndex = 0;
const output = summaryRoot.querySelector('[data-summary-output]');
const button = summaryRoot.querySelector('[data-next-summary]');
button.addEventListener('click', () => {
phrasingIndex = (phrasingIndex + 1) % phrasings.length;
output.textContent = phrasings[phrasingIndex];
});
}
const invoiceRoot = document.getElementById('visual-invoice-agent');
if (invoiceRoot) {
const feedback = invoiceRoot.querySelector('[data-invoice-feedback]');
const choices = invoiceRoot.querySelectorAll('[data-invoice-choice]');
choices.forEach(button => button.addEventListener('click', () => {
const correct = button.dataset.invoiceChoice === 'review';
choices.forEach(choice => choice.setAttribute('aria-pressed', String(choice === button)));
feedback.hidden = false;
feedback.classList.toggle('is-fail', !correct);
feedback.replaceChildren();
const title = document.createElement('strong');
title.textContent = correct ? 'Correct. “Needs review” is the expected outcome.' : 'Fail. That silently changes a source fact.';
const explanation = document.createElement('p');
explanation.textContent = correct ? 'Keep the printed total, retain the calculated total, and flag the difference for review.' : 'The invoice says 29.00. The agent should preserve that fact and flag the mismatch, rather than replace it with 26.00.';
const fields = document.createElement('p');
fields.style.marginTop = '12px';
['printed_total: 29.00', 'calculated_total: 26.00', 'status: needs_review'].forEach((line, index) => {
if (index) fields.append(document.createElement('br'));
const code = document.createElement('code');
code.textContent = line;
fields.append(code);
});
feedback.append(title, explanation, fields);
}));
}
})();
const themeButton=document.getElementById('theme-button');
function syncThemeButton(){const dark=document.documentElement.dataset.theme==='dark';themeButton.textContent=dark?'☀ Light':'☾ Dark';themeButton.setAttribute('aria-label',dark?'Switch to light theme':'Switch to dark theme');themeButton.title=dark?'Switch to light theme':'Switch to dark theme';document.querySelector('meta[name="theme-color"]').content=dark?'#102629':'#12635b';}
themeButton.addEventListener('click',()=>{const theme=document.documentElement.dataset.theme==='dark'?'light':'dark';document.documentElement.dataset.theme=theme;try{localStorage.setItem('evals-explained-theme',theme);}catch{}syncThemeButton();});syncThemeButton();
</script></body></html>