File size: 18,836 Bytes
0e09093
077a09e
 
 
 
2122af1
 
 
077a09e
 
2122af1
 
 
077a09e
 
2122af1
 
 
077a09e
 
2122af1
 
 
077a09e
 
 
 
2122af1
 
 
077a09e
 
2122af1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
077a09e
 
2122af1
 
 
077a09e
 
2122af1
 
 
 
 
 
 
 
077a09e
2122af1
 
 
077a09e
 
2122af1
 
 
077a09e
 
 
 
 
 
 
 
2122af1
 
 
077a09e
 
2122af1
 
 
077a09e
 
2122af1
 
 
077a09e
 
2122af1
 
 
077a09e
 
2122af1
 
 
077a09e
 
 
 
 
 
2122af1
 
 
077a09e
 
2122af1
 
 
077a09e
 
2122af1
 
0e09093
077a09e
2122af1
 
 
077a09e
 
2122af1
 
 
 
 
 
 
 
077a09e
2122af1
 
 
077a09e
 
2122af1
 
 
077a09e
 
 
 
 
 
 
 
 
0e09093
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
07f434a
 
 
ff8dbaa
07f434a
 
ff8dbaa
 
 
 
 
 
 
07f434a
 
 
ff8dbaa
 
07f434a
 
 
ff8dbaa
 
07f434a
 
 
ff8dbaa
 
07f434a
 
 
ff8dbaa
 
07f434a
 
 
ff8dbaa
 
07f434a
 
 
ff8dbaa
 
 
 
 
 
 
 
 
 
 
 
07f434a
 
 
 
ff8dbaa
 
 
 
 
 
 
 
 
 
 
07f434a
 
 
 
 
 
 
ff8dbaa
07f434a
 
62d0de1
 
07f434a
702fcb4
 
 
 
 
62d0de1
 
 
702fcb4
62d0de1
 
 
702fcb4
62d0de1
 
 
702fcb4
62d0de1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
702fcb4
 
 
 
 
 
 
 
 
62d0de1
 
702fcb4
 
62d0de1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
702fcb4
62d0de1
 
 
702fcb4
62d0de1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
702fcb4
 
 
 
 
 
 
 
 
62d0de1
 
702fcb4
 
62d0de1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
702fcb4
62d0de1
 
 
702fcb4
62d0de1
 
 
 
 
 
702fcb4
 
 
 
 
 
 
 
07f434a
 
 
 
 
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
CONCEPT_MAP_JSON = """
{
  "central_node": "Artificial Intelligence (AI)",
  "nodes": [
    {
      "id": "ml_fundamental",
      "label": "Machine Learning",
      "relationship": "is essential for",
      "subnodes": [
        {
          "id": "dl_branch",
          "label": "Deep Learning",
          "relationship": "for example",
          "subnodes": [
            {
              "id": "cnn_example",
              "label": "CNNs",
              "relationship": "for example"
            },
            {
              "id": "rnn_example",
              "label": "RNNs",
              "relationship": "for example"
            }
          ]
        },
        {
          "id": "rl_branch",
          "label": "Reinforcement Learning",
          "relationship": "for example",
          "subnodes": [
            {
              "id": "qlearning_example",
              "label": "Q-Learning",
              "relationship": "example"
            },
            {
              "id": "pg_example",
              "label": "Policy Gradients",
              "relationship": "example"
            }
          ]
        }
      ]
    },
    {
      "id": "ai_types",
      "label": "Types",
      "relationship": "formed by",
      "subnodes": [
        {
          "id": "agi_type",
          "label": "AGI",
          "relationship": "this is",
          "subnodes": [
            {
              "id": "strong_ai",
              "label": "Strong AI",
              "relationship": "provoked by",
              "subnodes": [
                {
                  "id": "human_intel",
                  "label": "Human-level Intel.",
                  "relationship": "of"
                }
              ]
            }
          ]
        },
        {
          "id": "ani_type",
          "label": "ANI",
          "relationship": "this is",
          "subnodes": [
            {
              "id": "weak_ai",
              "label": "Weak AI",
              "relationship": "provoked by",
              "subnodes": [
                {
                  "id": "narrow_tasks",
                  "label": "Narrow Tasks",
                  "relationship": "of"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "id": "ai_capabilities",
      "label": "Capabilities",
      "relationship": "change",
      "subnodes": [
        {
          "id": "data_proc",
          "label": "Data Processing",
          "relationship": "can",
          "subnodes": [
            {
              "id": "big_data",
              "label": "Big Data",
              "relationship": "as",
              "subnodes": [
                {
                  "id": "analysis_example",
                  "label": "Data Analysis",
                  "relationship": "example"
                },
                {
                  "id": "prediction_example",
                  "label": "Prediction",
                  "relationship": "example"
                }
              ]
            }
          ]
        },
        {
          "id": "decision_making",
          "label": "Decision Making",
          "relationship": "can be",
          "subnodes": [
            {
              "id": "automation",
              "label": "Automation",
              "relationship": "as",
              "subnodes": [
                {
                  "id": "robotics_example",
                  "label": "Robotics",
                  "relationship": "Example"},
                {
                  "id": "autonomous_example",
                  "label": "Autonomous Vehicles",
                  "relationship": "of one"
                }
              ]
            }
          ]
        },
        {
          "id": "problem_solving",
          "label": "Problem Solving",
          "relationship": "can",
          "subnodes": [
            {
              "id": "optimization",
              "label": "Optimization",
              "relationship": "as is",
              "subnodes": [
                {
                  "id": "algorithms_example",
                  "label": "Algorithms",
                  "relationship": "for example"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
"""

# JSON for Synoptic Chart (horizontal hierarchy) - AI related, 4 levels
SYNOPTIC_CHART_JSON = """
{
  "central_node": "AI Project Lifecycle",
  "nodes": [
    {
      "id": "phase1",
      "label": "I. Problem Definition & Data Acquisition",
      "relationship": "Starts with",
      "subnodes": [
        {
          "id": "sub1_1",
          "label": "1. Problem Formulation",
          "relationship": "Involves",
          "subnodes": [
            {"id": "sub1_1_1", "label": "1.1. Identify Business Need", "relationship": "e.g."},
            {"id": "sub1_1_2", "label": "1.2. Define KPIs", "relationship": "e.g."}
          ]
        },
        {
          "id": "sub1_2",
          "label": "2. Data Collection",
          "relationship": "Followed by",
          "subnodes": [
            {"id": "sub1_2_1", "label": "2.1. Source Data", "relationship": "from"},
            {"id": "sub1_2_2", "label": "2.2. Data Cleaning", "relationship": "includes"}
          ]
        }
      ]
    },
    {
      "id": "phase2",
      "label": "II. Model Development",
      "relationship": "Proceeds to",
      "subnodes": [
        {
          "id": "sub2_1",
          "label": "1. Feature Engineering",
          "relationship": "Comprises",
          "subnodes": [
            {"id": "sub2_1_1", "label": "1.1. Feature Selection", "relationship": "e.g."},
            {"id": "sub2_1_2", "label": "1.2. Feature Transformation", "relationship": "e.g."}
          ]
        },
        {
          "id": "sub2_2",
          "label": "2. Model Training",
          "relationship": "Involves",
          "subnodes": [
            {"id": "sub2_2_1", "label": "2.1. Algorithm Selection", "relationship": "uses"},
            {"id": "sub2_2_2", "label": "2.2. Hyperparameter Tuning", "relationship": "optimizes"}
          ]
        }
      ]
    },
    {
      "id": "phase3",
      "label": "III. Evaluation & Deployment",
      "relationship": "Culminates in",
      "subnodes": [
        {
          "id": "sub3_1",
          "label": "1. Model Evaluation",
          "relationship": "Includes",
          "subnodes": [
            {"id": "sub3_1_1", "label": "1.1. Performance Metrics", "relationship": "measures"},
            {"id": "sub3_1_2", "label": "1.2. Bias & Fairness Audits", "relationship": "ensures"}
          ]
        },
        {
          "id": "sub3_2",
          "label": "2. Deployment & Monitoring",
          "relationship": "Requires",
          "subnodes": [
            {"id": "sub3_2_1", "label": "2.1. API/Integration Development", "relationship": "for"},
            {"id": "sub3_2_2", "label": "2.2. Continuous Monitoring", "relationship": "ensures"}
          ]
        }
      ]
    }
  ]
}
"""

# JSON for Radial Diagram (central expansion) - AI related, 3 levels with 5->10 structure
RADIAL_DIAGRAM_JSON = """
{
  "central_node": "AI Core Concepts & Domains",
  "nodes": [
    {
      "id": "foundational_ml",
      "label": "Foundational ML",
      "relationship": "builds on",
      "subnodes": [
        {"id": "supervised_l", "label": "Supervised Learning", "relationship": "e.g."},
        {"id": "unsupervised_l", "label": "Unsupervised Learning", "relationship": "e.g."}
      ]
    },
    {
      "id": "dl_architectures",
      "label": "Deep Learning Arch.",
      "relationship": "evolved from",
      "subnodes": [
        {"id": "cnns_rad", "label": "CNNs", "relationship": "e.g."},
        {"id": "rnns_rad", "label": "RNNs", "relationship": "e.g."}
      ]
    },
    {
      "id": "major_applications",
      "label": "Major AI Applications",
      "relationship": "applied in",
      "subnodes": [
        {"id": "nlp_rad", "label": "Natural Language Processing", "relationship": "e.g."},
        {"id": "cv_rad", "label": "Computer Vision", "relationship": "e.g."}
      ]
    },
    {
      "id": "ethical_concerns",
      "label": "Ethical AI Concerns",
      "relationship": "addresses",
      "subnodes": [
        {"id": "fairness_rad", "label": "Fairness & Bias", "relationship": "e.g."},
        {"id": "explainability", "label": "Explainability (XAI)", "relationship": "e.g."}
      ]
    },
    {
      "id": "future_trends",
      "label": "Future AI Trends",
      "relationship": "looking at",
      "subnodes": [
        {"id": "agi_future", "label": "AGI Development", "relationship": "e.g."},
        {"id": "quantum_ai", "label": "Quantum AI", "relationship": "e.g."}
      ]
    }
  ]
}
"""

PROCESS_FLOW_JSON = """
{
  "start_node": "Start Inference Request",
  "nodes": [
    {
      "id": "user_input",
      "label": "Receive User Input (Data)",
      "type": "io"
    },
    {
      "id": "preprocess_data",
      "label": "Preprocess Data",
      "type": "process"
    },
    {
      "id": "validate_data",
      "label": "Validate Data Format/Type",
      "type": "decision"
    },
    {
      "id": "data_valid_yes",
      "label": "Data Valid?",
      "type": "decision"
    },
    {
      "id": "load_model",
      "label": "Load AI Model (if not cached)",
      "type": "process"
    },
    {
      "id": "run_inference",
      "label": "Run AI Model Inference",
      "type": "process"
    },
    {
      "id": "postprocess_output",
      "label": "Postprocess Model Output",
      "type": "process"
    },
    {
      "id": "send_response",
      "label": "Send Response to User",
      "type": "io"
    },
    {
      "id": "log_error",
      "label": "Log Error & Notify User",
      "type": "process"
    },
    {
      "id": "end_inference_process",
      "label": "End Inference Process",
      "type": "end"
    }
  ],
  "connections": [
    {"from": "start_node", "to": "user_input", "label": "Request"},
    {"from": "user_input", "to": "preprocess_data", "label": "Data Received"},
    {"from": "preprocess_data", "to": "validate_data", "label": "Cleaned"},
    {"from": "validate_data", "to": "data_valid_yes", "label": "Check"},
    {"from": "data_valid_yes", "to": "load_model", "label": "Yes"},
    {"from": "data_valid_yes", "to": "log_error", "label": "No"},
    {"from": "load_model", "to": "run_inference", "label": "Model Ready"},
    {"from": "run_inference", "to": "postprocess_output", "label": "Output Generated"},
    {"from": "postprocess_output", "to": "send_response", "label": "Ready"},
    {"from": "send_response", "to": "end_inference_process", "label": "Response Sent"},
    {"from": "log_error", "to": "end_inference_process", "label": "Error Handled"}
  ]
}
"""

# New JSON for Work Breakdown Structure (WBS) Diagram - similar to image, but not identical
WBS_DIAGRAM_JSON = """
{
  "project_title": "AI Model Deployment Project",
  "phases": [
    {
      "id": "phase_1_initiation",
      "label": "1. Project Initiation",
      "tasks": [
        {
          "id": "task_1_1_goal_scope",
          "label": "1.1. Define Goal & Scope",
          "subtasks": [
            {
              "id": "subtask_1_1_1_problem_def",
              "label": "1.1.1. Problem Definition",
              "sub_subtasks": [
                {
                  "id": "ss_task_1_1_1_1_req_analysis",
                  "label": "1.1.1.1. Requirements Analysis",
                  "sub_sub_subtasks": [
                    {
                      "id": "sss_task_1_1_1_1_1_user_stories",
                      "label": "1.1.1.1.1. User Stories",
                      "final_level_tasks": [
                        {"id": "ft_1_1_1_1_1_1_interview_users", "label": "1.1.1.1.1.1. Interview Users"},
                        {"id": "ft_1_1_1_1_1_2_document_needs", "label": "1.1.1.1.1.2. Document Needs"},
                        {"id": "ft_1_1_1_1_1_3_validate_scope", "label": "1.1.1.1.1.3. Validate Scope"}
                      ]
                    }
                  ]
                },
                {
                  "id": "ss_task_1_1_1_2_data_id",
                  "label": "1.1.1.2. Data Identification",
                  "sub_sub_subtasks": [
                    {
                      "id": "sss_task_1_1_1_2_1_source_mapping",
                      "label": "1.1.1.2.1. Source Mapping",
                      "final_level_tasks": [
                        {"id": "ft_1_1_1_2_1_1_list_databases", "label": "1.1.1.2.1.1. List Databases"},
                        {"id": "ft_1_1_1_2_1_2_api_integration", "label": "1.1.1.2.1.2. API Integration"},
                        {"id": "ft_1_1_1_2_1_3_external_feeds", "label": "1.1.1.2.1.3. External Feeds"}
                      ]
                    }
                  ]
                },
                {
                  "id": "ss_task_1_1_1_3_ml_approach",
                  "label": "1.1.1.3. ML Approach Selection",
                  "sub_sub_subtasks": [
                    {
                      "id": "sss_task_1_1_1_3_1_algo_research",
                      "label": "1.1.1.3.1. Algorithm Research",
                      "final_level_tasks": [
                        {"id": "ft_1_1_1_3_1_1_supervised_review", "label": "1.1.1.3.1.1. Supervised Review"},
                        {"id": "ft_1_1_1_3_1_2_unsupervised_review", "label": "1.1.1.3.1.2. Unsupervised Review"},
                        {"id": "ft_1_1_1_3_1_3_rl_consideration", "label": "1.1.1.3.1.3. RL Consideration"}
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "id": "task_1_2_resource_plan",
          "label": "1.2. Resource Planning",
          "subtasks": [
            {
              "id": "subtask_1_2_1_team_assembly",
              "label": "1.2.1. Team Assembly",
              "sub_subtasks": [
                {
                  "id": "ss_task_1_2_1_1_data_scientists",
                  "label": "1.2.1.1. Data Scientists",
                  "sub_sub_subtasks": [
                    {
                      "id": "sss_task_1_2_1_1_1_identify_leads",
                      "label": "1.2.1.1.1. Identify Leads",
                      "final_level_tasks": [
                        {"id": "ft_1_2_1_1_1_1_hire_ml_engineers", "label": "1.2.1.1.1.1. Hire ML Engineers"},
                        {"id": "ft_1_2_1_1_1_2_allocate_researchers", "label": "1.2.1.1.1.2. Allocate Researchers"},
                        {"id": "ft_1_2_1_1_1_3_assign_roles", "label": "1.2.1.1.1.3. Assign Roles"}
                      ]
                    }
                  ]
                },
                {
                  "id": "ss_task_1_2_1_2_engineers",
                  "label": "1.2.1.2. Software Engineers",
                  "sub_sub_subtasks": [
                    {
                      "id": "sss_task_1_2_1_2_1_backend_devs",
                      "label": "1.2.1.2.1. Backend Devs",
                      "final_level_tasks": [
                        {"id": "ft_1_2_1_2_1_1_recruit_py", "label": "1.2.1.2.1.1. Recruit Python"},
                        {"id": "ft_1_2_1_2_1_2_recruit_java", "label": "1.2.1.2.1.2. Recruit Java"},
                        {"id": "ft_1_2_1_2_1_3_onboard_team", "label": "1.2.1.2.1.3. Onboard Team"}
                      ]
                    }
                  ]
                },
                {
                  "id": "ss_task_1_2_1_3_domain_experts",
                  "label": "1.2.1.3. Domain Experts",
                  "sub_sub_subtasks": [
                    {
                      "id": "sss_task_1_2_1_3_1_consultants",
                      "label": "1.2.1.3.1. Consultants",
                      "final_level_tasks": [
                        {"id": "ft_1_2_1_3_1_1_engage_smes", "label": "1.2.1.3.1.1. Engage SMEs"},
                        {"id": "ft_1_2_1_3_1_2_define_ksas", "label": "1.2.1.3.1.2. Define KSAs"},
                        {"id": "ft_1_2_1_3_1_3_establish_collab", "label": "1.2.1.3.1.3. Establish Collab."}
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "id": "task_1_3_budget_timeline",
          "label": "1.3. Budget & Timeline",
          "subtasks": [
            {
              "id": "subtask_1_3_1_cost_estim",
              "label": "1.3.1. Cost Estimation",
              "sub_subtasks": [
                {
                  "id": "ss_task_1_3_1_1_hardware_costs",
                  "label": "1.3.1.1. Hardware Costs",
                  "sub_sub_subtasks": [
                    {
                      "id": "sss_task_1_3_1_1_1_gpu_procurement",
                      "label": "1.3.1.1.1. GPU Procurement",
                      "final_level_tasks": [
                        {"id": "ft_1_3_1_1_1_1_server_purchase", "label": "1.3.1.1.1.1. Server Purchase"},
                        {"id": "ft_1_3_1_1_1_2_cloud_compute", "label": "1.3.1.1.1.2. Cloud Compute"},
                        {"id": "ft_1_3_1_1_1_3_network_equip", "label": "1.3.1.1.1.3. Network Equip."}
                      ]
                    }
                  ]
                },
                {
                  "id": "ss_task_1_3_1_2_software_costs",
                  "label": "1.3.1.2. Software Costs",
                  "sub_sub_subtasks": [
                    {
                      "id": "sss_task_1_3_1_2_1_licensing",
                      "label": "1.3.1.2.1. Licensing",
                      "final_level_tasks": [
                        {"id": "ft_1_3_1_2_1_1_os_licenses", "label": "1.3.1.2.1.1. OS Licenses"},
                        {"id": "ft_1_3_1_2_1_2_tool_subscriptions", "label": "1.3.1.2.1.2. Tool Subscriptions"},
                        {"id": "ft_1_3_1_2_1_3_framework_fees", "label": "1.3.1.2.1.3. Framework Fees"}
                      ]
                    }
                  ]
                },
                {
                  "id": "ss_task_1_3_1_3_personnel_costs",
                  "label": "1.3.1.3. Personnel Costs",
                  "sub_sub_subtasks": [
                    {
                      "id": "sss_task_1_3_1_3_1_salaries",
                      "label": "1.3.1.3.1. Salaries",
                      "final_level_tasks": [
                        {"id": "ft_1_3_1_3_1_1_engineer_salaries", "label": "1.3.1.3.1.1. Engineer Salaries"},
                        {"id": "ft_1_3_1_3_1_2_consultant_fees", "label": "1.3.1.3.1.2. Consultant Fees"},
                        {"id": "ft_1_3_1_3_1_3_training_budget", "label": "1.3.1.3.1.3. Training Budget"}
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
"""