Skip to content
Open access

Domain adaptation of large language models for additive manufacturing using retrieval-augmented generation and fine-tuning

Jul 2026 · Frontiers in Manufacturing Technology · Vol 6 · 0 citations · 27 references

TL;DR

Results indicate that retrieval-augmented approaches provide a more effective pathway for adapting LLMs to specialized engineering domains than naive fine-tuning on unstructured technical data.

Abstract

General-purpose large language models (LLMs) often struggle to generate reliable responses in specialized engineering domains due to limited domain grounding and insufficient exposure to structured technical knowledge. This study investigates practical strategies for adapting a foundation LLM to the additive manufacturing (AM) domain in order to improve answer accuracy, relevance and usability for expert-level question answering. AM knowledge is distributed across heterogeneous sources such as academic literature, manufacturer documentation, technical standards and procedural guides. Although general LLMs demonstrate strong linguistic capabilities, they frequently fail to retrieve and contextualize such domain-specific information. Two common approaches to address this limitation are domain-specific fine-tuning and retrieval-augmented generation (RAG). A curated AM corpus is constructed and used to evaluate three configurations based on LLaMA-3-8B: (1) a pretrained baseline model, (2) a RAG system that retrieves relevant document chunks from a vector database and (3) a model fine-tuned on raw domain text using quantized low-rank adaptation (QLoRA). Performance is evaluated using 200 expert-designed AM questions assessed by mechanical engineering experts for accuracy, relevance and overall preference. The RAG model consistently outperforms the baseline. Among the 200 questions, 75.5% of RAG responses are judged more accurate, 85.2% are preferred overall and 90.8% are rated more relevant than baseline responses. In contrast, fine-tuning on raw AM text reduces performance, producing more accurate answers in only 5.6% of cases and more relevant answers in 32.5% of cases. These results indicate that retrieval-augmented approaches provide a more effective pathway for adapting LLMs to specialized engineering domains than naive fine-tuning on unstructured technical data. RAG grounds responses in retrieved source documents at inference time, enabling higher accuracy and relevance without requiring model retraining.

Read PDF

Similar papers

Open access Aug 2026

An Optimization Framework for Retrieval Augmented Generation in Indonesian Educational Question Answering

A RAG optimization framework for Indonesian-language educational question answering using a Human-Computer Interaction learning corpus as a case study is developed and provides a procedure for selecting retrieval and generation settings for a given corpus.

I. K. R. Arthana, N. Gunantara, Made Sudarma et al. · 0 citations
Open access Aug 2026

Lightweight Llama Models with Experts’ Curated RAG for Electrical Engineering Education: An Exploratory Comparison

The results show that the proposed RAG agent substantially improves the lightweight base model and produces transparent, syllabus-grounded answers that experts rated as correct and concise, while GPT-4.5 retains an edge on longer, multistep, and topology-intensive tasks.

André Rocha, Paulo C. Oliveira, João Ferreira et al. · 1 citation
Review Open access Aug 2026

A Review of Retrieval-Augmented Generation Technology

Retrieval-augmented generation has emerged as a core technological paradigm for addressing the bottlenecks of hallucinations and knowledge lag in large language models. However, many existing reviews focus on a single technical branch or vertical application scenario, making only scattered references to hardware, evalu...

Peng Jiang, Xiao-Sheng Cai · 0 citations
Open access Aug 2026

A Framework for Adaptive Knowledge-Augmented Mizo Large Language Models Using Retrieval-Augmented Generation and Continual Learning

This paper presents an adaptive knowledge-augmented framework for Mizo Large Language Models by combining Retrieval-Augmented Generation (RAG) with continual learning that harnesses semantic retrieval with dense embeddings and FAISS indexing, adaptive evidence re-ranking, parameter-efficient fine-tuning, and incrementa...

Vanlalropuia Ralte, Abhisake Sinha · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.