摘要
随着汽车智能化与电动化进程不断加快,传统硬件在环(Hardware-in-the-Loop,HIL)测试面临人力依赖度高、测试效率低、知识复用难等问题。本文提出一种融合大语言模型(Large Language Model,LLM)与检索增强生成(Retrieval-Augmented Generation,RAG)的智能体架构,通过分层任务分解、RAG 知识增强、代码协同生成,实现测试用例与自动化测试脚本的高效生成。试验结果表明,该方案可大幅减少人工干预、降低 Token 消耗,有效提升测试开发效率。
Abstract
With the continuous acceleration of the intelligentization and electrification of automobiles, traditional Hardware-in-the-Loop (HIL) testing is facing problems such as high dependence on human resources, low testing efficiency, and difficulty in knowledge reuse. This paper proposes an intelligent agent architecture that integrates Large Language Model (LLM) and Retrieval-Augmented Generation (RAG). Through hierarchical task decomposition, RAG knowledge enhancement, and code collaborative generation, it achieves efficient generation of test cases and automated test scripts. Experimental results show that this solution can significantly reduce human intervention, lower token consumption, and effectively improve testing development efficiency.
关键词
人工智能 /
HIL 测试 /
大语言模型 /
检索增强生成 /
自动化测试
Key words
AI /
HIL testing /
Large Language Model /
Retrieval-Augmented Generation /
automated testing
李耀雄.
人工智能技术与汽车自动化测试的结合研究[J]. 汽车电器. 2026, 1(7): 44-47
Li Yaoxiong.
Research on the Combination of Artificial Intelligence Technology and Automotive Automation Testing[J]. AUTO ELECTRIC PARTS. 2026, 1(7): 44-47
{{custom_sec.title}}
{{custom_sec.title}}
{{custom_sec.content}}
参考文献
[1] 周时莹,陈霞,张东波,等 . 基于大语言模型的智能驾驶测试用例自动生成系统 [J]. 汽车文摘,2025(10):6-18.
[2] LIU P,YUAN W,FU J,et al. Pre train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processing[J]. ACM Computing Surveys,2023,55(9):1-35.
[3] LEWIS P, PEREZ E, PIKTUS A, et al. Retrieval augmented generation for knowledge intensive NLP tasks[C]//Proceedings of the 34th Conference on Neural Information Processing Systems (NeurIPS). Addis Ababa, Ethiopia, 2020, 33:9459-9474.
[4] JOHNSON J,DOUZE M,JÉGOU H. Billion-scale similarity search with GPUs[J]. IEEE Transactions on Big Data,2021,7(3):535-547.
[5] [英]本 · 奥法斯 .LangChain 大模型应用开发 [M]. 郭涛,译 . 北京:清华大学出版社,2025.