Generation of dialogue guidance information and question-answering method, system, and intelligent dialogue robot

By screening and standardizing dialogue cases to generate dialogue guidance information, it solves the problems of inconsistent emotional expressions and inconsistent logic in traditional emotionally intelligent dialogue robots, improves the logical reasoning ability of large language models, and achieves emotionally unified and logically consistent dialogue responses. .

CN117610510BActive Publication Date: 2024-09-03HUA DATA TECH (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311629235.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-30
Publication Date
2024-09-03
Estimated Expiration
2043-11-30

AI Technical Summary

Technical Problem

Traditional emotionally intelligent dialogue robots have problems such as inconsistent emotional expressions, inconsistent and contradictory content logic when generating replies, especially in complex logic tasks, which prompt poor learning results.

Method used

By filtering and standardizing target dialogue cases, dialogue guidance information is generated to enhance the logical reasoning ability of large language models, using preset rules to splice standard dialogue cases to form dialogue guidance information, and adding dialogue roles during the dialogue process to generate logically consistent emotions. Uniform reply.

Benefits of technology

It improves the logic and emotional unity of dialogue responses generated by large language models, and improves the controllability and experience of dialogue.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117610510B
    Figure CN117610510B
Patent Text Reader

Abstract

The present disclosure provides a method, system, and intelligent dialogue robot for generating dialogue guidance information and answering questions. The method for generating dialogue guidance information includes: obtaining a plurality of target dialogue cases based on a preset data set through screening, each target dialogue case corresponding to a dialogue topic, and the dialogue topics corresponding to a plurality of the target dialogue cases are the same, performing case standardization processing on the plurality of the target dialogue cases to obtain a plurality of standard dialogue cases, splicing the plurality of the standard dialogue cases based on preset rules, and generating the dialogue guidance information, wherein the dialogue guidance information is used to stimulate the logical reasoning ability of a large language model, and help the large language model generate logical and emotionally unified dialogue responses, with high controllability and good experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to the field of intelligent question-answering technology in artificial intelligence, and specifically provides a method, system, and intelligent dialogue robot for generating dialogue guiding information and answering questions. Background Art

[0002] The main goal of emotional intelligent conversational robots is to be able to recognize and understand human emotional states, emotional expressions, and emotional needs, and respond in an emotional way. Traditional emotional intelligent conversational robots mainly have two types of methods when generating responses: search-based and generative. Among them, the answers of search-based methods are relatively fixed and lack flexibility; while generative methods have certain flexibility, but poor controllability. In a complete multi-round conversation, the generated dialogue may express inconsistent emotions, and the logic of the previous and subsequent conversations may also contradict each other.

[0003] Since the release of GPT3 (a type of natural language processing tool driven by artificial intelligence technology), large language models have become the mainstream technical model for dialogue systems. Because large language models have a huge number of parameters, training and fine-tuning large language models require high thresholds and costs, so prompt learning has become the mainstream technology for developing large language models to adapt to downstream tasks. Prompt learning refers to adding "prompt information" to the input and changing the downstream task to a text generation task without significantly changing the structure and parameters of the large language model. However, when large language models face complex logical tasks, prompt learning has little effect. Summary of the invention

[0004] The technical problem to be solved by the present invention is to overcome the defects of inconsistent emotional expression and illogical or contradictory generated content in traditional emotional intelligent dialogue robots in the prior art, and to provide a method, system, and intelligent dialogue robot for generating dialogue guiding information and answering questions.

[0005] The present invention solves the above technical problems through the following technical solutions:

[0006] According to a first aspect of the present disclosure, a method for generating dialogue guiding information is provided, the generating method comprising:

[0007] A plurality of target dialogue cases are obtained by screening based on a preset data set, each target dialogue case corresponds to a dialogue topic, and the dialogue topics corresponding to the plurality of target dialogue cases are the same;

[0008] Performing case standardization processing on a plurality of target dialogue cases to obtain a plurality of standard dialogue cases;

[0009] splicing a plurality of the standard dialogue cases based on preset rules to generate the dialogue guiding information;

[0010] The dialogue guidance information is used to enhance the logical reasoning capability of the preset language processing model.

[0011] Preferably, the step of obtaining a plurality of target dialogue cases by screening based on a preset data set comprises:

[0012] Obtaining a number of initial dialogue cases in the preset data set;

[0013] Determining whether the initial conversation case meets the preset conditions for standardized processing of the conversation topic;

[0014] If yes, the corresponding initial dialogue case is used as the target dialogue case;

[0015] The standardization processing preset conditions include: the dialogue case includes various standardized links corresponding to the dialogue topic;

[0016] and / or,

[0017] The step of combining a plurality of the standard dialogue cases based on preset rules to generate the dialogue guidance information comprises:

[0018] Adding corresponding actual dialogue roles to all dialogues in a number of standard dialogue cases, and sequentially splicing the number of standard dialogue cases after adding the actual dialogue roles to obtain a long dialogue guide text;

[0019] The dialogue guiding information is generated by splicing preset guiding information at the prefix of the dialogue guiding long text.

[0020] Preferably, the step of performing case standardization processing on a plurality of target dialogue cases comprises:

[0021] Obtaining dialogue information in each of the target dialogue cases;

[0022] Dividing the dialogue information into corresponding standardized links; wherein each standardized link is matched with a corresponding preset dialogue script;

[0023] Determining whether the dialogue information in each of the standardized links includes the corresponding preset dialogue script;

[0024] If yes, the target dialogue case is used as the standard dialogue case;

[0025] If not, the dialogue information is adjusted to obtain the standard dialogue case.

[0026] Preferably, the conversation topic includes emotional communication conversation;

[0027] and / or,

[0028] The preset language processing model includes a large language model.

[0029] According to a second aspect of the present disclosure, an intelligent question-answering method is provided, the intelligent question-answering method comprising:

[0030] Receive the current text information entered by the user;

[0031] Adding the first dialogue role to the prefix of the current text information and splicing it to the initial dialogue guide information to obtain the first dialogue guide information;

[0032] Adding a second dialogue role after the first dialogue guide information, obtaining the second dialogue guide information, and inputting the second dialogue guide information into a preset language processing model to obtain and output answer information corresponding to the current text information;

[0033] The initial dialogue guiding information is obtained based on the generation method described in the first aspect of the present disclosure.

[0034] Preferably, after the step of obtaining and outputting answer information corresponding to the current text information, the method further comprises:

[0035] splicing the answer information after the second dialogue role to obtain third dialogue guiding information;

[0036] Re-execute the step of receiving the current text message input by the user until the conversation ends;

[0037] and / or,

[0038] The step of receiving the current text information input by the user comprises:

[0039] receiving target information input by the user, and determining whether the target information is text information;

[0040] If yes, taking the target information as the current text information;

[0041] If not, the target information is converted into text information, and the text information is used as the current text information.

[0042] According to a third aspect of the present disclosure, a system for generating dialogue guiding information is provided, the generating system comprising a first acquiring module, a standardization processing module and a generating module;

[0043] The first acquisition module is used to screen and obtain a plurality of target dialogue cases based on a preset data set, each target dialogue case corresponds to a dialogue topic, and the dialogue topics corresponding to the plurality of target dialogue cases are the same;

[0044] The standardization processing module is used to perform case standardization processing on a plurality of target dialogue cases to obtain a plurality of standard dialogue cases;

[0045] The generation module is used to splice a plurality of the standard dialogue cases based on preset rules to generate the dialogue guidance information;

[0046] The dialogue guidance information is used to enhance the logical reasoning capability of the preset language processing model.

[0047] According to a fourth aspect of the present disclosure, there is provided an intelligent question-answering system, the intelligent question-answering system being implemented using a large language model, the intelligent question-answering system comprising a receiving module, a first splicing module, and a second acquiring module;

[0048] The receiving module is used to receive the current text information input by the user;

[0049] The first splicing module is used to add the first dialogue role to the prefix of the current text information and splice it to the initial dialogue guiding information to obtain the first dialogue guiding information;

[0050] The second acquisition module is used to add a second dialogue role after the first dialogue guide information, obtain the second dialogue guide information, and input the second dialogue guide information into a preset language processing model to obtain and output answer information corresponding to the current text information;

[0051] The initial dialogue guidance information is obtained based on the generation system described in the third aspect of the present disclosure.

[0052] According to a fifth aspect of the present disclosure, an intelligent dialogue robot is provided, wherein the intelligent dialogue robot includes the intelligent question-answering system described in the fourth aspect of the present disclosure.

[0053] According to a sixth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, it implements the method for generating dialogue guidance information described in the first aspect of the present disclosure, and / or the intelligent question and answer method described in the second aspect of the present disclosure.

[0054] On the basis of being in accordance with the common sense in the art, the above-mentioned preferred conditions can be arbitrarily combined to obtain the preferred embodiments of the present disclosure.

[0055] The positive progressive effect of the present disclosure is that based on the rich knowledge and excellent language ability built into the large language model, several standard dialogue cases are spliced ​​together to generate dialogue guidance information to stimulate the logical reasoning ability of the large language model, and help the large language model generate logical and emotionally unified dialogue responses with high controllability and good experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 is a first flow chart of the method for generating dialogue guidance information in Embodiment 1 of the present disclosure;

[0057] Figure 2 is a second flow chart of the method for generating dialogue guidance information in Embodiment 1 of the present disclosure;

[0058] Figure 3 is a flow chart of the intelligent question-answering method in Embodiment 2 of the present disclosure;

[0059] Figure 4 This is a schematic diagram of the first module of the system for generating dialogue guidance information in Embodiment 3 of the present disclosure;

[0060] Figure 5 This is a schematic diagram of the second module of the system for generating dialogue guidance information in Embodiment 3 of the present disclosure;

[0061] Figure 6 This is a module diagram of the intelligent question-answering system in Embodiment 4 of the present disclosure; DETAILED DESCRIPTION

[0062] The present disclosure is further described below by way of examples, but the present disclosure is not limited to the scope of the examples.

[0063] Example 1

[0064] In a specific embodiment of the present disclosure, a method for generating dialogue guidance information is provided, such as Figure 1 As shown, the generation method includes:

[0065] S1. A plurality of target dialogue cases are obtained by screening based on a preset data set, each target dialogue case corresponds to a dialogue topic, and the dialogue topics corresponding to the plurality of target dialogue cases are the same;

[0066] S2, performing case standardization processing on a number of target dialogue cases to obtain a number of standard dialogue cases;

[0067] S3, splicing several standard dialogue cases based on preset rules to generate dialogue guidance information;

[0068] Among them, the dialogue guidance information is used to enhance the logical reasoning ability of the preset language processing model.

[0069] Specifically, there are a large number of dialogue cases in the preset data set, and each dialogue case corresponds to a dialogue topic. For example, some dialogue cases are dialogue topics about emotions, some dialogue cases are dialogue topics about career planning, and some dialogue cases are dialogue topics about physical health, etc. In order to enable the dialogue guidance information to enhance the logical reasoning ability of the preset language processing model, it is necessary to generate corresponding dialogue guidance information for different dialogue topics.

[0070] After obtaining multiple target dialogue cases for the same dialogue topic, multiple classic dialogue cases are screened out for case standardization processing, so that the screened multiple classic dialogue cases have specific logic, and then the multiple classic dialogue cases after standardization processing are spliced ​​so that the preset language processing model can generate correct answer information corresponding to the dialogue topic according to the specific logic of these classic dialogue cases. Among them, the preset language processing model can include a language processing model such as a large language model that can generate natural language text.

[0071] In a specific embodiment, Figure 2 As shown, step S1 includes:

[0072] S11, obtaining several initial dialogue cases in a preset data set;

[0073] S12, determining whether the initial dialogue case meets the preset conditions for standardized processing of the dialogue topic;

[0074] If yes, proceed to step S13;

[0075] S13, taking the corresponding initial dialogue case as the target dialogue case;

[0076] Among them, the preset conditions for standardized processing include: the dialogue case contains various standardized links corresponding to the dialogue topic;

[0077] Taking the topic of dialogue targeting emotions as an example, a public psychological counseling data set was obtained from the Internet. The psychological counseling data set contains a large number of psychological counseling dialogue cases. First, dialogue cases targeting emotional communication were screened out from these massive psychological counseling dialogue cases, and then about three to five classic emotional communication dialogue cases were screened out. The screening criteria were 1) the client had emotional problems 2) the interview process was basically carried out in accordance with the standardized emotional communication links required by psychological counseling theory. For example, the standardized emotional communication process is to clarify the problem → soothe emotions → provide suggestions, step by step, from confirming the client's emotional state to expressing specific emotional support.

[0078] Of course, the standardized links in the standardized process can also be refined, and the standardized links of each dialogue topic can be flexibly adjusted according to actual needs to further improve the dialogue logic accuracy of the dialogue psychology, thereby enhancing the logical reasoning ability of the large language model.

[0079] Step S2 includes:

[0080] S21, obtaining dialogue information in each target dialogue case;

[0081] S22, dividing the dialogue information into a number of corresponding standardized links; wherein each standardized link is matched with a corresponding preset dialogue script;

[0082] S23, judging whether the dialogue information in each standardized link includes the corresponding preset dialogue script;

[0083] If yes, proceed to step S24, otherwise proceed to step S25;

[0084] S24, taking the target dialogue case as the standard dialogue case;

[0085] S25, adjusting the dialogue information to obtain a standard dialogue case;

[0086] After screening out three to five classic emotional communication dialogue cases, divide the dialogue information in each dialogue case into three parts: clarifying the problem, soothing emotions, and providing suggestions. Based on the preset dialogue scripts for each part, determine whether the dialogue information in that part needs to be rewritten.

[0087] The first step of standardization is to clarify the problem and ensure that the case dialogue uses one of the following two communication techniques: asking questions, restating or paraphrasing. If not, then a certain degree of rewriting is performed without changing the original meaning.

[0088] Among them, "asking questions" refers to the counselor asking questions to the client to promote thinking, in-depth exploration and enhance understanding of the problem. It is an important communication skill that can be used to guide dialogue, clarify views, obtain information, explore feelings and promote self-reflection. Examples of rewriting "asking questions" are: "How do you feel this emotion?", "Are you feeling better today?".

[0089] "Retelling or paraphrasing" means that the counselor rephrases what the client said in his own words to show understanding and validate the client's feelings and experiences, and to express the client's words by using similar vocabulary, tone and emotion to enhance resonance and connection. Therefore, by using the "retelling or paraphrasing" technique, effective communication and cooperation can be established, deepening the understanding of the client's needs and experience, and providing a basis for further exploration and problem solving. "Retelling or paraphrasing" rewrite example: "As I understand it, you mean that every time you face a major challenge, you always get overly anxious, right?"

[0090] The second standardization step is to soothe emotions, ensuring that the case dialogue uses one of the following three communication skills: emotional reflection, self-disclosure, affirmation and soothing. If not, a certain degree of rewriting is performed without changing the original meaning.

[0091] Among them, "emotional reflection" refers to the counselor's expression of understanding and resonance of the client's emotions by responding to the client's words and emotions. By reflecting the client's emotions, the counselor shows that he is listening and trying to understand the client's inner world, which can help the client feel cared for and understood, while promoting the client's understanding and expression of his own emotions. It can also verify the client's emotional experience by reflecting emotions, and help the client establish self-identity and emotional support. An example of rewriting "emotional reflection": "You feel very angry because you feel that your opinions have never been taken seriously."

[0092] "Self-disclosure" refers to the counselor's conscious display of personal experiences, feelings or opinions to the client in order to enhance the intimacy and resonance of the counseling relationship. The purpose of self-disclosure is to establish a connection and common experience between the counselor and the client to promote the client's understanding and identification. An example of rewriting "self-disclosure" is: "I also feel anxious, which is a common emotional response of humans."

[0093] "Affirmation and reassurance" refers to delivering affirmation and support to clients to enhance their confidence and sense of security. This technique is designed to help clients feel accepted, valued and supported, thereby establishing a positive consulting relationship. Examples of rewriting "Affirmation and reassurance" include: "You have made great efforts, which is already amazing.", "I understand that this problem may be troubling for you, but we can definitely find a solution together."

[0094] The third standardization step is to provide suggestions, ensuring that the case dialogue uses one of the following two communication skills: providing suggestions and providing information. If not, a certain degree of rewriting is performed without changing the original meaning.

[0095] Among them, "providing advice" means that the counselor provides useful suggestions, opinions or behavioral strategies to the client to help them cope with problems, improve conditions or achieve their goals. The purpose of providing advice is to provide clients with new perspectives, inspirations or directions for action to promote clients' problem solving and personal growth. This skill is usually used on the basis of a certain level of trust and understanding between the counselor and the client. Examples of rewriting "providing advice" include: "When facing anxiety, you can try deep breathing and relaxation exercises to relieve tension.", "Let's look at this problem from another angle. There may be other solutions to consider.".

[0096] "Providing information" means that counselors provide clients with relevant knowledge and information about specific topics, concepts or resources. This information can help clients better understand their own situations, the background of the problem or knowledge related to mental health. Providing information includes several aspects: explaining mental health problems, providing resources and reference materials, introducing treatment methods and techniques, and providing relevant knowledge and theories. Examples of rewriting "providing information": "This symptom may be related to anxiety disorder. Let me explain the characteristics of anxiety disorder and common treatment methods.", "Social support theory believes that social relationships are vital to our mental health. We can discuss how your social support system affects your emotions."

[0097] Through the above-mentioned standardized processing, each standard dialogue case forms a standard three-step structure, and the consultant’s response at each step utilizes the communication skills of the corresponding stage.

[0098] Step S3 includes:

[0099] S31, adding corresponding actual dialogue roles to all dialogues in a number of standard dialogue cases, and sequentially splicing the number of standard dialogue cases after adding the actual dialogue roles to obtain a long dialogue guide text;

[0100] S32. Preset guiding information is spliced ​​at the prefix of the long text guiding the dialogue to generate dialogue guiding information.

[0101] After standardizing the three to five classic emotional communication dialogue cases that have been screened out to obtain three to five standard dialogue cases, add the corresponding actual dialogue roles to the dialogue information in each standard dialogue case. For example, add the dialogue role of "visitor:" to the visitor's dialogue information, and add the dialogue role of "counselor:" to the counselor's dialogue information. After adding the actual dialogue roles, splice the three to five standard dialogue cases in sequence to obtain a long dialogue guidance text containing three to five standard dialogue cases, and add preset guiding information to the front of the long text. For example, add "Suppose you are a psychological counselor and a visitor asks you for help with emotional issues. Please try to understand and comfort the visitor's emotions and provide effective suggestions. The following is your conversation:" at the beginning of the long text.

[0102] Thus, complete dialogue guidance information is obtained and input into the large language model so that the large language model automatically generates correct answer information to the visitor according to the specific logic of the dialogue guidance information.

[0103] Based on the rich knowledge and excellent language ability built into the large language model, this embodiment splices several standard dialogue cases to generate dialogue guidance information to stimulate the logical reasoning ability of the large language model and help the large language model generate logical and emotionally unified dialogue responses with high controllability and good experience.

[0104] Example 2

[0105] In a specific embodiment of the present disclosure, an intelligent question-answering method is provided, such as Figure 3 As shown, the intelligent question answering method includes:

[0106] S4, receiving the current text information input by the user;

[0107] Wherein, step S4 includes: receiving target information input by the user, determining whether the target information is text information; if so, using the target information as current text information; if not, converting the target information into text information, and using the text information as current text information.

[0108] S5, adding the first dialogue role to the prefix of the current text information, and splicing it to the initial dialogue guiding information to obtain the first dialogue guiding information;

[0109] S6, adding a second dialogue role after the first dialogue guiding information, obtaining the second dialogue guiding information, and inputting the second dialogue guiding information into a preset language processing model to obtain and output answer information corresponding to the current text information;

[0110] S7, splicing the answer information after the second dialogue character to obtain the third dialogue guide information, and re-execute the step of receiving the current text information input by the user until the dialogue ends;

[0111] The initial dialogue guidance information is obtained based on the generation method of Example 1.

[0112] Specifically, when conducting intelligent question and answer, the consulting information input by the user is obtained through the terminal, wherein the user can input text information or language information. When the user inputs voice information, the voice information can be converted into text information using voice recognition software. Of course, the user can also input in other ways, and this embodiment does not specifically limit this.

[0113] After obtaining the text information input by the user, a first dialogue role is added to the prefix of the text information, for example, a dialogue role of "visitor:" is added, and the text information after the dialogue role is added is spliced ​​after the dialogue guide information, and then a second dialogue role is added, for example, "counselor:", thereby prompting the large language model that it should be the counselor who responds to the visitor's questions at this time, and the above-splice target dialogue guide information is input into the large language model. The large language model generates a dialogue response according to the logic of the dialogue guide information and the role played, and outputs the dialogue response to the terminal to realize intelligent question and answer. At the same time, the response information is spliced ​​after the second dialogue role, and returns to the step of receiving the target text information input by the user, so as to make the next round of replies according to the user's questions / answers until the end of the dialogue, that is, in each round of dialogue, the input of the large language model must splice the previous round of dialogue questions and answers as historical dialogues after the dialogue guide information to ensure the integrity before and after the dialogue, thereby ensuring the logic and emotional unity of the large language model's questions and answers before and after.

[0114] It should be noted that each time a new intelligent question-and-answer dialogue is started, the new user input is concatenated with the initial dialogue guidance information obtained based on Example 1, so that the large language model automatically generates an answer to the new user input according to the logic of the initial dialogue guidance information.

[0115] Based on the rich knowledge and excellent language ability built into the large language model, this embodiment splices several standard dialogue cases to generate dialogue guidance information to stimulate the logical reasoning ability of the large language model and help the large language model generate logical and emotionally unified dialogue responses with high controllability and good experience.

[0116] Example 3

[0117] In a specific embodiment of the present disclosure, a system for generating dialogue guidance information is provided, such as Figure 4As shown, the generation system includes a first acquisition module 100, a standardization processing module 200 and a generation module 300

[0118] The first acquisition module 100 is used to screen and obtain a plurality of target dialogue cases based on a preset data set, each target dialogue case corresponds to a dialogue topic, and the dialogue topics corresponding to the plurality of target dialogue cases are the same;

[0119] The standardization processing module 200 is used to perform case standardization processing on a plurality of target dialogue cases to obtain a plurality of standard dialogue cases;

[0120] The generation module 300 is used to combine several standard dialogue cases based on preset rules to generate dialogue guidance information;

[0121] Among them, the dialogue guidance information is used to enhance the logical reasoning ability of the preset language processing model.

[0122] In a specific embodiment, Figure 5 As shown, the first acquisition module 100 includes a first acquisition unit 101 and a first judgment unit 102;

[0123] The first acquisition unit 101 is used to acquire a number of initial dialogue cases in a preset data set;

[0124] The first judgment unit 102 is used to judge whether the initial dialogue case meets the preset conditions for standardized processing of the dialogue topic;

[0125] If so, the corresponding initial dialogue case is used as the target dialogue case;

[0126] Among them, the preset conditions for standardized processing include: the dialogue case contains various standardized links corresponding to the dialogue topic;

[0127] The standardization processing module 200 includes a second acquisition unit 201, a division unit 202, a second judgment unit 203 and a standardization processing unit 204;

[0128] The second acquisition unit 201 is used to acquire the dialogue information in each target dialogue case;

[0129] The division unit 202 is used to divide the dialogue information into a number of corresponding standardized links; wherein each standardized link is matched with a corresponding preset dialogue script;

[0130] The second judgment unit 203 is used to judge whether the dialogue information in each standardization link includes the corresponding preset dialogue words;

[0131] If so, the target dialogue case is used as the standard dialogue case;

[0132] If not, it is sent to the standardization processing unit 204;

[0133] The standardization processing unit 204 is used to adjust the dialogue information to obtain a standard dialogue case.

[0134] The generation module 300 includes a splicing unit 301 and a generation unit 302;

[0135] The splicing unit 301 is used to add corresponding actual dialogue roles to all dialogues in a number of standard dialogue cases, and sequentially splice the standard dialogue cases after adding the actual dialogue roles to obtain a long dialogue guide text;

[0136] The generating unit 302 is used to concatenate preset guiding information to the prefix of the dialogue guiding long text to generate dialogue guiding information.

[0137] It should be noted that the working principle of the system for generating the dialogue guiding information in this embodiment is the same as the working principle of the method for generating the dialogue guiding information in Embodiment 1, and therefore will not be described in detail here.

[0138] Based on the rich knowledge and excellent language ability built into the large language model, this embodiment splices several standard dialogue cases to generate dialogue guidance information to stimulate the logical reasoning ability of the large language model and help the large language model generate logical and emotionally unified dialogue responses with high controllability and good experience.

[0139] Example 4

[0140] In a specific embodiment of the present disclosure, an intelligent question-answering system is provided. The intelligent question-answering system is implemented using a large language model, such as Figure 6 As shown, the intelligent question-answering system includes a receiving module 400, a first splicing module 500, a second acquiring module 600, and a second splicing module 700;

[0141] The receiving module 400 is used to receive the current text information input by the user;

[0142] The receiving module 400 includes a receiving unit 401 and a converting unit 402;

[0143] The receiving unit 401 is used to receive target information input by a user and determine whether the target information is text information;

[0144] If so, the target information is used as the current text information;

[0145] If not, the target information is sent to the conversion unit 402

[0146] The conversion unit 402 is used to convert the target information into text information, and use the text information as current text information.

[0147] The first splicing module 500 is used to add the first dialogue role to the prefix of the current text information and splice it to the initial dialogue guide information to obtain the first dialogue guide information;

[0148] The second acquisition module 600 is used to add a second dialogue role after the first dialogue guide information, obtain the second dialogue guide information, and input the second dialogue guide information into a preset language processing model to obtain and output answer information corresponding to the current text information;

[0149] The second splicing module 700 is used to splice the answer information after the second dialogue role to obtain the third dialogue guide information; re-execute the step of receiving the current text information input by the user until the dialogue ends;

[0150] The initial dialogue guidance information is obtained based on the generation system of Example 3.

[0151] It should be noted that the working principle of the system for generating the dialogue guiding information in this embodiment is the same as the working principle of the method for generating the dialogue guiding information in Embodiment 2, and therefore will not be described in detail here.

[0152] Based on the rich knowledge and excellent language ability built into the large language model, this embodiment splices several standard dialogue cases to generate dialogue guidance information to stimulate the logical reasoning ability of the large language model and help the large language model generate logical and emotionally unified dialogue responses with high controllability and good experience.

[0153] Example 5

[0154] In a specific embodiment of the present disclosure, an intelligent dialogue robot is provided, characterized in that the intelligent dialogue robot includes the intelligent question and answer system of Example 4.

[0155] Specifically, intelligent conversational robots include various robots that can interact with users in natural language, provide intelligent answers and help solve problems, such as robot assistants, emotional chat robots, intelligent customer service robots, smart home chat robots, etc.

[0156] Based on the rich knowledge and excellent language ability built into the large language model, this embodiment splices several standard dialogue cases to generate dialogue guidance information to stimulate the logical reasoning ability of the large language model and help the large language model generate logical and emotionally unified dialogue responses with high controllability and good experience.

[0157] Example 6

[0158] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the method in the above embodiment are implemented.

[0159] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.

[0160] In a possible implementation manner, the present invention may also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to enable the terminal device to execute the steps in the method in the above embodiment.

[0161] The program code for executing the present invention may be written in any combination of one or more programming languages, and may be executed entirely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or entirely on a remote device.

[0162] Although the specific embodiments of the present disclosure are described above, those skilled in the art should understand that this is only an example, and the protection scope of the present disclosure is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present disclosure, but these changes and modifications all fall within the protection scope of the present disclosure.

Claims

1. A method for generating dialogue guiding information, It is characterized in that The generation method comprises: A plurality of target dialogue cases are obtained by screening based on a preset data set, each target dialogue case corresponds to a dialogue topic, and the dialogue topics corresponding to the plurality of target dialogue cases are the same; Performing case standardization processing on a plurality of target dialogue cases to obtain a plurality of standard dialogue cases; splicing a plurality of the standard dialogue cases based on preset rules to generate the dialogue guiding information; The dialogue guidance information is used to enhance the logical reasoning ability of the preset language processing model; The step of obtaining a plurality of target dialogue cases based on a preset data set includes: Obtaining a number of initial dialogue cases in the preset data set; Determining whether the initial conversation case meets the preset conditions for standardized processing of the conversation topic; If yes, the corresponding initial dialogue case is used as the target dialogue case; The standardization processing preset conditions include: the dialogue case includes various standardized links corresponding to the dialogue topic; and / or, The step of combining a plurality of the standard dialogue cases based on preset rules to generate the dialogue guidance information comprises: Adding corresponding actual dialogue roles to all dialogues in a number of standard dialogue cases, and sequentially splicing the number of standard dialogue cases after adding the actual dialogue roles to obtain a long dialogue guide text; The dialogue guiding information is generated by splicing preset guiding information at the prefix of the dialogue guiding long text.

2. The generation method according to claim 1, It is characterized in that The step of performing case standardization processing on a plurality of target dialogue cases comprises: Obtaining dialogue information in each of the target dialogue cases; Dividing the dialogue information into corresponding standardized links; wherein each standardized link is matched with a corresponding preset dialogue script; Determining whether the dialogue information in each of the standardized links includes the corresponding preset dialogue script; If yes, the target dialogue case is used as the standard dialogue case; If not, the dialogue information is adjusted to obtain the standard dialogue case.

3. The generation method according to claim 1 or 2, It is characterized in that The topics of the conversation include emotional communication conversations; and / or, The preset language processing model includes a large language model.

4. An intelligent question-answering method, It is characterized in that The intelligent question-answering method comprises: Receive the current text information entered by the user; Adding the first dialogue role to the prefix of the current text information and splicing it to the initial dialogue guide information to obtain the first dialogue guide information; Adding a second dialogue role after the first dialogue guide information, obtaining the second dialogue guide information, and inputting the second dialogue guide information into a preset language processing model to obtain and output answer information corresponding to the current text information; The initial dialogue guiding information is obtained based on the generation method according to any one of claims 1 to 3.

5. The method according to claim 4, It is characterized in that After the step of obtaining and outputting answer information corresponding to the current text information, the method further includes: splicing the answer information after the second dialogue role to obtain third dialogue guiding information; Re-execute the step of receiving the current text message input by the user until the conversation ends; and / or, The step of receiving the current text information input by the user comprises: receiving target information input by the user, and determining whether the target information is text information; If yes, taking the target information as the current text information; If not, the target information is converted into text information, and the text information is used as the current text information.

6. A system for generating dialogue guidance information, It is characterized in that The generation system includes a first acquisition module, a standardization processing module and a generation module; The first acquisition module is used to screen and obtain a plurality of target dialogue cases based on a preset data set, each target dialogue case corresponds to a dialogue topic, and the dialogue topics corresponding to the plurality of target dialogue cases are the same; The standardization processing module is used to perform case standardization processing on a plurality of target dialogue cases to obtain a plurality of standard dialogue cases; The generation module is used to splice a plurality of the standard dialogue cases based on preset rules to generate the dialogue guidance information; The dialogue guidance information is used to enhance the logical reasoning ability of the preset language processing model; The first acquisition module includes a first acquisition unit and a first judgment unit; The first acquisition unit is used to acquire a plurality of initial dialogue cases in the preset data set; The first judgment unit is used to judge whether the initial dialogue case meets the preset conditions for standardized processing of the dialogue topic; if so, the corresponding initial dialogue case is used as the target dialogue case; The standardization processing preset conditions include: the dialogue case includes various standardized links corresponding to the dialogue topic; and / or, The generation module includes a splicing unit and a generation unit; The splicing unit is used to add corresponding actual dialogue roles to all dialogues in a number of standard dialogue cases, and sequentially splice the number of standard dialogue cases after adding the actual dialogue roles to obtain a long dialogue guide text; The generating unit is used for splicing preset guiding information at the prefix of the dialogue guiding long text to generate the dialogue guiding information.

7. An intelligent question-answering system, It is characterized in that The intelligent question-answering system is implemented using a large language model, and the intelligent question-answering system includes a receiving module, a first splicing module, and a second acquisition module; The receiving module is used to receive the current text information input by the user; The first splicing module is used to add the first dialogue role to the prefix of the current text information and splice it to the initial dialogue guiding information to obtain the first dialogue guiding information; The second acquisition module is used to add a second dialogue role after the first dialogue guide information, obtain the second dialogue guide information, and input the second dialogue guide information into a preset language processing model to obtain and output answer information corresponding to the current text information; Wherein, the initial dialogue guiding information is obtained based on the generation system as claimed in claim 6.

8. An intelligent conversational robot, It is characterized in that The intelligent dialogue robot includes the intelligent question-answering system as claimed in claim 7.

9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, it implements the method for generating dialogue guidance information according to any one of claims 1 to 3, or the intelligent question-answering method according to claim 4 or 5.