ZahirJS commited on
Commit
ff8dbaa
·
verified ·
1 Parent(s): c8816d9

Update sample_data.py

Browse files
Files changed (1) hide show
  1. 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 Order Process",
309
  "nodes": [
310
  {
311
- "id": "customer_order",
312
- "label": "Customer Places Order",
 
 
 
 
 
313
  "type": "process"
314
  },
315
  {
316
- "id": "check_stock",
317
- "label": "Check Stock Availability",
318
  "type": "decision"
319
  },
320
  {
321
- "id": "stock_available",
322
- "label": "Stock Available?",
323
  "type": "decision"
324
  },
325
  {
326
- "id": "process_payment",
327
- "label": "Process Payment",
328
  "type": "process"
329
  },
330
  {
331
- "id": "order_confirmed",
332
- "label": "Order Confirmed",
333
  "type": "process"
334
  },
335
  {
336
- "id": "notify_customer_oos",
337
- "label": "Notify Customer (Out of Stock)",
338
  "type": "process"
339
  },
340
  {
341
- "id": "end_order_process",
342
- "label": "End Order Process",
 
 
 
 
 
 
 
 
 
 
343
  "type": "end"
344
  }
345
  ],
346
  "connections": [
347
- {"from": "start_node", "to": "customer_order", "label": "Initiate"},
348
- {"from": "customer_order", "to": "check_stock", "label": "Proceed"},
349
- {"from": "check_stock", "to": "stock_available", "label": "Result"},
350
- {"from": "stock_available", "to": "process_payment", "label": "Yes"},
351
- {"from": "stock_available", "to": "notify_customer_oos", "label": "No"},
352
- {"from": "process_payment", "to": "order_confirmed", "label": "Success"},
353
- {"from": "order_confirmed", "to": "end_order_process", "label": "Complete"},
354
- {"from": "notify_customer_oos", "to": "end_order_process", "label": "Finish"}
 
 
 
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": "Website Redesign Project",
363
  "phases": [
364
  {
365
- "id": "phase_1_initiation",
366
- "label": "1. Project Initiation",
367
  "tasks": [
368
- {"id": "task_1_1_define", "label": "1.1. Define Goals & Scope"},
369
- {"id": "task_1_2_team", "label": "1.2. Assemble Team"},
370
- {"id": "task_1_3_budget", "label": "1.3. Establish Budget"}
 
 
 
371
  ]
372
  },
373
  {
374
  "id": "phase_2_planning",
375
- "label": "2. Planning Phase",
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": "task_3_1_frontend", "label": "3.1. Develop Frontend"},
389
- {"id": "task_3_2_backend", "label": "3.2. Develop Backend"},
390
- {"id": "task_3_3_db", "label": "3.3. Database Integration"},
391
- {"id": "task_3_4_content_creation", "label": "3.4. Content Creation"},
392
- {"id": "task_3_5_testing", "label": "3.5. Internal Testing"}
 
393
  ]
394
  },
395
  {
396
- "id": "phase_4_deployment",
397
- "label": "4. Deployment & Launch",
398
  "tasks": [
399
- {"id": "task_4_1_pre_launch", "label": "4.1. Pre-Launch Checks"},
400
- {"id": "task_4_2_go_live", "label": "4.1. Go Live"},
401
- {"id": "task_4_3_monitoring", "label": "4.3. Post-Launch Monitoring"}
 
 
 
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
  ]