-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1046 lines (950 loc) · 56.8 KB
/
Copy pathindex.html
File metadata and controls
1046 lines (950 loc) · 56.8 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
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Prompt Engineering Mastery Course</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="course-container">
<!-- Navigation Sidebar -->
<nav class="sidebar">
<div class="sidebar-header">
<h3>Course Navigation</h3>
<div class="progress-overview">
<div class="progress-bar">
<div class="progress-fill" id="overall-progress"></div>
</div>
<span class="progress-text" id="progress-text">0% Complete</span>
</div>
</div>
<ul class="nav-menu">
<li><a href="#" data-page="home" class="nav-link active">📚 Welcome</a></li>
<li><a href="#" data-page="module1" class="nav-link">🔰 Foundation</a><span class="duration">8 min</span></li>
<li><a href="#" data-page="module2" class="nav-link">⚡ Essential Techniques</a><span class="duration">12 min</span></li>
<li><a href="#" data-page="module3" class="nav-link">🚀 Advanced Techniques</a><span class="duration">10 min</span></li>
<li><a href="#" data-page="module4" class="nav-link">🏢 Applications</a><span class="duration">10 min</span></li>
<li><a href="#" data-page="module5" class="nav-link">🧪 Interactive Labs</a><span class="duration">12 min</span></li>
<li><a href="#" data-page="module6" class="nav-link">📝 Assessment</a><span class="duration">8 min</span></li>
<li><a href="#" data-page="resources" class="nav-link">📋 Resources & GitHub</a></li>
</ul>
</nav>
<!-- Main Content Area -->
<main class="main-content">
<!-- Home Page -->
<div class="page active" id="home">
<div class="hero-section">
<h1>Prompt Engineering Mastery Course</h1>
<p class="hero-subtitle">Master the art and science of prompt engineering based on cutting-edge research</p>
<div class="course-stats">
<div class="stat">
<strong>⏱️ 60 minutes</strong>
<span>Total Duration</span>
</div>
<div class="stat">
<strong>📊 76%</strong>
<span>Performance Improvement</span>
</div>
<div class="stat">
<strong>🎯 6 modules</strong>
<span>Comprehensive Learning</span>
</div>
</div>
</div>
<div class="learning-objectives">
<h2>Learning Objectives</h2>
<div class="objectives-grid">
<div class="objective-card">
<h3>🎯 Master Core Techniques</h3>
<p>Learn few-shot, chain-of-thought, and role prompting techniques</p>
</div>
<div class="objective-card">
<h3>📈 Understand Performance Impact</h3>
<p>Discover how proper prompting creates 76% performance differences</p>
</div>
<div class="objective-card">
<h3>🏢 Apply Real-World Skills</h3>
<p>Practice with case studies from crisis detection to medical coding</p>
</div>
<div class="objective-card">
<h3>🧪 Hands-On Experience</h3>
<p>Build prompts in interactive labs with real-time feedback</p>
</div>
</div>
</div>
<div class="page-navigation">
<button class="btn btn--primary btn--lg" onclick="goToPage('module1')">Start Course →</button>
</div>
</div>
<!-- Module 1: Foundation -->
<div class="page" id="module1">
<div class="module-header">
<h1>Module 1: Foundation - Moving Beyond Basic Chat</h1>
<div class="module-meta">
<span class="duration">⏱️ 8 minutes</span>
<span class="progress">Progress: 1/6</span>
</div>
</div>
<div class="content-section">
<h2>What is Prompt Engineering?</h2>
<p>Prompt engineering is the practice of designing inputs to get better outputs from AI systems. Unlike casual ChatGPT use, it involves systematic approaches that can create <strong>76% performance differences</strong>.</p>
<div class="video-container">
<iframe src="https://www.youtube.com/embed/_ZvnD73m40o" frameborder="0" allowfullscreen></iframe>
</div>
<div class="key-concepts">
<h3>Key Concepts</h3>
<div class="concept-cards">
<div class="concept-card">
<h4>Input-Instruction-Output Framework</h4>
<p>Structure your prompts with clear inputs, specific instructions, and desired output format</p>
</div>
<div class="concept-card">
<h4>Structure Matters More Than Length</h4>
<p>A well-structured short prompt outperforms a verbose unstructured one</p>
</div>
<div class="concept-card">
<h4>Context and Specificity</h4>
<p>Providing relevant context and specific requirements dramatically improves results</p>
</div>
</div>
</div>
<div class="interactive-exercise">
<h3>Interactive Exercise: Transform Weak Prompts</h3>
<div class="exercise-container">
<div class="before-after">
<div class="prompt-example">
<h4>❌ Weak Prompt</h4>
<div class="prompt-box weak">
"Write about marketing"
</div>
</div>
<div class="arrow">→</div>
<div class="prompt-example">
<h4>✅ Strong Prompt</h4>
<div class="prompt-box strong">
"As a digital marketing expert, write a 300-word analysis of social media marketing trends for B2B SaaS companies in 2024. Include specific metrics and actionable recommendations."
</div>
</div>
</div>
<div class="practice-area">
<h4>Your Turn: Improve This Prompt</h4>
<div class="weak-prompt">"Tell me about AI"</div>
<textarea class="form-control" placeholder="Rewrite this prompt to make it more effective..." rows="4"></textarea>
<button class="btn btn--secondary" onclick="checkPromptImprovement()">Get Feedback</button>
<div class="feedback-area" id="prompt-feedback"></div>
</div>
</div>
</div>
</div>
<div class="page-navigation">
<button class="btn btn--outline" onclick="goToPage('home')">← Previous</button>
<button class="btn btn--primary" onclick="goToPage('module2')">Next Module →</button>
</div>
</div>
<!-- Module 2: Essential Techniques -->
<div class="page" id="module2">
<div class="module-header">
<h1>Module 2: Essential Techniques</h1>
<div class="module-meta">
<span class="duration">⏱️ 12 minutes</span>
<span class="progress">Progress: 2/6</span>
</div>
</div>
<div class="techniques-overview">
<div class="technique-tabs">
<button class="tab-btn active" data-technique="few-shot">Few-Shot Prompting</button>
<button class="tab-btn" data-technique="chain-thought">Chain-of-Thought</button>
<button class="tab-btn" data-technique="role-prompting">Role Prompting</button>
</div>
<div class="technique-content active" id="few-shot">
<h2>Few-Shot Prompting</h2>
<p><strong>Definition:</strong> Providing 2-5 examples to guide model behavior and establish patterns.</p>
<div class="video-container">
<iframe src="https://www.youtube.com/embed/5GXX9buFMY0" frameborder="0" allowfullscreen></iframe>
</div>
<div class="when-to-use">
<h3>When to Use</h3>
<ul>
<li>Consistent formatting required</li>
<li>Complex tasks with specific patterns</li>
<li>Domain-specific outputs</li>
</ul>
</div>
<div class="example-container">
<h3>Example</h3>
<div class="prompt-box">
<strong>Task:</strong> Classify email urgency<br><br>
<strong>Example 1:</strong> "Meeting in 5 minutes" → HIGH<br>
<strong>Example 2:</strong> "Quarterly report due next week" → MEDIUM<br>
<strong>Example 3:</strong> "FYI: New coffee machine installed" → LOW<br><br>
<strong>Now classify:</strong> "Server down, customers can't access site" →
</div>
</div>
<div class="practice-lab">
<h3>Practice Lab</h3>
<p>Create a few-shot prompt for sentiment analysis:</p>
<textarea class="form-control" placeholder="Write your few-shot prompt here..." rows="6"></textarea>
<button class="btn btn--secondary" onclick="testFewShotPrompt()">Test Prompt</button>
<div class="result-area" id="few-shot-result"></div>
</div>
</div>
<div class="technique-content" id="chain-thought">
<h2>Chain-of-Thought Prompting</h2>
<p><strong>Definition:</strong> Encouraging step-by-step reasoning before providing the final answer.</p>
<div class="video-container">
<iframe src="https://www.youtube.com/embed/yX2OxiHYNGw" frameborder="0" allowfullscreen></iframe>
</div>
<div class="effectiveness-stats">
<div class="stat-card">
<strong>76%</strong>
<span>Improvement on reasoning tasks</span>
</div>
<div class="stat-card">
<strong>Best for:</strong>
<span>Mathematical & logical problems</span>
</div>
</div>
<div class="example-container">
<h3>Example</h3>
<div class="prompt-box">
<strong>Without Chain-of-Thought:</strong><br>
"What's 23 × 47?"<br><br>
<strong>With Chain-of-Thought:</strong><br>
"Calculate 23 × 47. Think step by step:<br>
First: 23 × 40 = 920<br>
Then: 23 × 7 = 161<br>
Finally: 920 + 161 = 1,081"
</div>
</div>
<div class="practice-lab">
<h3>Practice Lab</h3>
<p>Create a chain-of-thought prompt for this problem:</p>
<div class="problem-statement">"A company's revenue increased by 15% in Q1, decreased by 8% in Q2, and increased by 22% in Q3. If they started with $100,000, what's their revenue after Q3?"</div>
<textarea class="form-control" placeholder="Write your chain-of-thought prompt..." rows="6"></textarea>
<button class="btn btn--secondary" onclick="testChainThoughtPrompt()">Test Prompt</button>
<div class="result-area" id="chain-thought-result"></div>
</div>
</div>
<div class="technique-content" id="role-prompting">
<h2>Role Prompting</h2>
<p><strong>Definition:</strong> Assigning specific expertise or perspective to the AI to leverage domain knowledge.</p>
<div class="research-note">
<strong>Research Finding:</strong> While popular, role prompting shows minimal impact on correctness but can improve response style and domain-specific language.
</div>
<div class="example-container">
<h3>Example</h3>
<div class="prompt-box">
<strong>Basic:</strong><br>
"Analyze this cybersecurity threat"<br><br>
<strong>With Role:</strong><br>
"You are a senior cybersecurity analyst with 10 years of experience in threat detection. Analyze this cybersecurity threat and provide a detailed assessment including risk level, potential impact, and recommended mitigation strategies."
</div>
</div>
<div class="practice-lab">
<h3>Practice Lab</h3>
<p>Create role prompts for different scenarios:</p>
<select class="form-control" id="role-scenario">
<option value="">Select a scenario...</option>
<option value="financial">Financial Analysis</option>
<option value="medical">Medical Diagnosis</option>
<option value="legal">Legal Advice</option>
<option value="marketing">Marketing Strategy</option>
</select>
<textarea class="form-control" placeholder="Write your role prompt here..." rows="4"></textarea>
<button class="btn btn--secondary" onclick="testRolePrompt()">Test Prompt</button>
<div class="result-area" id="role-result"></div>
</div>
</div>
</div>
<div class="page-navigation">
<button class="btn btn--outline" onclick="goToPage('module1')">← Previous</button>
<button class="btn btn--primary" onclick="goToPage('module3')">Next Module →</button>
</div>
</div>
<!-- Module 3: Advanced Techniques -->
<div class="page" id="module3">
<div class="module-header">
<h1>Module 3: Advanced Techniques</h1>
<div class="module-meta">
<span class="duration">⏱️ 10 minutes</span>
<span class="progress">Progress: 3/6</span>
</div>
</div>
<div class="performance-benchmarks">
<h2>Performance Benchmarks (MMLU Dataset)</h2>
<div class="benchmark-chart">
<div class="benchmark-bar">
<span class="technique-name">Zero-Shot</span>
<div class="bar zero-shot" style="width: 65%">65%</div>
</div>
<div class="benchmark-bar">
<span class="technique-name">Few-Shot</span>
<div class="bar few-shot" style="width: 78%">78%</div>
</div>
<div class="benchmark-bar">
<span class="technique-name">Chain-of-Thought</span>
<div class="bar chain-thought" style="width: 85%">85%</div>
</div>
</div>
</div>
<div class="advanced-techniques">
<div class="technique-card">
<h3>Zero-Shot Prompting</h3>
<p><strong>Definition:</strong> Direct instruction without examples, relying on the model's pre-trained knowledge.</p>
<div class="pros-cons">
<div class="pros">
<h4>✅ Pros</h4>
<ul>
<li>Quick and simple</li>
<li>Good baseline performance</li>
<li>No examples needed</li>
</ul>
</div>
<div class="cons">
<h4>❌ Cons</h4>
<ul>
<li>Lower performance on complex tasks</li>
<li>Less consistent formatting</li>
<li>May miss nuanced requirements</li>
</ul>
</div>
</div>
<div class="example-box">
<strong>Example:</strong> "Classify the sentiment of this text as positive, negative, or neutral: 'The movie was okay, not great but not terrible either.'"
</div>
</div>
<div class="technique-card">
<h3>Self-Consistency</h3>
<p><strong>Definition:</strong> Generating multiple reasoning paths and selecting the most consistent answer.</p>
<div class="process-flow">
<div class="step">1. Generate multiple solutions</div>
<div class="arrow">→</div>
<div class="step">2. Compare reasoning paths</div>
<div class="arrow">→</div>
<div class="step">3. Select most consistent answer</div>
</div>
<div class="example-box">
<strong>Prompt Template:</strong><br>
"Solve this problem using 3 different approaches:<br>
Problem: [Your problem here]<br>
Approach 1: [Method 1]<br>
Approach 2: [Method 2]<br>
Approach 3: [Method 3]<br>
Final Answer: [Most consistent result]"
</div>
</div>
<div class="technique-card">
<h3>Meta Prompting</h3>
<p><strong>Definition:</strong> Using prompts to generate or improve other prompts.</p>
<div class="meta-levels">
<div class="level">
<strong>Level 1:</strong> Basic task prompt
</div>
<div class="level">
<strong>Level 2:</strong> Prompt optimization prompt
</div>
<div class="level">
<strong>Level 3:</strong> Meta-analysis of prompt effectiveness
</div>
</div>
<div class="example-box">
<strong>Meta Prompt Example:</strong><br>
"I need to create a prompt for [task]. Help me optimize this prompt by:<br>
1. Identifying missing context<br>
2. Suggesting more specific instructions<br>
3. Adding example formats<br>
Current prompt: [Your prompt]<br>
Improved prompt:"
</div>
</div>
</div>
<div class="comparison-tool">
<h2>Technique Comparison Tool</h2>
<div class="comparison-interface">
<div class="scenario-selector">
<label>Select a scenario to compare techniques:</label>
<select class="form-control" id="comparison-scenario">
<option value="math">Mathematical Problem</option>
<option value="writing">Creative Writing</option>
<option value="analysis">Data Analysis</option>
<option value="classification">Text Classification</option>
</select>
</div>
<div class="comparison-results" id="comparison-results">
<div class="technique-comparison">
<div class="comparison-card">
<h4>Zero-Shot</h4>
<div class="rating">⭐⭐⭐</div>
<p>Quick but basic results</p>
</div>
<div class="comparison-card">
<h4>Few-Shot</h4>
<div class="rating">⭐⭐⭐⭐</div>
<p>Consistent, formatted output</p>
</div>
<div class="comparison-card">
<h4>Chain-of-Thought</h4>
<div class="rating">⭐⭐⭐⭐⭐</div>
<p>Detailed reasoning, high accuracy</p>
</div>
</div>
</div>
</div>
</div>
<div class="page-navigation">
<button class="btn btn--outline" onclick="goToPage('module2')">← Previous</button>
<button class="btn btn--primary" onclick="goToPage('module4')">Next Module →</button>
</div>
</div>
<!-- Module 4: Real-World Applications -->
<div class="page" id="module4">
<div class="module-header">
<h1>Module 4: Real-World Applications</h1>
<div class="module-meta">
<span class="duration">⏱️ 10 minutes</span>
<span class="progress">Progress: 4/6</span>
</div>
</div>
<div class="case-studies">
<h2>Success Stories</h2>
<div class="case-study">
<div class="case-header">
<h3>🚨 Reddit Crisis Detection</h3>
<div class="improvement-badge">F1 Score: 0 → 0.53</div>
</div>
<div class="case-content">
<div class="challenge">
<h4>Challenge</h4>
<p>Automatically detect suicide crisis posts on Reddit to provide timely mental health resources.</p>
</div>
<div class="solution">
<h4>Solution</h4>
<p>Expert prompt engineering with context-aware instructions and crisis indicators.</p>
<div class="prompt-example">
<strong>Optimized Prompt:</strong><br>
"As a mental health crisis counselor, analyze this Reddit post for suicide risk indicators. Look for: direct statements, hopelessness, isolation mentions, method discussions, and timeline references. Rate risk level (LOW/MEDIUM/HIGH) and explain reasoning."
</div>
</div>
<div class="results">
<h4>Results</h4>
<ul>
<li>53% improvement in F1 score</li>
<li>Reduced false positives by 40%</li>
<li>Enabled real-time intervention</li>
</ul>
</div>
</div>
</div>
<div class="case-study">
<div class="case-header">
<h3>🏥 Medical Coding</h3>
<div class="improvement-badge">Accuracy: 0% → 90%</div>
</div>
<div class="case-content">
<div class="challenge">
<h4>Challenge</h4>
<p>Automate ICD-10 medical coding from clinical notes to reduce administrative burden.</p>
</div>
<div class="solution">
<h4>Solution</h4>
<p>Few-shot prompting with medical examples and structured output format.</p>
<div class="prompt-example">
<strong>Few-Shot Prompt:</strong><br>
"Assign ICD-10 codes to clinical notes.<br><br>
Example 1: 'Patient presents with acute chest pain, ECG shows ST elevation' → I21.9 (Acute myocardial infarction)<br>
Example 2: 'Type 2 diabetes with peripheral neuropathy' → E11.40<br>
Example 3: 'Hypertensive heart disease with CHF' → I11.0<br><br>
Now code: [Clinical note]"
</div>
</div>
<div class="results">
<h4>Results</h4>
<ul>
<li>90% coding accuracy achieved</li>
<li>75% reduction in coding time</li>
<li>Consistent application of coding rules</li>
</ul>
</div>
</div>
</div>
<div class="case-study">
<div class="case-header">
<h3>💼 Business Process Automation</h3>
<div class="improvement-badge">Efficiency: +300%</div>
</div>
<div class="case-content">
<div class="challenge">
<h4>Challenge</h4>
<p>Automate customer service ticket routing and initial response generation.</p>
</div>
<div class="solution">
<h4>Solution</h4>
<p>Multi-step prompting with role-based responses and escalation logic.</p>
<div class="prompt-example">
<strong>Routing Prompt:</strong><br>
"As a customer service supervisor, categorize this ticket and determine appropriate response:<br>
Categories: Technical, Billing, General, Urgent<br>
Response types: Automated resolution, Human escalation, Priority handling<br>
Ticket: [Customer message]<br>
Output: Category | Response Type | Reasoning"
</div>
</div>
<div class="results">
<h4>Results</h4>
<ul>
<li>300% faster ticket processing</li>
<li>95% accurate routing</li>
<li>40% reduction in escalations</li>
</ul>
</div>
</div>
</div>
</div>
<div class="application-builder">
<h2>Build Your Application</h2>
<p>Select a use case and design prompts for your scenario:</p>
<div class="use-case-selector">
<div class="use-case-card" data-use-case="customer-service">
<h3>📞 Customer Service</h3>
<p>Automate support responses</p>
</div>
<div class="use-case-card" data-use-case="content-moderation">
<h3>🛡️ Content Moderation</h3>
<p>Filter inappropriate content</p>
</div>
<div class="use-case-card" data-use-case="data-analysis">
<h3>📊 Data Analysis</h3>
<p>Extract insights from reports</p>
</div>
<div class="use-case-card" data-use-case="document-processing">
<h3>📄 Document Processing</h3>
<p>Automate document review</p>
</div>
</div>
<div class="prompt-builder" id="application-prompt-builder">
<div class="builder-section">
<label>Your Prompt:</label>
<textarea class="form-control" placeholder="Design your prompt here..." rows="8"></textarea>
</div>
<div class="builder-section">
<label>Test Input:</label>
<textarea class="form-control" placeholder="Enter test data..." rows="4"></textarea>
</div>
<button class="btn btn--primary" onclick="testApplicationPrompt()">Test Application</button>
<div class="test-results" id="application-results"></div>
</div>
</div>
<div class="page-navigation">
<button class="btn btn--outline" onclick="goToPage('module3')">← Previous</button>
<button class="btn btn--primary" onclick="goToPage('module5')">Next Module →</button>
</div>
</div>
<!-- Module 5: Interactive Labs -->
<div class="page" id="module5">
<div class="module-header">
<h1>Module 5: Interactive Labs</h1>
<div class="module-meta">
<span class="duration">⏱️ 12 minutes</span>
<span class="progress">Progress: 5/6</span>
</div>
</div>
<div class="lab-tabs">
<button class="lab-tab active" data-lab="prompt-builder">🔧 Prompt Builder</button>
<button class="lab-tab" data-lab="ab-testing">📊 A/B Testing</button>
<button class="lab-tab" data-lab="technique-mixer">🧪 Technique Mixer</button>
</div>
<div class="lab-content active" id="prompt-builder">
<h2>Advanced Prompt Builder</h2>
<p>Build complex prompts step by step with real-time feedback.</p>
<div class="prompt-builder-interface">
<div class="builder-steps">
<div class="step-selector">
<h3>1. Choose Technique</h3>
<div class="technique-options">
<label><input type="radio" name="technique" value="zero-shot"> Zero-Shot</label>
<label><input type="radio" name="technique" value="few-shot"> Few-Shot</label>
<label><input type="radio" name="technique" value="chain-thought"> Chain-of-Thought</label>
<label><input type="radio" name="technique" value="role"> Role Prompting</label>
</div>
</div>
<div class="step-selector">
<h3>2. Define Task</h3>
<input type="text" class="form-control" placeholder="What do you want the AI to do?" id="task-definition">
</div>
<div class="step-selector">
<h3>3. Set Context</h3>
<textarea class="form-control" placeholder="Provide relevant background information..." rows="3" id="context-input"></textarea>
</div>
<div class="step-selector">
<h3>4. Specify Output Format</h3>
<select class="form-control" id="output-format">
<option value="paragraph">Paragraph</option>
<option value="bullet-points">Bullet Points</option>
<option value="json">JSON</option>
<option value="table">Table</option>
<option value="numbered-list">Numbered List</option>
</select>
</div>
<button class="btn btn--primary" onclick="generatePrompt()">Generate Prompt</button>
</div>
<div class="generated-prompt">
<h3>Generated Prompt:</h3>
<div class="prompt-output" id="generated-prompt-output">
Your prompt will appear here...
</div>
<div class="prompt-actions">
<button class="btn btn--secondary" onclick="copyPrompt()">📋 Copy</button>
<button class="btn btn--secondary" onclick="testGeneratedPrompt()">🧪 Test</button>
<button class="btn btn--secondary" onclick="savePrompt()">💾 Save</button>
</div>
</div>
</div>
<div class="saved-prompts">
<h3>Your Prompt Library</h3>
<div class="prompt-library" id="prompt-library">
<p class="empty-state">No saved prompts yet. Create and save prompts to build your library!</p>
</div>
</div>
</div>
<div class="lab-content" id="ab-testing">
<h2>A/B Testing Interface</h2>
<p>Compare different prompt variations to find the most effective approach.</p>
<div class="ab-test-setup">
<div class="prompt-variants">
<div class="variant">
<h3>Prompt A</h3>
<textarea class="form-control" placeholder="Enter first prompt variant..." rows="6" id="prompt-a"></textarea>
</div>
<div class="variant">
<h3>Prompt B</h3>
<textarea class="form-control" placeholder="Enter second prompt variant..." rows="6" id="prompt-b"></textarea>
</div>
</div>
<div class="test-inputs">
<h3>Test Cases</h3>
<div class="test-case">
<input type="text" class="form-control" placeholder="Test case 1..." id="test-case-1">
</div>
<div class="test-case">
<input type="text" class="form-control" placeholder="Test case 2..." id="test-case-2">
</div>
<div class="test-case">
<input type="text" class="form-control" placeholder="Test case 3..." id="test-case-3">
</div>
<button class="btn btn--secondary" onclick="addTestCase()">+ Add Test Case</button>
</div>
<button class="btn btn--primary" onclick="runABTest()">Run A/B Test</button>
</div>
<div class="ab-results" id="ab-test-results">
<div class="results-comparison">
<div class="result-column">
<h3>Prompt A Results</h3>
<div class="results-list" id="results-a"></div>
</div>
<div class="result-column">
<h3>Prompt B Results</h3>
<div class="results-list" id="results-b"></div>
</div>
</div>
<div class="performance-metrics">
<h3>Performance Analysis</h3>
<div class="metrics" id="performance-metrics"></div>
</div>
</div>
</div>
<div class="lab-content" id="technique-mixer">
<h2>Technique Combination Lab</h2>
<p>Experiment with combining multiple techniques for maximum effectiveness.</p>
<div class="technique-mixer-interface">
<div class="technique-checkboxes">
<h3>Select Techniques to Combine:</h3>
<div class="checkbox-grid">
<label><input type="checkbox" value="few-shot"> Few-Shot Examples</label>
<label><input type="checkbox" value="chain-thought"> Chain-of-Thought</label>
<label><input type="checkbox" value="role"> Role Assignment</label>
<label><input type="checkbox" value="format"> Output Formatting</label>
<label><input type="checkbox" value="context"> Rich Context</label>
<label><input type="checkbox" value="constraints"> Constraints</label>
</div>
</div>
<div class="base-task">
<h3>Base Task:</h3>
<input type="text" class="form-control" placeholder="Describe the main task..." id="mixer-task">
</div>
<button class="btn btn--primary" onclick="mixTechniques()">Generate Combined Prompt</button>
<div class="mixed-prompt-result">
<h3>Combined Prompt:</h3>
<div class="prompt-output" id="mixed-prompt-output">
Select techniques and define a task to generate a combined prompt...
</div>
</div>
<div class="technique-explanation">
<h3>Why This Combination Works:</h3>
<div class="explanation" id="combination-explanation">
Explanations will appear here based on selected techniques...
</div>
</div>
</div>
</div>
<div class="page-navigation">
<button class="btn btn--outline" onclick="goToPage('module4')">← Previous</button>
<button class="btn btn--primary" onclick="goToPage('module6')">Next Module →</button>
</div>
</div>
<!-- Module 6: Assessment & Quiz -->
<div class="page" id="module6">
<div class="module-header">
<h1>Module 6: Assessment & Quiz</h1>
<div class="module-meta">
<span class="duration">⏱️ 8 minutes</span>
<span class="progress">Progress: 6/6</span>
</div>
</div>
<div class="quiz-intro">
<h2>Knowledge Assessment</h2>
<p>Test your understanding with 18 questions covering all course material. You need 80% to pass.</p>
<div class="quiz-stats">
<div class="stat">📝 <strong>18 Questions</strong></div>
<div class="stat">⏱️ <strong>8 Minutes</strong></div>
<div class="stat">🎯 <strong>80% to Pass</strong></div>
</div>
<button class="btn btn--primary btn--lg" onclick="startQuiz()">Start Assessment</button>
</div>
<div class="quiz-container hidden" id="quiz-container">
<div class="quiz-header">
<div class="question-counter">
<span id="current-question">1</span> of <span id="total-questions">18</span>
</div>
<div class="quiz-progress">
<div class="progress-bar">
<div class="progress-fill" id="quiz-progress"></div>
</div>
</div>
</div>
<div class="question-container">
<h3 class="question-text" id="question-text"></h3>
<div class="answers" id="answer-options"></div>
<div class="question-navigation">
<button class="btn btn--secondary" onclick="previousQuestion()" id="prev-btn" disabled>← Previous</button>
<button class="btn btn--primary" onclick="nextQuestion()" id="next-btn">Next →</button>
</div>
</div>
<div class="question-feedback hidden" id="question-feedback">
<div class="feedback-content">
<div class="feedback-result" id="feedback-result"></div>
<div class="feedback-explanation" id="feedback-explanation"></div>
</div>
</div>
</div>
<div class="quiz-results hidden" id="quiz-results">
<div class="results-header">
<h2>Assessment Complete!</h2>
<div class="final-score">
<div class="score-circle">
<span class="score-number" id="final-score">0</span>
<span class="score-percent">%</span>
</div>
</div>
<div class="pass-status" id="pass-status"></div>
</div>
<div class="results-breakdown">
<h3>Results by Topic</h3>
<div class="topic-scores" id="topic-scores"></div>
</div>
<div class="recommendations">
<h3>Recommendations</h3>
<div class="recommendation-list" id="recommendations"></div>
</div>
<div class="certificate-section" id="certificate-section">
<h3>🏆 Congratulations!</h3>
<p>You've successfully completed the Prompt Engineering Mastery Course!</p>
<button class="btn btn--primary" onclick="generateCertificate()">Generate Certificate</button>
</div>
<div class="quiz-actions">
<button class="btn btn--secondary" onclick="reviewQuiz()">Review Answers</button>
<button class="btn btn--outline" onclick="retakeQuiz()">Retake Quiz</button>
<button class="btn btn--primary" onclick="goToPage('resources')">View Resources →</button>
</div>
</div>
<div class="page-navigation">
<button class="btn btn--outline" onclick="goToPage('module5')">← Previous</button>
<button class="btn btn--primary" onclick="goToPage('resources')">Resources →</button>
</div>
</div>
<!-- Resources & GitHub Setup -->
<div class="page" id="resources">
<div class="module-header">
<h1>Resources & GitHub Pages Setup</h1>
<div class="module-meta">
<span class="duration">📚 Reference Material</span>
<span class="progress">Course Complete!</span>
</div>
</div>
<div class="github-setup">
<h2>🚀 Deploy to GitHub Pages</h2>
<p>Follow these steps to publish your course on GitHub Pages and share it with others:</p>
<div class="setup-steps">
<div class="step">
<div class="step-number">1</div>
<div class="step-content">
<h3>Create Repository</h3>
<p>Create a new repository named <code>your-username.github.io</code> (replace with your GitHub username)</p>
<div class="code-block">
<code>Repository name: your-username.github.io</code>
</div>
</div>
</div>
<div class="step">
<div class="step-number">2</div>
<div class="step-content">
<h3>Upload Files</h3>
<p>Upload these course files to your repository:</p>
<ul>
<li><code>index.html</code> - Main course file</li>
<li><code>style.css</code> - Styling</li>
<li><code>app.js</code> - Interactive functionality</li>
<li><code>README.md</code> - Documentation</li>
</ul>
</div>
</div>
<div class="step">
<div class="step-number">3</div>
<div class="step-content">
<h3>Enable GitHub Pages</h3>
<p>Go to repository Settings → Pages → Select "Deploy from branch" and choose "main"</p>
</div>
</div>
<div class="step">
<div class="step-number">4</div>
<div class="step-content">
<h3>Access Your Site</h3>
<p>Your course will be available at:</p>
<div class="code-block">
<code>https://your-username.github.io</code>
</div>
</div>
</div>
</div>
<div class="file-templates">
<h3>📄 README.md Template</h3>
<div class="code-block">
<pre><code># Prompt Engineering Mastery Course
An interactive 60-minute course covering advanced prompt engineering techniques based on The Prompt Report research.
## Features
- 6 comprehensive modules
- Interactive exercises and quizzes
- Real-world case studies
- Hands-on prompt building labs
## Usage
Open `index.html` in a web browser or visit the live demo at [your-username.github.io]
## Course Content
1. Foundation - Moving beyond basic chat
2. Essential Techniques - Few-shot, Chain-of-thought, Role prompting
3. Advanced Techniques - Zero-shot, Self-consistency, Meta prompting
4. Real-World Applications - Case studies and practical scenarios
5. Interactive Labs - Hands-on prompt building exercises
6. Assessment - Knowledge testing with feedback
## License
MIT License - Feel free to use and modify for educational purposes.</code></pre>
</div>
</div>
</div>
<div class="additional-resources">
<h2>📚 Additional Resources</h2>
<div class="resource-categories">
<div class="resource-category">
<h3>📖 Research Papers</h3>
<ul>
<li><a href="https://arxiv.org/abs/2406.06608" target="_blank">The Prompt Report: A Systematic Survey of Prompting Techniques</a></li>
<li><a href="https://arxiv.org/abs/2201.11903" target="_blank">Chain-of-Thought Prompting Elicits Reasoning</a></li>
<li><a href="https://arxiv.org/abs/2203.11171" target="_blank">Self-Consistency Improves Chain of Thought Reasoning</a></li>
</ul>
</div>
<div class="resource-category">
<h3>🛠️ Tools & Platforms</h3>
<ul>
<li><a href="https://platform.openai.com/playground" target="_blank">OpenAI Playground</a></li>
<li><a href="https://console.anthropic.com" target="_blank">Anthropic Console</a></li>
<li><a href="https://promptbase.com" target="_blank">PromptBase - Prompt Marketplace</a></li>
<li><a href="https://www.promptengineering.org" target="_blank">Prompt Engineering Guide</a></li>
</ul>
</div>
<div class="resource-category">
<h3>🎥 Video Resources</h3>
<ul>
<li><a href="https://www.youtube.com/watch?v=_ZvnD73m40o" target="_blank">Prompt Engineering Fundamentals</a></li>
<li><a href="https://www.youtube.com/watch?v=5GXX9buFMY0" target="_blank">Few-Shot Prompting Techniques</a></li>
<li><a href="https://www.youtube.com/watch?v=yX2OxiHYNGw" target="_blank">Chain-of-Thought Reasoning</a></li>
</ul>
</div>
<div class="resource-category">
<h3>💡 Best Practices</h3>
<ul>
<li>Always provide clear, specific instructions</li>
<li>Use examples when consistency is important</li>
<li>Break complex tasks into steps</li>
<li>Test prompts with multiple inputs</li>
<li>Iterate and refine based on results</li>
<li>Consider the model's context limitations</li>
</ul>
</div>
</div>
</div>
<div class="course-summary">
<h2>🎯 Course Summary</h2>
<div class="summary-stats">
<div class="summary-card">
<h3>Techniques Learned</h3>
<ul>
<li>✅ Few-Shot Prompting</li>
<li>✅ Chain-of-Thought</li>
<li>✅ Role Prompting</li>
<li>✅ Zero-Shot Techniques</li>
<li>✅ Self-Consistency</li>
<li>✅ Meta Prompting</li>
</ul>
</div>