Code search query expansion method based on large language model

CN121301531APending Publication Date: 2026-01-09HUNAN UNIV OF SCI & TECH
0 Cites -1 Cited by

Patent Information

Application Number
CN202511651664.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-12
Publication Date
2026-01-09

Smart Images

  • Figure CN121301531A_ABST
    Figure CN121301531A_ABST
Patent Text Reader

Abstract

The invention discloses a code search query expansion method based on a large language model, and belongs to the related technical field of code search query expansion, the method comprises the following steps: obtaining an original query input by a user; inputting the original query into a query expansion model subjected to corpus fine tuning in the code search field, and performing semantic expansion on keywords in the original query through the query expansion model to generate an expanded query; and inputting the extended query into a neural network code search model, and retrieving the matched code snippets from the code library by calculating the similarity between the query and the code snippets in the vector space. The method has positive influence on query expansion in a code search task, and effectively enhances the query expansion, so that the code search accuracy is improved.
Need to check novelty before this filing date? Find Prior Art