Intelligent question and answer implementation method and device, equipment and storage medium

By identifying user questions and generating prompt words, it solves the problem of frequent interactions when users do not understand or are not very good at using it, and improves the user experience and answer accuracy of the intelligent question and answer system.

CN118626604APending Publication Date: 2024-09-10SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD

Patent Information

Application Number
CN202410437419.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-11
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

If the existing intelligent question and answer implementation method is not understood by the user or is not very good at using it, it may require frequent interaction and the interaction fails to achieve the effect many times, affecting the user experience.

Method used

By discriminating the received user questions, the target vocabulary in the difficult questions is identified, and the pre-trained language model is used to output prompt words related to the target vocabulary or the upper and lower semantic words are retrieved and extracted from the satisfactory question library to generate optional questions, assisting Users ask precise questions, reduce interaction costs, and input user questions into the inference model to obtain the final answer.

Benefits of technology

It improves the user experience and helps users quickly obtain the answers they want by providing better prompt words and question conversions, reducing the cost of user interaction and making the answers closer to users' expectations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626604A
    Figure CN118626604A
Patent Text Reader

Abstract

The embodiment of the invention provides an intelligent question and answer implementation method and device, equipment and a storage medium. The intelligent question and answer implementation method comprises the steps that received user questions are judged; if it is determined that the user question is the difficult question, target vocabularies in the user question are recognized; outputting a plurality of vocabularies related to the meaning of the target vocabulary as cue words through a pre-trained language model; and / or, retrieving the target vocabulary in a satisfaction question library, and extracting a plurality of hyponymy and hyponymy vocabularies related to the target vocabulary from a retrieval result as cue words; obtaining a lower vocabulary of the target vocabulary through a preset semantic tree, and generating a plurality of option questions according to the lower vocabulary; determining a target user question corresponding to the optimal answer in response to a selection operation of the user for a plurality of cue words and option questions; and inputting the target user question into the reasoning model, and obtaining the finally output target answer, the user interaction cost is reduced, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent question answering technology, and in particular to an intelligent question answering implementation method, device, equipment and storage medium. Background Art

[0002] The objects processed by the question-answering system mainly include user questions and answers. According to the knowledge domain to which the questions belong, the question-answering system can be divided into a question-answering system for a limited domain, a question-answering system for an open domain, and a question-answering system for a common question set. With the development and progress of artificial intelligence in various fields, the technologies of intelligent question-answering and intelligent dialogue are becoming more and more mature. The main solutions of intelligent question-answering can be roughly divided into several types or stages according to the technologies used: text matching, rule matching, semantic search, artificial intelligence model question-answering, etc.

[0003] The text matching method is to match the user's questions with the questions and answers in the database by keywords, and return the results in order according to the degree of match. However, the returned questions and answers are not necessarily what the user needs, and knowledge in fields such as hypernyms and sub-concepts is difficult to apply. The rule matching method forms a variety of matching rules, so that the user's questions and the answers in the knowledge base can be calculated with a higher degree of relevance. However, this method is very dependent on the quality and coverage of the rule base, and upgrades and maintenance require professional personnel and knowledge. The semantic search method forms a rich expression of questions and answers by integrating word frequency, word weight, closeness, pinyin, semantic tree, synonyms, concept library, multi-field index and user click feedback, and uses machine learning methods to calculate the most relevant answers to the questions, but it requires a large investment, can only return existing results, and requires continuous maintenance. The artificial intelligence model question-answering method is achieved by using the converter Transfo The rmer framework and attention mechanism achieve the effect of receiving user questions and automatically generating answers through full vectorized modeling of questions and answers: building models, training data, adjusting parameters, etc. However, the usage threshold of this method is relatively high. The model requires that the questions or prompts given by users are relatively accurate, otherwise the returned results may not satisfy the users. Currently, an interactive solution is adopted to support users to correct questions and obtain more desired answers by re-asking.

[0004] However, when users do not understand or are not very good at using the above interactive solutions, frequent interactions may be required and the effects may not be achieved even after multiple interactions, thus affecting the user experience. Summary of the invention

[0005] The purpose of the embodiments of the present invention is to provide a method, apparatus, device and storage medium for implementing intelligent question and answer, which solves the problem that when the user does not understand or is not very good at using the interactive solution in the existing intelligent question and answer implementation method, frequent interaction may be required and the effect cannot be achieved after multiple interactions, which affects the user experience. The specific technical solution is as follows:

[0006] In a first aspect of the implementation of the present invention, a method for implementing intelligent question answering is first provided, wherein the method comprises:

[0007] Identify received user questions;

[0008] If it is determined that the user question is a difficult question, identifying the target vocabulary in the user question;

[0009] Outputting several words related to the meaning of the target word as prompt words through a pre-trained language model; and / or searching the target word in a satisfactory question library, extracting several hyponymous and hyponymous words related to the target word from the search results as prompt words; and obtaining hyponymous words of the target word through a pre-set semantic tree, and generating several option questions based on the hyponymous words;

[0010] In response to a user's selection operation on a plurality of prompt words and option questions, determining that there is a target user question corresponding to the best answer;

[0011] The target user question is input into the inference model to obtain the target answer of the final output.

[0012] Optionally, the step of determining the received user question includes:

[0013] Receive a user question input by a user and obtain text information of the user question;

[0014] Adjusting the text information according to a preset format;

[0015] Calling a text extraction algorithm to extract target information from the adjusted text information, wherein the target information includes: named entities, semantic relations and event information;

[0016] Analyzing the contribution rate of each target information in the user question, and extracting keywords from the target information according to the contribution rate, wherein the contribution rate of the keyword in the user question is greater than a first preset value;

[0017] Compare the keywords of the user's question with the pre-set question keywords in the dissatisfied question library;

[0018] If there are keywords that match the comparison, the user question is determined to be a difficult question;

[0019] and / or, when it is determined by a preset classifier that the user question is incorrectly input, determining that the user question is a difficult question;

[0020] And / or, when the user question is determined to be a general question by a preset classifier, the user question is determined to be a difficult question.

[0021] Optionally, searching the target vocabulary in a satisfactory question library and extracting a number of hyponymous and hyponymous vocabulary related to the target vocabulary from the search results as prompt words includes:

[0022] Searching the target vocabulary in a satisfactory question database to obtain a number of satisfactory answers containing the target vocabulary;

[0023] Perform word mining among the plurality of the satisfactory answers through the target vocabulary;

[0024] A plurality of hyponymous and hyponymous words related to the target word are obtained from the plurality of satisfactory answers as prompt words.

[0025] Optionally, the step of obtaining the subordinate words of the target word by presetting a semantic tree and generating a plurality of option questions according to the subordinate words includes:

[0026] Inputting the target vocabulary into a target search engine to obtain subordinate words of the target vocabulary, wherein at least one semantic tree is pre-set in the target search engine, and the subordinate words of the target vocabulary are determined through the semantic tree;

[0027] Randomly select at least two hyponyms from the hyponyms to combine;

[0028] A number of option questions are generated according to the combination results, wherein each option question is a question of selecting a subordinate word of the combination.

[0029] Optionally, in response to the user's selection operation on the plurality of prompt words and option questions, determining that there is a target user question corresponding to the best answer includes:

[0030] In response to a user's selection operation on a plurality of prompt words and option-type questions, determining a plurality of replacement words and replacement questions for the user's question;

[0031] Inputting the plurality of replacement words and the replacement questions into a satisfactory question library for retrieval to obtain a plurality of target retrieval results;

[0032] Obtain satisfaction scores for several target search results;

[0033] Selecting the target search result with the highest score from the satisfaction scores as the best answer;

[0034] The target user question corresponding to the best answer is determined through the best answer.

[0035] Optionally, after inputting the target user question into the inference model and obtaining the target answer for the final output, the method further includes:

[0036] After waiting for the first preset time, a satisfaction rating interface pops up and a rating prompt is sent;

[0037] In response to the user's input in the satisfaction rating interface, storing the target user question with a satisfaction rating greater than or equal to a second preset value, the target answer and the corresponding satisfaction rating in a satisfaction rating database;

[0038] The target user questions with satisfaction scores less than the second preset value, the target answers and the corresponding satisfaction scores are stored in the dissatisfied question library.

[0039] Optionally, after inputting the target user question into the inference model and obtaining the target answer for the final output, the method further includes:

[0040] Monitoring the target time for the user to close the answer display interface displaying the target answer;

[0041] When it is determined that the target time is less than the first preset time, a first satisfaction score is automatically set for the target user question and the target answer, and the target user question, the target answer and the first satisfaction score are stored in an unsatisfactory question library, wherein the first satisfaction score is less than a second preset value;

[0042] When it is determined that the target time is greater than the first preset time and the user has not entered a score in the satisfaction scoring interface, a second satisfaction score is automatically set for the target user question and the target answer, and the target user question, the target answer and the second satisfaction score are stored in a satisfaction question library, wherein the second satisfaction score is greater than a second preset value.

[0043] In a second aspect of the present invention, there is also provided an intelligent question-answering implementation device, characterized in that it includes:

[0044] A first identification module, used to identify the received user questions;

[0045] A second discrimination module, configured to identify target words in the user's question if it is determined that the user's question is a difficult question;

[0046] An output module is used to output several words related to the meaning of the target word as prompt words through a pre-trained language model; and / or, search the target word in a satisfactory question library, extract several hyponymous and hyponymous words related to the target word from the search results as prompt words; and, obtain hyponymous words of the target word through a pre-set semantic tree, and generate several option questions based on the hyponymous words;

[0047] A determination module, configured to determine whether there is a target user question corresponding to the best answer in response to the user's selection operation on the plurality of prompt words and option questions;

[0048] The acquisition module is used to input the target user question into the reasoning model to obtain the target answer of the final output.

[0049] In a third aspect of the implementation of the present invention, there is also provided a communication device, comprising: a transceiver, a memory, a processor, and a program stored in the memory and executable on the processor;

[0050] The processor is used to read the program in the memory to implement and execute any of the above-mentioned intelligent question and answer implementation methods.

[0051] In the fourth aspect of the implementation of the present invention, a computer-readable storage medium is also provided, in which instructions are stored, and when the computer-readable storage medium is run on a computer, the computer executes any of the above-mentioned intelligent question and answer implementation methods.

[0052] The intelligent question-answering implementation method provided by the embodiment of the present invention distinguishes the received user questions; if the user question is determined to be a difficult question, the target vocabulary in the user question is identified; through question classification, it is convenient to implement different processing methods according to different question types in the subsequent process, and a number of words related to the meaning of the target vocabulary are output as prompt words through a pre-trained language model; and / or, the target vocabulary is searched in a satisfactory question library, and a number of upper and lower semantic words related to the target vocabulary are extracted from the search results as prompt words; and, the lower words of the target vocabulary are obtained by pre-setting a semantic tree, and a number of option questions are generated according to the lower words; at this time, better prompt words are given and more favorable questions are generated to assist the user Users can ask precise questions and get the answers they want more quickly, reducing the cost of user interaction. In response to the user's selection operations on several prompt words and option questions, it is determined that there is a target user question corresponding to the best answer; the target user question is input into the reasoning model to obtain the target answer of the final output, which can make the obtained answer closer to the answer the user wants, greatly improving the user experience. In the embodiment of the present invention, the classification of problems is achieved by distinguishing the problems, and then when determining difficult problems, better prompt words can be given on the one hand, and more favorable questions can be automatically generated and input into the reasoning model on the other hand, thereby assisting users to better use the model reasoning function of the intelligent question and answer system and improving the user experience of the target product. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.

[0054] Figure 1 A flowchart of a method for implementing intelligent question answering provided by an embodiment of the present invention;

[0055] Figure 2 A flowchart of another method for implementing intelligent question answering provided by an embodiment of the present invention;

[0056] Figure 3 A flowchart of another method for implementing intelligent question answering provided by an embodiment of the present invention;

[0057] Figure 4 A flowchart of another method for implementing intelligent question answering provided by an embodiment of the present invention;

[0058] Figure 5 It is a module diagram of an intelligent question-answering implementation system provided by an embodiment of the present invention;

[0059] Figure 6 It is a structural diagram of an intelligent question-answering implementation device provided by an embodiment of the present invention;

[0060] Figure 7 It is a structural diagram of a communication device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0061] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.

[0062] The embodiment of the present invention is a solution proposed for an intelligent question-answering system. In the development process of intelligent question-answering, it has gone through several different stages such as text matching, rule matching, semantic search, and artificial intelligence model question-answering. The text matching method is mainly used in the early stage of the question-answering system and applied to certain specific fields, departments, and even a small number of users. By matching the user's questions with the questions and answers in the database by keywords, sorting and returning according to the degree of matching, it is equivalent to automating the keyword search step. The advantages of this solution are fast speed and the returned results are more controllable; the disadvantages are that the returned questions and answers are not necessarily what the user needs, and the knowledge in the fields such as hypernyms and sub-concepts is difficult to apply. The rule matching method can make up for the defects of the text matching method in domain knowledge, mainly by reconstructing domain knowledge and experience to form a variety of matching rules, so that the user's questions and the answers in the knowledge base can calculate a higher degree of relevance. The advantages of this solution are fast speed, and the returned results are very accurate when the rules can cover the user's questions; the disadvantages are that the effect of question-answering is very dependent on the quality and coverage of the rule base, and the upgrade and maintenance require professional personnel and knowledge. The semantic search method completes the question-answering task through the search engine approach, and is mostly used in general fields and massive data, that is, it is called pan-semantic question-answering. This method forms a rich expression of questions and answers by integrating word frequency, word weight, closeness, pinyin, semantic tree, synonyms, concept library, multi-field index and user click feedback, and uses machine learning methods to calculate the most relevant answer to the question. Compared with the previous ones, this technical solution has high maturity, rich components, accurate results, wide application field, and can support a large amount of data. The disadvantage is that it requires a large investment, can only return existing results, and requires continuous maintenance. Using super-large models to support intelligent question and answer is a breakthrough technology in the past two years. At present, artificial intelligence models in the industry have been unprecedentedly improved. This type of solution uses the Transformer framework and Attention mechanism, and can directly support the task of question and answer through full vectorization modeling of questions and answers: building models, training data, adjusting parameters, etc. The model can receive user questions and automatically generate answers. Its advantages are that it is applicable to all fields, can be fine-tuned in small fields, the answers are flexible (the returned results may be a completely new text), and the threshold is relatively low (compared with search engine solutions). However, there is still room for improvement in this method. For example, there are certain requirements for user questions, and the questions or prompts given by users need to be more precise, otherwise the returned results will not satisfy the users.

[0063] Based on this problem, the existing technology can use some auxiliary methods, such as adopting interactive solutions. In the field of text images, users can add, delete, modify the weight of some input words according to where the generated image needs to be adjusted, and finally generate an image that satisfies the user; therefore, it is natural that products in the field of text question and answer can generally support users to correct questions and use the method of re-asking to obtain more desired answers. However, this interactive solution will have a phenomenon: when the user does not understand or is not very good at using it, it may appear that the interaction fails to achieve the desired effect after multiple times, which is a very bad experience. Based on this, the present invention proposes a method for realizing intelligent question and answer with reduced interaction, referring to Figure 1 , shows a flowchart of a method for implementing intelligent question answering provided by an embodiment of the present invention, the method may include:

[0064] Step 101: Identify the received user questions.

[0065] In the embodiment of the present invention, user problems are classified by distinguishing them, so as to facilitate the determination of different processing methods according to different categories of user problems. It should be noted that the user problems are distinguished by converting the text information of the user problems into a text format that can be recognized by the system, and then extracting the text to obtain the target information, determining the keywords through the target information, and then performing hit identification in the dissatisfied question library through the keyword hit method. If the hit is found, the user problem at this time is determined to be a difficult problem. If the keyword is not hit in the dissatisfied question library, a preset classifier (such as an xgboost classifier) ​​will be used to identify whether the problem is a general problem or whether there is an erroneous input. If so, the user problem at this time is also considered to be a difficult problem. It should be noted that the above methods can be combined for judgment, which further improves the accuracy of judgment on difficult problems. The specific judgment steps include:

[0066] Identify received user questions, including:

[0067] Receive user questions input by users and obtain text information of the user questions;

[0068] Adjust the text information according to the preset format;

[0069] Call the text extraction algorithm to extract target information from the adjusted text information. The target information includes:

[0070] Named entities, semantic relations, and event information;

[0071] Analyzing the contribution rate of each target information in the user question, and extracting keywords from the target information according to the contribution rate, wherein the contribution rate of the keyword in the user question is greater than a first preset value;

[0072] Compare the keywords of the user's question with the pre-set question keywords in the dissatisfied question library;

[0073] If there are matching keywords, the user's question is considered difficult.

[0074] and / or, when it is determined by a preset classifier that the user question is incorrectly input, determining that the user question is a difficult question;

[0075] And / or, when the user question is determined to be a general question by a preset classifier, the user question is determined to be a difficult question.

[0076] In the above process, it is mentioned that keywords are extracted from the target information according to the contribution rate, and the first preset value is set. For example, the first preset value is set to 30%. The text content of the user's question is "What is the most profitable thing to do?" The extracted target information is "What to do", "Make money" and "Most", among which the contribution rate of "What to do" is 35%, the contribution rate of "Make money" is 40%, and the contribution rate of "Most" is 25%. Because 35% is greater than 30%, and 40% is greater than 30%, the keywords are "What to do" and "Make money". It is also mentioned that mis-input and general questions are identified by a preset classifier. For example, the text content of the user's question is "What is AIGCzzz", and the preset classifier identifies "zzz" as mis-input content, or the text content of the user's question is "Write a model essay", because the meaning of the model essay is relatively vague and the scope is very broad, the subsequent results may be essays or narratives used by students, or they may be romance novels. For this type of question that has no fixed answer, it is determined as a general question by a preset classifier. By combining direct hits from the unsatisfactory question library with machine learning classification methods to classify questions, difficult questions can be identified from multiple angles, making the results of problem identification more accurate.

[0077] Step 102: If it is determined that the user's question is a difficult question, the target vocabulary in the user's question is identified.

[0078] In the embodiment of the present invention, after identifying a difficult question, the question will be asked in a different way, such as converting the difficult question into a simpler question, or providing better prompt words for the user to choose to replace. This is because the essence of a difficult question is that specific words in the question appear less frequently in the training set of the model. For example, a model is trained with a large number of pre-extracted formal texts, and words such as "making money" may appear less frequently. This can be done by converting such words into related words to assist the user in asking more accurate questions. Therefore, here we need to identify specific words that appear less frequently in the training set of the model in the user's question, namely, the target vocabulary.

[0079] Step 103, outputting several words related to the meaning of the target word as prompt words through the pre-trained language model; and / or, searching the target word in the satisfactory question library, extracting several hyponymous and hyponymous words related to the target word from the search results as prompt words; and, obtaining the hyponymous words of the target word through a pre-set semantic tree, and generating several option questions based on the hyponymous words.

[0080] In the embodiment of the present invention, when a user asks a difficult question, better prompt words can be given on the one hand, and more favorable questions can be automatically generated on the other hand. Among them, giving better prompt words can be to obtain several words related to the meaning of the target word as prompt words. Here, a language model (such as LLama) is limited, that is, input a word and output several words related to the meaning. For example, input "make money" and output "investment", "interest rate", "benefit", etc. Another way to generate prompt words is to perform word mining in the satisfactory question library to obtain several hyponymous and hyponymous words related to the target word as prompt words. The specific mining steps include:

[0081] Search the target vocabulary in the satisfactory question database to obtain several satisfactory answers containing the target vocabulary;

[0082] Perform word mining among several satisfactory answers using the target vocabulary;

[0083] From several satisfactory answers, several hyponymous and hyponymous words related to the target word are obtained as prompt words.

[0084] Because it has been determined that the user's question is a relatively vague and difficult question, and the questions in the satisfactory question library are usually relatively precise questions, it is difficult to match the corresponding content if it is matched with the question part in the satisfactory question library. However, in the answer part of the satisfactory question library, because the content is usually long, it is easy to find the corresponding matching content. Of course, when the target vocabulary is searched in the satisfactory question library, it can not only be searched in the question, but also in the answer. The present invention is not specifically limited here. Through word mining, several upper and lower semantic words related to the target vocabulary can be obtained. For example, the target vocabulary is "investment direction". At this time, the lower words related to "investment direction" in the answer are retrieved as "real estate" and "stocks", then "real estate" and "stocks" can be used as prompt words, or the target vocabulary is "flower express delivery", and the upper words related to "flower express delivery" in the answer are retrieved as "online shopping" and "flower shop", etc., and "online shopping" and "flower shop" can be used as prompt words. Because open questions are difficult to answer and it is difficult to hit the answer that the user wants to know, the embodiment of the present invention can assist the user in asking precise questions in the future and reduce the interaction frequency by obtaining several upper and lower semantic words related to the target vocabulary as prompt words.

[0085] Among them, keywords can be pre-extracted from the satisfactory question database, so that when the target vocabulary is mined, several hyponymous and hyponymous semantic words related to the target vocabulary can be quickly obtained. The specific implementation steps include:

[0086] For any answer text in the satisfactory question library, determine the subject of any answer text through a semantic model;

[0087] Counting the first words whose occurrence frequency is greater than a third preset value;

[0088] Obtaining a correlation coefficient between the first vocabulary and a subject of any of the answer texts;

[0089] If the correlation coefficient is greater than a fourth preset value, it is determined that the first word is a keyword of any of the answer texts, wherein a plurality of hyponymous and hyponymous words related to the target word are obtained from the keywords of any of the answer texts.

[0090] In addition, in addition to providing prompt words for users, the embodiment of the present invention also converts open-ended difficult questions into questions in the form of A or B, so that more accurate questions can be asked and the subsequent results can better meet the user's expectations. The specific conversion steps include:

[0091] Inputting a target word into a target search engine to obtain subordinate words of the target word, wherein at least one semantic tree is pre-set in the target search engine, and the subordinate words of the target word are determined through the semantic tree;

[0092] Randomly select at least two hyponyms from the hyponyms to combine;

[0093] A number of option questions are generated according to the combination results, wherein each option question is a question of selecting a subordinate word of the combination.

[0094] The embodiment of the present invention can determine the subordinate words of multiple target words through the target search engine. At this time, the subordinate words of the obtained multiple target words can be arbitrarily combined to generate option questions. For example, the initial user question is "Which investment direction is the most profitable?", and the target word is "investment direction". The subordinate words of "investment direction" are determined to be "investment in milk tea shops", "investment in supermarkets", "investment in real estate" and "investment in stocks". The combination of the subordinate words is in a two-by-two manner to obtain six combination results, including: "investment in milk tea shops" and "investment in supermarkets", "investment in milk tea shops and "investment in real estate", "investment in milk tea shops and "investment in stocks", "investment in supermarkets" and "investment in real estate", "investment in supermarkets" and "investment in stocks", and "investment in real estate" and "investment in stocks". According to the above combination results, six option questions are generated: "Is it better to invest in milk tea shops or supermarkets?", "Is it better to invest in milk tea shops or real estate?", "Is it better to invest in milk tea shops or stocks?", "Is it better to invest in supermarkets or real estate?", "Is it better to invest in supermarkets or real estate?", and "Is it better to invest in real estate or stocks?". Data show that the latter option questions provide a better user experience. This part is equivalent to converting difficult questions into more intuitive simple questions. It should be noted that the above conversion question is to select at least two subordinate words for combination, so it can be a combination of two or three. The present invention does not make specific limitations here, but it is best not to exceed four to avoid user selection difficulties due to too many options, affecting the user experience. By converting general question and answer sentences into high-satisfaction question sentences, it can assist users to better use the intelligent question and answer system and reduce the cost of user interaction.

[0095] Step 104 , in response to the user's selection operation on a plurality of prompt words and option questions, determining that there is a target user question corresponding to the best answer.

[0096] In the embodiment of the present invention, the user selects the prompt word and the option question he needs from among several prompt words and option questions, and then determines several replacement words and replacement questions according to the selection result, and performs question discrimination again on them as candidate user questions, and selects the candidate question that is most likely to have a good answer as the target user question. The specific implementation process includes:

[0097] In response to a user's selection operation on a plurality of prompt words and option-type questions, determining a plurality of replacement words and replacement questions of the user's question;

[0098] Input a number of replacement words and replacement questions into a satisfactory question database for retrieval to obtain a number of target retrieval results;

[0099] Obtain satisfaction scores for several target search results;

[0100] Select the target search result with the highest satisfaction score as the best answer;

[0101] The best answer is used to determine the target user question corresponding to the best answer.

[0102] In the embodiment of the present invention, several replacement words and replacement questions of the user's question are searched in the satisfactory question library. After determining that a satisfactory answer exists, the most satisfactory answer, i.e., the best answer, is selected from these satisfactory answers. This selection is determined based on the satisfaction score set in the satisfactory question library. The higher the satisfaction score, the more satisfied the user is with the answer. After the best answer is determined, the question corresponding to the best answer in the satisfactory question library is determined as the target user question.

[0103] Step 105: input the target user question into the reasoning model to obtain the target answer as the final output.

[0104] In the embodiment of the present invention, after the question corresponding to the best answer in the satisfactory question library is determined as the target user question, the target user question is input into the intelligent question-answering system by default, which can greatly improve the user's satisfaction after obtaining the answer. At this time, the target user question is input into the reasoning model to intelligently output the target answer.

[0105] The intelligent question-answering implementation method provided by the embodiment of the present invention distinguishes the received user questions; if the user question is determined to be a difficult question, the target vocabulary in the user question is identified; through question classification, it is convenient to implement different processing methods according to different question types in the subsequent process, and a number of words related to the meaning of the target vocabulary are output as prompt words through a pre-trained language model; and / or, the target vocabulary is searched in a satisfactory question library, and a number of upper and lower semantic words related to the target vocabulary are extracted from the search results as prompt words; and, the lower words of the target vocabulary are obtained by pre-setting a semantic tree, and a number of option questions are generated according to the lower words; at this time, better prompt words are given and more favorable questions are generated to assist the user Users can ask precise questions and get the answers they want more quickly, reducing the cost of user interaction. In response to the user's selection operations on several prompt words and option questions, it is determined that there is a target user question corresponding to the best answer; the target user question is input into the reasoning model to obtain the target answer of the final output, which can make the obtained answer closer to the answer the user wants, greatly improving the user experience. In the embodiment of the present invention, the classification of problems is achieved by distinguishing the problems, and then when determining difficult problems, better prompt words can be given on the one hand, and more favorable questions can be automatically generated and input into the reasoning model on the other hand, thereby assisting users to better use the model reasoning function of the intelligent question and answer system and improving the user experience of the target product.

[0106] It should be noted that the method for generating prompt words and reducing user interaction cost in the embodiment of the present invention can also be applied to other technical fields of AIGC to alleviate the problem that users cannot construct input.

[0107] Reference Figure 2 , shows a flowchart of steps in another intelligent question-answering implementation method provided by an embodiment of the present invention, the method may include:

[0108] Step 201: Identify the received user questions.

[0109] Step 202: If it is determined that the user's question is a difficult question, the target vocabulary in the user's question is identified.

[0110] Step 203: output several words related to the meaning of the target word as prompt words through the pre-trained language model; and / or, search the target word in the satisfactory question library, and extract several hyponymous and hyponymous words related to the target word from the search results as prompt words; and, obtain the hyponymous words of the target word through a pre-set semantic tree, and generate several option questions based on the hyponymous words.

[0111] Step 204 , in response to the user's selection operation on a plurality of prompt words and option questions, it is determined that there is a target user question corresponding to the best answer.

[0112] Step 205: input the target user question into the reasoning model to obtain the target answer as the final output.

[0113] The above steps 201 to 205 refer to the discussion of the above steps 101 to 105, and the present invention will not elaborate on them here.

[0114] Step 206: After waiting for a first preset time, a satisfaction rating interface pops up and a rating prompt is sent.

[0115] In the embodiment of the present invention, an unsatisfactory question library and a satisfactory question library are provided. In order to determine which database to store the target user questions and target answers into, it is necessary to collect user feedback and determine it based on user feedback. Therefore, in the embodiment of the present invention, a satisfaction rating interface is provided. Because after the user obtains the target answer, it takes a certain amount of time to read and browse, so a first preset waiting time is set. The first preset time here can be the time when the user closes the target answer in history, and the appropriate time is calculated as the first preset time, which can be 30S, 50S, 20S, and the present invention does not make specific limitations here. Among them, after the satisfaction rating interface pops up, it is necessary to mark the rating prompt on the satisfaction rating interface. The rating prompt can be a description of the rating rules, or it can be content that prompts the user to evaluate. It can also add rating incentives, collect points or gifts, and encourage users to actively participate.

[0116] Step 207, in response to the user input in the satisfaction rating interface, the target user questions with satisfaction ratings greater than or equal to the second preset value, the target answers and the corresponding satisfaction ratings are stored in a satisfaction rating database.

[0117] In the embodiment of the present invention, the second preset value is set according to the setting of the satisfaction score. For example, if the satisfaction score is set to a ten-point system, the second preset value can be set to 7 points, 6 points, etc.; if the satisfaction score is set to a percentage system, the second preset value can be set to 70 points, 75 points, etc.; if the satisfaction score is set to a percentage, the second preset value can be set to 70%, 80%, etc. The present invention does not make specific limitations here. The user can directly enter the satisfaction score in the satisfaction score interface, or select the required satisfaction option according to the pre-set satisfaction options. When it is determined that the satisfaction score is greater than or equal to the second preset value, it is considered that the user is relatively satisfied with the target answer. At this time, the target user question, the target answer and the corresponding satisfaction score are stored in the satisfaction question library for subsequent retrieval.

[0118] Step 208: store the target user questions, target answers and corresponding satisfaction scores with satisfaction scores less than a second preset value into an unsatisfactory question library.

[0119] In the embodiment of the present invention, when it is determined that the satisfaction score is less than the second preset value, it is considered that the user is dissatisfied with the target answer. Then the target user question, the target answer and the corresponding satisfaction score will be stored in an dissatisfied question library for subsequent retrieval.

[0120] In the embodiment of the present invention, by receiving user feedback and updating the satisfactory question library and the unsatisfactory question library according to the user feedback, not only the content of the satisfactory question library and the unsatisfactory question library is enriched to improve the subsequent retrieval hit rate, but also the reasoning process of the answer can be further adjusted according to the user feedback, so that the subsequent answer reasoning process is more accurate.

[0121] Reference Figure 3 , shows a flowchart of steps in another intelligent question-answering implementation method provided by an embodiment of the present invention, the method may include:

[0122] Step 301: Identify the received user questions.

[0123] Step 302: If it is determined that the user's question is a difficult question, the target vocabulary in the user's question is identified.

[0124] Step 303: output several words related to the meaning of the target word as prompt words through the pre-trained language model; and / or, search the target word in the satisfactory question library, and extract several hyponymous and hyponymous words related to the target word from the search results as prompt words; and, obtain the hyponymous words of the target word through a pre-set semantic tree, and generate several option questions based on the hyponymous words.

[0125] Step 304 , in response to the user's selection operation on a plurality of prompt words and option questions, determining that there is a target user question corresponding to the best answer.

[0126] Step 305: input the target user question into the reasoning model to obtain the target answer as the final output.

[0127] The above steps 301 to 305 refer to the discussion of the above steps 101 to 105, and the present invention will not elaborate on them here.

[0128] Step 306 , monitoring the target time for the user to close the answer display interface where the target answer is displayed.

[0129] The embodiment of the present invention mentioned above that the user obtains user feedback by popping up the satisfaction rating interface, but there may be a situation where the user does not browse carefully after obtaining the target answer but closes the answer display interface after a brief glance. At this time, the satisfaction rating interface does not have time to pop up or the user feels troublesome and does not want to evaluate on the satisfaction rating interface. For these situations, the embodiment of the present invention sets another satisfaction rating method. First, the target time for the user to close the answer display interface where the target answer is located is monitored to determine which satisfaction rating method to use later.

[0130] Step 307, when it is determined that the target time is less than the first preset time, automatically set a first satisfaction score for the target user question and the target answer, and store the target user question, the target answer and the first satisfaction score in an unsatisfactory question library.

[0131] In the embodiment of the present invention, if the target time for closing the answer display interface where the target answer is located is less than the first preset time, then the satisfaction rating interface has not popped up yet, and the user has already closed the answer display interface. At this time, it is considered that the target answer is not the answer expected by the user, that is, the user is not satisfied with the target answer. At this time, the first satisfaction rating is automatically set for the target user question and the target answer, and the target user question, the target answer and the first satisfaction rating are stored in the dissatisfied question library. Among them, the first satisfaction rating is less than the second preset value.

[0132] Step 308, when it is determined that the target time is greater than the first preset time and the user has not entered a score in the satisfaction rating interface, a second satisfaction score is automatically set for the target user question and the target answer, and the target user question, the target answer and the second satisfaction score are stored in a satisfaction question library.

[0133] In an embodiment of the present invention, if it is determined that the target time for closing the answer display interface where the target answer is located is greater than the first preset time, at this time the satisfaction rating interface has popped up, but the user did not rate on this page but directly closed the answer display interface where the target answer is located later. At this time, it is considered that the user has carefully browsed the content of the target answer, indicating that the target answer meets the user's expectations. At this time, the target user question and the target answer are automatically set to a second satisfaction rating, and the target user question, the target answer and the second satisfaction rating are stored in a satisfaction question library. At this time, the second satisfaction rating is greater than the second preset value.

[0134] Through the above supplements, the judgment of user feedback is refined and the judgment method of user feedback is enriched, so that the target answers in different states can obtain corresponding satisfaction scores, thereby updating the contents of the satisfactory question library and the unsatisfactory question library, avoiding waste of resources.

[0135] In summary, the overall process of an intelligent question-answering implementation method provided by an embodiment of the present invention is as follows: Figure 4 As shown, after obtaining the user input question, the question is identified to determine whether it is a difficult question or an open question. If it is, a prompt word is generated and the question is converted, and then the result is input into the reasoning model to obtain the target answer. If not, the question is directly input into the reasoning model to obtain the target answer. At this time, it is determined whether the user is satisfied with the target answer. If satisfied, the target answer and the user question (or the converted question) are input into the satisfied question library. If not satisfied, the target answer and the user question (or the converted question) are input into the unsatisfactory question library (i.e., the difficult question library).

[0136] Reference Figure 5 , showing a module schematic diagram of an intelligent question-answering implementation system provided by an embodiment of the present invention, including: a feedback collection module, a model reasoning module, an input parsing module, a question conversion module, and a satisfactory question library and an unsatisfactory question library, wherein the feedback collection module is used to collect user feedback, and then the answers and questions will be classified into a satisfactory question library or an unsatisfactory question library according to the feedback results, the model reasoning module is used to infer the corresponding answer according to the question, the input parsing module includes: text extraction, format conversion, question discrimination and other functions, which are used to identify more difficult questions, and the question conversion module includes: prompt word generation, option question generation and question discrimination and other functions, which are used to convert more difficult questions into simpler questions.

[0137] Reference Figure 6, which shows a schematic diagram of the structure of an intelligent question-answering implementation device provided by an embodiment of the present invention, such as Figure 6 As shown, the device may include:

[0138] The first identification module 401 is used to identify the received user questions.

[0139] The second determination module 402 is used to identify the target words in the user's question if it is determined that the user's question is a difficult question.

[0140] Output module 403 is used to output several words related to the meaning of the target word as prompt words through the pre-trained language model. And / or, search the target word in the satisfactory question library, extract several hyponymous and hyponymous words related to the target word from the search results as prompt words. And, obtain hyponymous words of the target word by pre-setting a semantic tree, and generate several option questions according to the hyponymous words.

[0141] The determination module 404 is used to determine the target user question corresponding to the best answer in response to the user's selection operation on the plurality of prompt words and option questions.

[0142] The acquisition module 405 is used to input the target user question into the reasoning model to obtain the target answer that is finally output.

[0143] Optionally, the first identification module 401 specifically includes:

[0144] The receiving submodule is used to receive the user question input by the user and obtain the text information of the user question.

[0145] The format adjustment submodule is used to adjust the text information according to a preset format.

[0146] The information extraction submodule is used to call the text extraction algorithm to extract target information from the adjusted text information, and the target information includes: named entities, semantic relations and event information.

[0147] The analysis submodule is used to analyze the contribution rate of each target information in the user question and extract keywords from the target information according to the contribution rate, wherein the contribution rate of the keyword in the user question is greater than a first preset value.

[0148] The comparison submodule is used to compare the keywords of the user's question with the pre-set question keywords in the dissatisfied question library.

[0149] The determination submodule is used to determine that the user's question is a difficult question if there are keywords that match the comparison.

[0150] And / or, when it is determined by a preset classifier that the user question is incorrectly input, the user question is determined to be a difficult question.

[0151] And / or, when the user question is determined to be a general question by a preset classifier, the user question is determined to be a difficult question.

[0152] Optionally, the output module 403 specifically includes:

[0153] The first acquisition submodule is used to search the target vocabulary in the satisfactory question library to obtain a number of satisfactory answers that exist in the target vocabulary.

[0154] The word mining submodule is used to perform word mining among several satisfactory answers through the target vocabulary.

[0155] The second acquisition submodule is used to acquire a number of hyponymous and hyponymous words related to the target word from a number of satisfactory answers as prompt words.

[0156] The third acquisition submodule is used to input the target word into the target search engine to acquire the subordinate words of the target word, wherein at least one semantic tree is pre-set in the target search engine, and the subordinate words of the target word are determined through the semantic tree.

[0157] The combination submodule is used to select at least two hyponyms from the hyponyms for combination.

[0158] The generation submodule is used to generate a number of option questions according to the combination results, wherein each option question is a question of selecting a subordinate word of the combination.

[0159] Optionally, the determining module 404 specifically includes:

[0160] The first determination submodule is used to determine a number of replacement words and replacement questions of the user's question in response to the user's selection operation on a number of prompt words and option questions.

[0161] The fourth acquisition submodule is used to input a number of replacement words and replacement questions into the satisfactory question library for retrieval to obtain a number of target retrieval results.

[0162] The fifth acquisition submodule is used to obtain satisfaction scores of several target retrieval results.

[0163] The selection submodule is used to select the target retrieval result with the highest score from the satisfaction score as the best answer.

[0164] The second determination submodule is used to determine the target user question corresponding to the best answer through the best answer.

[0165] Optionally, the intelligent question-answering implementation device further includes:

[0166] The prompt module is used to pop up a satisfaction rating interface and send a rating prompt after waiting for a first preset time.

[0167] The first storage module is used to store target user questions with satisfaction scores greater than or equal to a second preset value, target answers and corresponding satisfaction scores in a satisfaction question library in response to user input in the satisfaction score interface.

[0168] The second storage module is used to store the target user questions with satisfaction scores less than a second preset value, the target answers and the corresponding satisfaction scores into the dissatisfied question library.

[0169] The monitoring module is used to monitor the target time for the user to close the answer display interface where the target answer is displayed.

[0170] The third storage module is used to automatically set a first satisfaction score for the target user question and the target answer when it is determined that the target time is less than the first preset time, and store the target user question, the target answer and the first satisfaction score into an unsatisfactory question library, wherein the first satisfaction score is less than the second preset value.

[0171] The fourth storage module is used to automatically set a second satisfaction score for the target user question and the target answer when it is determined that the target time is greater than the first preset time and the user has not entered a score in the satisfaction scoring interface, and store the target user question, the target answer and the second satisfaction score in a satisfaction question library, wherein the second satisfaction score is greater than the second preset value.

[0172] The intelligent question-answering implementation method provided by the embodiment of the present invention distinguishes the received user questions; if the user question is determined to be a difficult question, the target vocabulary in the user question is identified; through question classification, it is convenient to implement different processing methods according to different question types in the subsequent process, and a number of words related to the meaning of the target vocabulary are output as prompt words through a pre-trained language model; and / or, the target vocabulary is searched in a satisfactory question library, and a number of upper and lower semantic words related to the target vocabulary are extracted from the search results as prompt words; and, the lower words of the target vocabulary are obtained by pre-setting a semantic tree, and a number of option questions are generated according to the lower words; at this time, better prompt words are given and more favorable questions are generated to assist the user Users can ask precise questions and get the answers they want more quickly, reducing the cost of user interaction. In response to the user's selection operations on several prompt words and option questions, it is determined that there is a target user question corresponding to the best answer; the target user question is input into the reasoning model to obtain the target answer of the final output, which can make the obtained answer closer to the answer the user wants, greatly improving the user experience. In the embodiment of the present invention, the classification of problems is achieved by distinguishing the problems, and then when determining difficult problems, better prompt words can be given on the one hand, and more favorable questions can be automatically generated and input into the reasoning model on the other hand, thereby assisting users to better use the model reasoning function of the intelligent question and answer system and improving the user experience of the target product.

[0173] The embodiment of the present invention also provides a communication device, such as Figure 7 As shown, it includes a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 communicate with each other through the communication bus 504.

[0174] Memory 503, used for storing computer programs;

[0175] The processor 501 is used to execute the program stored in the memory 503, and implements the following steps:

[0176] Identify received user questions;

[0177] If it is determined that the user question is a difficult question, identifying the target vocabulary in the user question;

[0178] Outputting several words related to the meaning of the target word as prompt words through a pre-trained language model; and / or searching the target word in a satisfactory question library, extracting several hyponymous and hyponymous words related to the target word from the search results as prompt words; and obtaining hyponymous words of the target word through a pre-set semantic tree, and generating several option questions based on the hyponymous words;

[0179] In response to a user's selection operation on a plurality of prompt words and option questions, determining that there is a target user question corresponding to the best answer;

[0180] The target user question is input into the inference model to obtain the target answer of the final output.

[0181] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0182] The communication interface is used for communication between the above terminal and other devices.

[0183] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0184] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0185] The present invention also provides a readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the intelligent question and answer implementation method of the aforementioned embodiment.

[0186] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0187] The algorithm and display provided herein are not inherently related to any particular computer, virtual device or other equipment. According to the above description, it is obvious that the structure required for constructing this type of device is. In addition, the present invention is not directed to any specific programming language. It should be understood that various programming languages ​​can be utilized to realize the content of the present invention described herein, and the description of the above specific language is to disclose the best mode of the present invention.

[0188] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0189] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than those expressly recited in each claim. Rather, as reflected in the claims below, inventive aspects lie in less than all of the features of the individual embodiments disclosed above. Therefore, the claims that follow the detailed description are hereby expressly incorporated into the detailed description, with each claim itself serving as a separate embodiment of the present invention.

[0190] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0191] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the sorting device according to the present invention. The present invention may also be implemented as a device or apparatus program for executing part or all of the methods described herein. Such a program for implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0192] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.

[0193] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices, apparatuses and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0194] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

[0195] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

[0196] It should be noted that the various data-related processes in the embodiments of the present application are all carried out in compliance with the corresponding data protection laws and policies of the country where the device is located, and with the authorization given by the owner of the corresponding device.

Claims

1. A method for implementing intelligent question answering, characterized in that: The method comprises: Identify received user questions; If it is determined that the user question is a difficult question, identifying the target vocabulary in the user question; Outputting several words related to the meaning of the target word as prompt words through a pre-trained language model; and / or searching the target word in a satisfactory question library, extracting several hyponymous and hyponymous words related to the target word from the search results as prompt words; and obtaining hyponymous words of the target word through a pre-set semantic tree, and generating several option questions based on the hyponymous words; In response to a user's selection operation on a plurality of prompt words and option questions, determining that there is a target user question corresponding to the best answer; The target user question is input into the inference model to obtain the target answer of the final output.

2. The method according to claim 1, characterized in that The step of determining the received user question includes: Receive a user question input by a user and obtain text information of the user question; Adjusting the text information according to a preset format; Calling a text extraction algorithm to extract target information from the adjusted text information, wherein the target information includes: named entities, semantic relations and event information; Analyzing the contribution rate of each target information in the user question, and extracting keywords from the target information according to the contribution rate, wherein the contribution rate of the keyword in the user question is greater than a first preset value; Compare the keywords of the user's question with the pre-set question keywords in the dissatisfied question library; If there are keywords that match the comparison, the user question is determined to be a difficult question; and / or, when it is determined by a preset classifier that the user question is incorrectly input, determining that the user question is a difficult question; And / or, when the user question is determined to be a general question by a preset classifier, the user question is determined to be a difficult question.

3. The method according to claim 1, characterized in that The step of searching the target vocabulary in a satisfactory question library and extracting a number of hyponymous and hyponymous vocabulary related to the target vocabulary as prompt words from the search results includes: Searching the target vocabulary in a satisfactory question database to obtain a number of satisfactory answers containing the target vocabulary; Perform word mining among the plurality of the satisfactory answers through the target vocabulary; A plurality of hyponymous and hyponymous words related to the target word are obtained from the plurality of satisfactory answers as prompt words.

4. The method according to claim 1, characterized in that: The method of obtaining the subordinate words of the target word by presetting the semantic tree and generating a plurality of option questions according to the subordinate words includes: Inputting the target vocabulary into a target search engine to obtain subordinate words of the target vocabulary, wherein at least one semantic tree is pre-set in the target search engine, and the subordinate words of the target vocabulary are determined through the semantic tree; Randomly select at least two hyponyms from the hyponyms to combine; A number of option questions are generated according to the combination results, wherein each option question is a question of selecting a subordinate word of the combination.

5. The method according to claim 1, characterized in that In response to the user's selection operation on a plurality of prompt words and option questions, determining that there is a target user question corresponding to the best answer includes: In response to a user's selection operation on a plurality of prompt words and option-type questions, determining a plurality of replacement words and replacement questions for the user's question; Inputting the plurality of replacement words and the replacement questions into a satisfactory question library for retrieval to obtain a plurality of target retrieval results; Obtain satisfaction scores for several target search results; Selecting the target search result with the highest score from the satisfaction scores as the best answer; The target user question corresponding to the best answer is determined through the best answer.

6. The method according to claim 1, characterized in that After inputting the target user question into the inference model and obtaining the target answer of the final output, the method further includes: After waiting for the first preset time, a satisfaction rating interface pops up and a rating prompt is sent; In response to the user's input in the satisfaction rating interface, storing the target user question with a satisfaction rating greater than or equal to a second preset value, the target answer and the corresponding satisfaction rating in a satisfaction rating database; The target user questions with satisfaction scores less than the second preset value, the target answers and the corresponding satisfaction scores are stored in the dissatisfied question library.

7. The method according to claim 6, characterized in that After inputting the target user question into the inference model and obtaining the target answer of the final output, the method further includes: Monitoring the target time for the user to close the answer display interface displaying the target answer; When it is determined that the target time is less than the first preset time, a first satisfaction score is automatically set for the target user question and the target answer, and the target user question, the target answer and the first satisfaction score are stored in an unsatisfactory question library, wherein the first satisfaction score is less than a second preset value; When it is determined that the target time is greater than the first preset time and the user has not entered a score in the satisfaction rating interface, a second satisfaction rating is automatically set for the target user question and the target answer, and the target user question, the target answer and the second satisfaction rating are stored in the satisfaction rating interface. The second satisfaction score is greater than a second preset value.

8. An intelligent question-answering device, characterized in that: include: A first identification module, used to identify the received user questions; A second discrimination module, configured to identify target words in the user's question if it is determined that the user's question is a difficult question; An output module, used for outputting a number of words related to the meaning of the target words as prompt words through a pre-trained language model; and / or, searching the target vocabulary in a satisfactory question library, extracting several hyponymous and hyponymous vocabulary related to the target vocabulary from the search results as prompt words; and, obtaining hyponymous vocabulary of the target vocabulary by presetting a semantic tree, and generating several option questions according to the hyponymous vocabulary; A determination module, configured to determine whether there is a target user question corresponding to the best answer in response to the user's selection operation on the plurality of prompt words and option questions; The acquisition module is used to input the target user question into the reasoning model to obtain the target answer of the final output.

9. A communication device, characterized in that: include: A transceiver, a memory, a processor, and a program stored on the memory and executable on the processor; The processor is used to read the program in the memory to implement the steps in the intelligent question and answer implementation method as described in any one of claims 1-7.

10. A readable storage medium for storing a program, characterized in that: When the program is executed by the processor, the steps in the intelligent question and answer implementation method as described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Synthetic question formulation

    CN106462606A

  • Deep question answering-based questions and answers clarifying method and device

    CN106649768A

  • Method for pushing question and answer combination

    CN108491506A

  • Information processing method and device and terminal

    CN109033156A

  • Question generation method, intelligent question answering system, medium and computer system

    CN109783626A

Cited By

  • Policy question and answer method, device and equipment based on large model and medium

    CN119513331A

  • Response text generation method and device, storage medium and program product

    CN119692469A

  • Scenic area accompanying service method and system based on generative AI and knowledge base linkage

    CN120316231A