{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,10]],"date-time":"2026-07-10T16:57:56Z","timestamp":1783702676481,"version":"3.55.0"},"reference-count":24,"publisher":"Frontiers Media SA","license":[{"start":{"date-parts":[[2025,11,19]],"date-time":"2025-11-19T00:00:00Z","timestamp":1763510400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["frontiersin.org"],"crossmark-restriction":true},"short-container-title":["Front. Artif. Intell."],"abstract":"<jats:p>Large language models (LLMs) are powerful in language understanding and content generation but frequently fall short of technical accuracy when they are applied to engineering code, standards, and design documents. To mitigate this, we are seeing the emergence of Retrieval-Augmented Generation (RAG) models that ground outputs of LLMs with information from external trustworthy resources, increasing the factual consistency. However, traditional RAG techniques are limited in the treatment of isolated information (limited to the amount of information in a fixed-size chunk) and are deemed ill-equipped to traverse semantically linked technical information. This study introduces a collection of new and highly deployable RAG-LLMs built on the n8n automation system and specifically designed for engineering domains. Framework effectiveness was tested on a set of prompts developed with the help of practicing electrical engineering professionals and should be read through the framework\u2019s lens for interpretation of national engineering codes, technical standards, and design standards. To mitigate the shortcomings of the conventional retrieval-based chunking methods, a contextual RAG-based approach is employed to align the retrieved content with the query context to improve relevance. Moreover, RAG is adopted to structure knowledge graph retrieval, which can retrieve densely linked concepts from multiple knowledge graphs, thereby promoting more profound semantic understanding in complex technical domains. The study describes the relative benefits of these improvements, points to practical deployment issues, strengths, and weaknesses. All the n8n workflows employed in this study are made available as supplementary materials to facilitate reproducibility and sharing within the engineering research community and practitioners.<\/jats:p>","DOI":"10.3389\/frai.2025.1697169","type":"journal-article","created":{"date-parts":[[2025,11,19]],"date-time":"2025-11-19T06:36:42Z","timestamp":1763534202000},"update-policy":"https:\/\/doi.org\/10.3389\/crossmark-policy","source":"Crossref","is-referenced-by-count":8,"title":["Advancing engineering research through context-aware and knowledge graph\u2013based retrieval-augmented generation"],"prefix":"10.3389","volume":"8","author":[{"given":"Soham","family":"Ghosh","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Gaurav","family":"Mittal","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1965","published-online":{"date-parts":[[2025,11,19]]},"reference":[{"key":"ref1","year":"2024"},{"key":"ref2","doi-asserted-by":"publisher","first-page":"245","DOI":"10.3233\/AO-170189","article-title":"Framework for ontology-driven decision making","volume":"12","author":"Baclawski","year":"2017","journal-title":"Appl. Ontol."},{"key":"ref3","doi-asserted-by":"crossref","DOI":"10.1109\/PESGM48719.2022.9916980","article-title":"Analyzing investment strategies for power system resilience","volume-title":"IEEE Power & Energy Society General Meeting (PESGM)","author":"Bhattarai","year":"2022"},{"key":"ref4","doi-asserted-by":"publisher","first-page":"P10008","DOI":"10.1088\/1742-5468\/2008\/10\/P10008","article-title":"Fast unfolding of communities in large networks","volume":"2008","author":"Blondel","year":"2008","journal-title":"J. Stat. Mech. Theory Exp."},{"key":"ref5","article-title":"Resilience framework, methods, and metrics for the electricity sector","volume-title":"IEEE Power & Energy Society (PES-TR83)","author":"Bose","year":"2020"},{"key":"ref6","author":"Chen","year":"2023"},{"key":"ref7","first-page":"10","article-title":"Power system resilience: definition, features and properties","author":"Ciapessoni","year":"2023","journal-title":"CIGRE Sci. Eng."},{"key":"ref8","first-page":"80","article-title":"A comprehensive forecasting, risk modelling and optimization framework for electric grid hardening and wildfire prevention in the US","volume":"10","author":"Ghosh","year":"2020","journal-title":"Int. J. Energy Eng."},{"key":"ref9","doi-asserted-by":"publisher","first-page":"393","DOI":"10.1007\/s40031-024-01146-4","article-title":"Enhancing grid resiliency in high fire or flood risk areas: integrating protective relay settings, broken conductor detection, and grid hardening for climate-induced event preparedness","volume":"106","author":"Ghosh","year":"2024","journal-title":"J Inst Eng"},{"key":"ref10","doi-asserted-by":"crossref","DOI":"10.1109\/FIE61694.2024.10893146","article-title":"Enhancing engineering education through LLM-driven adaptive quiz generation: a RAG-based approach","author":"Gopi","year":"2024"},{"key":"ref11","year":"2025"},{"key":"ref12","article-title":"Sustainable improvement on substation resilience and reliability by using eco-friendly equipment and remote maintenance systems","volume-title":"CIGRE Paris session.","author":"Itotani","year":"2024"},{"key":"ref13","doi-asserted-by":"publisher","first-page":"494","DOI":"10.1109\/TNNLS.2021.3070843","article-title":"A survey on knowledge graphs: representation, acquisition, and applications","volume":"33","author":"Ji","year":"2022","journal-title":"IEEE Trans. Neural Netw. Learn. Syst."},{"key":"ref14","author":"Li","year":"2023"},{"key":"ref15","doi-asserted-by":"publisher","DOI":"10.1101\/2025.03.18.25324184","article-title":"Large language models are highly vulnerable to adversarial hallucination attacks in clinical decision support: a multi-model assurance analysis","author":"Omar","year":"2025","journal-title":"MedRxiv"},{"key":"ref16","volume-title":"InfraNodus: Discover what everyone else is missing","author":"Paranyushkin","year":"2024"},{"key":"ref17","doi-asserted-by":"publisher","first-page":"13071","DOI":"10.1007\/s10462-023-10465-9","article-title":"Knowledge graphs: opportunities and challenges","volume":"56","author":"Peng","year":"2023","journal-title":"Artif. Intell. Rev."},{"key":"ref18","doi-asserted-by":"publisher","DOI":"10.2196\/59823","article-title":"The clinicians\u2019 guide to large language models: a general perspective with a focus on hallucinations","volume":"14","author":"Roustan","year":"2025","journal-title":"Interact. J. Med. Res."},{"key":"ref19","doi-asserted-by":"crossref","DOI":"10.1109\/KPEC61529.2024.10676081","article-title":"Power system resiliency and reliability issues from renewable resource droughts","volume-title":"IEEE Kansas power and energy conference (KPEC)","author":"Safdarian","year":"2024"},{"key":"ref20","doi-asserted-by":"publisher","DOI":"10.1016\/j.knosys.2024.112410","article-title":"Retrieval Augmented Generation using engineering design knowledge","volume":"303","author":"Siddharth","year":"2024","journal-title":"Knowl.-Based Syst."},{"key":"ref21","doi-asserted-by":"crossref","DOI":"10.5753\/bresci.2024.243977","article-title":"Enhancing large language model performance on ENEM math questions using retrieval-augmented generation","volume-title":"Proceedings of the XVIII Brazilian e-science workshop (Florianopolis, SC, BreSci)","author":"Superbi","year":"2024"},{"key":"ref22","doi-asserted-by":"crossref","DOI":"10.1109\/BigData62323.2024.10825805","article-title":"Power outage forecasting for system resiliency during extreme weather events","volume-title":"IEEE international conference on big data (BigData)","author":"Tabassum","year":"2024"},{"key":"ref23","doi-asserted-by":"publisher","first-page":"8337","DOI":"10.1007\/s00500-021-05756-8","article-title":"Recent trends in knowledge graphs: theory and practice","volume":"25","author":"Tiwari","year":"2021","journal-title":"Soft. Comput."},{"key":"ref24","author":"Zhang","year":"2023"}],"container-title":["Frontiers in Artificial Intelligence"],"original-title":[],"link":[{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/frai.2025.1697169\/full","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,11,19]],"date-time":"2025-11-19T06:36:44Z","timestamp":1763534204000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/frai.2025.1697169\/full"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,11,19]]},"references-count":24,"alternative-id":["10.3389\/frai.2025.1697169"],"URL":"https:\/\/doi.org\/10.3389\/frai.2025.1697169","relation":{},"ISSN":["2624-8212"],"issn-type":[{"value":"2624-8212","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,11,19]]},"article-number":"1697169"}}