The application discloses a lapack code
library function name recommendation method and
system based on a thinking chain and
logical reasoning, and comprises the following steps: S1, constructing a lapack function
database, a keywords
database and a cot question and answer example; S2, according to the cot prompt content obtained by adding the cot question and answer example to the input
programming requirement, adopting LLM to deduce the key attributes of the lapack function required for
programming except the implementation method, and checking the key attributes; S3, using the checked key attributes to search the available implementation method in the lapack function
database, and using LLM to select the used implementation method; S4, according to the checked key attributes and the implementation method selected by LLM, searching in the lapack function database to obtain a first function name search result; S5, according to the
programming requirement, searching in the keywords database to obtain a second function name search result; and S6, comprehensively searching the two function name search results, and logically deducing the recommended lapack code
library function name. According to the application, the lapack code
library function name recommendation is realized, and a large
language model does not need to be fine-tuned.