TY - JOUR AU - Shaik Razia AU - K Jayanthi AU - S Ganesh AU - G Govardhan Reddy AU - H M Mehataz AU - K Lalitha PY - 2026 DA - 2026/04/25 TI - Generative AI For Diagrams As Code And Code As Diagrams JO - Global Journal of Engineering Innovations and Interdisciplinary Research VL - 6 IS - 4 AB - Modern software projects often involve extensive codebases that are difficult to navigate, document, and keep consistent across multiple teams and repositories. Traditional documentation often becomes outdated, leading to inconsistencies and unclear architectural insights. To address this, Generative AI and Large Language Models (LLMs) such as ChatGPT and Claude automate the bidirectional transformation between code and diagrams, seamlessly integrating into software workflows. The proposed framework uses PlantUML and TikZ, to improve debugging, documentation, and versioning. Neo4j is used for natural language retrieval, and advanced queries using Cypher as well as similarity searches. This hybrid approach mitigates LLMrelated challenges like hallucinations by combining database integration with prompt engineering. By consolidating code, diagrams, and metadata into a unified resource, the framework aims to improve maintainability, collaboration, and transparency, as demonstrated in initial qualitative use cases. SN - 3066-1226 UR - https://dx.doi.org/10.33425/3066-1226.1290 DO - 10.33425/3066-1226.1290