Advancing engineering research through context-aware and knowledge graph–based retrieval-augmented generation

Authors

Keywords:

Workflow, Natural language generation, Software deployment, Context (archaeology), Knowledge engineering, Automation, Set (abstract data type), Advanced Graph Neural Networks

Abstract

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's 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.

Source and licence. Open-access article originally published as “Advancing engineering research through context-aware and knowledge graph–based retrieval-augmented generation” in Frontiers in Artificial Intelligence, 2025. DOI: 10.3389/frai.2025.1697169. © Soham Ghosh, Gaurav Mittal. Reproduced unchanged under the Creative Commons Attribution 4.0 licence.

References

Blondel, V., Guillaume, J., Lambiotte, R. et al. (2008). Fast unfolding of communities in large networks. Journal of Statistical Mechanics Theory and Experiment. https://doi.org/10.1088/1742-5468/2008/10/p10008

Ji, S., Pan, S., Cambria, E. et al. (2021). A Survey on Knowledge Graphs: Representation, Acquisition, and Applications. IEEE Transactions on Neural Networks and Learning Systems. https://doi.org/10.1109/tnnls.2021.3070843

Peng, C., Xia, F., Naseriparsa, M. et al. (2023). Knowledge Graphs: Opportunities and Challenges. Artificial Intelligence Review. https://doi.org/10.1007/s10462-023-10465-9

Roustan, D., Bastardot, F. (2025). The Clinicians’ Guide to Large Language Models: A General Perspective With a Focus on Hallucinations. Interactive Journal of Medical Research. https://doi.org/10.2196/59823

Tiwari, S., AL-Aswadi, F., Gaurav, D. (2021). Recent trends in knowledge graphs: theory and practice. Soft Computing. https://doi.org/10.1007/s00500-021-05756-8

Siddharth, L., Luo, J. (2024). Retrieval augmented generation using engineering design knowledge. Knowledge-Based Systems. https://doi.org/10.1016/j.knosys.2024.112410

Gopi, S., Sreekanth, D., Dehbozorgi, N. (2024). Enhancing Engineering Education Through LLM-Driven Adaptive Quiz Generation: A RAG-Based Approach. https://doi.org/10.1109/fie61694.2024.10893146

Bacławski, K., Chan, E., Gawlick, D. et al. (2017). Framework for ontology-driven decision making. Applied Ontology. https://doi.org/10.3233/ao-170189

Downloads

Published

2026-08-22

How to Cite

Advancing engineering research through context-aware and knowledge graph–based retrieval-augmented generation. (2026). QAIRU Journal, 1(2). https://ojs.bbx.kz/journal/article/view/4