Service recommendation decision method based on large model retrieval enhancement generation and related equipment
Патент · CN B
Полный текст
The invention provides a service recommendation decision-making method and related equipment based on large model retrieval enhancement, the method comprises the steps of obtaining unstructured service demands, calling a large language model to conduct semantic analysis and expansion on the service demands to generate unstructured expanded semantic texts, encoding the expanded semantic texts to obtain semantic query vectors, querying pre-stored service descriptions of all services from a service database, respectively calculating first similarity scores between the semantic query vectors and the service descriptions, screening candidate service sets with semantic association with the service demands, determining all application programming interfaces corresponding to the candidate service sets, and screening out final application programming interface sets and recommending according to the use frequency of the application programming interfaces, the semantic similarity between labels and the semantic query vectors. The method and the device improve the accuracy of API recommendation.