Cloud product recommendation method and device

Through the combination of generating initial questions, extended models and matching models, cloud products are automatically recommended, solving the problems of low recommendation accuracy and low efficiency caused by manual understanding in the existing technology, and achieving efficient and accurate cloud product matching.

CN118797150APending Publication Date: 2024-10-18CHINA MOBILE GRP GUANGDONG CO LTD +1
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410574057.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-10
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing cloud product recommendation solutions rely on manual understanding and selection, resulting in low recommendation accuracy and low efficiency, and are difficult to adapt to complex needs and diverse scenarios.

Method used

By generating initial questions, extending the model to generate prompt statements, matching model recommendation solutions, and extracting keywords to obtain cloud product names, it combines natural language processing and machine learning technologies to automatically generate industry solutions to improve the accuracy and efficiency of recommendations.

Benefits of technology

It realizes the automatic generation of industry solutions, improves the accuracy and efficiency of cloud product recommendation, is suitable for various cloud product needs, including complex scenarios, and reduces manual operation time and misjudgment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118797150A_ABST
    Figure CN118797150A_ABST
Patent Text Reader

Abstract

The invention provides a cloud product recommendation method and device, and relates to the technical field of neural networks, and the method comprises the steps: generating an initial problem according to an industry selected by a user and a cloud product demand; expanding the initial question through an expansion model to generate a prompt statement; inputting the prompt statement into a matching model for matching to obtain a recommendation scheme; and extracting a keyword in the recommendation scheme to obtain a cloud product name, and feeding back the recommended cloud product name to the user. According to the method, the initial problem is expanded and identified, so that cloud product recommendation for the user is realized, misunderstanding of use requirements of the user is avoided, and the recommendation accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of neural network technology, and in particular to a cloud product recommendation method and device. Background Art

[0002] The existing solution involves users inputting cloud product requirements, and the platform semantically identifies and matches associations to recommend multiple expert solutions. The recommended solution is based on rule / algorithm recommendations, and rule features include industry attributes, scenarios, resource types, etc. At present, the solution library is manually entered in advance, including nine cloud solutions involving the Internet, medical care, industry, education, etc. Finally, the solution is manually understood and selected and the corresponding cloud products are screened. This may not accurately understand the user's needs, and the accuracy of recommending cloud products is low. Summary of the invention

[0003] The present application aims to solve one of the technical problems in the related art at least to some extent.

[0004] To this end, the first purpose of this application is to propose a cloud product recommendation method.

[0005] The second object of the present application is to provide a device.

[0006] The third objective of the present application is to provide an electronic device.

[0007] A fourth objective of the present application is to provide a computer-readable storage medium.

[0008] A fifth object of the present application is to provide a computer program product.

[0009] To achieve the above-mentioned purpose, the first embodiment of the present application proposes a cloud product recommendation method, including:

[0010] Generate initial questions based on the industry and cloud product requirements selected by the user;

[0011] Expanding the initial question through an expansion model to generate a prompt sentence;

[0012] Inputting the prompt statement into a matching model for matching to obtain a recommended solution;

[0013] Extract keywords from the recommendation scheme to obtain cloud product names, and feed back the recommended cloud product names to the user.

[0014] Optionally, the cloud product requirements include at least one of the following: content premise, role setting, clear objectives, and supplementary requirements.

[0015] Optionally, the step of expanding the initial question by using an extended model to generate a prompt statement includes:

[0016] Generate optimization problems and corresponding product definition descriptions;

[0017] Converting the cloud product demand into a corresponding first feature vector;

[0018] Traversing the optimization problem, converting the optimization problem into a second eigenvector, and determining a target optimization problem according to the second eigenvector and the first eigenvector;

[0019] The target optimization problem and the initial problem are combined to generate the prompt statement.

[0020] Optionally, determining a target optimization problem according to the second eigenvector and the first eigenvector includes:

[0021] calculating the proximity between the second eigenvector and the first eigenvector;

[0022] The optimization problem corresponding to the second eigenvector having the smallest proximity to the first eigenvector is determined as the target optimization problem.

[0023] Optionally, the matching model training step includes:

[0024] Obtain a pre-trained model, integrate cloud product-related problems and corresponding solutions to obtain a first data set, wherein the first data set includes a training set, a validation set, and a test set;

[0025] Inputting cloud product related questions in the training set into the pre-trained model for matching to generate training solutions;

[0026] determining, based on the training solution and the solution corresponding to the cloud product-related problem, and adding additional parameters to the pre-trained model based on the gap;

[0027] The accuracy of the pre-trained model is verified according to the verification set and the test set, the additional parameters are optimized with the goal of improving the accuracy, and the matching model is output.

[0028] Optionally, the method further includes:

[0029] Obtaining user feedback information on the training solution output by the pre-training model;

[0030] The additional parameters are optimized according to the feedback information.

[0031] Optionally, extracting keywords from the recommendation scheme to obtain a cloud product name includes:

[0032] Inputting multiple keywords in the recommendation scheme into the recognition model respectively to obtain the category label corresponding to each keyword;

[0033] The cloud product name corresponding to the category tag is determined as the cloud product name corresponding to the keyword.

[0034] Optionally, the step of training the recognition model includes:

[0035] Obtain a second data set, where the second data set includes training cloud product names and corresponding category labels;

[0036] Expanding the training cloud product name and preprocessing the cloud product name;

[0037] Extracting feature data of the training cloud product name;

[0038] A recognition model is trained based on the feature data and the corresponding category labels.

[0039] To achieve the above-mentioned purpose, the second embodiment of the present application proposes a cloud product recommendation device, including:

[0040] The question generation module is used to generate initial questions based on the industry and cloud product requirements selected by the user;

[0041] A question expansion module, used for expanding the initial question through an expansion model to generate a prompt statement;

[0042] A solution generation module, used for inputting the prompt statement into a matching model for matching to obtain a recommended solution;

[0043] The product recommendation module is used to extract keywords in the recommendation scheme to obtain cloud product names, and feed back the recommended cloud product names to the user.

[0044] To achieve the above-mentioned purpose, the third aspect of the present application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;

[0045] The memory stores computer-executable instructions;

[0046] The processor executes the computer-executable instructions stored in the memory to implement the method as described in any one of the first aspects.

[0047] To achieve the above-mentioned purpose, the fourth aspect embodiment of the present application proposes a computer-readable storage medium, in which computer-readable storage medium is stored computer execution instructions, and when the computer execution instructions are executed by a processor, they are used to implement the method as described in any one of the first aspects.

[0048] To achieve the above-mentioned purpose, the fifth aspect of the present application proposes a computer program product, which implements any method in the first aspect when executed by a processor.

[0049] The cloud product recommendation method, device, electronic device and storage medium provided in the present application achieve cloud product recommendation for users by expanding and identifying the initial question, avoiding misunderstanding of user usage needs and improving the accuracy of recommendations.

[0050] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0052] Figure 1 A flowchart of a cloud product recommendation method provided in an embodiment of the present application;

[0053] Figure 2 A schematic diagram of a corpus provided in an embodiment;

[0054] Figure 3 A schematic diagram of the structure of a cloud product recommendation device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0056] Based on semantic understanding, we can identify the need to purchase cloud hosts and associate them with solutions for recommendation. The following general steps can be taken:

[0057] Collect and organize semantic data: First, you need to collect and organize semantic data related to the cloud host, including basic properties of the cloud host, performance indicators, usage scenarios, and other information.

[0058] Build a semantic model: Based on the collection and organization of semantic data, natural language processing technology can be used to build a semantic model to identify and understand the user's purchasing needs. The semantic model can include entity recognition, relationship extraction and other technologies to identify and extract the user's intentions and needs. Entity recognition can be implemented in a sequence labeling model, such as a recurrent neural network (RNN).

[0059] Associate solutions and make recommendations: After identifying and understanding the user's purchasing needs, we can match and recommend existing cloud host solutions based on the user's needs and scenarios. We use rule-based strategies, statistical methods, or deep learning technology to model and analyze cloud host solutions. For each user's needs, we can filter and match existing cloud host solutions based on the required cloud host specifications, prices, performance, and other factors, and give corresponding recommendations.

[0060] Provide user feedback and optimization: User feedback is an important way to optimize semantic understanding and recommendation systems. User feedback information can be collected through user evaluation and feedback, and the semantic model and recommendation algorithm can be optimized and adjusted to improve the accuracy of the system and user satisfaction.

[0061] In general, to identify the need to purchase cloud hosts based on semantic understanding, and to associate solutions and make recommendations, it is necessary to consider and implement multiple aspects, including collecting and organizing semantic data, building semantic models, associating solutions and making recommendations, and conducting user feedback and optimization. A variety of technical means, including natural language processing technology, machine learning, and data mining, are needed to build a reliable and efficient semantic understanding and recommendation system.

[0062] Among them, associating solutions and making recommendations requires collecting and organizing solution data, building solution models, analyzing user needs, matching solutions, giving recommendation results, and conducting user feedback and optimization. It is necessary to adopt a variety of technical means, including machine learning, recommendation algorithms, natural language processing technology, etc., to build a reliable and efficient solution matching and recommendation system.

[0063] The main disadvantages of the existing solutions may include the following:

[0064] 1. Manual operation is time-consuming and labor-intensive: Manual operations are required to understand and screen multiple recommended expert solutions, which consumes a lot of time and human resources and is inefficient.

[0065] 2. The recommendation results may not be accurate enough: Since the solution relies on human understanding and selection, there may be subjectivity and misjudgment, resulting in inaccurate recommendation results.

[0066] 3. Limited application scenarios: It is suitable for some simple cloud product requirements, but the effect is not ideal for complex requirements and scenarios. The corresponding industry cloud product solutions may not be very consistent with the demand description.

[0067] In view of these defects and limitations, the technical solution proposed in this application can provide the following solutions:

[0068] 1. Automatically generate solutions: The technical solution of this application proposal can realize the automatic generation of industry solutions

[0069] 2. High efficiency and accuracy: The technical solution proposed in this application can achieve high-efficiency and accurate matching association, avoiding the problem of inaccurate recommendation results.

[0070] 3. Wide range of application scenarios: The technical solution proposed in this application can be applied to a variety of cloud product requirements, including complex requirements and scenarios.

[0071] To address this problem, the present application provides a cloud product recommendation method. Figure 1 This is a flow chart of a cloud product recommendation method provided in an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0072] Step 101, generating initial questions based on the industry and cloud product requirements selected by the user;

[0073] In this embodiment, the user first selects an industry classification (medical, industrial, educational, transportation, finance, Internet, government, media, and agriculture and commerce), then inputs the required question according to the prompt engineering standard, and constructs the question according to the prompt engineering standard. The standards are: content premise (the background of the question), role setting (assigning expert identity), clear goals (clear and specific goals), and supplementary requirements (setting the scope and form of the answer).

[0074] Step 102, expanding the initial question through an extended model to generate a prompt statement;

[0075] Step 103, inputting the prompt statement into a matching model for matching to obtain a recommended solution;

[0076] Step 104: extract keywords from the recommendation scheme to obtain cloud product names, and feed back the recommended cloud product names to the user.

[0077] Optionally, the cloud product requirements include at least one of the following: content premise, role setting, clear objectives, and supplementary requirements.

[0078] This embodiment involves the innovative upgrade of the Langchain component of the Cloud Network Think Tank: first, the user selects the industry and enters the cloud product requirements according to the prompt word template based on LangChain; then the cloud product fine-tuning model is integrated into LangChain, the industry solution is generated through LLM, and a chain component is created through Langchain to automatically extract the keyword association and match the cloud product name in the solution; finally, a user evaluation feedback mechanism is built to analyze and collect feedback on the generated results, and continuously improve the solution generation quality and product matching accuracy.

[0079] Since the large model corpus trained directly with ChatGLM6B is not specifically targeted at mobile cloud products, and the number of words required for the generated solution far exceeds the result of a single generation, and the generated solution needs to solidify the output module, the generation of large models requires a professional prompt template. Therefore, this solution is an innovation in the development of Langchain components, building prompt word templates and input and output components based on the cloud product specification cloud, integrating the cloud product fine-tuning model into LangChain, and extracting the cloud product name based on the keyword association matching in the solution of the newly developed chain component of Langchain. Associate to find related cloud products, including mobile cloud storage, cloud host, bare metal, cloud network, database, cloud space, cloud computer products, etc.

[0080] Optionally, the step 102 expands the initial question through an extended model to generate a prompt statement, including:

[0081] Generate optimization problems and corresponding product definition descriptions;

[0082] Converting the cloud product demand into a corresponding first feature vector;

[0083] Traversing the optimization problem, converting the optimization problem into a second eigenvector, and determining a target optimization problem according to the second eigenvector and the first eigenvector;

[0084] The target optimization problem and the initial problem are combined to generate the prompt statement.

[0085] In this example, you need to import the LLMChain module of langchain, use a language model and a question template to generate questions, and import the IndexFlatL2 module of Faiss, which can create an index of Euclidean distance to store and search data.

[0086] Prepare the data, including a series of optimization problems and corresponding product definition descriptions. You can store this data in a list or a dictionary, or read it from other data sources.

[0087] Relevant questions in Faiss are entered in advance. For example, the definition of relevant Internet industry questions is described as follows: 1) Ad hoc analysis refers to users dynamically analyzing and exploring data according to their own needs through dragging, filtering, etc., without pre-defining fixed reports or models. 2) Internet big data ad hoc analysis system refers to a system that provides ad hoc analysis capabilities for massive, multi-source, diverse, and real-time data in the Internet industry, which can help users quickly obtain data insights and support business decisions and optimization. 3) Improving the computing efficiency of the Internet big data ad hoc analysis system means reducing system response time and improving user experience and satisfaction by optimizing data storage, indexing, querying, acceleration, etc.

[0088] Create an LLMChain object and add the problem description as a vector to the index. You can use any method to convert text to vectors, such as TF-IDF, Word2Vec, BERT, etc.

[0089] Iterate over the optimization problems and perform the following steps for each problem:

[0090] Use the predict method of the LLMChain object to pass the question as an input variable and get a generated question. Use the search method of the IndexFlatL2 object to pass the generated question as a query vector and get the nearest neighbor's question definition and its distance. If the distance is less than a certain threshold, add the nearest neighbor's definition to the generated question to form a more specific question. Output or save the more specific question.

[0091] Optionally, determining a target optimization problem according to the second eigenvector and the first eigenvector includes:

[0092] calculating the proximity between the second eigenvector and the first eigenvector;

[0093] The optimization problem corresponding to the second eigenvector having the smallest proximity to the first eigenvector is determined as the target optimization problem.

[0094] In a possible embodiment, the original problem is enriched based on the prompt engineering standard problem: how to improve the computing efficiency of the Internet big data ad hoc analysis system by optimizing data storage.

[0095] Output:

[0096] Result 1

[0097] Product definition description of Nearest Neighbor: Ad hoc analysis means that users can dynamically analyze and explore data according to their needs by dragging, dropping, filtering, etc., without the need to pre-define fixed reports or models.

[0098] Nearest neighbor distance: 0.22377634

[0099] A more specific question is: How to improve the computing efficiency of the Internet big data ad hoc analysis system by optimizing data storage. Ad hoc analysis means that users can dynamically analyze and explore data according to their needs through dragging, dropping, filtering, etc., without the need to pre-define fixed reports or models.

[0100] Result 2

[0101] Generated question: How to improve the computational efficiency of Internet big data ad hoc analysis system by optimizing data indexes

[0102] Product definition description of Nearest Neighbor: Improving the computing efficiency of the Internet big data ad hoc analysis system means reducing system response time and improving user experience and satisfaction by optimizing data storage, indexing, query, acceleration, etc.

[0103] Nearest neighbor distance: 0.18047428

[0104] A more specific question is: How to improve the computing efficiency of the Internet big data ad hoc analysis system by optimizing data indexes. Improving the computing efficiency of the Internet big data ad hoc analysis system means reducing system response time and improving user experience and satisfaction by optimizing data storage, indexing, query, acceleration, etc.

[0105] Finally, the closest distance is selected and the problem is output based on result 2.

[0106] Optionally, the matching model training step includes:

[0107] Obtain a pre-trained model, integrate cloud product-related problems and corresponding solutions to obtain a first data set, wherein the first data set includes a training set, a validation set, and a test set;

[0108] Inputting cloud product related questions in the training set into the pre-trained model for matching to generate training solutions;

[0109] determining, based on the training solution and the solution corresponding to the cloud product-related problem, and adding additional parameters to the pre-trained model based on the gap;

[0110] The accuracy of the pre-trained model is verified according to the verification set and the test set, the additional parameters are optimized with the goal of improving the accuracy, and the matching model is output.

[0111] In this embodiment, the reasons why the existing ChatGLM6B model cannot be used directly to obtain an accurate solution are as follows:

[0112] The ChatGLM6B model is a general conversation model that is pre-trained on bilingual data in Chinese and English and optimized for conversation tasks. However, it is not trained for specific industry problems and solutions, so it may not be able to understand and answer some professional or field-related questions.

[0113] The ChatGLM6B model is a generative model that can generate natural and fluent responses based on a given context. However, it does not have a clear goal or evaluation criteria to guide it to generate correct and effective responses. Therefore, it may generate some irrelevant or wrong responses.

[0114] The ChatGLM6B model is a Transformer-based model with strong representation and generalization capabilities. However, it also has some limitations, such as the inability to process long texts, the inability to remember long-term information, and the inability to process multimodal data. Therefore, it may encounter some difficult problems or data.

[0115] Therefore, it is necessary to fine-tune the ChatGLM6B model through P-Tuning v2 to obtain the LLM model. Figure 2 A schematic diagram of a corpus provided in an embodiment is shown in FIG. Figure 2 As shown in the figure, the fine-tuned question and answer data is pre-entered with industry questions related to cloud products and the corresponding solutions of nine industries. The corpus covers common problems in various industries and solutions for related cloud products. The solution contains industry information, scenario information, and solution information. The solution contains the type and name of cloud products. The format of the corpus is the form of question and answer pairs, that is, each question corresponds to one or more solutions. The source of the corpus is the question and answer data entered by solution experts.

[0116] Table 1 shows the classification and name examples of related cloud products:

[0117]

[0118]

[0119] Table 1

[0120] First, we prepared a question-answering dataset for industry problems and solutions. We collected this dataset from existing open source datasets or expert input, ensuring that the quality and scale of the dataset are high enough to train an effective and reliable model. We also divided the dataset into training, validation, and test sets for model evaluation and selection.

[0121] Second, we use the P-Tuning v2 method to fine-tune the LLM model. P-Tuning v2 is a gradient-update-based fine-tuning method that updates parameters on the training set while freezing the parameters of the pre-trained model. This avoids destroying the knowledge of the pre-trained model and improves fine-tuning efficiency and stability. We also monitor the performance of the model on the validation set and adjust hyperparameters and early stopping strategies as needed.

[0122] Finally, we evaluate the fine-tuned LLM model on the test set and compare it with other baseline methods. We use some common indicators such as accuracy, F1 score, BLEU score, etc. to measure the effectiveness of the model in answering questions. We find that the fine-tuned LLM model can generate more accurate, relevant, and specific answers, and outperforms other baseline methods in all indicators.

[0123] The following are some descriptions of the concrete steps and parameters:

[0124] Dataset: We used the [DuReader] dataset and prepared an expert question-answering dataset for industry problems and solutions, which contains some real or simulated questions and corresponding correct answers. DuReader is a large-scale Chinese reading comprehension dataset that contains more than 200,000 questions asked by real users, as well as documents collected from search engines and encyclopedia websites as evidence. The DuReader dataset covers multiple fields and topics, such as education, the Internet, etc. We screened out subsets related to industry problems and solutions from the DuReader dataset and divided them into training sets (80%), validation sets (10%), and test sets (10%).

[0125] LLM model: We used the [ChatGLM6B] model as our LLM model. ChatGLM6B is a conversational language model based on the GPT-3 architecture, which is pre-trained on Chinese-English bilingual data and optimized for conversational tasks. The ChatGLM6B model has 600 million parameters and can generate natural and fluent responses.

[0126] P-Tuning v2 method: We used the [P-Tuning v2] method as our fine-tuning method. P-Tuning v2 is a gradient update-based fine-tuning method that adjusts the output of the model by adding some learnable position embeddings without changing the parameters of the pre-trained model. The P-Tuning v2 method can effectively utilize the knowledge of the pre-trained model and improve the fine-tuning efficiency and stability.

[0127] Hyperparameters and early stopping strategy: We used the following hyperparameters and early stopping strategy for fine-tuning:

[0128] Learning rate: 0.0001

[0129] Batch size: 32

[0130] Gradient accumulation steps: 4

[0131] Optimizer: AdamW

[0132] Weight decay: 0.01

[0133] Maximum number of training rounds: 10

[0134] Maximum generated length: 50

[0135] Early stopping criterion: F1 score on the validation set

[0136] Early stopping tolerance: 3

[0137] The training samples may be as follows (but not limited to the following examples):

[0138] Question: I am the head of a medical institution. I would like to use cloud computing technology to improve the quality and efficiency of our medical services. Do you have any good suggestions?

[0139] Answer: Hello, I am happy to provide you with some cloud computing solutions for the medical industry. Based on your needs, I recommend you use the following cloud products:

[0140] General cloud server: This is a cloud server suitable for various scenarios, which can meet your basic computing needs, such as running medical management system, electronic medical record system, online appointment system, etc. You can choose the appropriate configuration and quantity according to your business scale and traffic.

[0141] GPU cloud host: This is a cloud server designed for high-performance computing and artificial intelligence applications, which can help you perform tasks such as medical image analysis, diagnostic assistance, and drug development. You can choose the appropriate GPU model and quantity based on the complexity of your algorithm and the amount of data.

[0142] System disk: This is a disk that provides operating system and data storage for cloud servers, which can ensure the normal operation of your cloud server. You can choose the appropriate system disk type and size according to your cloud server type and capacity requirements.

[0143] Object storage: This is a cloud product that provides storage and access services for massive unstructured data. It can help you store and manage medical images, videos, audio and other data. You can choose the appropriate storage type and payment method based on your data type and access frequency.

[0144] Elastic Public IP: This is a cloud product that provides public network access capabilities for cloud servers, which can help you communicate with external networks. You can choose the appropriate public IP type and quantity based on your public network traffic requirements.

[0145] Shared bandwidth: This is a cloud product that provides public network egress bandwidth for multiple elastic public IPs, which can help you save public network traffic costs. You can choose the appropriate shared bandwidth size based on your public network traffic peak.

[0146] Cloud database MySQL: This is a cloud product that provides storage and management services for structured data, which can help you store and process medical-related business data. You can choose the appropriate database specifications and versions based on your data scale and performance requirements.

[0147] Cloud database Redis: This is a cloud product that provides storage and management services for unstructured data, which can help you implement functions such as caching, message queues, and rankings. You can choose the appropriate database specification and version based on your data type and access speed.

[0148] Optionally, the method further includes:

[0149] Obtaining user feedback information on the training solution output by the pre-training model;

[0150] The additional parameters are optimized according to the feedback information.

[0151] In this example, we need to collect and analyze user feedback and data to find out the advantages and disadvantages of the answers generated by the model, as well as the needs and expectations of users. We can use some tools and methods to collect and analyze, such as TensorBoard.

[0152] Secondly, we need to determine the direction and range of model parameter adjustment based on user feedback and data. We can use some indicators and methods to make this determination, such as A / B testing, grid search, Bayesian optimization, etc.

[0153] Finally, we need to use the P-Tuning v2 method to update additional parameters according to the adjustment direction and range of the model parameters, and evaluate the performance of the model on the validation set. We can use some libraries and functions for updating and evaluation, such as PyTorch, Transformers, ptuning, etc.

[0154] Optionally, extracting keywords from the recommendation scheme to obtain a cloud product name includes:

[0155] Inputting multiple keywords in the recommendation scheme into the recognition model respectively to obtain the category label corresponding to each keyword;

[0156] The cloud product name corresponding to the category tag is determined as the cloud product name corresponding to the keyword.

[0157] In this embodiment, a keyword extraction module is used to identify cloud product entities in the generated solution, and the cloud product entities are object storage, general cloud host, system disk, elastic public network IP, shared bandwidth, etc.

[0158] Optionally, the step of training the recognition model includes:

[0159] Obtain a second data set, where the second data set includes training cloud product names and corresponding category labels;

[0160] Expanding the training cloud product name and preprocessing the cloud product name;

[0161] Extracting feature data of the training cloud product name;

[0162] A recognition model is trained based on the feature data and the corresponding category labels.

[0163] In this embodiment, data collection: The purpose of this step is to collect more cloud product entity data in order to increase the amount of training data and coverage of the model. Data can be obtained from some public cloud computing-related text data sources, such as the official website, documents, blogs, forums, etc. of cloud service providers, or from some professional cloud computing-related journals, reports, books, etc. The collected data needs to be labeled, that is, each cloud product entity name is labeled with a corresponding category label.

[0164] Data augmentation: The purpose of this step is to expand the training data through some technical means in order to improve the generalization ability and robustness of the model. Some common data augmentation methods can be used, such as synonym replacement, word order shuffling, noise injection, etc., and some innovative data augmentation methods can also be used, such as adversarial generative networks, back translation, etc.

[0165] Data preprocessing: Convert the original text data into a format suitable for model input to improve the accuracy and efficiency of the model. You can use some common data preprocessing methods, such as word segmentation, stop word removal, stemming, part-of-speech tagging, named entity recognition, etc. You can also use some innovative data preprocessing methods, such as byte pair encoding, word embedding, context-dependent encoding, etc.

[0166] Feature extraction: Extract features that are helpful for cloud product entity recognition from preprocessed text data to enhance the model's expressiveness and generalization capabilities. Some innovative feature extraction methods can be used, such as attention mechanisms, transformers, and graph neural networks.

[0167] Model training: The purpose of this step is to use the extracted features and labeled data to train a cloud product entity extraction model to automatically identify cloud product entity names from text. Some innovative model training methods can be used, such as long short-term memory networks, conditional random fields, BERT, etc.

[0168] Model optimization: The purpose of this step is to adjust the parameters and structure of the model through some technical means in order to improve the performance and efficiency of the model. Some common model optimization methods can be used, such as Bayesian optimization, random search, etc., or some innovative model optimization methods can be used, such as neural structure search, meta-learning, etc.

[0169] Model deployment: The purpose of this step is to deploy the trained model to a platform or interface that can be used by users to facilitate the implementation of cloud product entity extraction functions.

[0170] In a possible embodiment, the generated expert solution case involves the following cloud product-related content:

[0171] According to your question, you are the head of a medical institution and you want to use cloud computing technology to increase the storage capacity of the big data platform from 100T to 1P. This is a typical big data scenario in the medical industry, involving the storage and management of massive amounts of unstructured data such as medical images, videos, audio, and text. To meet your needs, I recommend that you use the following cloud products:

[0172] Object storage: This is a cloud product that provides storage and access services for massive unstructured data, which can help you achieve 1P-level data storage and management. Object storage has the characteristics of high availability, high scalability, high security, and low cost, and is suitable for storing medical images, videos, audio and other data. You can choose the appropriate storage type and payment method based on your data type and access frequency.

[0173] General cloud host: This is a cloud server suitable for various scenarios, which can meet your basic computing needs, such as the management system, analysis system, and visualization system of the big data platform. You can choose the appropriate configuration and quantity according to your business scale and traffic.

[0174] System disk: This is a disk that provides operating system and data storage for cloud servers, which can ensure the normal operation of your cloud server. You can choose the appropriate system disk type and size according to your cloud server type and capacity requirements.

[0175] Elastic Public IP: This is a cloud product that provides public network access capabilities for cloud servers, which can help you communicate with external networks. You can choose the appropriate public IP type and quantity based on your public network traffic requirements.

[0176] Shared bandwidth: This is a cloud product that provides public network egress bandwidth for multiple elastic public IPs, which can help you save public network traffic costs. You can choose the appropriate shared bandwidth size based on your public network traffic peak.

[0177] Extract the names of cloud product entities such as object storage, general cloud host, system disk, elastic public IP, shared bandwidth, etc. in the above solution.

[0178] Optionally, first, the fine-tuned LLM model needs to be deployed to an accessible server and provide an API interface so that LangChain can call it.

[0179] Secondly, you need to define a Model I / O component in LangChain to interact with the LLM model. The Model I / O component is one of the most basic components in LangChain, which is responsible for sending input to the language model and receiving output.

[0180] Then, you need to define a Data Connection component in LangChain to interact with external data sources. The Data Connection component is another important component in LangChain, which is responsible for obtaining data from the data source and converting it into a format that the language model can understand.

[0181] The entity names extracted from the solution use Word2Vec to map the strings to the vector space, and calculate the cosine similarity between the vectors to match the cloud product information obtained by Langchain. The higher the similarity, the more similar the strings are, and the mobile cloud product names with high similarity (GPU cloud host, bare metal server, etc.) are matched.

[0182] Finally, a Chain component needs to be defined in LangChain to build and execute application logic. The Chain component is one of the highest-level components in LangChain. It is responsible for connecting other components such as Model I / O and Data Connection in series, and selecting and controlling them according to different scenarios and requirements.

[0183] The above is the method of defining the Langchain cloud product component, calling the fine-tuning model to generate a cloud product solution, and extracting the cloud product information recommendation in the solution.

[0184] In general, we can use question-and-answer generation solutions to extract cloud product entity information to achieve automated cloud product matching, which improves recommendation efficiency and accuracy. At the same time, we can also continuously optimize the recommendation model based on user feedback and usage to improve user experience and satisfaction.

[0185] In order to implement the above embodiment, the present application also proposes a cloud product recommendation device. Figure 3 This is a schematic diagram of the structure of a cloud product recommendation device provided in an embodiment of the present application. Figure 3 As shown, the device comprises:

[0186] A question generation module 310 is used to generate initial questions according to the industry and cloud product requirements selected by the user;

[0187] A question expansion module 320, configured to expand the initial question through an expansion model to generate a prompt statement;

[0188] A solution generation module 330 is used to input the prompt statement into a matching model for matching to obtain a recommended solution;

[0189] The product recommendation module 340 is used to extract keywords in the recommendation scheme to obtain cloud product names, and feed back the recommended cloud product names to the user.

[0190] In order to implement the above embodiments, the present application also proposes an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method provided by the above embodiments.

[0191] In order to implement the above embodiments, the present application also proposes a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the methods provided by the above embodiments.

[0192] In order to implement the above embodiments, the present application also proposes a computer program product, including a computer program, which implements the methods provided by the above embodiments when executed by a processor.

[0193] The collection, storage, use, processing, transmission, provision and disclosure of user personal information involved in this application are in compliance with relevant laws and regulations and do not violate public order and good morals.

[0194] It should be noted that personal information from users should be collected for legitimate and reasonable purposes and should not be shared or sold outside of these legitimate uses. In addition, such collection / sharing should be carried out after receiving the user's informed consent, including but not limited to notifying the user to read the user agreement / user notice and sign the agreement / authorization including authorization of relevant user information before the user uses the function. In addition, any necessary steps should be taken to protect and safeguard access to such personal information data and ensure that others who have access to personal information data comply with its privacy policy and procedures.

[0195] The present application is expected to provide an implementation scheme for users to selectively block the use or access of personal information data. That is, the present disclosure is expected to provide hardware and / or software to prevent or block access to such personal information data. Once the personal information data is no longer needed, the risk can be minimized by limiting data collection and deleting the data. In addition, when applicable, such personal information is de-identified to protect the privacy of the user.

[0196] In the description of the aforementioned embodiments, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0197] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0198] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0199] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0200] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0201] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0202] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0203] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A cloud product recommendation method, characterized in that: The following steps are involved: Generate initial questions based on the industry and cloud product requirements selected by the user; Expanding the initial question through an expansion model to generate a prompt sentence; Inputting the prompt statement into a matching model for matching to obtain a recommended solution; Extract keywords from the recommendation scheme to obtain cloud product names, and feed back the recommended cloud product names to the user.

2. The method according to claim 1, characterized in that The cloud product requirements include at least one of the following: content premise, role setting, clear goals, and supplementary requirements.

3. The method according to claim 2, characterized in that The step of expanding the initial question by using an extended model to generate a prompt statement includes: Generate optimization problems and corresponding product definition descriptions; Converting the cloud product demand into a corresponding first feature vector; Traversing the optimization problem, converting the optimization problem into a second eigenvector, and determining a target optimization problem according to the second eigenvector and the first eigenvector; The target optimization problem and the initial problem are combined to generate the prompt statement.

4. The method according to claim 3, characterized in that The determining of the target optimization problem according to the second eigenvector and the first eigenvector includes: calculating the proximity between the second eigenvector and the first eigenvector; The optimization problem corresponding to the second eigenvector having the smallest proximity to the first eigenvector is determined as the target optimization problem.

5. The method according to claim 1, characterized in that The training steps of the matching model include: Obtain a pre-trained model, integrate cloud product-related problems and corresponding solutions to obtain a first data set, wherein the first data set includes a training set, a validation set, and a test set; Inputting cloud product related questions in the training set into the pre-trained model for matching to generate training solutions; determining, based on the training solution and the solution corresponding to the cloud product-related problem, and adding additional parameters to the pre-trained model based on the gap; The accuracy of the pre-trained model is verified according to the verification set and the test set, the additional parameters are optimized with the goal of improving the accuracy, and the matching model is output.

6. The method according to claim 5, characterized in that The method further comprises: Obtaining user feedback information on the training solution output by the pre-training model; The additional parameters are optimized according to the feedback information.

7. The method according to claim 1, characterized in that The step of extracting keywords from the recommendation scheme to obtain a cloud product name includes: Inputting multiple keywords in the recommendation scheme into the recognition model respectively to obtain the category label corresponding to each keyword; The cloud product name corresponding to the category tag is determined as the cloud product name corresponding to the keyword.

8. The method according to claim 7, characterized in that The training steps of the recognition model include: Obtain a second data set, where the second data set includes training cloud product names and corresponding category labels; Expanding the training cloud product name and preprocessing the cloud product name; Extracting feature data of the training cloud product name; A recognition model is trained based on the feature data and the corresponding category labels.

9. A cloud product recommendation device, characterized in that: include: The question generation module is used to generate initial questions based on the industry and cloud product requirements selected by the user; A question expansion module, used for expanding the initial question through an expansion model to generate a prompt statement; A solution generation module, used for inputting the prompt statement into a matching model for matching to obtain a recommended solution; The product recommendation module is used to extract keywords in the recommendation scheme to obtain cloud product names, and feed back the recommended cloud product names to the user.

10. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 8.

Citation Information

Cited By

  • Data processing method and device, electronic equipment and computer readable medium

    CN119903155A

  • Data Processing Method, Apparatus, Electronic Device, and Computer-Readable Medium

    CN119903155B