The invention discloses an automatic
driving test case generation method based on a
large model retrieval enhancement technology, and aims to improve the generation efficiency of an automatic
driving test scene. The method comprises the following steps: firstly,
cutting a preprocessed data text into blocks, and vectorizing the text through an embedded model to construct an efficient vector
database; secondly, preliminarily retrieving related text blocks by using an improved
hybrid retrieval algorithm, and reordering by using a BERT cross
encoder to improve the relevance of retrieval results; aiming at the complex task requirement in the automatic
driving test, the method is divided into a plurality of sub-tasks to be executed in parallel, so that the retrieval efficiency and accuracy are improved. And then, a LoRA strategy is adopted to finely adjust the large
language model so as to adapt to an automatic driving scene generation task. And finally, jointly inputting the cue word template and the reordering result into a
fine tuning model to generate a
test case. According to the invention, a brand new technical scheme is provided for automatic driving
test scene generation, and the method is of great significance in improving the
test evaluation level of automatic driving and accelerating the landing of the automatic driving technology.