{"title":"Optimizing RAG Techniques for Automotive Industry PDF Chatbots: A Case Study with Locally Deployed Ollama Models","authors":"Fei Liu, Zejun Kang, Xing Han","doi":"arxiv-2408.05933","DOIUrl":null,"url":null,"abstract":"With the growing demand for offline PDF chatbots in automotive industrial\nproduction environments, optimizing the deployment of large language models\n(LLMs) in local, low-performance settings has become increasingly important.\nThis study focuses on enhancing Retrieval-Augmented Generation (RAG) techniques\nfor processing complex automotive industry documents using locally deployed\nOllama models. Based on the Langchain framework, we propose a multi-dimensional\noptimization approach for Ollama's local RAG implementation. Our method\naddresses key challenges in automotive document processing, including\nmulti-column layouts and technical specifications. We introduce improvements in\nPDF processing, retrieval mechanisms, and context compression, tailored to the\nunique characteristics of automotive industry documents. Additionally, we\ndesign custom classes supporting embedding pipelines and an agent supporting\nself-RAG based on LangGraph best practices. To evaluate our approach, we\nconstructed a proprietary dataset comprising typical automotive industry\ndocuments, including technical reports and corporate regulations. We compared\nour optimized RAG model and self-RAG agent against a naive RAG baseline across\nthree datasets: our automotive industry dataset, QReCC, and CoQA. Results\ndemonstrate significant improvements in context precision, context recall,\nanswer relevancy, and faithfulness, with particularly notable performance on\nthe automotive industry dataset. Our optimization scheme provides an effective\nsolution for deploying local RAG systems in the automotive sector, addressing\nthe specific needs of PDF chatbots in industrial production environments. This\nresearch has important implications for advancing information processing and\nintelligent production in the automotive industry.","PeriodicalId":501315,"journal":{"name":"arXiv - CS - Multiagent Systems","volume":"113 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-08-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Multiagent Systems","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2408.05933","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
With the growing demand for offline PDF chatbots in automotive industrial
production environments, optimizing the deployment of large language models
(LLMs) in local, low-performance settings has become increasingly important.
This study focuses on enhancing Retrieval-Augmented Generation (RAG) techniques
for processing complex automotive industry documents using locally deployed
Ollama models. Based on the Langchain framework, we propose a multi-dimensional
optimization approach for Ollama's local RAG implementation. Our method
addresses key challenges in automotive document processing, including
multi-column layouts and technical specifications. We introduce improvements in
PDF processing, retrieval mechanisms, and context compression, tailored to the
unique characteristics of automotive industry documents. Additionally, we
design custom classes supporting embedding pipelines and an agent supporting
self-RAG based on LangGraph best practices. To evaluate our approach, we
constructed a proprietary dataset comprising typical automotive industry
documents, including technical reports and corporate regulations. We compared
our optimized RAG model and self-RAG agent against a naive RAG baseline across
three datasets: our automotive industry dataset, QReCC, and CoQA. Results
demonstrate significant improvements in context precision, context recall,
answer relevancy, and faithfulness, with particularly notable performance on
the automotive industry dataset. Our optimization scheme provides an effective
solution for deploying local RAG systems in the automotive sector, addressing
the specific needs of PDF chatbots in industrial production environments. This
research has important implications for advancing information processing and
intelligent production in the automotive industry.