Update sample_data.py
Browse files- sample_data.py +65 -51
sample_data.py
CHANGED
|
@@ -305,53 +305,71 @@ RADIAL_DIAGRAM_JSON = """
|
|
| 305 |
|
| 306 |
PROCESS_FLOW_JSON = """
|
| 307 |
{
|
| 308 |
-
"start_node": "Start
|
| 309 |
"nodes": [
|
| 310 |
{
|
| 311 |
-
"id": "
|
| 312 |
-
"label": "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 313 |
"type": "process"
|
| 314 |
},
|
| 315 |
{
|
| 316 |
-
"id": "
|
| 317 |
-
"label": "
|
| 318 |
"type": "decision"
|
| 319 |
},
|
| 320 |
{
|
| 321 |
-
"id": "
|
| 322 |
-
"label": "
|
| 323 |
"type": "decision"
|
| 324 |
},
|
| 325 |
{
|
| 326 |
-
"id": "
|
| 327 |
-
"label": "
|
| 328 |
"type": "process"
|
| 329 |
},
|
| 330 |
{
|
| 331 |
-
"id": "
|
| 332 |
-
"label": "
|
| 333 |
"type": "process"
|
| 334 |
},
|
| 335 |
{
|
| 336 |
-
"id": "
|
| 337 |
-
"label": "
|
| 338 |
"type": "process"
|
| 339 |
},
|
| 340 |
{
|
| 341 |
-
"id": "
|
| 342 |
-
"label": "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 343 |
"type": "end"
|
| 344 |
}
|
| 345 |
],
|
| 346 |
"connections": [
|
| 347 |
-
{"from": "start_node", "to": "
|
| 348 |
-
{"from": "
|
| 349 |
-
{"from": "
|
| 350 |
-
{"from": "
|
| 351 |
-
{"from": "
|
| 352 |
-
{"from": "
|
| 353 |
-
{"from": "
|
| 354 |
-
{"from": "
|
|
|
|
|
|
|
|
|
|
| 355 |
]
|
| 356 |
}
|
| 357 |
"""
|
|
@@ -359,46 +377,42 @@ PROCESS_FLOW_JSON = """
|
|
| 359 |
# New JSON for Work Breakdown Structure (WBS) Diagram - similar to image, but not identical
|
| 360 |
WBS_DIAGRAM_JSON = """
|
| 361 |
{
|
| 362 |
-
"project_title": "
|
| 363 |
"phases": [
|
| 364 |
{
|
| 365 |
-
"id": "
|
| 366 |
-
"label": "1.
|
| 367 |
"tasks": [
|
| 368 |
-
{"id": "
|
| 369 |
-
{"id": "
|
| 370 |
-
{"id": "
|
|
|
|
|
|
|
|
|
|
| 371 |
]
|
| 372 |
},
|
| 373 |
{
|
| 374 |
"id": "phase_2_planning",
|
| 375 |
-
"label": "2. Planning
|
| 376 |
-
"tasks": [
|
| 377 |
-
{"id": "task_2_1_req", "label": "2.1. Gather Requirements"},
|
| 378 |
-
{"id": "task_2_2_design", "label": "2.2. Design UI/UX"},
|
| 379 |
-
{"id": "task_2_3_tech_stack", "label": "2.3. Select Tech Stack"},
|
| 380 |
-
{"id": "task_2_4_sitemap", "label": "2.4. Create Sitemap"},
|
| 381 |
-
{"id": "task_2_5_content_plan", "label": "2.5. Plan Content Strategy"}
|
| 382 |
-
]
|
| 383 |
-
},
|
| 384 |
-
{
|
| 385 |
-
"id": "phase_3_execution",
|
| 386 |
-
"label": "3. Execution Phase",
|
| 387 |
"tasks": [
|
| 388 |
-
{"id": "
|
| 389 |
-
{"id": "
|
| 390 |
-
{"id": "
|
| 391 |
-
{"id": "
|
| 392 |
-
{"id": "
|
|
|
|
| 393 |
]
|
| 394 |
},
|
| 395 |
{
|
| 396 |
-
"id": "
|
| 397 |
-
"label": "
|
| 398 |
"tasks": [
|
| 399 |
-
{"id": "
|
| 400 |
-
{"id": "
|
| 401 |
-
{"id": "
|
|
|
|
|
|
|
|
|
|
| 402 |
]
|
| 403 |
}
|
| 404 |
]
|
|
|
|
| 305 |
|
| 306 |
PROCESS_FLOW_JSON = """
|
| 307 |
{
|
| 308 |
+
"start_node": "Start Inference Request",
|
| 309 |
"nodes": [
|
| 310 |
{
|
| 311 |
+
"id": "user_input",
|
| 312 |
+
"label": "Receive User Input (Data)",
|
| 313 |
+
"type": "io"
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"id": "preprocess_data",
|
| 317 |
+
"label": "Preprocess Data",
|
| 318 |
"type": "process"
|
| 319 |
},
|
| 320 |
{
|
| 321 |
+
"id": "validate_data",
|
| 322 |
+
"label": "Validate Data Format/Type",
|
| 323 |
"type": "decision"
|
| 324 |
},
|
| 325 |
{
|
| 326 |
+
"id": "data_valid_yes",
|
| 327 |
+
"label": "Data Valid?",
|
| 328 |
"type": "decision"
|
| 329 |
},
|
| 330 |
{
|
| 331 |
+
"id": "load_model",
|
| 332 |
+
"label": "Load AI Model (if not cached)",
|
| 333 |
"type": "process"
|
| 334 |
},
|
| 335 |
{
|
| 336 |
+
"id": "run_inference",
|
| 337 |
+
"label": "Run AI Model Inference",
|
| 338 |
"type": "process"
|
| 339 |
},
|
| 340 |
{
|
| 341 |
+
"id": "postprocess_output",
|
| 342 |
+
"label": "Postprocess Model Output",
|
| 343 |
"type": "process"
|
| 344 |
},
|
| 345 |
{
|
| 346 |
+
"id": "send_response",
|
| 347 |
+
"label": "Send Response to User",
|
| 348 |
+
"type": "io"
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"id": "log_error",
|
| 352 |
+
"label": "Log Error & Notify User",
|
| 353 |
+
"type": "process"
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"id": "end_inference_process",
|
| 357 |
+
"label": "End Inference Process",
|
| 358 |
"type": "end"
|
| 359 |
}
|
| 360 |
],
|
| 361 |
"connections": [
|
| 362 |
+
{"from": "start_node", "to": "user_input", "label": "Request"},
|
| 363 |
+
{"from": "user_input", "to": "preprocess_data", "label": "Data Received"},
|
| 364 |
+
{"from": "preprocess_data", "to": "validate_data", "label": "Cleaned"},
|
| 365 |
+
{"from": "validate_data", "to": "data_valid_yes", "label": "Check"},
|
| 366 |
+
{"from": "data_valid_yes", "to": "load_model", "label": "Yes"},
|
| 367 |
+
{"from": "data_valid_yes", "to": "log_error", "label": "No"},
|
| 368 |
+
{"from": "load_model", "to": "run_inference", "label": "Model Ready"},
|
| 369 |
+
{"from": "run_inference", "to": "postprocess_output", "label": "Output Generated"},
|
| 370 |
+
{"from": "postprocess_output", "to": "send_response", "label": "Ready"},
|
| 371 |
+
{"from": "send_response", "to": "end_inference_process", "label": "Response Sent"},
|
| 372 |
+
{"from": "log_error", "to": "end_inference_process", "label": "Error Handled"}
|
| 373 |
]
|
| 374 |
}
|
| 375 |
"""
|
|
|
|
| 377 |
# New JSON for Work Breakdown Structure (WBS) Diagram - similar to image, but not identical
|
| 378 |
WBS_DIAGRAM_JSON = """
|
| 379 |
{
|
| 380 |
+
"project_title": "AI Model Deployment Project",
|
| 381 |
"phases": [
|
| 382 |
{
|
| 383 |
+
"id": "phase_1_prep",
|
| 384 |
+
"label": "1. Preparation",
|
| 385 |
"tasks": [
|
| 386 |
+
{"id": "task_1_1_vision", "label": "1.1. Define AI Goal"},
|
| 387 |
+
{"id": "task_1_2_data_id", "label": "1.2. Identify Data Sources"},
|
| 388 |
+
{"id": "task_1_3_infra_setup", "label": "1.3. Set Up Infra."},
|
| 389 |
+
{"id": "task_1_4_env_config", "label": "1.4. Configure Environment"},
|
| 390 |
+
{"id": "task_1_5_lib_install", "label": "1.5. Install Libraries"},
|
| 391 |
+
{"id": "task_1_6_access_grant", "label": "1.6. Grant Access"}
|
| 392 |
]
|
| 393 |
},
|
| 394 |
{
|
| 395 |
"id": "phase_2_planning",
|
| 396 |
+
"label": "2. Planning",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 397 |
"tasks": [
|
| 398 |
+
{"id": "task_2_1_model_sel", "label": "2.1. Model Selection"},
|
| 399 |
+
{"id": "task_2_2_data_strat", "label": "2.2. Data Strategy"},
|
| 400 |
+
{"id": "task_2_3_eval_metrics", "label": "2.3. Define Eval. Metrics"},
|
| 401 |
+
{"id": "task_2_4_resource_plan", "label": "2.4. Resource Planning"},
|
| 402 |
+
{"id": "task_2_5_risk_assess", "label": "2.5. Risk Assessment"},
|
| 403 |
+
{"id": "task_2_6_legal_review", "label": "2.6. Legal Review"}
|
| 404 |
]
|
| 405 |
},
|
| 406 |
{
|
| 407 |
+
"id": "phase_3_dev",
|
| 408 |
+
"label": "3. Development",
|
| 409 |
"tasks": [
|
| 410 |
+
{"id": "task_3_1_data_prep", "label": "3.1. Data Preprocessing"},
|
| 411 |
+
{"id": "task_3_2_feature_eng", "label": "3.2. Feature Engineering"},
|
| 412 |
+
{"id": "task_3_3_model_train", "label": "3.3. Model Training"},
|
| 413 |
+
{"id": "task_3_4_model_eval", "label": "3.4. Model Evaluation"},
|
| 414 |
+
{"id": "task_3_5_hyperparam_tune", "label": "3.5. Hyperparam. Tuning"},
|
| 415 |
+
{"id": "task_3_6_version_control", "label": "3.6. Version Control"}
|
| 416 |
]
|
| 417 |
}
|
| 418 |
]
|