Spaces:
Running
Running
# Enhanced Sample Data for AI Diagram Generator | |
# Modern and practical AI-related sample data | |
CONCEPT_MAP_JSON = """ | |
{ | |
"central_node": "Generative AI Ecosystem", | |
"nodes": [ | |
{ | |
"id": "foundation_models", | |
"label": "Foundation Models", | |
"relationship": "powered by", | |
"subnodes": [ | |
{ | |
"id": "llm_models", | |
"label": "Large Language Models", | |
"relationship": "includes", | |
"subnodes": [ | |
{ | |
"id": "gpt_family", | |
"label": "GPT Family", | |
"relationship": "such as", | |
"subnodes": [ | |
{ | |
"id": "gpt4", | |
"label": "GPT-4", | |
"relationship": "latest version" | |
}, | |
{ | |
"id": "chatgpt", | |
"label": "ChatGPT", | |
"relationship": "application" | |
} | |
] | |
}, | |
{ | |
"id": "claude_family", | |
"label": "Claude Family", | |
"relationship": "such as", | |
"subnodes": [ | |
{ | |
"id": "claude3", | |
"label": "Claude 3 Opus", | |
"relationship": "advanced model" | |
}, | |
{ | |
"id": "claude_sonnet", | |
"label": "Claude Sonnet", | |
"relationship": "balanced model" | |
} | |
] | |
}, | |
{ | |
"id": "opensource_llm", | |
"label": "Open Source LLMs", | |
"relationship": "alternatives", | |
"subnodes": [ | |
{ | |
"id": "llama3", | |
"label": "LLaMA 3", | |
"relationship": "by Meta" | |
}, | |
{ | |
"id": "mistral", | |
"label": "Mistral 7B", | |
"relationship": "efficient" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"id": "multimodal_models", | |
"label": "Multimodal Models", | |
"relationship": "extends to", | |
"subnodes": [ | |
{ | |
"id": "vision_language", | |
"label": "Vision-Language Models", | |
"relationship": "including", | |
"subnodes": [ | |
{ | |
"id": "dall_e3", | |
"label": "DALL-E 3", | |
"relationship": "image generation" | |
}, | |
{ | |
"id": "midjourney", | |
"label": "Midjourney v6", | |
"relationship": "artistic creation" | |
} | |
] | |
}, | |
{ | |
"id": "video_models", | |
"label": "Video Generation", | |
"relationship": "emerging with", | |
"subnodes": [ | |
{ | |
"id": "sora", | |
"label": "Sora", | |
"relationship": "by OpenAI" | |
}, | |
{ | |
"id": "runway", | |
"label": "Runway Gen-2", | |
"relationship": "creative tools" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"id": "ai_applications", | |
"label": "Real-World Applications", | |
"relationship": "deployed in", | |
"subnodes": [ | |
{ | |
"id": "enterprise_ai", | |
"label": "Enterprise Solutions", | |
"relationship": "transforming", | |
"subnodes": [ | |
{ | |
"id": "ai_assistants", | |
"label": "AI Assistants", | |
"relationship": "like", | |
"subnodes": [ | |
{ | |
"id": "copilot", | |
"label": "GitHub Copilot", | |
"relationship": "code generation" | |
}, | |
{ | |
"id": "duet_ai", | |
"label": "Google Duet AI", | |
"relationship": "workspace integration" | |
} | |
] | |
}, | |
{ | |
"id": "automation", | |
"label": "Process Automation", | |
"relationship": "through", | |
"subnodes": [ | |
{ | |
"id": "rpa_ai", | |
"label": "AI-Enhanced RPA", | |
"relationship": "intelligent automation" | |
}, | |
{ | |
"id": "document_ai", | |
"label": "Document Intelligence", | |
"relationship": "data extraction" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"id": "creative_ai", | |
"label": "Creative Industries", | |
"relationship": "revolutionizing", | |
"subnodes": [ | |
{ | |
"id": "content_creation", | |
"label": "Content Generation", | |
"relationship": "enabling", | |
"subnodes": [ | |
{ | |
"id": "marketing_ai", | |
"label": "Marketing Copy", | |
"relationship": "automated creation" | |
}, | |
{ | |
"id": "game_assets", | |
"label": "Game Asset Generation", | |
"relationship": "procedural design" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"id": "ai_infrastructure", | |
"label": "AI Infrastructure", | |
"relationship": "supported by", | |
"subnodes": [ | |
{ | |
"id": "compute_resources", | |
"label": "Compute Resources", | |
"relationship": "requiring", | |
"subnodes": [ | |
{ | |
"id": "gpu_clusters", | |
"label": "GPU Clusters", | |
"relationship": "powered by", | |
"subnodes": [ | |
{ | |
"id": "nvidia_h100", | |
"label": "NVIDIA H100", | |
"relationship": "latest generation" | |
}, | |
{ | |
"id": "tpu_v5", | |
"label": "Google TPU v5", | |
"relationship": "specialized chips" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"id": "mlops_platform", | |
"label": "MLOps Platforms", | |
"relationship": "managed by", | |
"subnodes": [ | |
{ | |
"id": "model_serving", | |
"label": "Model Serving", | |
"relationship": "via", | |
"subnodes": [ | |
{ | |
"id": "huggingface", | |
"label": "Hugging Face", | |
"relationship": "model hub" | |
}, | |
{ | |
"id": "vertex_ai", | |
"label": "Vertex AI", | |
"relationship": "Google Cloud" | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
""" | |
SYNOPTIC_CHART_JSON = """ | |
{ | |
"central_node": "Modern AI Development Pipeline", | |
"nodes": [ | |
{ | |
"id": "phase1", | |
"label": "I. Data Engineering & Preparation", | |
"relationship": "begins with", | |
"subnodes": [ | |
{ | |
"id": "data_strategy", | |
"label": "1. Data Strategy", | |
"relationship": "establishing", | |
"subnodes": [ | |
{"id": "data_sources", "label": "1.1. Multi-Source Integration", "relationship": "includes", "subnodes": []}, | |
{"id": "data_governance", "label": "1.2. Privacy & Compliance", "relationship": "ensures", "subnodes": []} | |
] | |
}, | |
{ | |
"id": "data_pipeline", | |
"label": "2. Data Pipeline", | |
"relationship": "building", | |
"subnodes": [ | |
{"id": "etl_process", "label": "2.1. ETL/ELT Workflows", "relationship": "implements", "subnodes": []}, | |
{"id": "feature_store", "label": "2.2. Feature Store Setup", "relationship": "centralizes", "subnodes": []} | |
] | |
} | |
] | |
}, | |
{ | |
"id": "phase2", | |
"label": "II. Model Development & Training", | |
"relationship": "continues to", | |
"subnodes": [ | |
{ | |
"id": "experimentation", | |
"label": "1. Experimentation Platform", | |
"relationship": "enabling", | |
"subnodes": [ | |
{"id": "experiment_tracking", "label": "1.1. MLflow/W&B Integration", "relationship": "tracks", "subnodes": []}, | |
{"id": "hyperparameter_opt", "label": "1.2. AutoML & HPO", "relationship": "optimizes", "subnodes": []} | |
] | |
}, | |
{ | |
"id": "distributed_training", | |
"label": "2. Scalable Training", | |
"relationship": "leveraging", | |
"subnodes": [ | |
{"id": "multi_gpu", "label": "2.1. Multi-GPU Training", "relationship": "accelerates", "subnodes": []}, | |
{"id": "model_parallelism", "label": "2.2. Model Parallelism", "relationship": "enables", "subnodes": []} | |
] | |
} | |
] | |
}, | |
{ | |
"id": "phase3", | |
"label": "III. Deployment & Operations", | |
"relationship": "culminates in", | |
"subnodes": [ | |
{ | |
"id": "model_deployment", | |
"label": "1. Production Deployment", | |
"relationship": "implementing", | |
"subnodes": [ | |
{"id": "edge_deployment", "label": "1.1. Edge Computing", "relationship": "optimizes", "subnodes": []}, | |
{"id": "api_gateway", "label": "1.2. API Management", "relationship": "exposes", "subnodes": []} | |
] | |
}, | |
{ | |
"id": "monitoring_ops", | |
"label": "2. AI Operations", | |
"relationship": "maintaining", | |
"subnodes": [ | |
{"id": "model_monitoring", "label": "2.1. Drift Detection", "relationship": "monitors", "subnodes": []}, | |
{"id": "feedback_loop", "label": "2.2. Continuous Learning", "relationship": "improves", "subnodes": []} | |
] | |
} | |
] | |
} | |
] | |
} | |
""" | |
RADIAL_DIAGRAM_JSON = """ | |
{ | |
"central_node": "AI Innovation Hub", | |
"nodes": [ | |
{ | |
"id": "emerging_tech", | |
"label": "Emerging Technologies", | |
"relationship": "advancing through", | |
"subnodes": [ | |
{"id": "quantum_ml", "label": "Quantum Machine Learning", "relationship": "breakthrough in", "subnodes": []}, | |
{"id": "neuromorphic", "label": "Neuromorphic Computing", "relationship": "inspired by", "subnodes": []} | |
] | |
}, | |
{ | |
"id": "ai_safety", | |
"label": "AI Safety & Ethics", | |
"relationship": "ensuring through", | |
"subnodes": [ | |
{"id": "alignment", "label": "AI Alignment Research", "relationship": "focusing on", "subnodes": []}, | |
{"id": "explainable_ai", "label": "Explainable AI (XAI)", "relationship": "providing", "subnodes": []} | |
] | |
}, | |
{ | |
"id": "industry_impact", | |
"label": "Industry Transformation", | |
"relationship": "disrupting", | |
"subnodes": [ | |
{"id": "healthcare_ai", "label": "AI in Healthcare", "relationship": "revolutionizing", "subnodes": []}, | |
{"id": "fintech_ai", "label": "AI in Finance", "relationship": "automating", "subnodes": []} | |
] | |
}, | |
{ | |
"id": "research_frontiers", | |
"label": "Research Frontiers", | |
"relationship": "exploring", | |
"subnodes": [ | |
{"id": "agi_research", "label": "AGI Development", "relationship": "pursuing", "subnodes": []}, | |
{"id": "consciousness_ai", "label": "Machine Consciousness", "relationship": "investigating", "subnodes": []} | |
] | |
}, | |
{ | |
"id": "ai_ecosystem", | |
"label": "AI Ecosystem", | |
"relationship": "building", | |
"subnodes": [ | |
{"id": "open_source", "label": "Open Source Community", "relationship": "contributing to", "subnodes": []}, | |
{"id": "ai_startups", "label": "AI Startup Ecosystem", "relationship": "innovating in", "subnodes": []} | |
] | |
} | |
] | |
} | |
""" | |
PROCESS_FLOW_JSON = """ | |
{ | |
"start_node": "AI Request Initiated", | |
"nodes": [ | |
{ | |
"id": "auth_check", | |
"label": "Authentication & Rate Limiting", | |
"type": "process" | |
}, | |
{ | |
"id": "auth_valid", | |
"label": "Valid Request?", | |
"type": "decision" | |
}, | |
{ | |
"id": "request_router", | |
"label": "Request Router", | |
"type": "process" | |
}, | |
{ | |
"id": "cache_check", | |
"label": "Check Response Cache", | |
"type": "decision" | |
}, | |
{ | |
"id": "model_selector", | |
"label": "Model Selection Logic", | |
"type": "process" | |
}, | |
{ | |
"id": "load_balancer", | |
"label": "Load Balancer", | |
"type": "process" | |
}, | |
{ | |
"id": "inference_engine", | |
"label": "Run Inference", | |
"type": "process" | |
}, | |
{ | |
"id": "quality_check", | |
"label": "Quality Assessment", | |
"type": "decision" | |
}, | |
{ | |
"id": "post_processor", | |
"label": "Post-Processing & Filtering", | |
"type": "process" | |
}, | |
{ | |
"id": "response_cache", | |
"label": "Update Cache", | |
"type": "process" | |
}, | |
{ | |
"id": "analytics_log", | |
"label": "Log Analytics", | |
"type": "process" | |
}, | |
{ | |
"id": "deliver_response", | |
"label": "Deliver Response", | |
"type": "io" | |
}, | |
{ | |
"id": "error_handler", | |
"label": "Error Handler", | |
"type": "process" | |
}, | |
{ | |
"id": "fallback_model", | |
"label": "Fallback Model", | |
"type": "process" | |
}, | |
{ | |
"id": "end_process", | |
"label": "Complete", | |
"type": "end" | |
} | |
], | |
"connections": [ | |
{"from": "start_node", "to": "auth_check", "label": "Begin"}, | |
{"from": "auth_check", "to": "auth_valid", "label": "Verify"}, | |
{"from": "auth_valid", "to": "request_router", "label": "Authorized"}, | |
{"from": "auth_valid", "to": "error_handler", "label": "Denied"}, | |
{"from": "request_router", "to": "cache_check", "label": "Route"}, | |
{"from": "cache_check", "to": "deliver_response", "label": "Cache Hit"}, | |
{"from": "cache_check", "to": "model_selector", "label": "Cache Miss"}, | |
{"from": "model_selector", "to": "load_balancer", "label": "Selected"}, | |
{"from": "load_balancer", "to": "inference_engine", "label": "Assigned"}, | |
{"from": "inference_engine", "to": "quality_check", "label": "Generated"}, | |
{"from": "quality_check", "to": "post_processor", "label": "Pass"}, | |
{"from": "quality_check", "to": "fallback_model", "label": "Fail"}, | |
{"from": "fallback_model", "to": "post_processor", "label": "Retry"}, | |
{"from": "post_processor", "to": "response_cache", "label": "Processed"}, | |
{"from": "response_cache", "to": "analytics_log", "label": "Cached"}, | |
{"from": "analytics_log", "to": "deliver_response", "label": "Logged"}, | |
{"from": "deliver_response", "to": "end_process", "label": "Delivered"}, | |
{"from": "error_handler", "to": "end_process", "label": "Handled"} | |
] | |
} | |
""" | |
WBS_DIAGRAM_JSON = """ | |
{ | |
"project_title": "Enterprise AI Platform Implementation", | |
"phases": [ | |
{ | |
"id": "phase_foundation", | |
"label": "Foundation & Architecture", | |
"tasks": [ | |
{ | |
"id": "task_requirements", | |
"label": "Requirements Analysis", | |
"subtasks": [ | |
{ | |
"id": "subtask_stakeholder", | |
"label": "Stakeholder Mapping", | |
"sub_subtasks": [ | |
{ | |
"id": "ss_task_interviews", | |
"label": "Executive Interviews", | |
"sub_sub_subtasks": [ | |
{ | |
"id": "sss_task_schedule", | |
"label": "Schedule Sessions", | |
"final_level_tasks": [ | |
{"id": "ft_prep_materials", "label": "Prepare Materials"} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"id": "subtask_technical", | |
"label": "Technical Assessment", | |
"sub_subtasks": [ | |
{ | |
"id": "ss_task_infra", | |
"label": "Infrastructure Audit", | |
"sub_sub_subtasks": [ | |
{ | |
"id": "sss_task_compute", | |
"label": "Compute Resources", | |
"final_level_tasks": [ | |
{"id": "ft_gpu_assessment", "label": "GPU Capacity Planning"} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"id": "task_architecture", | |
"label": "Solution Architecture", | |
"subtasks": [ | |
{ | |
"id": "subtask_design", | |
"label": "System Design", | |
"sub_subtasks": [ | |
{ | |
"id": "ss_task_microservices", | |
"label": "Microservices Architecture", | |
"sub_sub_subtasks": [ | |
{ | |
"id": "sss_task_api_design", | |
"label": "API Design", | |
"final_level_tasks": [ | |
{"id": "ft_api_specs", "label": "OpenAPI Specifications"} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"id": "phase_implementation", | |
"label": "Core Implementation", | |
"tasks": [ | |
{ | |
"id": "task_data_platform", | |
"label": "Data Platform", | |
"subtasks": [ | |
{ | |
"id": "subtask_data_lake", | |
"label": "Data Lake Setup", | |
"sub_subtasks": [ | |
{ | |
"id": "ss_task_storage", | |
"label": "Storage Configuration", | |
"sub_sub_subtasks": [ | |
{ | |
"id": "sss_task_s3_setup", | |
"label": "S3 Bucket Setup", | |
"final_level_tasks": [ | |
{"id": "ft_lifecycle_policies", "label": "Lifecycle Policies"} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"id": "subtask_streaming", | |
"label": "Real-time Pipeline", | |
"sub_subtasks": [ | |
{ | |
"id": "ss_task_kafka", | |
"label": "Kafka Implementation", | |
"sub_sub_subtasks": [ | |
{ | |
"id": "sss_task_topics", | |
"label": "Topic Design", | |
"final_level_tasks": [ | |
{"id": "ft_schema_registry", "label": "Schema Registry"} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"id": "task_ml_platform", | |
"label": "ML Platform", | |
"subtasks": [ | |
{ | |
"id": "subtask_mlops", | |
"label": "MLOps Setup", | |
"sub_subtasks": [ | |
{ | |
"id": "ss_task_ci_cd", | |
"label": "CI/CD Pipeline", | |
"sub_sub_subtasks": [ | |
{ | |
"id": "sss_task_github_actions", | |
"label": "GitHub Actions", | |
"final_level_tasks": [ | |
{"id": "ft_model_registry", "label": "Model Registry Integration"} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"id": "phase_deployment", | |
"label": "Deployment & Operations", | |
"tasks": [ | |
{ | |
"id": "task_production", | |
"label": "Production Deployment", | |
"subtasks": [ | |
{ | |
"id": "subtask_kubernetes", | |
"label": "Kubernetes Orchestration", | |
"sub_subtasks": [ | |
{ | |
"id": "ss_task_helm", | |
"label": "Helm Charts", | |
"sub_sub_subtasks": [ | |
{ | |
"id": "sss_task_autoscaling", | |
"label": "Auto-scaling Config", | |
"final_level_tasks": [ | |
{"id": "ft_hpa_setup", "label": "HPA Configuration"} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"id": "subtask_monitoring", | |
"label": "Observability Stack", | |
"sub_subtasks": [ | |
{ | |
"id": "ss_task_prometheus", | |
"label": "Prometheus Setup", | |
"sub_sub_subtasks": [ | |
{ | |
"id": "sss_task_grafana", | |
"label": "Grafana Dashboards", | |
"final_level_tasks": [ | |
{"id": "ft_alert_rules", "label": "Alert Configuration"} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
""" |