Method, device and system for realizing dialogue process based on large model and medium

Through the dialogue process method based on large models, the problem of low efficiency of traditional customer service and the inability of intelligent customer service to handle complex problems is solved, personalized responses and emotional understanding of intelligent customer service are realized, and the user experience is improved.

CN118820437APending Publication Date: 2024-10-22PING AN BANK CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411006127.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

Traditional manual customer service has problems such as poor communication, low efficiency and high cost. Intelligent customer service cannot provide accurate answers when dealing with complex problems and lacks emotional communication skills, resulting in poor user experience.

Method used

Using a dialogue process method based on large models, by collecting training data, generating dialogue models, and combining Prompt engineering and multi-modal technology, personalized responses and emotional understanding of intelligent customer service can be achieved.

Benefits of technology

It improves the work efficiency and user experience of intelligent customer service, can handle complex problems, provide personalized services, and enhance user participation and satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118820437A_ABST
    Figure CN118820437A_ABST
Patent Text Reader

Abstract

The invention discloses a method, a device and a system for realizing a dialogue process based on a large model, and a medium. The method comprises the following steps: collecting training data of each scene according to training scenes; inputting the training data into a model for training to obtain a dialogue model; obtaining a target question statement input by a user; and inputting the target question statement into a dialogue model, and outputting a target reply result. According to the invention, the question is input into the trained model, and the personalized reply is output according to the question of the user, so that the working efficiency and the user experience are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the financial field, and in particular to a method, device, system and medium for implementing a dialogue process based on a large model. Background Art

[0002] Traditional manual customer service, whether by phone, email or through the platform portal, will have problems with poor communication or untimely delivery. During peak hours, customers need to wait longer to access customer service, resulting in a low customer experience. When traditional manual customer service handles problems, it relies more on the experience and knowledge of customer service, which may lead to inconsistent and inefficient customer service answers. And with the increase in the number of consultations, the labor cost of customer service is too high, and the operating costs of enterprises are increasing. Intelligent customer service has improved the efficiency and experience of manual customer service, but it has difficulties in understanding complex or unconventional problems. Intelligent customer service relies on preset algorithms and models. For some specific or complex problems, it cannot provide accurate or satisfactory answers. At this time, customers still have to turn to manual customer service for help. In addition, intelligent customer service lacks emotional communication capabilities. Although intelligent customer service can communicate with customers through natural language processing technology, the service content is mechanized and lacks personalization, which makes them unable to perceive customers' emotions and needs, reducing user experience. Summary of the invention

[0003] In view of the above-mentioned deficiencies in the prior art, the purpose of the present invention is to provide a method, device, system and medium for implementing a dialogue process based on a large model, which can be applied to financial technology or other related fields, aiming to improve the work efficiency of intelligent customer service and improve the user experience when the user communicates with the intelligent customer service.

[0004] The technical solution of the present invention is as follows:

[0005] A method for implementing a dialogue process based on a large model, the method comprising:

[0006] Collect training data for each scenario based on the training scenario;

[0007] Inputting the training data into the model for training to obtain a dialogue model;

[0008] Get the target question sentence input by the user;

[0009] The target question statement is input into the dialogue model, and the target response result is output.

[0010] In one embodiment, after collecting the training data of each scenario according to the training scenario, the method further comprises:

[0011] The training data is preprocessed, the processed training data is annotated, and a knowledge base is generated.

[0012] In one embodiment, preprocessing the training data, annotating the processed training data, and generating a knowledge base includes:

[0013] Get preset questions in the knowledge base;

[0014] Inputting the preset questions into the model for iterative training to generate preset similar questions;

[0015] Generate preset similar question answers corresponding to preset similar questions based on the knowledge base.

[0016] In one embodiment, inputting the target question statement into the dialogue model and outputting the target response result includes:

[0017] Analyze the target question statement to obtain an analysis result;

[0018] The analysis result is matched with preset questions in the knowledge base, and a corresponding first target response result is generated according to the matching result.

[0019] In one embodiment, matching the analysis result with a preset question in a knowledge base and generating a first target response result according to the matching result includes:

[0020] Determine whether the target question statement belongs to a preset question in the knowledge base;

[0021] Calculating the similarity between the target question statement and the preset question in the knowledge base to obtain a similarity value between the target question statement and the preset question in the knowledge base;

[0022] When the similarity value is greater than a similarity threshold, the target question statement belongs to a preset question in the knowledge base, and a first target response result is output.

[0023] In one embodiment, the calculating the similarity between the target question statement and the preset question in the knowledge base to obtain the similarity value between the target question statement and the preset question in the knowledge base further includes:

[0024] When the similarity value is less than a similarity threshold, the target question statement does not belong to a preset question in the knowledge base, and reply information is captured from the knowledge base according to the analysis result, and a first target reply result is output.

[0025] In one embodiment, the step of inputting the target question statement into the dialogue model and outputting the target response result further includes:

[0026] According to the analysis results, the answer strategy and answer content of the first target reply result are adjusted to generate a second target reply result.

[0027] A device for implementing a dialogue process based on a large model, comprising:

[0028] A data collection module, used to collect training data for each scenario according to the training scenario;

[0029] A model training module, used to input the training data into the model for training to obtain a dialogue model;

[0030] A question acquisition module is used to obtain a target question sentence input by a user;

[0031] The response output module is used to input the target question sentence into the dialogue model and output the target response result.

[0032] A system for implementing a dialog flow based on a large model, the system comprising at least one processor; and

[0033] a memory communicatively connected to the at least one processor; wherein,

[0034] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned method for implementing a dialog flow based on a large model.

[0035] A non-volatile computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by one or more processors, the one or more processors can execute the above-mentioned method for implementing a dialogue process based on a large model.

[0036] Beneficial effects: The present invention discloses a method, device, system and medium for implementing a dialogue process based on a large model. Compared with the prior art, the embodiments of the present invention improve work efficiency and user experience by inputting questions into a trained model and outputting personalized answers based on the user's questions. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

[0038] Figure 1 A flow chart of a method for implementing a dialogue process based on a large model provided by an embodiment of the present invention;

[0039] Figure 2 A flowchart of step 500 of a method for implementing a dialog flow based on a large model provided by an embodiment of the present invention;

[0040] Figure 3 Another flow chart of method step 500 for implementing a dialog flow based on a large model provided by an embodiment of the present invention;

[0041] Figure 4 A flowchart of step 400 of a method for implementing a dialog flow based on a large model provided by an embodiment of the present invention;

[0042] Figure 5 A method flow chart of method step 400 for implementing a dialog flow based on a large model provided by an embodiment of the present invention;

[0043] Figure 6 Another method flow chart of method step 400 for implementing a dialog flow based on a large model provided by an embodiment of the present invention;

[0044] Figure 7 A schematic diagram of functional modules of a device for implementing a dialog flow based on a large model provided by an embodiment of the present invention;

[0045] Figure 8 A schematic diagram of the hardware structure of a system for implementing a dialog flow based on a large model provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail below. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. The embodiments of the present invention are described below in conjunction with the accompanying drawings.

[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0048] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0049] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0050] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0051] See also Figure 1 , Figure 1 A flowchart of an embodiment of the method for implementing a dialogue process based on a large model provided by the present invention. The method for implementing a dialogue process based on a large model provided in this embodiment is applied to a system consisting of a terminal device, a network and a server, wherein the network is a medium for directly providing a communication link between the terminal device and the server, which may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.; the operating system on the terminal device may include a handheld device operating system (iPhone operating system, iOS system), Android system or other operating system, and the terminal device is connected to the server through the network to achieve interaction, thereby performing operations such as receiving or sending data, and specifically may be various electronic devices with a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, portable computers and desktop servers, etc.

[0052] The present invention introduces digital human technology to solve the problem of intelligent customer service interaction. Digital human relies on front-end CG modeling and back-end AI drive. This solution combines simulated human body model, three-dimensional modeling, speech recognition, natural language processing, speech synthesis, speech drive, facial animation, deep learning and other cutting-edge technologies to develop a "multimodal" robot. It has two images of 2D real person / 3D hyper-realism, and has the abilities of "intelligent perception, good expression, broad knowledge, and ability to evolve", and has its own memory and self-learning ability. Digital human customer service has the following advantages: Digital human customer service has strong interactive capabilities. Digital human customer service enhances user experience and sense of participation by implementing dialogue. Digital human has a high degree of restoration and realism. It supports image customization, action customization, clothing configuration, timbre customization, etc. Digital human production is efficient. Digital human production is completed in a shorter time, speeding up project progress and improving production efficiency.

[0053] like Figure 1 As shown, Figure 1 : is a flowchart of a method for implementing a dialogue process based on a large model provided by an embodiment of the present invention, the method specifically comprises the following steps:

[0054] S100, collecting training data for each scenario according to the training scenario;

[0055] S200, inputting the training data into the model for training to obtain a dialogue model;

[0056] S300, obtaining a target question sentence input by a user;

[0057] S400: Input the target question statement into the dialogue model, and output the target response result.

[0058] In this embodiment, the big model technology is introduced to solve the problem that the intelligent customer service cannot provide answers and the speech is mechanical and lacks emotion. In order to ensure that the model can handle various types of queries, it is necessary to collect a large amount of training data first. The data can come from a variety of sources, such as online forums, customer feedback, social media, news articles, etc. These data should cover various possible service scenarios and user problems, such as restaurant reservations, banking services, or e-commerce shopping. The training data includes users' common questions, industry-specific terms, and the latest trends. It helps to determine the direction of training data and model tuning. Define training scenarios, such as technical support, product consultation, after-sales service, etc. By designing different big model call processes according to different scenarios, combined with the Prompt project, the big model is used in multiple scenarios to improve the effect of digital human answers. The prompt project specifically includes: generating prompt projects according to the demand type, including: prompt project 1 (questions that are not in the knowledge base), prompt project 2 (expanding the knowledge base questions), (simplifying and colloquializing the answers, etc.), and the large model call specifically includes: training the pre-trained model (manually writing answers and pre-trained models), training the reward model (pre-trained models generate good content and build reward functions), training the reinforcement model (training reinforcement models and model birth), and obtaining the dialogue model. For example, each prompt project outputs a result, and the result is input into the large model call for training. It can be understood as the process of training the pre-trained model to tell the large model 1+1=2; training the reward model is to ask the large model questions again. If he answers 1+1=2, then reward him. If he does not answer, then no reward is given, so that the large model knows which of his answers are correct and which are wrong. Training the reinforcement model is to enable the large model to generate deduction capabilities. We did not tell him that 2+3=5, but because he learned 1+1=2 before, when we ask him 2+3, he can also return to us that it is equal to 5. Extract relevant training data from the training data according to the training scenario. Input the training data into the model for training to obtain the dialogue model. Obtain the target question sentence input by the user through the interactive interface, input the target question sentence into the trained model, and the model outputs the corresponding target response result according to the target question sentence.

[0059] Large models are usually first pre-trained on a large amount of training data, and then fine-tuned through prompt engineering to adapt to specific tasks or scenarios. By designing appropriate prompts, large models can be better adapted to various NLP tasks, such as sentiment analysis, question-answering systems, text summarization, etc. Well-designed prompts can significantly improve the performance of large models on specific tasks, reduce error rates, and improve user satisfaction. Prompt engineering can help optimize the interaction process between users and AI models, making conversations more natural and smooth. Combining the powerful capabilities of large models with the flexibility of prompt engineering, innovative AI applications can be developed to solve problems that were previously difficult to handle. Before designing prompts, in-depth analysis of the target tasks and scenarios is required to determine the most appropriate form of prompts.

[0060] Specifically, prompt engineering refers to the process of designing and optimizing input prompts that can guide AI models to generate specific outputs or perform specific tasks. It is used to design and implement prompts or instructions to guide AI systems (such as digital customer service) to provide appropriate responses in specific scenarios. In the field of artificial intelligence, especially in natural language processing (NLP), prompts are inputs used to stimulate AI models to generate specific outputs. Clarify the goals of prompt engineering, such as improving the naturalness, accuracy, or user satisfaction of conversations. Understand the needs and preferences of target users in order to design prompts that better meet user expectations. Analyze different usage scenarios and determine what kind of prompts are needed in each scenario. Create prompt templates that can be adjusted according to different conversation contexts. Ensure that the language of the prompt is concise and easy for AI to understand and generate appropriate responses. Design prompts that can capture and reflect the context of the conversation to maintain the coherence of the conversation. Establish a mechanism to collect user feedback in order to continuously optimize the effectiveness of prompts. Design prompts that can handle multiple rounds of conversations to ensure that AI can maintain the coherence of the topic during the conversation. Customize prompts according to users' personalized needs to provide more personalized services. Use NLP technology and machine learning algorithms to implement prompt functions. Evaluate the effectiveness of prompts through testing and make adjustments based on the results. Prompt engineering is an ongoing process that requires continuous iteration and improvement.

[0061] Specifically, large models usually refer to deep learning models with a large number of parameters, which can handle complex tasks such as language understanding, generation, translation, etc. Large models have many parameters, usually millions or even billions of parameters, which can capture subtle patterns in language and data and provide more accurate and in-depth understanding. Pre-training on large amounts of data to learn general representations of language, and then fine-tuning for specific tasks, makes them have good generalization capabilities and can adapt to a variety of different tasks and scenarios.

[0062] In addition to the input text, digital human customer service also needs to be able to understand and generate multimodal data such as voice and images. It is necessary to extract the user's target question statement from voice and image, especially in some scenarios, such as video consultation or image recognition scenarios, which requires the integration of speech recognition, speech synthesis and image processing technologies in the model. Ensure that information from different modalities can be effectively integrated. For example, the accuracy of semantic understanding can be improved by synchronizing voice and text information. Ensure that digital humans can also maintain information consistency and accuracy under different input modalities. Further, use natural language understanding technology (NLU) to parse the user's input text and extract key information and intent. For voice input, use automatic speech recognition (ASR) technology to convert the user's voice into text. During the speech recognition process, handle background noise and accent differences between speakers. For image input, use image recognition technology, such as optical character recognition (OCR), to extract text from the image. Analyze the image content, identify objects, scenes, etc. in the image, and assist in understanding the user's problem. For multimodal input, when the user provides text, voice and image input at the same time, fuse these data to provide a more comprehensive understanding. Ensure information consistency in different input modes to avoid confusion.

[0063] In one embodiment, after step S100, the following steps are included:

[0064] S500: pre-process the training data, annotate the processed training data, and generate a knowledge base.

[0065] In this embodiment, Figure 2 As shown, Figure 2It is a flowchart of step 500 of a method for implementing a dialogue process based on a large model provided by an embodiment of the present invention. The collected training data is preprocessed, and the preprocessing includes text correction, including using natural language processing tools, such as spelling checkers, grammar analyzers, etc., to identify errors in the text. Use a grammar model to identify and correct grammatical errors. For example, a sequence-to-sequence (seq2seq) model can be trained to predict the correct grammatical structure. Design or use existing spelling check algorithms, such as Levenshtein distance, edit distance, etc., to identify and correct spelling errors. Use natural language rules or machine learning models to identify and correct the use of punctuation marks. Browse the data set to understand the structure and content of the data and identify possible errors and inconsistencies. Identify missing values ​​in the data. Common processing methods include deletion, filling (such as using the mean, median or mode) or interpolation. Identify abnormal values ​​or outliers in the data set and decide how to deal with them. You can choose to delete, replace or retain these values. Check whether there are duplicate records in the data set and delete them to ensure the uniqueness of the data. Ensure that the data type of the data field is correct, such as converting a string to a date format or converting text to a numeric value. Clean the text data to remove irrelevant or duplicate content. Ensure that the same attributes in the data set are consistent in different records, such as unified date format or naming conventions. Convert text data to a unified form, such as capitalizing or lowercase all first letters. If the data comes from different sources, it is necessary to integrate the data from different sources to ensure that they are in the same data framework. Identify and deal with noise in the data, such as random errors or measurement errors, which can be reduced by smoothing techniques or filters. Preprocess the data to improve data quality and ensure the accuracy and reliability of the data set. So that the large model can better learn and understand.

[0066] Identify questions and query results from the processed training data, and extract or write the corresponding answers for each question. Categorize questions by topic or category, and assign tags to each question and answer, which can be used for retrieval and indexing. Design the annotation task, including defining tags and annotation rules. Tags should be able to cover all key information and categories in the scene. Annotate questions and answers and generate a knowledge base. Build an index for the knowledge base to quickly retrieve questions and answers. Use a database or other storage system to manage the knowledge base to ensure data consistency and accessibility.

[0067] In one embodiment, the step S500 includes:

[0068] S501, obtaining preset questions in the knowledge base;

[0069] S502, inputting the preset question into the model for iterative training to generate preset similar questions;

[0070] S503: Generate preset similar question answers corresponding to preset similar questions based on the knowledge base. Figure 3 As shown, Figure 3 Another flowchart of the method step 500 for implementing a dialogue process based on a big model provided in an embodiment of the present invention. Before the corpus in the existing corpus is imported, the operation team will expand similar questions based on the operation experience. After the introduction of the big model, the expansion effect of similar questions will be greatly improved, thereby providing richer knowledge resources and providing customers with more comprehensive information services. Traditional knowledge base technology will generate a variety of similar questions for preset questions. The present invention uses the generation capability of the big model, and through a supervised solution, generates results for the big model questions, and enriches the knowledge base with expert experience. On the one hand, it improves the manual consumption of the original knowledge base question maintenance, and on the other hand, it quickly and easily supplements more similar questions that have not been considered. The scheme is mainly through prompt testing and adjustment. First, the big model is informed that the main task is to expand similar questions, and some similar questions are demonstrated. Through multiple rounds of test iterations, the optimal prompt version is obtained, and the answers to the questions are generated to expand the corpus.

[0071] Specifically, a structured knowledge base containing rich expert knowledge is constructed, which can be a database or file system. Clearly inform the large model that the main task is to expand similar questions. Design an initial prompt to guide the model to understand the task requirements. For example: "Generate questions similar to the following question: [original question]." Give some examples of similar questions as a reference for the model to generate new questions. Obtain preset questions in the knowledge base; input the preset questions into the model for iterative training to generate preset similar questions; annotate the generated questions to determine their intent and relevant answers. The training model generates answers through the knowledge base and the structured knowledge base of the expert's rich knowledge. Verify the generated answers to ensure their accuracy and relevance. Based on the pre-trained large model, use the annotated data for fine-tuning to optimize the model's performance in the similar question generation task. Conduct the first round of testing to generate a series of similar questions and evaluate their quality. Evaluate whether the generated questions meet expectations and identify the relevance, diversity, and accuracy of questions and answers. Based on the results of the first round of testing, adjust the prompt to improve the question generation effect. Possible adjustments include changing the language style of the prompt, increasing the number or type of example questions, etc. Repeat the process of testing and adjusting Prompt for multiple iterations until the generated questions reach a satisfactory quality. Use the generated preset similar questions to guide the model to generate preset similar question answers and expand the corpus. Validate the generated answers to ensure their accuracy and relevance. Integrate the generated preset similar questions and preset similar question answers into the knowledge base.

[0072] In one embodiment, inputting the target question statement into the dialogue model and outputting the target response result includes:

[0073] S401, analyzing the target question statement to obtain an analysis result;

[0074] S402: Match the analysis result with a preset question in a knowledge base, and generate a corresponding first target reply result according to the matching result.

[0075] In this embodiment, Figure 4 As shown, Figure 4 A flowchart of step 400 of a method for implementing a dialogue process based on a large model provided in an embodiment of the present invention. By analyzing the target question statement, identifying and extracting keywords or entities in the input, such as names, places, times, etc., an analysis result is obtained. According to the analysis result, the user's target question statement is matched with the preset questions in the knowledge base to find the most relevant answer or information. A corresponding first target reply result is generated according to the matching result.

[0076] In one embodiment, matching the analysis result with a preset question in a knowledge base and generating a first target response result according to the matching result includes:

[0077] S4021, determining whether the target question statement belongs to a knowledge base preset question;

[0078] S4022, calculating the similarity between the target question statement and the preset question in the knowledge base, and obtaining a similarity value between the target question statement and the preset question in the knowledge base;

[0079] S4023. When the similarity value is greater than a similarity threshold, the target question statement belongs to a preset question in the knowledge base, and a first target response result is output.

[0080] In this embodiment, Figure 5 As shown, Figure 5A method flow chart of step 400 of the method for implementing a dialogue process based on a large model provided in an embodiment of the present invention. Determine whether the target question statement belongs to a preset question in the knowledge base; perform word segmentation processing on the target question statement, divide the continuous text string into separate words, and convert the text into a numerical vector. Calculate the similarity between the target question statement and the preset question in the knowledge base, and select a suitable similarity calculation method. Common methods include: Cosine similarity: calculate the cosine angle between two vectors to measure their similarity. Jaccard similarity: calculate the ratio of the intersection and union of two sets. Euclidean distance: calculate the straight-line distance between two vectors. Manhattan distance: calculate the sum of the absolute values ​​of the differences between two vectors in each coordinate dimension. Obtain the similarity value between the target question statement and the preset question in the knowledge base; set a similarity threshold to determine when the two questions are considered to be sufficiently similar. When the similarity value is greater than the similarity threshold, the target question statement belongs to the preset question in the knowledge base, sort the questions in the knowledge base according to the similarity value, select the most similar question, and output the first target reply result.

[0081] In one embodiment, the calculating the similarity between the target question statement and the preset question in the knowledge base to obtain the similarity value between the target question statement and the preset question in the knowledge base further includes:

[0082] S4024. When the similarity value is less than the similarity threshold, the target question statement does not belong to a preset question in the knowledge base, and reply information is captured from the knowledge base according to the analysis result, and a first target reply result is output.

[0083] In this embodiment, Figure 6 As shown, Figure 6 Another method flow chart of method step 400 for implementing a dialogue process based on a large model provided by an embodiment of the present invention. Traditional knowledge base question-answering technology requires presetting user questions, then retrieving answers corresponding to the questions and feeding back standard answers to users. When the questions asked by users do not belong to the knowledge base, no corresponding answers can be given. For example, when a user asks a question "preliminary review", the reply is "I am in the process of growing up, and this question is beyond the current knowledge scope. You can call the service hotline for more help."

[0084] When the similarity value is less than the similarity threshold, it means that the target question statement does not belong to the preset question in the knowledge base. According to the analysis results, the reply information is captured from the knowledge base and the first target reply result is output. In order to ensure that the given results are as reasonable and correct as possible, the present invention uses "prompt engineering" to narrow the scope and improve the accuracy and relevance of the answer. Prompt engineering describes the process of how to effectively use prompts to extract information from language models, including selecting appropriate elements such as vocabulary, grammar, context and theme. According to the analysis of the use scenarios of intelligent customer service and the problems faced, set task instructions, task goals, behavioral constraints, role positioning, output specifications and other elements in prompt, so that the big model can play the role of a provident fund customer service staff in this task and answer questions as needed. The user asked "preliminary review", and the big model technology replied "Hello, the provident fund preliminary review is a preliminary review of the provident fund loan application you submitted, mainly to review whether your application materials are complete, true and valid, and whether your provident fund payment status, loan qualifications, etc. meet the relevant regulations. If the preliminary review is passed, your application will enter the next stage of approval. If you have any questions, please feel free to ask me."

[0085] Compared with traditional algorithms, the most important feature of big models is the zero shot or few shot capability. Zero shot or few shot can find language fragments related to the question from massive documents, use the context of the texts in the training samples, make probability predictions about the next text based on the previous text, and give the result with the highest probability as the answer. After the introduction of big model technology, even if the answer proposed by the customer does not hit the knowledge base in the "initial review", it will trigger the big model to call the interface mechanism and generate the answer through the big model.

[0086] Specifically, Zero Shot Learning (ZSL): Zero Shot Learning refers to the ability of a model to recognize or process a specific category even if it has never seen samples of that category. This is usually achieved by associating the visual features or descriptions of the category with the model's existing knowledge. Few Shot Learning (FSL): Few Shot Learning refers to the ability of a model to learn and recognize new categories even if it has only seen a few samples of a specific category. This requires the model to have the ability to learn and generalize quickly.

[0087] In one embodiment, the step S400 further includes:

[0088] According to the analysis results, the answer strategy and answer content of the first target reply result are adjusted to generate a second target reply result.

[0089] In this embodiment, in order to make the answer more suitable for the customer, the answer is optimized according to the customer's question. Collect the user's historical interaction data, which includes text, voice and / or emotion tags. Emotionally annotate the user's historical interaction data and define different emotion categories and tags. Select a pre-trained large model suitable for sentiment analysis, such as BERT (Bidirectional Encoder Representations from Transformers pre-trained language representation model), RoBERTa (A Robustly Optimized BERT Pretraining Approach natural language processing model), GPT (Generative Pretrained Transformer), etc. Use the annotated historical interaction data to fine-tune the pre-trained model so that the model can recognize different emotion categories. Guide the model to focus on and identify relevant text features of emotions through prompt engineering. Understand the context in multiple rounds of dialogues, including user questions, intentions and emotions, and accurately identify changes in emotions through training models. Obtain emotion recognition results based on the user's historical interaction data by identifying the user's target question statement, provide personalized services based on the emotion recognition results, and adjust the answer strategy and answer content for the first target reply result. Understand the user's questions or instructions and give answers in natural language. Identify the user's emotional state and adjust the tone and content of the reply accordingly. Based on the analysis results of the customer's target question sentence and by analyzing the user's historical interaction data, Digital Human Customer Service can provide more personalized services and suggestions. Digital Human Customer Service can not only identify the customer's emotions, but also provide more intimate and effective services based on the emotional state, thereby improving customer satisfaction and loyalty. For example, the original answer was "According to regulations, the loan funds are transferred to the account opened by the house selling unit (seller) in the bank and shall not be directly transferred to the borrower's account." After adjustment, the answer is "The loan money cannot be given directly to the buyer, but must first be given to the seller." The original answer "If the commercial loan is not settled, the impact on the provident fund loan is as follows: 1. The monthly repayment amount of the housing provident fund personal loan shall not exceed 50% of the family's monthly income. Among them: for joint loans, the monthly family income is calculated based on the total monthly income of the borrower (including spouse) and the co-borrower; 2. The borrower and his If the spouse has a commercial loan, the monthly repayment of the commercial loan plus the monthly repayment of the housing provident fund personal loan cannot exceed 50% of the family's monthly income. Among them: for joint loans, the family's monthly income, the monthly repayment of the commercial loan plus the monthly repayment of the housing provident fund personal loan are calculated based on the total of the borrower (including spouse) and the co-borrower. "Adjusted answer" The unsettled commercial loan will affect the provident fund loan, mainly depending on whether the monthly repayment amount exceeds 50% of the family's monthly income. If there is a spouse and a co-borrower, their income and repayment amount must also be included."The adjusted answer is more concise than the original answer.

[0090] Big model technology can handle more complex and diverse conversation processes. Intelligent customer service based on big models can combine context, understand and respond to complex conversation scenarios. Through big model processing, customer emotions can be identified and judged, and the obscure and official written replies can be summarized, spoken and simplified with prompt engineering, thereby improving the friendliness of customer service. Through big models and prompts, big models are used to judge user emotions and optimize answer results to broaden the application scenarios of customer service and improve customer satisfaction.

[0091] Another embodiment of the present invention provides a device for implementing a dialog flow based on a large model. The device for implementing a dialog flow based on a large model is used to execute any embodiment of the method for implementing a dialog flow based on a large model. Specifically, refer to Figure 7 , Figure 7 The functional module diagram of the device for realizing the dialogue process based on the big model provided by the embodiment of the present invention. The device for realizing the dialogue process based on the big model can be configured in the management server.

[0092] like Figure 7 As shown, the device comprises:

[0093] A device for implementing a dialogue process based on a large model, comprising:

[0094] A data collection module 11 is used to collect training data for each scenario according to the training scenario;

[0095] A model training module 12 is used to input the training data into the model for training to obtain a dialogue model;

[0096] The question acquisition module 13 is used to acquire the target question sentence input by the user;

[0097] The reply output module 14 is used to input the target question sentence into the dialogue model and output the target reply result.

[0098] like Figure 7 As shown, the data collection module 11, the model training module 12, the question acquisition module 13 and the reply output module 14 are connected in sequence. The module referred to in the present invention refers to a series of computer program instruction segments that can complete specific functions, which is more suitable for describing the execution process of realizing the dialogue flow based on a large model than the program. For the specific implementation method of each module, please refer to the corresponding method embodiment above, which will not be repeated here.

[0099] In one embodiment, the apparatus further comprises:

[0100] The data processing module 15 is used to pre-process the training data, annotate the processed training data, and generate a knowledge base.

[0101] In one embodiment, the data processing module 15 includes:

[0102] A preset question acquisition unit, used to acquire preset questions in a knowledge base;

[0103] An iterative training unit, used for inputting the preset question into the model for iterative training to generate preset similar questions;

[0104] The answer generation unit is used to generate preset similar question answers corresponding to preset similar questions based on the knowledge base.

[0105] In one embodiment, the reply output module 14 includes:

[0106] A question analysis unit, used to analyze the target question statement to obtain an analysis result;

[0107] The question matching unit is used to match the analysis result with the preset question in the knowledge base, and generate a corresponding first target reply result according to the matching result.

[0108] In one embodiment, the question matching unit includes:

[0109] Determine whether the target question statement belongs to a preset question in the knowledge base;

[0110] Calculating the similarity between the target question statement and the preset question in the knowledge base to obtain a similarity value between the target question statement and the preset question in the knowledge base;

[0111] When the similarity value is greater than a similarity threshold, the target question statement belongs to a preset question in the knowledge base, and a first target response result is output.

[0112] In one embodiment, the calculating the similarity between the target question statement and the preset question in the knowledge base to obtain the similarity value between the target question statement and the preset question in the knowledge base further includes:

[0113] When the similarity value is less than a similarity threshold, the target question statement does not belong to a preset question in the knowledge base, and reply information is captured from the knowledge base according to the analysis result, and a first target reply result is output.

[0114] In one embodiment, the reply output module 14 further includes:

[0115] The reply adjustment unit is used to adjust the reply strategy and reply content of the first target reply result according to the analysis result to generate a second target reply result.

[0116] Another embodiment of the present invention provides a system for implementing a dialogue process based on a large model, such as Figure 8 As shown, the system 10 includes:

[0117] One or more processors 110 and memory 120, Figure 8 A processor 110 is used as an example for description. The processor 110 and the memory 120 may be connected via a bus or other means. Figure 8 The example of connecting through bus is taken in the following.

[0118] The processor 110 is used to complete various control logics of the system 10, and it can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a single-chip microcomputer, an ARM (Acorn RISC Machine) or other programmable logic device, a discrete gate or transistor logic, a discrete hardware component, or any combination of these components. In addition, the processor 110 can also be any traditional processor, microprocessor or state machine. The processor 110 can also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a DSP and / or any other such configuration.

[0119] The memory 120, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions corresponding to the method for implementing a dialogue process based on a large model in the embodiment of the present invention. The processor 110 executes various functional applications and data processing of the system 10 by running the non-volatile software programs, instructions and units stored in the memory 120, that is, implements the method for implementing a dialogue process based on a large model in the above method embodiment.

[0120] The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function; the data storage area may store data created according to the use of the system 10, etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 120 may optionally include a memory remotely arranged relative to the processor 110, and these remote memories may be connected to the system 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0121] One or more units are stored in the memory 120, and when executed by one or more processors 110, the following steps are implemented:

[0122] In one embodiment, after collecting the training data of each scenario according to the training scenario, the method further comprises:

[0123] The training data is preprocessed, the processed training data is annotated, and a knowledge base is generated.

[0124] In one embodiment, preprocessing the training data, annotating the processed training data, and generating a knowledge base includes:

[0125] Get preset questions in the knowledge base;

[0126] Inputting the preset questions into the model for iterative training to generate preset similar questions;

[0127] Generate preset similar question answers corresponding to preset similar questions based on the knowledge base.

[0128] In one embodiment, inputting the target question statement into the dialogue model and outputting the target response result includes:

[0129] Analyze the target question statement to obtain an analysis result;

[0130] The analysis result is matched with preset questions in the knowledge base, and a corresponding first target response result is generated according to the matching result.

[0131] In one embodiment, matching the analysis result with a preset question in a knowledge base and generating a first target response result according to the matching result includes:

[0132] Determine whether the target question statement belongs to a preset question in the knowledge base;

[0133] Calculating the similarity between the target question statement and the preset question in the knowledge base to obtain a similarity value between the target question statement and the preset question in the knowledge base;

[0134] When the similarity value is greater than a similarity threshold, the target question statement belongs to a preset question in the knowledge base, and a first target response result is output.

[0135] In one embodiment, the calculating the similarity between the target question statement and the preset question in the knowledge base to obtain the similarity value between the target question statement and the preset question in the knowledge base further includes:

[0136] When the similarity value is less than a similarity threshold, the target question statement does not belong to a preset question in the knowledge base, and reply information is captured from the knowledge base according to the analysis result, and a first target reply result is output.

[0137] In one embodiment, the step of inputting the target question statement into the dialogue model and outputting the target response result further includes:

[0138] According to the analysis results, the answer strategy and answer content of the first target reply result are adjusted to generate a second target reply result.

[0139] An embodiment of the present invention provides a non-volatile computer-readable storage medium, which stores computer-executable instructions. The computer-executable instructions are executed by one or more processors, wherein the computer program implements the following steps when executed by the processor: collecting training data for each scenario according to the training scenario; inputting the training data into a model for training to obtain a dialogue model; obtaining a target question sentence input by a user; inputting the target question sentence into the dialogue model, and outputting a target response result.

[0140] As an example, non-volatile storage media can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) as external cache memory. By way of illustration and not limitation, RAM can be obtained in many forms such as synchronous RAM (SRAM), dynamic RAM, (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and direct Rambus RAM (DRRAM). The disclosed memory components or memories of the operating environment described herein are intended to include one or more of these and / or any other suitable types of memory.

[0141] In summary, the method, device, system and medium for realizing a dialogue process based on a large model disclosed in the present invention include: collecting training data for each scenario according to the training scenario; inputting the training data into the model for training to obtain a dialogue model; obtaining a target question sentence input by the user; inputting the target question sentence into the dialogue model, and outputting a target reply result. The present invention improves work efficiency and user experience by inputting the user's questions into the trained model and outputting personalized replies according to the user's questions.

[0142] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the above-described equipment, devices and units can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. Those of ordinary skill in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0143] In the several embodiments provided by the present invention, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. Units with the same function may also be combined into one unit. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be an electrical, mechanical or other form of connection.

[0144] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.

[0145] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0146] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a computer-readable storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the specification described in each embodiment of the present invention. The aforementioned computer-readable storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a magnetic disk or an optical disk.

[0147] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium, and the computer program can include the processes of the above-mentioned method embodiments when executed. The storage medium can be a memory, a disk, a floppy disk, a flash memory, an optical storage device, etc.

[0148] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.

Claims

1. A method for implementing a dialogue process based on a large model, characterized in that: include: Collect training data for each scenario based on the training scenario; Inputting the training data into the model for training to obtain a dialogue model; Get the target question sentence input by the user; The target question statement is input into the dialogue model, and the target response result is output.

2. The method for realizing a dialogue process based on a large model according to claim 1, characterized in that: After collecting the training data for each scenario according to the training scenario, the method further includes: The training data is preprocessed, the processed training data is annotated, and a knowledge base is generated.

3. The method for realizing a dialogue process based on a large model according to claim 2, characterized in that: The preprocessing of the training data, labeling of the processed training data, and generating a knowledge base includes: Get preset questions in the knowledge base; Inputting the preset questions into the model for iterative training to generate preset similar questions; Generate preset similar question answers corresponding to preset similar questions based on the knowledge base.

4. The method for realizing a dialogue process based on a large model according to claim 1, characterized in that: The step of inputting the target question statement into the dialogue model and outputting the target response result includes: Analyze the target question statement to obtain an analysis result; The analysis result is matched with preset questions in the knowledge base, and a corresponding first target response result is generated according to the matching result.

5. The method for realizing a dialogue process based on a large model according to claim 4, characterized in that: The step of matching the analysis result with a preset question in a knowledge base and generating a first target response result according to the matching result includes: Determine whether the target question statement belongs to a preset question in the knowledge base; Calculating the similarity between the target question statement and the preset question in the knowledge base to obtain a similarity value between the target question statement and the preset question in the knowledge base; When the similarity value is greater than a similarity threshold, the target question statement belongs to a preset question in the knowledge base, and a first target response result is output.

6. The method for realizing a dialogue process based on a large model according to claim 4, characterized in that: The calculating the similarity between the target question statement and the preset question in the knowledge base to obtain the similarity value between the target question statement and the preset question in the knowledge base also includes: When the similarity value is less than a similarity threshold, the target question statement does not belong to a preset question in the knowledge base, and reply information is captured from the knowledge base according to the analysis result, and a first target reply result is output.

7. The method for realizing a dialogue process based on a large model according to claim 4, characterized in that: The step of inputting the target question statement into the dialogue model and outputting the target response result further includes: According to the analysis results, the answer strategy and answer content of the first target reply result are adjusted to generate a second target reply result.

8. A device for implementing a dialogue process based on a large model, characterized in that: include: A data collection module, used to collect training data for each scenario according to the training scenario; A model training module, used to input the training data into the model for training to obtain a dialogue model; A question acquisition module is used to obtain a target question sentence input by a user; The response output module is used to input the target question sentence into the dialogue model and output the target response result.

9. A system for implementing a dialogue process based on a large model, characterized in that: The system includes at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for implementing a dialog flow based on a large model as described in any one of claims 1-7.

10. A non-volatile computer-readable storage medium, characterized in that: The non-volatile computer-readable storage medium stores computer-executable instructions, which, when executed by one or more processors, enable the one or more processors to execute the method for implementing a dialog flow based on a large model as described in any one of claims 1-7.

Citation Information

Cited By

  • Voice session processing method and device based on large model, equipment and medium

    CN119227812A

  • Corpus management method and device, equipment and storage medium

    CN119691091A