-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPrompt Engineering Timeline Explorer.html
More file actions
295 lines (276 loc) · 11.6 KB
/
Copy pathPrompt Engineering Timeline Explorer.html
File metadata and controls
295 lines (276 loc) · 11.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Prompt Engineering Timeline Explorer</title>
<link href="https://unpkg.com/nes.css@latest/css/nes.min.css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Press Start 2P', cursive;
background-color: #202020;
color: #ffffff;
padding: 20px;
}
.container {
max-width: 800px;
margin: 0 auto;
}
.timeline {
position: relative;
padding: 20px 0;
}
.timeline::before {
content: '';
position: absolute;
top: 0;
left: 50%;
width: 2px;
height: 100%;
background: #61dafb;
}
.event {
padding: 20px;
background-color: #444;
border-radius: 5px;
margin-bottom: 20px;
position: relative;
width: 45%;
cursor: pointer;
transition: transform 0.3s ease;
}
.event:hover {
transform: scale(1.05);
}
.event::after {
content: '';
position: absolute;
top: 20px;
right: -15px;
width: 0;
height: 0;
border-top: 15px solid transparent;
border-bottom: 15px solid transparent;
border-left: 15px solid #444;
}
.event:nth-child(even) {
margin-left: 55%;
}
.event:nth-child(even)::after {
left: -15px;
border-left: none;
border-right: 15px solid #444;
}
.event-date {
font-weight: bold;
color: #61dafb;
margin-bottom: 10px;
}
.event-title {
font-size: 1.2em;
margin-bottom: 10px;
}
.event-description {
font-size: 0.9em;
display: none;
}
.milestone {
background-color: #61dafb;
color: #000;
}
.milestone::after {
border-left-color: #61dafb;
}
.milestone:nth-child(even)::after {
border-right-color: #61dafb;
}
#future-directions {
margin-top: 40px;
padding: 20px;
background-color: #333;
border-radius: 5px;
}
#add-event-form {
margin-top: 20px;
display: none;
}
.nes-btn {
margin: 5px;
}
#modal {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.4);
}
.modal-content {
background-color: #333;
margin: 15% auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
max-width: 600px;
}
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: #fff;
text-decoration: none;
cursor: pointer;
}
</style>
</head>
<body>
<div class="container nes-container is-dark">
<h1 class="nes-text is-primary">Prompt Engineering Timeline Explorer</h1>
<p>Welcome to the interactive timeline of Prompt Engineering! Explore the key events and milestones that shaped this fascinating field.</p>
<div class="timeline" id="timeline"></div>
<div id="future-directions">
<h2 class="nes-text is-success">Future Directions</h2>
<ul class="nes-list is-circle">
<li>Continued exploration of complex prompting techniques</li>
<li>Addressing challenges in model fairness and bias mitigation</li>
<li>Enhancing interpretability and reliability of large language models</li>
<li>Leveraging increasing capabilities to solve complex real-world problems</li>
</ul>
</div>
<div class="nes-container with-title is-centered">
<p class="title">Explore Further</p>
<button type="button" class="nes-btn is-primary" onclick="exploreEvent()">Random Event</button>
<button type="button" class="nes-btn is-success" onclick="predictFuture()">Predict Future</button>
<button type="button" class="nes-btn is-warning" onclick="toggleAddEventForm()">Add Event</button>
</div>
<div id="add-event-form">
<h3 class="nes-text is-primary">Add New Event</h3>
<div class="nes-field">
<label for="event-date">Date:</label>
<input type="text" id="event-date" class="nes-input" required>
</div>
<div class="nes-field">
<label for="event-title">Title:</label>
<input type="text" id="event-title" class="nes-input" required>
</div>
<div class="nes-field">
<label for="event-description">Description:</label>
<textarea id="event-description" class="nes-textarea" required></textarea>
</div>
<div class="nes-field">
<label>
<input type="checkbox" class="nes-checkbox" id="event-milestone">
<span>Milestone Event</span>
</label>
</div>
<button type="button" class="nes-btn is-primary" onclick="addNewEvent()">Add Event</button>
</div>
</div>
<div id="modal">
<div class="modal-content">
<span class="close">×</span>
<h2 id="modal-title" class="nes-text is-primary"></h2>
<p id="modal-date" class="nes-text is-success"></p>
<p id="modal-description"></p>
</div>
</div>
<script>
let events = [
{ date: "June 2017", title: "The Transformer Era Begins", description: "The Transformer architecture is introduced, revolutionizing NLP with its self-attention mechanism.", milestone: false },
{ date: "October 2018", title: "BERT Released", description: "Google releases BERT, significantly improving NLP tasks through bidirectional training.", milestone: false },
{ date: "June 2020", title: "GPT-3 Released", description: "OpenAI releases GPT-3, demonstrating remarkable zero-shot and few-shot learning capabilities.", milestone: true },
{ date: "2021", title: "Emergent Abilities Discovered", description: "Research highlights the emergent abilities of large language models, such as in-context learning.", milestone: false },
{ date: "2022", title: "Refining Prompt Engineering", description: "Techniques like Chain-of-Thought (CoT) and Chain-of-Symbol (CoS) prompting are developed.", milestone: false },
{ date: "2023", title: "Advanced Techniques Emerge", description: "Innovations in agentic engineering introduce methods like Tree of Thoughts (ToT) for deliberate problem-solving.", milestone: false },
{ date: "March 2024", title: "GPT-4 Released", description: "OpenAI releases GPT-4, accelerating advancements in prompt engineering with improved reasoning capabilities.", milestone: true }
];
function renderTimeline() {
const timeline = document.getElementById('timeline');
timeline.innerHTML = '';
events.sort((a, b) => new Date(a.date) - new Date(b.date));
events.forEach((event, index) => {
const eventElement = document.createElement('div');
eventElement.className = `event ${event.milestone ? 'milestone' : ''}`;
eventElement.innerHTML = `
<div class="event-date">${event.date}</div>
<div class="event-title">${event.title}</div>
<div class="event-description">${event.description}</div>
`;
eventElement.onclick = () => showEventDetails(index);
timeline.appendChild(eventElement);
});
}
function exploreEvent() {
const randomEvent = events[Math.floor(Math.random() * events.length)];
showModal(randomEvent.title, randomEvent.date, randomEvent.description);
}
function predictFuture() {
const predictions = [
"AI assistants become indistinguishable from human experts in specialized domains.",
"Prompt engineering evolves into a new field of 'AI Collaboration Design'.",
"Self-improving AI models create their own prompts and fine-tuning processes.",
"Ethical considerations lead to strict regulations on AI prompt engineering practices.",
"Breakthrough in quantum computing revolutionizes language model capabilities."
];
const randomPrediction = predictions[Math.floor(Math.random() * predictions.length)];
showModal("Future Prediction", "Unknown Date", randomPrediction);
}
function toggleAddEventForm() {
const form = document.getElementById('add-event-form');
form.style.display = form.style.display === 'none' ? 'block' : 'none';
}
function addNewEvent() {
const date = document.getElementById('event-date').value;
const title = document.getElementById('event-title').value;
const description = document.getElementById('event-description').value;
const milestone = document.getElementById('event-milestone').checked;
if (date && title && description) {
events.push({ date, title, description, milestone });
renderTimeline();
toggleAddEventForm();
document.getElementById('event-date').value = '';
document.getElementById('event-title').value = '';
document.getElementById('event-description').value = '';
document.getElementById('event-milestone').checked = false;
} else {
alert('Please fill in all fields');
}
}
function showEventDetails(index) {
const event = events[index];
showModal(event.title, event.date, event.description);
}
function showModal(title, date, description) {
const modal = document.getElementById('modal');
const modalTitle = document.getElementById('modal-title');
const modalDate = document.getElementById('modal-date');
const modalDescription = document.getElementById('modal-description');
modalTitle.textContent = title;
modalDate.textContent = date;
modalDescription.textContent = description;
modal.style.display = 'block';
}
// Close modal when clicking on <span> (x)
document.getElementsByClassName('close')[0].onclick = function() {
document.getElementById('modal').style.display = 'none';
}
// Close modal when clicking outside of it
window.onclick = function(event) {
const modal = document.getElementById('modal');
if (event.target == modal) {
modal.style.display = 'none';
}
}
// Initial render
renderTimeline();
</script>
</body>
</html>