-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
356 lines (339 loc) · 19 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Agents Workshop Explorer</title>
<script src="https://unpkg.com/react@18/umd/react.production.min.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js" crossorigin></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
<style>
.card { transition: all 0.2s ease-in-out; }
.card:hover { transform: translateY(-2px); }
</style>
</head>
<body class="bg-gray-50">
<div id="root"></div>
<script type="text/babel">
const { useState } = React;
const workshopContent = {
"Core AI Agent Architecture": {
icon: "⚙️",
sections: {
"Foundation Components": {
topics: {
"Base Architecture": "Core system design principles and patterns for AI agents",
"Memory Systems": "Short-term and long-term memory management for maintaining agent state",
"State Management": "Handling agent state transitions and persistence",
"Event Handling": "Processing and responding to system and external events"
}
},
"Communication Layer": {
topics: {
"Protocol Design": "Defining communication standards between agents and systems",
"Message Formats": "Structured data formats for agent communication",
"Async Patterns": "Asynchronous communication patterns and event handling",
"Error Handling": "Managing and recovering from communication failures"
}
},
"Decision Engine": {
topics: {
"Reasoning Core": "Central logic for processing and decision making",
"Planning Module": "Strategic planning and task decomposition",
"Execution Engine": "Implementing and monitoring planned actions",
"Feedback Loop": "Learning from outcomes and adjusting behavior"
}
}
}
},
"Strategic Implementation": {
icon: "📚",
sections: {
"Business Alignment": {
topics: {
"Value Proposition": "Defining business value and success metrics",
"ROI Analysis": "Calculating and projecting return on investment",
"Risk Assessment": "Identifying and mitigating potential risks",
"Success Metrics": "KPIs and measurement frameworks"
}
},
"Technical Requirements": {
topics: {
"Infrastructure": "Required systems and resources",
"Security Model": "Security architecture and compliance",
"Scalability": "Handling increased load and complexity",
"Monitoring": "System health and performance tracking"
}
},
"Integration Strategy": {
topics: {
"API Design": "Interface design and documentation",
"Data Flow": "Managing data movement and transformation",
"Service Mesh": "Service discovery and communication",
"Version Control": "Managing code and configuration versions"
}
}
}
},
"Advanced Intelligence": {
icon: "🧠",
sections: {
"Reasoning Frameworks": {
topics: {
"Multi-Agent Teams": "Collaborative agent architectures",
"Hierarchical Control": "Managing agent hierarchies",
"Task Decomposition": "Breaking down complex problems",
"Goal Alignment": "Ensuring consistent objectives"
}
},
"Learning Systems": {
topics: {
"Feedback Processing": "Learning from experience",
"Pattern Recognition": "Identifying recurring patterns",
"Adaptation Rules": "Modifying behavior based on learning",
"Model Updates": "Maintaining and improving models"
}
},
"Cognitive Architecture": {
topics: {
"Context Management": "Understanding and maintaining context",
"Knowledge Graph": "Representing and linking information",
"Inference Engine": "Drawing conclusions from data",
"Decision Trees": "Structured decision making"
}
}
}
},
"Data Engineering": {
icon: "💾",
sections: {
"Data Pipeline": {
topics: {
"Source Integration": "Connecting to data sources",
"ETL Processes": "Data extraction and transformation",
"Quality Control": "Ensuring data accuracy",
"Storage Strategy": "Data persistence and retrieval"
}
},
"RAG Implementation": {
topics: {
"Vector Database": "Storing and querying vectors",
"Embedding Models": "Creating semantic embeddings",
"Query Optimization": "Improving search performance",
"Context Windows": "Managing context scope"
}
},
"Knowledge Management": {
topics: {
"Document Processing": "Handling structured and unstructured data",
"Metadata Handling": "Managing additional context",
"Version Control": "Tracking knowledge changes",
"Access Control": "Managing data access"
}
}
}
},
"Practical Applications": {
icon: "💻",
sections: {
"Use Case Development": {
topics: {
"Problem Analysis": "Understanding business challenges",
"Solution Design": "Developing targeted solutions",
"Implementation Plan": "Planning the deployment",
"Validation Strategy": "Testing and verification"
}
},
"DevOps Integration": {
topics: {
"CI/CD Pipeline": "Continuous integration and deployment",
"Deployment Strategy": "Release management",
"Monitoring Setup": "System and performance monitoring",
"Incident Response": "Managing issues and incidents"
}
},
"Production Readiness": {
topics: {
"Performance Testing": "Load and stress testing",
"Security Audit": "Security verification",
"Documentation": "System and process documentation",
"Training Plan": "Team education and onboarding"
}
}
}
}
};
function Card({ children, className = "", onClick }) {
return (
<div onClick={onClick} className={`bg-white rounded-lg shadow-sm p-4 ${className}`}>
{children}
</div>
);
}
function WorkshopExplorer() {
const [selectedModule, setSelectedModule] = useState(null);
const [selectedSection, setSelectedSection] = useState(null);
const [selectedTopic, setSelectedTopic] = useState(null);
const [expandedSections, setExpandedSections] = useState({});
const toggleSection = (moduleName, sectionName) => {
setExpandedSections(prev => ({
...prev,
[`${moduleName}-${sectionName}`]: !prev[`${moduleName}-${sectionName}`]
}));
};
const handleModuleClick = (moduleName) => {
setSelectedModule(moduleName);
setSelectedSection(null);
setSelectedTopic(null);
};
const handleSectionClick = (moduleName, sectionName) => {
setSelectedModule(moduleName);
setSelectedSection(sectionName);
setSelectedTopic(null);
};
const handleTopicClick = (moduleName, sectionName, topicName) => {
setSelectedModule(moduleName);
setSelectedSection(sectionName);
setSelectedTopic(topicName);
};
return (
<div className="flex min-h-screen p-4">
{/* Navigation Panel */}
<div className="w-1/3 bg-white rounded-lg shadow-lg p-4 mr-4 overflow-y-auto">
<div className="flex items-center mb-4">
<span className="text-2xl mr-2">🏠</span>
<h2 className="text-xl font-bold">Workshop Navigator</h2>
</div>
{Object.entries(workshopContent).map(([moduleName, moduleData]) => (
<div key={moduleName} className="mb-4">
<button
className={`flex items-center w-full p-2 rounded-lg text-left ${
selectedModule === moduleName ? 'bg-gray-100' : ''
}`}
onClick={() => handleModuleClick(moduleName)}
>
<span className="text-xl mr-2">{moduleData.icon}</span>
<span className="font-semibold">{moduleName}</span>
</button>
{Object.entries(moduleData.sections).map(([sectionName, sectionData]) => (
<div key={sectionName} className="ml-6">
<button
className={`flex items-center w-full p-2 text-sm ${
selectedSection === sectionName ? 'bg-gray-50' : ''
}`}
onClick={() => {
toggleSection(moduleName, sectionName);
handleSectionClick(moduleName, sectionName);
}}
>
<span className="mr-1">
{expandedSections[`${moduleName}-${sectionName}`] ? '▼' : '▶'}
</span>
{sectionName}
</button>
{expandedSections[`${moduleName}-${sectionName}`] && (
<div className="ml-4">
{Object.keys(sectionData.topics).map((topicName) => (
<button
key={topicName}
className={`w-full p-2 text-sm text-left ${
selectedTopic === topicName ? 'text-blue-600 font-medium' : 'text-gray-600'
}`}
onClick={() => handleTopicClick(moduleName, sectionName, topicName)}
>
{topicName}
</button>
))}
</div>
)}
</div>
))}
</div>
))}
</div>
{/* Content Display */}
<div className="w-2/3">
<div className="bg-white rounded-lg shadow-lg h-full">
<div className="p-4 border-b">
{selectedModule && (
<>
<div className="text-2xl font-bold flex items-center">
<span className="mr-2">{workshopContent[selectedModule].icon}</span>
<span>{selectedModule}</span>
</div>
{selectedSection && (
<div className="text-lg text-gray-600 mt-2">
{selectedSection}
{selectedTopic && ` › ${selectedTopic}`}
</div>
)}
</>
)}
</div>
<div className="p-4">
{!selectedModule && (
<div className="text-center p-8">
<h3 className="text-xl font-semibold mb-4">
Welcome to the AI Agents Workshop Explorer
</h3>
<p className="text-gray-600">
Select a module from the navigation panel to begin exploring the content.
</p>
</div>
)}
{selectedModule && !selectedSection && (
<div>
<h3 className="text-lg font-semibold mb-4">Module Overview</h3>
<div className="grid grid-cols-2 gap-4">
{Object.entries(workshopContent[selectedModule].sections).map(([sectionName, sectionData]) => (
<Card
key={sectionName}
className="cursor-pointer hover:shadow-md"
onClick={() => handleSectionClick(selectedModule, sectionName)}
>
<h4 className="font-medium mb-2">{sectionName}</h4>
<p className="text-sm text-gray-600">
{`${Object.keys(sectionData.topics).length} topics`}
</p>
</Card>
))}
</div>
</div>
)}
{selectedModule && selectedSection && !selectedTopic && (
<div>
<h3 className="text-lg font-semibold mb-4">Section Topics</h3>
<div className="grid grid-cols-2 gap-4">
{Object.entries(workshopContent[selectedModule].sections[selectedSection].topics)
.map(([topicName, description]) => (
<Card
key={topicName}
className="cursor-pointer hover:shadow-md"
onClick={() => handleTopicClick(selectedModule, selectedSection, topicName)}
>
<h4 className="font-medium mb-2">{topicName}</h4>
<p className="text-sm text-gray-600">{description}</p>
</Card>
))}
</div>
</div>
)}
{selectedTopic && (
<div className="p-4">
<h3 className="text-lg font-semibold mb-4">{selectedTopic}</h3>
<p className="text-gray-700">
{workshopContent[selectedModule].sections[selectedSection].topics[selectedTopic]}
</p>
</div>
)}
</div>
</div>
</div>
</div>
);
}
ReactDOM.render(<WorkshopExplorer />, document.getElementById('root'));
</script>
</body>
</html>