Developing RAGs for robot code generation
2026 (English)In: SPS 2026 - The 12th Swedish Production Symposium 24/03/2026 - 26/03/2026 Luleå, Sweden, Institute of Physics Publishing (IOPP), 2026, article id 012064Conference paper, Published paper (Refereed)
Abstract [en]
The emergence of generative AI marks a transformative shift in industrial automation. Traditional robot programming relies on manually written, low-level code that requires specialised expertise, limiting flexibility and accessibility. Recent advances in Large Language Models (LLMs) such as ChatGPT and Mistral introduce new paradigms for automated code generation. However, concerns about data security, model hallucinations, and the opaque reasoning of generative systems continue to hinder their adoption in industry. A promising approach to address these challenges is Retrieval-Augmented Generation (RAG), where the generative model draws on curated, domain-specific data sources controlled by the user. By combining structured knowledge retrieval with generative inference, RAG-based systems can produce robot code that is not only more accurate and context-aware but also verifiable and transparent. This approach enhances user trust and enables safer integration of AI in industrial settings.
This paper explores the application of Retrieval-Augmented Generation (RAG)based architectures - a method that combines information retrieval with LLMs for robot code generation. RAG-based systems enable LLMs to access and utilise domain-specific data, thereby grounding their outputs in reliable knowledge. By leveraging these techniques, robotics developers can achieve more accurate and efficient code generation, potentially accelerating innovation in autonomous systems. Furthermore, it presents a conceptual framework for RAG-enhanced robot programming that balances autonomy with human oversight. The proposed framework enhances the adaptability and intelligence of automated programming by providing a transparent, controllable, and explainable alternative to conventional AI-driven methods, paving the way for more reliable and humancentric automation in future manufacturing environments.
Place, publisher, year, edition, pages
Institute of Physics Publishing (IOPP), 2026. article id 012064
Series
IOP Conference Series: Materials Science and Engineering, ISSN 1757-8981, E-ISSN 1757-899X ; 1342
National Category
Computer Sciences
Research subject
Forskningsgruppen för Elektroteknik och Automation (ETA)
Identifiers
URN: urn:nbn:se:his:diva-26923DOI: 10.1088/1757-899X/1342/1/012064ISI: 001803535300064OAI: oai:DiVA.org:his-26923DiVA, id: diva2:2088338
Conference
SPS 2026 - The 12th Swedish Production Symposium 24/03/2026 - 26/03/2026 Luleå, Sweden, Leading the transformation towards net zero industry
Funder
Vinnova, 2024-03234
Note
CC BY 4.0
E-mail: omkar.salunkhe@chalmers.se
This research was funded by the Swedish innovation agency, VINNOVA, under grant number 2024-03234. We sincerely thank VINNOVA and all partner companies involved in Project Code Agents: AI-powered end-to-end solutions for flexible manufacturing, for their tremendous support and valuable contributions.
2026-07-272026-07-272026-08-11Bibliographically approved