Question answering method, device and equipment for business handling, medium and program product

By setting up a large language model on the local front-end device to obtain and process the description information and historical keywords of the to-do business, it solves the problem of insufficient computing resources when the traditional natural language processing model is called by multiple devices, and improves the service of the intelligent customer service assistant. Reliability and business processing efficiency.

CN118569874APending Publication Date: 2024-08-30INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410745479.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Traditional natural language processing models have insufficient capabilities in understanding, reasoning, and processing long texts, which leads to a shortage of computing resources when intelligent customer service assistants are called on multiple devices. It is especially difficult to deploy efficient intelligent service assistants in offline environments.

Method used

Set up a large language model on the local front-end device. By obtaining the description information and historical keywords of the to-do business, the preset large language model is used to obtain and process the business processing information to ensure that the network is unstable or the server computing power resources are tight. service reliability under the circumstances.

Benefits of technology

It improves the service reliability and quality of intelligent customer service assistants, enables accurate and fast business questions and answers, and reduces operating costs and server computing resource usage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569874A
    Figure CN118569874A
Patent Text Reader

Abstract

The invention provides a question answering method for business handling, which can be applied to the technical field of artificial intelligence. The question and answer method for business handling comprises the following steps: acquiring description information of a current to-be-handled business in the first round of question and answer; based on the description information, obtaining business handling information corresponding to the description information through a preset large language model; in the non-first round of question and answer, description information and historical keywords of the current to-be-handled service are obtained, and the historical keywords are extracted from historical description information; based on the description information and the historical keywords, obtaining service handling information corresponding to the description information through a preset large language model; wherein the preset large language model is arranged in local front-end equipment. The invention further provides a question answering device and equipment for business handling, a storage medium and a program product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of artificial intelligence, and in particular to a question-and-answer method, device, equipment, medium and program product for business handling. Background Art

[0002] With the increasing variety of banking services and the diversification of user needs, banks face challenges including handling a large number of user inquiries, maintaining user service quality, and managing complex business processes.

[0003] In order to help users complete their business operations, intelligent customer service assistants for business question and answering have emerged. Most of these assistants rely on traditional natural language processing models for operation, but their ability to understand, reason, and process long texts is insufficient compared to large language models. In addition, when multiple devices call the intelligent customer service assistant service at the same time to obtain processing results, computing resources may be strained. In particular, for some front-end devices that need to work in an offline environment, it is difficult to use traditional service call methods to deploy efficient intelligent service assistants. Therefore, it is crucial to explore a new and more effective natural language processing solution. Summary of the invention

[0004] In view of the above problems, the present disclosure provides a question-and-answer method, device, equipment, medium and program product for business handling that improves the service reliability and service quality of an intelligent customer service assistant.

[0005] According to the first aspect of the present disclosure, a question-and-answer method for business processing is provided, including: in the first round of question-and-answer, obtaining description information of the current pending business; based on the description information, obtaining business processing information corresponding to the description information through a preset large language model; in non-first round of question-and-answer, obtaining description information and historical keywords of the current pending business, wherein the historical keywords are extracted from historical description information; based on the description information and the historical keywords, obtaining business processing information corresponding to the description information through a preset large language model; wherein the preset large language model is set in a local front-end device.

[0006] According to an embodiment of the present disclosure, during the first round of question and answer, the description information of the pending business is obtained, or, during a non-first round of question and answer, the description information and historical keywords of the current pending business are obtained, including: directly obtaining the description information in text form for the description information; or indirectly obtaining the description information in text form for the description information, wherein the indirect acquisition of the description information in text form includes: obtaining the description information in voice form; and converting the description information in voice form into description information in text form.

[0007] According to an embodiment of the present disclosure, after obtaining the description information of the current pending business, or after obtaining the description information of the current pending business and historical keywords, it also includes: matching the description information based on preset keyword entries; and in the case where the preset keyword entry is successfully matched, recording the keyword entry as the historical keyword and recording the number of occurrences.

[0008] According to an embodiment of the present disclosure, when it is not the first round of question and answer, the description information and historical keywords of the current pending business are obtained, including: for the historical keywords, obtaining the historical keywords whose appearance times reach a preset threshold and the historical keywords that appeared in the previous round of question and answer.

[0009] According to an embodiment of the present disclosure, based on the description information, the business processing information corresponding to the description information is obtained through a preset large language model, or based on the description information and the historical keywords, the business processing information corresponding to the description information is obtained through a preset large language model, including: converting the description information into a word sequence, or converting the description information and the historical keywords into a word sequence; and using the word sequence as an input of the preset large language model to obtain the business processing information.

[0010] According to an embodiment of the present disclosure, wherein the historical keywords include M historical keywords, M is a positive integer, and the converting of the description information and the historical keywords into a word-gram sequence includes: segmenting the description information to obtain N description terms, N is a positive integer; according to a preset term mapping relationship, converting the N description terms and the M historical keywords into N first word-grams and M second word-grams respectively; forming a word-gram sequence based on the N first word-grams and the M second word-grams; and adding position codes to the first word-grams and the second word-grams in the word-gram sequence.

[0011] According to an embodiment of the present disclosure, after forming a word sequence based on the N first words and the M second words, before converting the N description words and the M historical keywords into N first words and M second words respectively according to a preset word mapping relationship, it also includes: splicing the N first words and the M second words, and adding a distinguishing mark between the N first words and the M second words to complete the distinction.

[0012] According to an embodiment of the present disclosure, the training method of the preset large language model includes: obtaining a question-and-answer training set and a pre-trained large language model, the question-and-answer training set including input training data and output result training data; repeatedly performing the training operation until a preset cutoff condition is reached, wherein the training operation includes: outputting a business processing information prediction result based on the input training data and the current pre-trained large language model; calculating a loss value based on the output result training data and the business processing information prediction result; and updating the parameters of the current pre-trained large language model based on the loss value.

[0013] The second aspect of the present disclosure provides a business processing question and answer device, which includes: a question acquisition module, which is used to obtain the description information of the current pending business in the first round of question and answer; a question and answer module, which is used to obtain the business processing information corresponding to the description information based on the description information through a preset large language model; the question acquisition module is also used to obtain the description information and historical keywords of the current pending business in non-first round of question and answer, wherein the historical keywords are extracted from the historical description information; the question and answer module is also used to obtain the business processing information corresponding to the description information through a preset large language model based on the description information and the historical keywords; wherein the preset large language model is set in the local front-end device.

[0014] According to an embodiment of the present disclosure, the question acquisition module is specifically used to directly acquire the description information in text form for the description information; or to indirectly acquire the description information in text form for the description information, wherein the indirect acquisition of the description information in text form includes: acquiring the description information in voice form; and converting the description information in voice form into description information in text form.

[0015] According to an embodiment of the present disclosure, the device further includes: a keyword recording module, which is used to match the description information based on preset keyword items; and when the preset keyword items are successfully matched, the keyword items are recorded as the historical keywords and the number of occurrences is recorded.

[0016] According to an embodiment of the present disclosure, the question acquisition module is further specifically used to acquire, for the historical keywords, the historical keywords whose appearance times reach a preset threshold and the historical keywords that appeared in the previous round of question and answer.

[0017] According to an embodiment of the present disclosure, the question-answering module includes: a word sequence conversion unit and a large model input unit, the word sequence conversion unit is used to convert the description information into a word sequence, or convert the description information and the historical keywords into a word sequence; and the large model input unit is used to use the word sequence as the input of the preset large language model to obtain business processing information.

[0018] According to an embodiment of the present disclosure, the historical keywords include M historical keywords, M is a positive integer, and the word-gram sequence conversion unit includes: a word segmentation subunit, a word-gram mapping subunit, and the word-gram sequence conversion unit also includes a word-gram sequence segmentation subunit and a position code adding subunit. The word segmentation subunit is used to segment the description information to obtain N description terms, N is a positive integer; the word-gram mapping subunit is used to convert the N description terms and the M historical keywords into N first word-grams and M second word-grams respectively according to a preset term mapping relationship; the word-gram sequence conversion unit also includes a word-gram sequence segmentation subunit, which is used to form a word-gram sequence based on the N first word-grams and the M second word-grams; and the position code adding subunit is used to add position codes to the first word-grams and the second word-grams in the word-gram sequence.

[0019] According to an embodiment of the present disclosure, the word-gram sequence conversion unit further includes a word-gram sequence segmentation subunit, which is specifically used to concatenate the N first terms and the M second terms, and add distinguishing marks between the N first terms and the M second terms to complete the distinction.

[0020] According to an embodiment of the present disclosure, the training method of the preset large language model includes: obtaining a question-and-answer training set and a pre-trained large language model, the question-and-answer training set including input training data and output result training data; repeatedly performing the training operation until a preset cutoff condition is reached, wherein the training operation includes: outputting a business processing information prediction result based on the input training data and the current pre-trained large language model; calculating a loss value based on the output result training data and the business processing information prediction result; and updating the parameters of the current pre-trained large language model based on the loss value.

[0021] The third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the above-mentioned question-and-answer method for business processing.

[0022] The fourth aspect of the present disclosure further provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the above-mentioned question-and-answer method for business handling.

[0023] The fifth aspect of the present disclosure also provides a computer program product, including a computer program, which implements the above-mentioned question-and-answer method for business handling when executed by a processor.

[0024] In an embodiment of the present disclosure, a large language model for business questions and answers is set in a front-end device. In the actual business question and answer process, the large model set in the front end can directly output answers related to the business processing. This can ensure that the service is not affected when the network is unstable or the server computing resources are tight, thereby ensuring the reliability of the service. In addition, in addition to the current business description information, historical keywords with related contextual relationships can be added during the question and answer process to ensure the accuracy of inquiries to the large model and increase the reliability of the large model's answers during the business processing process.

[0025] In summary, the embodiments of the present disclosure can improve user satisfaction and business processing efficiency through accurate and fast business questions and answers, while reducing operating costs and server computing resource usage. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0027] Figure 1 A diagram schematically illustrates an application scenario of a question-and-answer method for business handling according to an embodiment of the present disclosure;

[0028] Figure 2 A flowchart schematically shows a question-and-answer method for business handling according to an embodiment of the present disclosure;

[0029] Figure 3 A flowchart of a method for outputting business handling information according to an embodiment of the present disclosure is schematically shown;

[0030] Figure 4 A flowchart of a word-unit sequence conversion method according to an embodiment of the present disclosure is schematically shown;

[0031] Figure 5 A flowchart of a model training method according to an embodiment of the present disclosure is schematically shown;

[0032] Figure 6 A schematic diagram showing a structural block diagram of a business handling question-and-answer device according to an embodiment of the present disclosure; and

[0033] Figure 7A block diagram of an electronic device suitable for implementing the business processing question and answer method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0034] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0035] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0036] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0037] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0038] Before the embodiments of the present disclosure are disclosed in detail, the key technical terms involved in the embodiments of the present disclosure are explained one by one, as follows:

[0039] Large language model: A large language model is a model with a large number of parameters and powerful language processing capabilities. It can deeply analyze and process the input text, capture semantics, grammar, pragmatics and other information, and generate natural, accurate and coherent text responses. These models are usually based on neural network architectures and continuously improve performance through large amounts of data training. The parameter scale of large language models is usually very large, with billions or even trillions of parameters being common. In the embodiments of the present disclosure, due to the hardware limitations of the front-end device, the selected large model is a large model with smaller parameters, usually in the tens of millions to billions of levels.

[0040] Word unit: that is, token. At the most basic level, a token can be regarded as a component of a text string. It is the basic unit of text analysis and understanding. For example, in English, words, punctuation marks, and even spaces can be regarded as different tokens. From a linguistic perspective, tokens represent the smallest semantic unit in a language. At this level, each token carries a specific meaning or grammatical function, which is crucial for understanding and analyzing text. When computers process text, by splitting the text into tokens, computers are able to process and analyze language data in a more efficient way. This process involves challenges such as determining word boundaries, identifying symbols, and handling special characters.

[0041] At present, the existing front-end artificial intelligence assistants can interact with users intelligently through technologies such as voice recognition and natural language processing. Users no longer need to go through cumbersome key menus or wait for reception from human customer service, but can communicate with artificial intelligence assistants directly through voice or text.

[0042] However, there are still some defects in the solutions of the prior art, as shown below:

[0043] On the one hand, artificial intelligence assistants based on traditional technologies such as speech recognition and natural language processing are obviously unable to meet the growing needs of users. Front-end intelligent customer service assistants with natural language processing models with stronger understanding and reasoning capabilities are becoming increasingly urgent. Modern banks' front-end equipment urgently needs to be equipped or upgraded with built-in intelligent assistants to meet this challenge.

[0044] On the other hand, the traditional solution of deploying artificial intelligence models on back-end servers cannot guarantee the reliability of artificial intelligence assistant services, especially when bank branches are remote and the network environment is extremely unstable. The feasibility of artificial intelligence assistant services in existing technologies is low.

[0045] In order to solve the technical problems existing in the prior art, an embodiment of the present disclosure provides a question-and-answer method for business processing, the method comprising: in the first round of question-and-answer, obtaining the description information of the current pending business; based on the description information, obtaining the business processing information corresponding to the description information through a preset large language model; in non-first round of question-and-answer, obtaining the description information and historical keywords of the current pending business, wherein the historical keywords are extracted from the historical description information; based on the description information and the historical keywords, obtaining the business processing information corresponding to the description information through a preset large language model; wherein the preset large language model is set in a local front-end device.

[0046] In an embodiment of the present disclosure, a large language model for business questions and answers is set in a front-end device. In the actual business question and answer process, the large model set in the front end can directly output answers related to the business processing. This can ensure that the service is not affected when the network is unstable or the server computing resources are tight, thereby ensuring the reliability of the service. In addition, in addition to the current business description information, historical keywords with related contextual relationships can be added during the question and answer process to ensure the accuracy of inquiries to the large model and increase the reliability of the large model's answers during the business processing process.

[0047] In summary, the embodiments of the present disclosure can improve user satisfaction and business processing efficiency through accurate and fast business questions and answers, while reducing operating costs and server computing resource usage.

[0048] Figure 1 The application scenario diagram of the question-and-answer method for business handling according to an embodiment of the present disclosure is schematically shown.

[0049] like Figure 1 As shown, the application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0050] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).

[0051] The terminal devices 101, 102, 103 may be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc. The terminal devices 101, 102, 103 include terminal devices of bank outlets that interact directly with people.

[0052] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.

[0053] It should be noted that the question-answering method for business handling provided in the embodiment of the present disclosure can generally be executed by the terminal devices 101, 102, 103. Accordingly, the question-answering device for business handling provided in the embodiment of the present disclosure can generally be set in the terminal devices 101, 102, 103.

[0054] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0055] The following will be based on Figure 1 The scene described by Figure 2~Figure 5 The question-and-answer method for business handling in the disclosed embodiment is described in detail.

[0056] Figure 2 The flowchart of the question-and-answer method for business handling according to an embodiment of the present disclosure is schematically shown.

[0057] like Figure 2 As shown, the question-and-answer method for business handling of this embodiment includes operations S210 to S240, and the question-and-answer method for business handling can be executed by terminal devices 101, 102, and 103.

[0058] In a typical scenario, a user arrives at a bank branch and interacts with the terminal devices 101, 102, and 103 in the bank branch to handle business. In order to accurately find the business to be handled or to obtain guidance on the business to be handled, the user needs to conduct one or more rounds of questions and answers with the artificial intelligence assistant in the front-end device so that the user can confirm whether the information pushed by the artificial intelligence assistant is relevant information about the business he intends to handle. The business handled by the user is diverse, for example, the business includes: user account query, transaction process description, and loan application guidance.

[0059] In operation S210, during the first round of question and answer, description information of the current pending business is obtained.

[0060] In a typical scenario, when a user wakes up the terminal devices 101, 102, 103 (i.e., the front-end devices described below) in a bank branch, he / she expresses the intended business through voice or text. During the first question-and-answer process, the terminal devices 101, 102, 103 collect descriptive information about the current agency business from the user.

[0061] It can be understood that the description information can be a direct expression, that is, directly telling the artificial intelligence assistant what kind of business needs to be handled. For example, the user describes to the artificial intelligence assistant: "Handle the transfer business", and the machine can directly provide the transfer business entrance and corresponding prompt information; the description information can also be an indirect expression, that is, by describing the current situation, the artificial intelligence assistant recommends what kind of business needs to be handled. For example, the user describes to the artificial intelligence assistant: "The bank card is lost", and the machine needs to analyze the situation in which the bank card is lost and recommend what kind of business needs to be handled to the user.

[0062] According to an embodiment of the present disclosure, during the first round of question and answer, the description information of the pending business is obtained, or, during a non-first round of question and answer, the description information and historical keywords of the current pending business are obtained, including: directly obtaining the description information in text form for the description information; or indirectly obtaining the description information in text form for the description information, wherein the indirect acquisition of the description information in text form includes: obtaining the description information in voice form; and converting the description information in voice form into description information in text form.

[0063] The above description information is multi-source, depending on the interaction method used by the user. Specifically, the above description information can exist in the form of voice, and the above description information can also exist in the form of text. Considering the need to be input into the large language model later, the collected multi-dimensional description information is uniformly converted into text form.

[0064] In operation S220, based on the description information, business handling information corresponding to the description information is obtained through a preset large language model.

[0065] In a typical scenario, the preset large language model is the core of the above-mentioned artificial intelligence assistant. The preset large language model is directly set in the terminal devices 101, 102, and 103, rather than in the remote server 105. In this way, it can be directly deployed on the front-end device and run directly using the computing power resources of the front-end device. Considering the limited computing power of the front-end device, when selecting the existing non-commercial large language model on the market, consider the large language model with billions of parameters for training and use.

[0066] The description information is converted into data in the input form of a preset trained large language model, and the business processing information corresponding to the description information is output through the trained large language model, wherein the business processing information includes: one or more of the processing entrance of the target business, the processing instructions of the target business, the processing guidance / instructions of the target business, etc.

[0067] According to an embodiment of the present disclosure, after obtaining the description information of the current pending business, or after obtaining the description information of the current pending business and historical keywords, it also includes: matching the description information based on preset keyword entries; and in the case where the preset keyword entry is successfully matched, recording the keyword entry as the historical keyword and recording the number of occurrences.

[0068] The collected description information is usually a sentence composed of multiple words. After the description information is collected, the description information can be analyzed to extract the key content related to the business handling. The extraction method can be, for example, word frequency statistics, semantic analysis, and topic mining. In the embodiment of the present disclosure, taking into account the characteristics of the use scenarios such as the limited computing power of the front-end device and the business auxiliary handling (for example, the short sentences of the description information are not conducive to the use of word frequency statistics, the description information is basically expressed around the business to cause the context to be related, etc.), an easy-to-implement keyword matching solution is adopted. The method for extracting key content can be through pre-setting a dictionary containing business keyword entries (the dictionary can be continuously maintained and iterated), matching the relevant words related to the business in the description information through the keyword entries, and recording and counting the number of occurrences when the match is successful, wherein the number of occurrences is the number of occurrences in the process of this business handling, for example, the number of occurrences counted from the first round of questions and answers.

[0069] For example, key words that are pre-set in the dictionary include "search", "query", "loan", "transfer" and "transfer money" and other words that are highly related to the business, and then in actual use, the key words in the description information are extracted by matching these key words.

[0070] In operation S230, when the first round of question and answer is not in progress, the description information and historical keywords of the current pending business are obtained, wherein the historical keywords are extracted from the historical description information.

[0071] In a typical scenario, when the user does not receive effective recommended business handling information from the AI ​​assistant during the first round of Q&A or in a non-first round of Q&A, the user asks questions to the AI ​​assistant again to form the description information of the current round as one of the inputs of the subsequent large language model. At the same time, the user also obtains the historical keywords stored by the user during this business handling process as one of the inputs of the subsequent large language model.

[0072] According to an embodiment of the present disclosure, when it is not the first round of question and answer, the description information and historical keywords of the current pending business are obtained, including: for the historical keywords, obtaining the historical keywords whose appearance times reach a preset threshold and the historical keywords that appeared in the previous round of question and answer.

[0073] Specifically, obtain P keywords (P is a non-negative integer) with a high frequency of occurrence (ie, greater than a preset threshold) and Q keywords (Q is a non-negative integer) that appeared in the previous round of question and answer.

[0074] In operation S240, based on the description information and the historical keywords, business handling information corresponding to the description information is obtained through a preset large language model; wherein the preset large language model is set in a local front-end device. wherein the historical keywords include M historical keywords, where M is a positive integer.

[0075] The description information and historical keywords are converted into data in the input form of a preset trained large language model, and the business processing information corresponding to the description information is output through the trained large language model.

[0076] Figure 3 The flowchart of the business handling information output method according to the embodiment of the present disclosure is schematically shown.

[0077] like Figure 3 As shown, the business processing information output method of this embodiment includes operations S310 to S320, and operations S310 to S320 can at least partially execute the above-mentioned operation S220 or the above-mentioned operation S240.

[0078] In operation S310, the description information is converted into a word sequence, or the description information and the historical keywords are converted into a word sequence.

[0079] Converting text information into a word sequence (or token sequence) mainly includes: word segmentation, adding tags, numerical conversion, serialization, and adding position encoding. The conversion process is as follows:

[0080] Figure 4 The flowchart of the word-unit sequence conversion method according to an embodiment of the present disclosure is schematically shown.

[0081] like Figure 4 As shown, the word-gram sequence conversion method of this embodiment includes operations S410 to S440, and the operations S410 to S440 can at least partially execute the above-mentioned operation S310.

[0082] In operation S410, the description information is segmented to obtain N description terms, where N is a positive integer.

[0083] The text of the description information is segmented by a word segmenter to obtain N description terms. For example, if the description information is "How to apply for a loan?", the description terms obtained by the word segmentation are ["loan", "how", "apply", "?"].

[0084] According to an embodiment of the present disclosure, after forming a word sequence based on the N first words and the M second words, before converting the N description words and the M historical keywords into N first words and M second words respectively according to a preset word mapping relationship, it also includes: splicing the N first words and the M second words, and adding a distinguishing mark between the N first words and the M second words to complete the distinction.

[0085] Specifically, the description information and the historical keywords are concatenated, and the entries of the description information and the entries of the historical keywords are distinguished by special distinguishing marks.

[0086] In operation S420, the N description terms and the M historical keywords are converted into N first word-grams and M second word-grams, respectively, according to a preset term mapping relationship.

[0087] The preset term mapping relationship includes a plurality of mapping pairs, each mapping pair records a mapping relationship between a term and a word unit, wherein the word unit exists in the form of a data ID.

[0088] Continuing with the above example, for the description terms, ["loan", "how", "processing", "?"] are converted into the numerical form of ["ID1", "ID2", "ID3", "ID4"] and converted into the first word. Similarly, the historical keywords are also converted in this way to form the second word.

[0089] In operation S430, a word-gram sequence is formed based on the N first word-grams and the M second word-grams.

[0090] Specifically, N first word units and M second word units are fused and serialized into a format that can be directly used by a large language model to form a word unit sequence.

[0091] In operation S440 , position codes are added to the first word-gram and the second word-gram in the word-gram sequence.

[0092] Position encoding is used to understand the sequential relationship between word units so that they can be used by subsequent large models.

[0093] In operation S320, the word sequence is used as an input of the preset large language model to obtain business processing information.

[0094] The formed word sequence is used as the input of the large language model to output business processing information.

[0095] In an embodiment of the present disclosure, a large language model for business questions and answers is set in a front-end device. In the actual business question and answer process, the large model set in the front end can directly output answers related to the business processing. This can ensure that the service is not affected when the network is unstable or the server computing resources are tight, thereby ensuring the reliability of the service. In addition, in addition to the current business description information, historical keywords with related contextual relationships can be added during the question and answer process to ensure the accuracy of inquiries to the large model and increase the reliability of the large model's answers during the business processing process.

[0096] In summary, the embodiments of the present disclosure can improve user satisfaction and business processing efficiency through accurate and fast business questions and answers, while reducing operating costs and server computing resource usage.

[0097] Figure 5 A flowchart of a model training method according to an embodiment of the present disclosure is schematically shown.

[0098] like Figure 5 As shown, the model training method of this embodiment includes operations S510 to S520, wherein operation S520 includes operations S521 to S523.

[0099] In operation S510, a question-answering training set and a pre-trained large language model are obtained, where the question-answering training set includes input training data and output result training data.

[0100] Among them, the question and answer training set includes input training data and output result training data. The input training data and the output result training data are one-to-one corresponding, simulating the questions and answers in the actual business processing process. The input training data also follows the input used by the model in the above-mentioned "Question and Answer Method for Business Processing". In the first round of question and answer for a business processing, the input training data includes training data of descriptive information, or the input training data includes training data of descriptive information and training data of historical keywords. The output result training data as the output label is the training data of the business processing information.

[0101] The above-mentioned pre-trained (or pre-training) large language model is a large model that has completed a certain amount of training in advance. In the embodiments of the present disclosure, the model can be fine-tuned (or fine-tuned) through the question-answering training set. In this way, the model pre-trained on a large data set can be applied to a smaller, task-specific data set for further training to meet the needs of the scenario.

[0102] In operation S520, the training operation is repeatedly performed until a preset cutoff condition is reached.

[0103] The training operation mainly includes forward propagation, loss calculation, back propagation and parameter update. The preset cutoff conditions include: training to the preset number of iterations, the amount of moral data used in training to a certain scale, and the model quality assessment to a certain level. The above training operations are as follows:

[0104] In operation S521, based on the input training data and the current pre-trained large language model, a business handling information prediction result is output.

[0105] Specifically, the model calculates based on the input data, outputs the prediction results, and completes the forward propagation.

[0106] In operation S522, a loss value is calculated based on the output result training data and the business processing information prediction result.

[0107] Specifically, a predetermined loss function (such as cross entropy loss) is used to output the result training data and the business processing information prediction result, calculate the loss value, and complete the calculation loss.

[0108] In operation S523, parameters of the current pre-trained large language model are updated based on the loss value.

[0109] Specifically, the loss value is used for back propagation, the gradient of the model parameters is calculated, and the optimizer is used to update the parameters of the pre-trained large language model according to the gradient to complete the back propagation and parameter update.

[0110] Based on the above-mentioned business handling question and answer method, the present disclosure also provides a business handling question and answer device. Figure 6 The device is described in detail.

[0111] Figure 6 The structural block diagram of the business handling question and answer device according to an embodiment of the present disclosure is schematically shown.

[0112] like Figure 6 As shown, the business processing question and answer device 600 of this embodiment includes a question acquisition module 610 and a question and answer module 620.

[0113] The question acquisition module 610 is used to acquire the description information of the current pending business during the first round of question and answer. In one embodiment, the question acquisition module 610 can be used to perform the operation S210 described above, which will not be described in detail here.

[0114] The question-answering module 620 is used to obtain the business handling information corresponding to the description information through a preset large language model based on the description information. In one embodiment, the question-answering module 620 can be used to perform the operation S220 described above, which will not be repeated here.

[0115] The question acquisition module 610 is also used to obtain the description information and historical keywords of the current pending business when it is not the first round of question answering, wherein the historical keywords are extracted from the historical description information. In one embodiment, the question acquisition module 610 can be used to perform the operation S230 described above, which will not be repeated here.

[0116] The question-answering module 620 is also used to obtain the business handling information corresponding to the description information through a preset large language model based on the description information and the historical keywords; wherein the preset large language model is set in the local front-end device. In one embodiment, the question-answering module 620 can be used to perform the operation S240 described above, which will not be repeated here.

[0117] In an embodiment of the present disclosure, a large language model for business questions and answers is set in a front-end device. In the actual business question and answer process, the large model set in the front end can directly output answers related to the business processing. This can ensure that the service is not affected when the network is unstable or the server computing resources are tight, thereby ensuring the reliability of the service. In addition, in addition to the current business description information, historical keywords with related contextual relationships can be added during the question and answer process to ensure the accuracy of inquiries to the large model and increase the reliability of the large model's answers during the business processing process.

[0118] In summary, the embodiments of the present disclosure can improve user satisfaction and business processing efficiency through accurate and fast business questions and answers, while reducing operating costs and server computing resource usage.

[0119] According to an embodiment of the present disclosure, the question acquisition module is specifically used to directly acquire the description information in text form for the description information; or to indirectly acquire the description information in text form for the description information, wherein the indirect acquisition of the description information in text form includes: acquiring the description information in voice form; and converting the description information in voice form into description information in text form.

[0120] According to an embodiment of the present disclosure, the device further includes: a keyword recording module, which is used to match the description information based on preset keyword items; and when the preset keyword items are successfully matched, the keyword items are recorded as the historical keywords and the number of occurrences is recorded.

[0121] According to an embodiment of the present disclosure, the question acquisition module is further specifically used to acquire, for the historical keywords, the historical keywords whose appearance times reach a preset threshold and the historical keywords that appeared in the previous round of question and answer.

[0122] According to an embodiment of the present disclosure, the question-answering module includes: a word sequence conversion unit and a large model input unit, the word sequence conversion unit is used to convert the description information into a word sequence, or convert the description information and the historical keywords into a word sequence; and the large model input unit is used to use the word sequence as the input of the preset large language model to obtain business processing information.

[0123] According to an embodiment of the present disclosure, the historical keywords include M historical keywords, M is a positive integer, and the word-gram sequence conversion unit includes: a word segmentation subunit, a word-gram mapping subunit, and the word-gram sequence conversion unit also includes a word-gram sequence segmentation subunit and a position code adding subunit. The word segmentation subunit is used to segment the description information to obtain N description terms, N is a positive integer; the word-gram mapping subunit is used to convert the N description terms and the M historical keywords into N first word-grams and M second word-grams respectively according to a preset term mapping relationship; the word-gram sequence conversion unit also includes a word-gram sequence segmentation subunit, which is used to form a word-gram sequence based on the N first word-grams and the M second word-grams; and the position code adding subunit is used to add position codes to the first word-grams and the second word-grams in the word-gram sequence.

[0124] According to an embodiment of the present disclosure, the word-gram sequence conversion unit further includes a word-gram sequence segmentation subunit, which is specifically used to concatenate the N first terms and the M second terms, and add distinguishing marks between the N first terms and the M second terms to complete the distinction.

[0125] According to an embodiment of the present disclosure, the training method of the preset large language model includes: obtaining a question-and-answer training set and a pre-trained large language model, the question-and-answer training set including input training data and output result training data; repeatedly performing the training operation until a preset cutoff condition is reached, wherein the training operation includes: outputting a business processing information prediction result based on the input training data and the current pre-trained large language model; calculating a loss value based on the output result training data and the business processing information prediction result; and updating the parameters of the current pre-trained large language model based on the loss value.

[0126] According to an embodiment of the present disclosure, any multiple modules in the question acquisition module 610 and the question and answer module 620 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the question acquisition module 610 and the question and answer module 620 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in an appropriate combination of any of them. Alternatively, at least one of the question acquisition module 610 and the question and answer module 620 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be performed.

[0127] Figure 7 A block diagram of an electronic device suitable for implementing the business processing question and answer method according to an embodiment of the present disclosure is schematically shown.

[0128] like Figure 7 As shown, the electronic device 700 according to an embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 to a random access memory (RAM) 703. The processor 701 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 701 may also include an onboard memory for caching purposes. The processor 701 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0129] In RAM 703, various programs and data required for the operation of electronic device 700 are stored. Processor 701, ROM 702 and RAM 703 are connected to each other via bus 704. Processor 701 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 702 and / or RAM 703. It should be noted that the program can also be stored in one or more memories other than ROM 702 and RAM 703. Processor 701 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0130] According to an embodiment of the present disclosure, the electronic device 700 may further include an input / output (I / O) interface 705, which is also connected to the bus 704. The electronic device 700 may further include one or more of the following components connected to the I / O interface 705: an input portion 706 including a keyboard, a mouse, etc.; an output portion 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 708 including a hard disk, etc.; and a communication portion 709 including a network interface card such as a LAN card, a modem, etc. The communication portion 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage portion 708 as needed.

[0131] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0132] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 702 and / or RAM 703 described above and / or one or more memories other than ROM 702 and RAM 703.

[0133] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the item recommendation method provided by the embodiment of the present disclosure.

[0134] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 701. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0135] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 709, and / or installed from the removable medium 711. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0136] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the processor 701, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.

[0137] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0138] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0139] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0140] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A question-and-answer method for business handling, characterized in that: The method comprises: In the first round of questions and answers, obtain the description information of the current pending business; Based on the description information, obtain the business handling information corresponding to the description information through a preset large language model; When the question-answering is not the first round, the description information and historical keywords of the current pending business are obtained, wherein the historical keywords are extracted from the historical description information; Based on the description information and the historical keywords, the business handling information corresponding to the description information is obtained through a preset large language model; Wherein, the preset large language model is set in the local front-end device.

2. The method according to claim 1, characterized in that The obtaining of description information of pending services during the first round of question and answer, or the obtaining of description information and historical keywords of current pending services during non-first round of question and answer, includes: For the description information, directly obtain the description information in text form; or For the description information, indirectly obtain the description information in text form, wherein the indirectly obtaining the description information in text form includes: Obtaining descriptive information in spoken form; and Convert the description information in voice form into the description information in text form.

3. The method according to claim 2, characterized in that After obtaining the description information of the current pending business, or after obtaining the description information and historical keywords of the current pending business, the method further includes: Matching the description information based on preset key words; and When the preset keyword item is successfully matched, the keyword item is recorded as the historical keyword and the number of occurrences is recorded.

4. The method according to claim 3, characterized in that When the question is not answered in the first round, the description information and historical keywords of the current pending business are obtained, including: For the historical keywords, the historical keywords whose appearance times reach a preset threshold and the historical keywords that appeared in the previous round of question and answer are obtained.

5. The method according to claim 4, characterized in that The obtaining, based on the description information, of the business handling information corresponding to the description information through a preset large language model, or the obtaining, based on the description information and the historical keywords, of the business handling information corresponding to the description information through a preset large language model, includes: Converting the description information into a word sequence, or converting the description information and the historical keywords into a word sequence; and The word sequence is used as an input of the preset large language model to obtain business processing information.

6. The method according to claim 5, characterized in that in, The historical keywords include M historical keywords, where M is a positive integer. The converting the description information and the historical keywords into a word sequence includes: Segment the description information to obtain N description terms, where N is a positive integer; According to the preset term mapping relationship, the N description terms and the M historical keywords are converted into N first terms and M second terms respectively; forming a word-gram sequence based on the N first word-grams and the M second word-grams; and Position codes are added to the first word-gram and the second word-gram in the word-gram sequence.

7. The method according to claim 6, characterized in that After forming a word unit sequence based on the N first word units and the M second word units, before converting the N description words and the M historical keywords into N first word units and M second word units respectively according to a preset word entry mapping relationship, the method further includes: The N first terms and the M second terms are concatenated, and distinguishing marks are added between the N first terms and the M second terms to complete the distinction.

8. The method according to any one of claims 1 to 7, characterized in that: The training method of the preset large language model includes: Obtain a question-answering training set and a pre-trained large language model, wherein the question-answering training set includes input training data and output result training data; Repeat the training operation until the preset cutoff condition is reached. The training operation includes: Based on the input training data and the current pre-trained large language model, outputting a prediction result of business handling information; Calculating a loss value based on the output result training data and the business handling information prediction result; and Parameters of the current pre-trained large language model are updated based on the loss value.

9. A business handling question and answer device, characterized in that: The device comprises: The question acquisition module is used to obtain the description information of the current pending business during the first round of question and answer; A question-answering module, used to obtain business handling information corresponding to the description information based on the description information through a preset large language model; The question acquisition module is also used to obtain the description information and historical keywords of the current pending business when it is not the first round of question answering, wherein the historical keywords are extracted from the historical description information; The question-answering module is further used to obtain the business handling information corresponding to the description information through a preset large language model based on the description information and the historical keywords; Wherein, the preset large language model is set in the local front-end device.

10. An electronic device comprising: one or more processors; a storage device for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 8.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Cited By

  • Rapid text generation method and device of LLM model based on key information extraction

    CN119961437A