AMGPT:用于增材制造上下文查询的大型语言模型
AMGPT: a Large Language Model for Contextual Querying in Additive Manufacturing
AI总结:
针对通用LLM在金属增材制造领域缺乏细节回答的问题,提出基于预训练Llama2-7B和RAG技术的专用模型AMGPT,通过整合约50篇AM文献实现快速准确的上下文查询。
摘要:
诸如GPT-4的通用大型语言模型(LLMs)可能无法为材料科学研究人员提出的查询提供具体答案。这些模型可能提供高层次概述,但缺乏返回关于新型合金制造和材料属性的详细说明的能力。利用专门的领域知识增强较小的模型,相较于无法足够快速重新训练以跟上金属增材制造(AM)研究快速步伐的大型语言模型,可能具有优势。我们引入了“AMGPT”,一种专为金属AM查询设计的专用LLM文本生成器。AMGPT的目标是协助研究人员和用户浏览AM领域的大量文献语料库。我们未从头训练,而是采用来自Hugging Face的预训练Llama2-7B模型置于检索增强生成(RAG)设置中,利用它动态整合约50篇AM论文和PDF格式教科书中的信息。Mathpix被用于将这些PDF文档转换为TeX格式,促进其集成到由LlamaIndex管理的RAG流水线中。该项目的专家评估强调,来自RAG设置的特定嵌入加快了响应时间,并保持了生成文本的连贯性。
英文摘要:
Generalized large language models (LLMs) such as GPT-4 may not provide specific answers to queries formulated by materials science researchers. These models may produce a high-level outline but lack the capacity to return detailed instructions on manufacturing and material properties of novel alloys. Enhancing a smaller model with specialized domain knowledge may provide an advantage over large language models which cannot be retrained quickly enough to keep up with the rapid pace of research in metal additive manufacturing (AM). We introduce "AMGPT," a specialized LLM text generator designed for metal AM queries. The goal of AMGPT is to assist researchers and users in navigating the extensive corpus of literature in AM. Instead of training from scratch, we employ a pre-trained Llama2-7B model from Hugging Face in a Retrieval-Augmented Generation (RAG) setup, utilizing it to dynamically incorporate information from $\sim$50 AM papers and textbooks in PDF format. Mathpix is used to convert these PDF documents into TeX format, facilitating their integration into the RAG pipeline managed by LlamaIndex. Expert evaluations of this project highlight that specific embeddings from the RAG setup accelerate response times and maintain coherence in the generated text.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。