A business execution method, device and electronic device based on intelligent question and answer
By obtaining user identification and historical question and answer record data, we build user characteristic data and topic detection models to generate personalized answers, which solves the problem of inaccurate answers in intelligent question and answer technology and improves the practicality of answers and user experience.
Patent Information
- Application Number
- CN202411051949.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-08-01
AI Technical Summary
Existing intelligent question and answer technology lacks personalization when answering user questions and cannot accurately meet the actual needs of users, resulting in inaccurate and low practicality of answers, affecting problem-solving efficiency and user experience.
By obtaining the user identification and historical question and answer record data of the target user, the user characteristic data is determined, and the user attribute information and historical question and answer topic information are combined to build a user graph and topic detection model to generate personalized answers.
It improves the personalization and practicality of answers, improves problem-solving efficiency, meets the diverse needs of users, and optimizes user experience.
Smart Images

Figure CN118568244B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of natural language processing, and in particular to a method, device and electronic device for executing business based on intelligent question and answer. Background Art
[0002] With the continuous development and progress of science and technology, intelligent question-answering technology based on large language models has become increasingly mature and widely popular. At this stage, the widespread application of such technology in various fields has not only effectively solved various problems and needs of users, but also brought great convenience to people's daily life, study and work.
[0003] With the rapid development and wide coverage of network technology, the volume and personalized needs of network users have also increased. Although the current intelligent question-answering technology can effectively respond to the questions or needs input by users to a certain extent, most of them are simply based on user questions and answers through database indexes, and the answers given are relatively general and single. Even when different user groups ask the same question, the actual answers or help they seek may have different focuses due to differences in actual needs and group characteristics. In this case, answering questions based only on the content of the question and the database cannot accurately meet the actual needs and intentions of users, and may even result in inaccurate and less practical answers to users, which will reduce the efficiency of problem solving and affect the user experience to a certain extent.
[0004] Therefore, how to answer questions raised by users in a way that meets their personalized needs is a crucial issue. Summary of the invention
[0005] This specification provides a business execution method, device and electronic device based on intelligent question and answer to partially solve the above-mentioned problems existing in the prior art.
[0006] This manual adopts the following technical solutions:
[0007] This specification provides a business execution method based on intelligent question and answer, including:
[0008] Obtaining question text information corresponding to a target question input by a target user in the displayed question-answer display interface and a target user identifier corresponding to the target user;
[0009] According to the target user identifier, user feature data corresponding to the target user is determined from a preset storage space, the user feature data being obtained by pre-associating user attribute information corresponding to the target user with associated information corresponding to historical question and answer topic information, the historical question and answer topic information being determined in advance based on historical question and answer record data corresponding to the target user, the associated information corresponding to the historical question and answer topic information including superordinate concept information of the historical question and answer topic information or subordinate concept information of the historical question and answer topic information;
[0010] Inputting the question text information and the user characteristic data into a preset intelligent question-answering model, so that the intelligent question-answering model obtains an answer result for the question text information according to the user characteristic data;
[0011] According to the answer result, the target question and answer service is executed.
[0012] Optionally, the user attribute information corresponding to the target user and the associated information corresponding to the historical question and answer topic information are associated in advance to obtain the user feature data, specifically including:
[0013] For each dimension of attribute information included in the user attribute information, determine the similarity between the attribute information and the associated information corresponding to the historical question and answer topic information, and when it is determined that the similarity is not less than a preset similarity threshold, associate the attribute information with the associated information corresponding to the historical question and answer topic information to obtain sub-user feature data corresponding to the attribute information;
[0014] The user characteristic data is obtained according to the sub-user characteristic data corresponding to at least part of the attribute information in the user attribute information.
[0015] Optionally, obtaining the user characteristic data according to the sub-user characteristic data corresponding to at least part of the attribute information in the user attribute information specifically includes:
[0016] According to the user attribute information, a basic user graph corresponding to the target user is constructed with the user identifier corresponding to the target user as a central node and the attribute information of each dimension contained in the user attribute information as adjacent nodes;
[0017] According to the sub-user characteristic data corresponding to at least part of the attribute information in the user attribute information, the basic user graph is expanded to obtain an expanded user graph, and the expanded user graph is used as the user characteristic data, wherein, for each attribute information in the at least part of the attribute information, a node of the sub-user characteristic data corresponding to the attribute information in the expanded user graph is connected to a node corresponding to the attribute information.
[0018] Optionally, the historical question and answer topic information is determined in advance according to the historical question and answer record data corresponding to the target user, specifically including:
[0019] Performing word segmentation processing on the historical question and answer record data to obtain each word segmentation vocabulary;
[0020] Inputting each of the segmentation words into a pre-trained topic detection model, so that the topic detection model determines, for each segmentation word, a segmentation category corresponding to the segmentation word in the historical question and answer record data, and a segmentation probability distribution corresponding to the segmentation word in the historical question and answer record data, and determines a category probability distribution corresponding to each segmentation category in the historical question and answer record data according to the segmentation probability distribution corresponding to each segmentation word and each segmentation category;
[0021] The historical question and answer topic information corresponding to the target user is determined according to the word segmentation categories and the category probability distribution corresponding to the word segmentation categories in the historical question and answer record data.
[0022] Optionally, training the topic detection model specifically includes:
[0023] Get sample question and answer data;
[0024] Inputting the sample question and answer data into a topic detection model to be trained, so that the topic detection model to be trained determines the question and answer topic information corresponding to the sample question and answer data according to the sample question and answer data;
[0025] Based on the question and answer topic information and the standard question and answer topic information corresponding to the sample question and answer data, determine the loss value for the topic detection model to be trained, and based on the loss value, perform model training on the topic detection model to be trained, wherein the size of the loss value is negatively correlated with the similarity between the question and answer topic information and the standard question and answer topic information.
[0026] Optionally, the historical question and answer topic information is determined in advance according to the historical question and answer record data corresponding to the target user, specifically including:
[0027] Determine the main answer information of each candidate historical question according to the historical question and answer record data corresponding to the target user;
[0028] For each candidate historical question and answer main information, determine the data proportion of the candidate historical question and answer topic information in the historical question and answer record data, and when the data proportion is not less than a preset data proportion threshold, use the candidate historical question and answer topic information as the historical question main answer information.
[0029] Optionally, the method further includes:
[0030] Acquire historical usage record data of the target user for the question-and-answer display interface within a preset time range, wherein the historical usage record data at least includes click record data of the target user in the question-and-answer display interface, display duration data of each question-and-answer functional component in the question-and-answer display interface, and component category data corresponding to each question-and-answer functional component in the question-and-answer display interface, and the click record data at least includes click record data of the target user for each question-and-answer functional component;
[0031] For each question-and-answer function component in the question-and-answer display interface, determine, based on the historical usage record data and the user characteristic data, an importance representation value of the question-and-answer function component for the target user;
[0032] According to the importance representation value corresponding to each question and answer functional component in the question and answer display interface, the question and answer display interface is adjusted, and the adjusted question and answer display interface is presented to the target user.
[0033] This specification provides a service execution device based on intelligent question and answer, including:
[0034] An acquisition module, used to acquire question text information corresponding to a target question input by a target user in the displayed question-answer display interface and a target user identifier corresponding to the target user;
[0035] A feature determination module, used to determine user feature data corresponding to the target user from a preset storage space according to the target user identifier, wherein the user feature data is obtained by pre-associating user attribute information corresponding to the target user with associated information corresponding to historical question and answer topic information, wherein the historical question and answer topic information is pre-determined according to historical question and answer record data corresponding to the target user, and the associated information corresponding to the historical question and answer topic information includes superordinate concept information of the historical question and answer topic information or subordinate concept information of the historical question and answer topic information;
[0036] A question answering module, used to input the question text information and the user characteristic data into a preset intelligent question answering model, so that the intelligent question answering model obtains an answer result for the question text information according to the user characteristic data;
[0037] The business execution module is used to execute the target question-and-answer business according to the answer result.
[0038] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the above-mentioned business execution method based on intelligent question and answer.
[0039] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned intelligent question-and-answer-based business execution method when executing the program.
[0040] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:
[0041] It can be seen from the above method that in the service execution method based on intelligent question and answer provided in this specification: the historical question and answer subject information corresponding to the target user can be determined in advance based on the historical question and answer record data corresponding to the target user. Then, the historical question and answer subject information and the acquired user attribute information corresponding to the target user are associated to determine the user feature data corresponding to the target user. When the target question input by the target user is obtained, a personalized answer is given to the target question input by the target user based on the predetermined user feature data, and the corresponding service is executed according to the answer result.
[0042] As can be seen from the above content, the business execution method based on intelligent question and answer provided in this specification can determine the historical question and answer subject information in advance according to the historical question and answer record data corresponding to the target user, and associate the historical question and answer subject information with the attribute information that is related in the user attribute information to obtain the user feature data corresponding to the target user. When the target user asks a question, a personalized answer can be given to the target question raised by the target user based on the user feature data. Through this method, when answering the questions raised by the user, the user's personalized characteristics can be integrated into the question and answer reply, so that the user can obtain a highly practical answer that not only meets his own personalized needs, but also can solve practical problems. It effectively improves the practicality and personalization of the answers to the questions obtained by the user, improves the efficiency of solving the target problem, and the diversified intelligent questions and answers that meet personalized needs can also optimize the user experience to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:
[0044] Figure 1 A flowchart of a business execution method based on intelligent question and answer provided in this specification;
[0045] Figure 2 A schematic diagram of a process for answering a question based on target question text information provided in this specification;
[0046] Figure 3a , Figure 3bA schematic diagram of a change in the adjustment process of a question and answer display interface provided in this manual;
[0047] Figure 4 A schematic diagram of a service execution device based on intelligent question and answer provided in this specification;
[0048] Figure 5 A method provided in this specification corresponding to Figure 1 Schematic diagram of the structure of an electronic device. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.
[0050] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.
[0051] Figure 1 A flowchart of a business execution method based on intelligent question answering provided in this specification includes the following steps:
[0052] S101: Obtain question text information corresponding to a target question input by a target user in a displayed question-and-answer display interface and a target user identifier corresponding to the target user.
[0053] S102: Determine user characteristic data corresponding to the target user from a preset storage space according to the target user identifier.
[0054] At present, intelligent question-answering technology based on large language models is progressing rapidly and gradually developing and improving. Various intelligent question-answering systems have become effective tools for solving users' daily problems. However, when answering and providing help based on users' questions, the current intelligent question-answering technology often only considers the question itself, thus ignoring the real personalized needs and user characteristics of the user who asked the question, and the corresponding answers may not meet the actual needs of the user. While causing the problem-solving efficiency to decrease, it may also affect the user experience. Therefore, how to effectively answer questions raised by users and meet actual needs is an urgent problem to be solved.
[0055] To this end, this specification provides a service execution method based on intelligent question and answer, wherein the execution subject adopted by the method provided in this specification can be a server, or a terminal device such as a desktop computer, a laptop computer, etc. In addition, the execution subject of this specification can also be a subject in the form of software, such as a client installed in a terminal device, etc. For the sake of convenience of explanation, the following in this specification only takes the server as the execution subject to explain the service execution based on intelligent question and answer.
[0056] Based on this, the server implementing the intelligent question-and-answer service provided in this specification can determine the user characteristic data of the target user according to the attribute information and historical question-and-answer record data corresponding to the target user. Then, based on the user characteristic data, the server can answer the target question input by the target user to meet the personalized needs of the target user.
[0057] Among them, the specific application scenario in which the server provides personalized answers to the target questions input by the user can be determined according to actual needs. For example, when the target user asks for scenic spot recommendations for a certain tourist attraction, the server can determine the user feature data corresponding to the target user in advance based on the historical question and answer record data and user attribute information corresponding to the target user, and provide personalized answers based on the user feature data. Assuming that the determined user feature data indicates that the target user likes to taste delicious food or has a career related to cooking, when answering the scenic spot recommendation questions raised by the user, the server can answer questions based on famous food or restaurants in the tourist attractions, thereby better meeting the user's needs and hobbies, allowing the user to more accurately understand the information that meets the user's personalized characteristics.
[0058] For another example, when the target user makes a request for help writing an article on a specific topic, the server can determine the user characteristic data corresponding to the target user in advance based on the historical question and answer record data and user attribute information corresponding to the target user, and provide help that meets the personalized needs of the target user based on the user characteristic data. The determined user characteristic data can represent the interests, hobbies, age, occupation, etc. of the target user. Assume that the user characteristic data corresponding to the target user indicates that the age group of the target user corresponds to teenagers. The server can generate article content that meets the personalized needs of the target user and is more suitable for the age stage of teenagers based on the article topic provided by the target user and the user characteristics (age group, interests, hobbies, etc.) of the target user represented by the user characteristic data, so as to provide help to the target user efficiently and enable the target user to obtain practical help that is easier to understand and use for himself.
[0059] In this specification, the server can obtain the question text information corresponding to the target question entered in the displayed question-answer display interface and the target user identifier corresponding to the target user. Then, the server can determine the user feature data corresponding to the target user from the storage space according to the obtained target user identifier.
[0060] The user feature data is obtained by the server after associating the user attribute information corresponding to the target user and the associated information corresponding to the historical question and answer topic information in advance. The historical question and answer topic information is determined by the server in advance based on the historical question and answer record data corresponding to the target user. The associated information corresponding to the historical question and answer topic information may specifically include the superordinate concept information of the historical question and answer topic information or the subordinate concept information of the historical question and answer topic information.
[0061] The above user attribute information can be the personal attribute information that the target user actively enters when registering and logging in or during normal use, which is collected by the server when the target user conducts intelligent question and answer through the server. Specifically, it can include but not be limited to: user name, age, contact information, occupation, education level, user personal hobbies and other personal attribute information related to the target user. The specific content of the user attribute information is not limited in this specification, and it can be set and obtained according to the application scenario. The historical question and answer record data can be the question and answer records saved by the target user in the history of intelligent question and answer, and the specific data form can be the text record information corresponding to each historical question and answer record.
[0062] It should be noted in advance that the user attribute information and historical question and answer record data of the above-mentioned target user can only be obtained on the premise that the target user agrees to open the corresponding access permissions to the server. Without the permission of the target user, the server cannot obtain the corresponding user attribute information and historical question and answer record data of the target user.
[0063] It can be known from the above content that before determining the user feature data, the server needs to determine the corresponding historical question and answer topic information based on the historical question and answer record data corresponding to the target user. As for the specific determination process of the historical question and answer topic information, the server can perform word segmentation processing on the historical question and answer record data in text form to obtain the historical question and answer record data after word segmentation processing, which contains various word segmentation vocabulary. The specific process of the above word segmentation processing can be achieved by first cleaning the historical question and answer record data in text form, removing invalid words such as sensitive words, punctuation marks, and digital marks, and then performing word segmentation and extraction based on word frequency statistics or by using mathematical models (such as recurrent neural networks {Recurrent Neural Network, RNN}, long short-term memory networks {Long Short-Term Memory network, LSTM}, etc.). The specific word segmentation processing method is not strictly limited in this manual and can be flexibly set according to the actual application scenario.
[0064] Then, the server can input the segmented words obtained after the word segmentation processing of the historical question and answer record data into the pre-selected and trained topic detection model, so that the topic detection model can first convert the data form of the segmented words that are still in text form after the word segmentation processing into the data vector form of each segmented word word. The specific conversion method can be, for example, to convert the segmented words after the word segmentation processing into the historical question and answer record data in the form of term frequency-inverse document frequency vector (Term Frequency-Inverse Document Frequency, TF-IDF) through the scikit-learn library.
[0065] Next, the topic detection model can determine the corresponding segmentation category of each segmentation vocabulary in the historical question and answer record data, as well as the segmentation probability distribution of each segmentation vocabulary in the historical question and answer record data for each segmentation vocabulary after the data form conversion. The segmentation probability distribution corresponding to each segmentation vocabulary can specifically represent the segmentation proportion of the segmentation vocabulary in the historical question and answer record data. Then, the topic detection model can determine the category probability distribution corresponding to each segmentation category in the historical question and answer record data based on the segmentation probability distribution corresponding to each segmentation vocabulary and each segmentation category. The category probability distribution corresponding to each segmentation category can specifically represent the category proportion of the segmentation category in the historical question and answer record data.
[0066] After the above steps, the server can use the subject content corresponding to each segmentation category as each question and answer topic according to each segmentation category and the category probability distribution corresponding to each segmentation category in the historical question and answer record data, and determine the historical question and answer topic information corresponding to the target user. Among them, the historical question and answer topic information can specifically represent the question and answer topics that the target user pays attention to during the historical question and answer process, and the corresponding probability distribution of each question and answer topic in the historical question and answer record data. The server can directly use the segmentation categories mentioned in the above steps as each question and answer topic, and the corresponding probability distribution as the probability distribution corresponding to each question and answer topic.
[0067] Regarding the specific data processing process of the topic detection model in the above steps, you can refer to the following formula:
[0068]
[0069] in, Represents each word segmentation vocabulary in the historical question and answer record data, Used to represent the historical question and answer record data corresponding to the target user. It represents the word categories in the historical question and answer record data. The server can directly determine the word categories Or the corresponding subject content as the topic of each question and answer, that is, It can also be used to represent each question and answer topic in the historical question and answer record data. The historical question and answer topic information can be specifically represented as the historical question and answer record data. Each participle category in (question and answer topic) And each participle category (question and answer topic) The corresponding category probability distribution is . Based on historical question and answer record data and each participle vocabulary Each word segment can be directly determined Record data in historical questions and answers Corresponding word segmentation probability distribution Then according to each word segmentation vocabulary and the determined word categories (question and answer topics) , determine the vocabulary of each participle In the participle category (question and answer topic) The distribution probability in , and then according to and Then we can determine the categories of each word (question and answer topic) The corresponding category probability distribution . That is, it can be expressed as the probability distribution corresponding to each question and answer topic in the historical question and answer record data.
[0070] In simple terms, the historical question and answer topic information determined in the above steps can be used to represent the key question and answer content that the user is more concerned about in the historical question and answer process. Each key question and answer content will be used as a question and answer topic, and the approximate share of each question and answer topic in the historical question and answer process will be determined. Through the topic detection and extraction of the above process, the server can determine the question and answer topics that the target user is more concerned about in the historical question and answer process, as well as the corresponding probability distribution. Based on the determined historical question and answer topic information, the server can more comprehensively obtain the personalized characteristics of the target user in the subsequent user feature data determination process.
[0071] To illustrate the above process, assume that the historical question and answer record data corresponding to a certain target user contains questions such as "What dishes can be made with potatoes and tomatoes", "What famous tourist attractions are there in XX place", etc. The server can determine the segmentation categories corresponding to each segmentation vocabulary and the corresponding distribution probability of each segmentation category in the historical question and answer record data through the above topic detection model based on the content of the historical questions and the corresponding historical answers. For example, the segmentation categories corresponding to segmentation vocabulary such as "potatoes", "tomatoes", and "cooking" may be "cooking vegetables" or "cooking methods of vegetables", etc., and the segmentation categories corresponding to segmentation vocabulary such as "XX place", "famous", and "tourist attractions" may be "introduction to regional attractions" or "recommendation of tourist attractions", etc. Furthermore, the server can determine the question and answer topics in the historical question and answer record data based on each segmentation category. Specifically, the specific content of the segmentation category can be directly used as the question and answer topic. For example, the question and answer topics corresponding to the above example can be such as Topic 1 "Cooking methods of vegetables" and Topic 2 "Recommendation of tourist attractions".
[0072] Regarding the pre-training process of the above-mentioned topic detection model, the server can obtain sample question and answer data for model training, and the sample question and answer data can be historical question and answer data with known question and answer topics and topic distribution probabilities. Then, the server can input the sample question and answer data into the topic detection model to be trained, so that the topic detection model to be trained can determine the question and answer topic information corresponding to the sample question and answer data based on the received sample question and answer data. The server can calculate the training loss of the topic detection model to be trained based on the standard question and answer topic information corresponding to the sample question and answer data, that is, the known question and answer topics and topic distribution probabilities corresponding to the sample question and answer data, and the determined question and answer topic information. The numerical value of the loss value during the training process is negatively correlated with the similarity between the question and answer topic information and the standard question and answer topic information, and the topic detection model is trained with the goal of reducing the training loss.
[0073] Specifically, in this specification, the pre-training process of the topic detection model can be implemented by performing data sampling, and the specific formula can be referred to as follows:
[0074]
[0075]
[0076] Among them, regarding the above first row of formulas, the overall formula is used to represent the joint distribution formula for question and answer topics and segmentation vocabulary in historical question and answer record data. Represents historical question and answer record data The word vector corresponding to each word segmentation vocabulary in Represents historical question and answer record data The topic vector corresponding to each question and answer topic in , are the prior distribution parameters determined in the pre-training process, Indicates the number of question-answer topics. Used to express the parameters of the prior distribution Topic distribution vector The data sampling process for topic sampling, that is, the subsequent formula ,and Used to represent the topic vector determined according to , word vector and the prior distribution parameters The data sampling process for word sampling, that is, the subsequent formula The overall formula is used to express the joint distribution formula for question and answer topics and word segmentation vocabulary in the historical question and answer record data.
[0077] The second line of formula shown above is used to represent the conditional probability formula for question and answer topics and word segmentation vocabulary determined based on the joint distribution formula of question and answer topics and word segmentation vocabulary according to the Gibbs Sampling method. Among them, represents the probability of each question and answer topic for each word segmentation vocabulary, and is the normalization term in the formula, and The server can use this conditional probability formula and the above joint distribution formula to train the topic detection model in a Gibbs sampling manner, determine the training loss of each round of model training based on the sampling results, and optimize and adjust the model parameters, such as the number of topics in the above formula. , prior distribution parameters , the smoothing factor in the normalization term , The model parameters are adjusted until the model training converges, thereby obtaining a topic detection model that can be actually used to determine the topic probability distribution corresponding to the question and answer topic based on the historical question and answer record data.
[0078] In addition, in the training process of this specification, the optimization concepts of perplexity and topic coherence of the topic detection model can also be introduced. In the current technology, perplexity is a commonly used evaluation indicator for evaluating the performance of the model in processing unknown data. The lower the perplexity of the model, the stronger the model's ability to process and adapt to unknown data, and the more obvious the training effect. The topic coherence is to judge whether the logic corresponding to the question and answer topics extracted by the topic detection model when extracting question and answer topics conforms to the normal human thinking logic, whether it is closely related to the context, etc. The server can optimize the trained topic detection model again based on perplexity and topic coherence, and then adjust the model parameters so that the optimized topic detection model can more accurately extract the historical question and answer topics corresponding to the target user, and ensure that the user features determined in the subsequent user feature data determination process are closer to the user's actual situation.
[0079] In addition, when the server obtains the historical question and answer record data corresponding to the target user, it can also collect question and answer satisfaction feedback from the user through the question and answer display interface. The target user can voluntarily choose whether to enter satisfaction feedback information. The server can focus on the question and answer records with high satisfaction when the topic detection model performs question and answer topic detection based on the question and answer satisfaction feedback information corresponding to the received historical question and answer record data, so that the model can focus on the question and answer records whose answers are more in line with the real intentions of the target user. In addition, question and answer satisfaction feedback data can also be introduced in the model training process. The server can evaluate the training of the trained topic detection model based on the question and answer satisfaction feedback data corresponding to the sample question and answer data. When there is a large difference between the generated question and answer topic information and the actual question and answer topic corresponding to the question and answer satisfaction feedback data, the server can retrain the topic detection model to ensure the accuracy and practicality of the model training results.
[0080] In addition to the above content, it should be noted that this manual does not strictly limit the specific model category of the feature extraction model. Mathematical models that are commonly used in the current technology, such as the Latent Dirichlet Allocation (LDA), Latent Semantic Analysis (LSA), Structured Topic Model (STM), etc., which have the ability to analyze topics based on documents, can be used and can be flexibly selected and set according to the actual application scenario.
[0081] Further, after determining the historical question and answer topic information based on the historical question and answer record data corresponding to the target user, the server can determine the user feature data corresponding to the target user based on the acquired user attribute information corresponding to the target user and the historical question and answer topic information determined in the above steps. The user feature data can be specifically understood as reflecting the user's question and answer preferences in the question and answer process at a deeper level based on the user attribute information.
[0082] Specifically, the server can determine the associated information corresponding to each question and answer topic based on the historical question and answer topic information, and determine the similarity between the attribute information of each dimension contained in the user attribute information and the associated information corresponding to each question and answer topic. The associated information can specifically represent the superordinate concept or subordinate concept of the corresponding question and answer topic. For example, the associated information corresponding to the topic "potato and eggplant cooking" can be "vegetable cooking methods" or "vegetarian cooking methods".
[0083] For example, assume that the historical question and answer topic information determined for a certain target user specifically includes three historical question and answer topics: Topic 1: "Cooking methods for vegetable ingredients", with a distribution probability of 40% in the historical question and answer record data; Topic 2: "Recommended tourist attractions in XX area", with a distribution probability of 50% in the historical question and answer record data; Topic 3: "Interpretation and comments on film and television works", with a distribution probability of 10% in the historical question and answer record data. The server can determine the corresponding related information according to the subject content corresponding to the above three question and answer topics. For example, the related information corresponding to Topic 1 "Cooking methods for vegetable ingredients" can be "Cooking methods for vegetables" or "Recipes for vegetarian dishes", etc., while the related information corresponding to Topic 2 "Recommended tourist attractions in XX area" can be "Travel" or "Sightseeing", etc., and the related information corresponding to Topic 3 "Interpretation and comments on film and television works" can be "Film and television analysis", etc.
[0084] Then, the server can determine the attribute information of each dimension contained in the user attribute information based on the acquired user attribute information, and determine the similarity between the attribute information and the associated information corresponding to each question and answer topic for the attribute information of each dimension. When it is determined that the similarity is not less than the preset similarity threshold, the server can associate the attribute information with the corresponding associated information to obtain the sub-user feature data corresponding to the attribute information.
[0085] Continuing with the above example, assuming that the user attribute information corresponding to a target user includes basic user attribute information such as name: XX, age: 25, occupation: restaurant chef, hobbies: outdoor sports, fishing, etc., the server can determine the attribute information corresponding to each dimension of the target user based on this user attribute information. For example, according to "age: 25 years old", the age dimension of the target user is defined as the youth stage, according to "occupation: restaurant chef", the occupation dimension of the target user is defined as related to cooking, and according to "hobbies: outdoor sports, fishing", the life hobby dimension of the target user is defined as outdoor sports.
[0086] Next, in this example, the server can determine the similarity between each attribute information and each associated information according to the attribute information corresponding to each dimension and each associated information. It is not difficult to see that the "occupation related to cooking" in the user attribute information is similar to the associated information "vegetable cooking methods" corresponding to Topic 1 in the historical question and answer topic information, and the similarity between the two types of information is also close to 100%. The associated information "tourism" of Topic 2 is also related to the "hobby outdoor sports" in the user attribute information, but because "tourism" is somewhat inferior to "hobby outdoor sports", the similarity determined by the server based on the associated information "tourism" and the user attribute information may be lower, assuming that the similarity is about 50%. The relationship between the associated information "film and television analysis" corresponding to Topic 3 and the attribute information of each dimension in the user attribute information is not obvious, and the determined similarity may be even lower, assuming that the similarity is about 0%.
[0087] Assuming that the preset similarity threshold in the server is 40%, in the above example, the associated information "vegetable cooking methods" corresponding to Topic 1 and the associated information "travel" corresponding to Topic 2 can be considered by the server as the subject content of the corresponding question and answer topics being related to the user attributes represented in the user attribute information. Then, the server can associate the associated information corresponding to Topic 1 and Topic 2 and the corresponding question and answer topic data with the corresponding attribute information in the user attribute information, that is, associate the associated information "vegetable cooking methods" with the "occupation related to cooking" in the user attribute, and use the associated information "vegetable cooking methods" as the sub-user feature data of the attribute information "occupation related to cooking", and associate the associated information "travel" with the "hobby outdoor sports" in the user attribute, and use the associated information "travel" as the sub-user feature data of the attribute information "hobby outdoor sports".
[0088] Then, the server can determine the user feature data corresponding to the target user based on the sub-user feature data corresponding to at least part of the attribute information in the user attribute information. The specific data type of the determined user feature data is not strictly limited in this specification, and can be user feature data in the form of a matrix vector, or can be user feature data in the form of a knowledge graph. The specific data form can be flexibly set according to actual application requirements and scenarios. In order to facilitate understanding of the above-mentioned process of determining user feature data based on sub-user feature data, user feature data in the form of a knowledge graph is used as an example for introduction and explanation.
[0089] Specifically, the server can use the user identifier corresponding to the target user as the central node of the knowledge graph based on the user attribute information corresponding to the target user, and use the attribute information corresponding to each dimension in the user attribute information as adjacent nodes to construct a basic user graph corresponding to the target user. The user identifier can specifically be user attribute information with identification such as the user name or user account ID. Then, the server can expand the basic user graph based on the sub-user feature data corresponding to at least part of the attribute information in the user attribute information determined in the above steps, and use the expanded user graph as the user feature data. The graph nodes corresponding to each sub-user feature data are connected to the nodes of the corresponding attribute information in the expanded user graph.
[0090] The above example is still used to illustrate the user feature data in the form of knowledge graph. In the above example, the user attribute information of the target user includes name: XX, age: 25 years old, occupation: restaurant chef, hobbies: going out for sports, fishing and other attribute information. The server can use "name: XX" in the user attribute information as the central node, and the attribute information of the remaining dimensions as the adjacent nodes of the central node, that is, "age: 25 years old", "occupation: restaurant chef" and "hobbies: going out for sports, fishing" and other attribute information as the adjacent nodes of "name: XX", thereby forming the basic user graph corresponding to the target user.
[0091] Then, the sub-user characteristic data corresponding to at least part of the attribute information in the user attribute information corresponding to the target user determined in the above example is used, namely, the sub-user characteristic data "vegetable cooking method" corresponding to the attribute information "occupation: restaurant chef", and the sub-user characteristic data "travel" corresponding to the attribute information "hobby: going out for sports, fishing". The server can expand the graph nodes corresponding to the attribute information in the basic user graph corresponding to the target user according to the above sub-user characteristic data, that is, the sub-user characteristic data "vegetable cooking method" is used as the adjacent node of the node of the attribute information "occupation: restaurant chef" in the basic user graph, and the sub-user characteristic data "travel" is used as the adjacent node of the node of the attribute information "hobby: going out for sports, fishing" in the basic user graph, so as to determine the expanded user graph corresponding to the target user.
[0092] Next, the server can use the expanded user graph as the user feature data corresponding to the target user. The expanded user graph contains not only all the basic features related to the target user in the user attribute information, but also the personalized question-and-answer features that the target user has focused on in the historical question-and-answer process and are related to his or her own attributes, so that when the server answers the questions raised by the target user, it can make a response that better meets the personalized needs of the target user based on the user feature data.
[0093] It should be noted that in this specification, considering that there are many question and answer topics that may be involved in the historical question and answer record data, the amount of data to be processed may be too large when determining the associated information. Therefore, before determining the associated information for each question and answer topic, the server can use the question and answer topics determined in the above process as candidate historical question and answer topic information. Then, based on the probability distribution corresponding to each question and answer topic in the historical question and answer record data, that is, the data proportion corresponding to each candidate historical question and answer topic information in the historical question and answer record data, and the preset data proportion threshold, for each candidate historical question and answer topic information, only when the data proportion corresponding to the candidate historical question and answer topic information is not less than the data proportion threshold, the server can use the candidate historical question and answer topic information as historical question and answer topic information and determine the corresponding associated information.
[0094] The remaining question and answer topics corresponding to the candidate historical question and answer topic information that do not meet the data ratio threshold requirement will be considered useless topics by the server and filtered out. This process can effectively reduce the amount of data processing in the process of determining user feature data, and also effectively avoid the accuracy of user feature data and the actual situation of the target user being affected due to the appearance of too many useless question and answer topics.
[0095] Still using the above example to illustrate again, assume that the candidate historical question and answer topic information includes: Topic 1: "Cooking methods for vegetable ingredients", with a data share of 40%; Topic 2: "Recommended tourist attractions in XX area", with a data share of 50%; Topic 3: "Interpretation and comments on film and television works", with a data share of 10%. Assuming that the preset data share threshold is 30%, for the historical question and answer topic information in the example, the server can use Topic 1: "Cooking methods for vegetable ingredients" and Topic 2: "Recommended tourist attractions in XX area" in the candidate historical question and answer topic information as historical question and answer topic information, and determine the corresponding related information. However, Topic 3: "Interpretation and comments on film and television works" in the candidate historical question and answer topic information can be filtered out because the data share does not meet the share threshold requirement, and the subsequent related information determination will not be performed.
[0096] In addition to the above, if the target user asks a question for the first time, that is, there is no corresponding historical question and answer record data, the server can directly determine the initial user feature data based on the user attribute information corresponding to the target user obtained. After answering the questions in the preset rounds based on the initial user feature data, the user feature data for the target user is determined based on the historical question and answer record data collected in the preset rounds.
[0097] In addition, both the associated information corresponding to the question and answer topic and the specific content and type of the user attribute information are explained by this example for ease of understanding. In this specification, the type and content form of the associated information and user attribute information corresponding to the question and answer topic are not strictly limited, and can be flexibly adjusted according to actual application scenarios and needs. In addition, the above-mentioned user feature data determination process can also be carried out by directly converting the historical question and answer topic information and user attribute information into the same data format through the server, and performing similarity calculation based on the two data in the same data format. According to the similarity calculation result, all or part of the question and answer topic data of the question and answer topics with higher similarity in the historical question and answer topic information in the historical question and answer record data are data-associated with the user attribute information of the target user, thereby obtaining user feature data.
[0098] The above introduction is all about the process of the server pre-determining the user characteristic data corresponding to the target user. After completing the process of determining the user characteristic data in advance, the server can store the determined user characteristic data in a preset storage space, so that after the target user initiates a question, the server can directly match the corresponding user characteristic data from the storage space according to the user identifier corresponding to the target user, and then perform the subsequent answering process that meets the personalized needs of the target user.
[0099] S103: Input the question text information and the user characteristic data into a preset intelligent question-answering model, so that the intelligent question-answering model obtains an answer result for the question text information according to the user characteristic data.
[0100] S104: Execute the target question-and-answer service according to the answer result.
[0101] In this specification, the server can input the acquired question text information and the user feature data matched based on the target user identifier into the preset intelligent question-answering model, so that the intelligent question-answering model can answer the target question corresponding to the question text information according to the user feature data, thereby obtaining the answer result. Then, the server can execute the corresponding target question-answering service according to the answer result.
[0102] Specifically, the server can construct an input prompt framework (Prompt) of the intelligent question-answering model based on the user feature data corresponding to the target user matched based on the target user identifier and the historical question-answering record data corresponding to the target user, and input prompt information including the target question text information to the intelligent question-answering model based on the constructed input prompt framework, so that the intelligent question-answering model can answer questions based on the received prompt information and the input prompt framework. In order to facilitate understanding of the specific processing process of answering questions, a flowchart of answering questions based on target question text information is used for explanation below, as shown in FIG. Figure 2 as shown in .
[0103] Figure 2 The present invention provides a flowchart for answering questions based on target question text information.
[0104] like Figure 2 As shown in the content, the server can construct a corresponding input prompt framework based on the user feature data, the historical question and answer record data and the acquired target question text information. The input prompt framework contains the user features determined based on the user feature data, the historical question and answer record related data determined based on the historical question and answer record data, and the target question corresponding to the target question text information and the user request to answer the question. The user request may include a key answer prompt for the target question. For example, assuming that the target question raised by the target user is "Recommend several famous tourist attractions in XX area", the server can use "XX area" and "tourist attractions" as the key parts of the target question as user request prompts based on the target question text information. Then, the server can input the constructed input prompt information into the intelligent question and answer model, so that the intelligent question and answer model responds to the target question based on the received input prompt information, combined with the user features and historical question and answer records.
[0105] Regarding the specific reply process in actual applications, for ease of understanding, the following example is given: Assuming that for a certain target user, the user feature data determined by the server indicates that the target user is a young person who loves to taste delicious food and has a hobby or occupation related to cooking. When the target user enters the target question "recommendations for XX attractions", the current technology often simply performs relevant searches based on the "XX attractions" in the target question, and then directly lists a series of related attraction recommendations, gourmet restaurants, check-in photo spots, etc. Although this answer method is relatively comprehensive and intuitive, it is difficult to perfectly match the target user's true intentions and special preferences.
[0106] The server using the method in this specification can provide a more personalized answer to the user's needs based on the target question "recommendations for XX attractions" combined with the above-mentioned user characteristic data. Specifically, the server can make recommendations based on the target question based on the user characteristic data "love of tasting delicious food", and can specifically focus on stating the detailed information of famous local food or restaurants in the question reply, and provide detailed route instructions and planning, so that the target user can more intuitively obtain the information content he cares about, avoiding the subsequent target user to spend additional time on detailed information query, and also making the user feel that the answer he gets when answering the question is closer to his own real situation, effectively improving the user experience.
[0107] Furthermore, the server can display the answer results of the intelligent question-answering model to the target user through the question-answering display interface. In addition to the answer results for the target question, the display interface can also include the question-answering status (indicating whether the answer is completed), the model type of the intelligent question-answering model, the user characteristics based on the answer results, and other information, which can be displayed to the target user. At the end of the question answering, the answer satisfaction feedback interface can also be displayed to the target user to collect the answer satisfaction from the target user. If the user is not satisfied with the answer result, the server can also readjust the input prompt information mentioned in the above answering process to re-answer the target question.
[0108] In addition, this specification does not strictly limit the specific model category of the intelligent question and answer model mentioned in the above process. It can be a large language model such as the Generative Pre-trained Transformer model (GPT), Wenyan Yixin, Tongyi Qianwen, etc., which are relatively well-known in the current model technology. Even multiple large language models can be pre-set in the server. If the target user is not satisfied with the language model corresponding to the current answer result or intends to change the model type, the user can choose to change the model type of the intelligent question and answer model when displaying the answer result. The server will change the intelligent question and answer model according to the user's operation and re-answer the question. The specific model type and setting method can be adjusted according to the actual application scenario and needs.
[0109] In addition to the above, the server can also obtain the historical usage record data of the target user in the question and answer display interface, and personalize the various question and answer functional components in the question and answer display interface according to the historical usage record data and the user characteristic data determined in the above steps. The historical usage record data is used to indicate the target user's usage record for each question and answer functional component in the question and answer display interface, and specifically may include the target user's click record data in the question and answer display interface, the display time data of each question and answer functional component in the question and answer display interface, and the component category data corresponding to each question and answer functional component in the question and answer display interface. The click record data at least includes the target user's click record data for each question and answer functional component.
[0110] Specifically, the server can determine the importance representation value of each question and answer function component for the target user based on the historical usage record data and user feature data for each question and answer function component in the question and answer display interface. Then, the server can adjust the display of each question and answer function component in the question and answer display interface according to the importance representation value corresponding to each question and answer function component, and display the adjusted question and answer display interface to the target user. Regarding the question and answer function components in the question and answer display interface, they can be used to represent various types of question and answer functions of the intelligent question and answer system corresponding to the server, such as the text question answering function mentioned in the above process, and other similar image analysis functions, article writing functions, etc.
[0111] For the specific process of determining the importance representation value corresponding to the question-answering functional component, please refer to the following formula:
[0112]
[0113]
[0114]
[0115]
[0116] Among them, for each question and answer component function, It is used to indicate the click rate corresponding to the question-and-answer component. Used to indicate the number of times the question-and-answer component was exposed and displayed in the historical usage record data. It is used to indicate the number of clicks and exposures of the question-and-answer component by the target user in the historical usage record data. With clicks The ratio of is the click rate corresponding to the question-and-answer function component. In the above formula Used to indicate the exposure value of the question-and-answer component. The question-and-answer component is displayed highly in the question-and-answer display interface. , the exposure time of the question-and-answer function component in the question-and-answer display interface And the value constant of the preset unit exposure time The above formula It indicates the click value of the question-and-answer component, which is determined by the click rate of the question-and-answer component. and exposure value Joint decision.
[0117] In the above formula It is used to represent the importance value corresponding to the question-answering function component. , as well as It is a pre-set weight factor, which plays a role in adjusting the influence of each factor on the importance representation value. It can be used to represent other record data in the historical usage record data, such as the number of successful answers, the number of abnormal errors, etc. The specific content can be flexibly selected according to the actual application scenario and needs.
[0118] It can be seen from the above formula that the server can determine the click-through rate, exposure value, click value and other data corresponding to the question-and-answer function component according to each record data in the historical usage record data, and then determine the importance representation value of each question-and-answer function component. In addition, the server can also perform a rationality evaluation of the importance representation value based on the user feature data determined in the previous step. Specifically, the server can determine whether the actual function corresponding to the question-and-answer function component with a higher importance representation value is close to the user characteristics of the target user represented by the user feature data based on the user feature data. If it is judged not to be consistent, it will be re-evaluated. For example, assuming that the user feature data of the target user indicates that the target user likes to paint, and likes to collect pictures or generate pictures using an intelligent question-and-answer model, etc., but the server determines that the question-and-answer function component with a higher importance representation value is a document parsing component based on the historical usage record data of the target user. It is not difficult to see that there is a significant difference between the document parsing component with a higher importance representation value and the user characteristics represented by the user feature data. In this case, the server can re-evaluate each question-and-answer function component to determine an importance evaluation result that is more in line with the user feature data.
[0119] Then, the server can adjust the display of the question and answer display interface according to the importance representation value corresponding to each question and answer functional component, and display it to the target user. The specific adjustment process can be to adjust the question and answer functional component with the importance representation value to the central part or key display position of the question and answer display interface, or to adjust the display order of question and answer functional components with different functional types according to the importance representation value. In order to facilitate the understanding of the adjustment process of the above question and answer display interface, the following is an introduction with a schematic diagram of the change process of the question and answer display interface, as shown in the figure below. Figure 3a , Figure 3b shown.
[0120] Figure 3a , Figure 3b This is a schematic diagram of the changes in the question and answer display interface adjustment process provided in this manual.
[0121] Figure 3a The content shown in the figure is the default display example interface of the question-and-answer display interface on the mobile terminal. It can be seen that the question-and-answer display interface in this example is mainly divided into three different types of question-and-answer functional components, namely, intelligent question-and-answer components, intelligent generation components and intelligent analysis components. Among them, each type of functional component corresponds to various small functional components, such as the question answering component and information retrieval component in the intelligent question-and-answer component, and the document parsing component and image analysis component in the intelligent analysis component. The server can determine the target user’s historical usage record data based on the data in each record. Figure 3aThe importance representation values corresponding to the functional components shown in the figure are respectively used to adjust the display effects of the various question and answer functional components including the small components in the question and answer display interface.
[0122] If the server determines that the target user frequently uses the image analysis function in the intelligent analysis component in the question-and-answer display interface based on the target user's historical usage record data and the above user feature data, it means that the importance representation value corresponding to the determined image analysis component is relatively high. The server can then adjust the display in the question-and-answer display interface based on the importance representation value corresponding to each component. The adjustment result can be as follows: Figure 3b as shown in .
[0123] from Figure 3b It can be seen that the smart analysis component in the adjusted question-and-answer display interface has replaced the display position of the original smart question-and-answer component, making this functional component more prominent. In addition, the image analysis component with a higher importance representation value in the smart question-and-answer component has also been adjusted to the first display, so that when the target user wants to use this function again or frequently, he can find the corresponding function entrance more quickly. In addition, after the dynamic adjustment of the question-and-answer display interface, in order to prevent the target user's usage habits from being forced to be affected, the server can also set a "return to default interface" restore control in the adjusted question-and-answer display interface. By clicking this control, the target user can Figure 3b The adjusted question and answer display interface shown is restored to Figure 3a When the user performs such an operation, the server can also seek feedback from the user to obtain the reason why the user restores the personalized interface to the default interface, thereby optimizing the overall interface adjustment process.
[0124] The question-and-answer display interface in the above example and the content and type of each question-and-answer functional component in the question-and-answer display interface are only for ease of understanding and explanation. The specific interface form and component function classification are not strictly limited in this manual and can be flexibly set according to actual needs and application scenarios.
[0125] It should also be noted that the acquisition of historical usage record data mentioned in the above process is similar to the acquisition of user attribute information and historical question and answer record data corresponding to the target user, and both require the target user to agree to open the corresponding permissions before they can be acquired. In addition, the server can also adjust the question and answer display interface directly based on the historical usage record data, without relying on the user characteristic data determined in the above steps. Therefore, the adjustment process of the question and answer display interface and the personalized answer process for the target question can be carried out independently. Of course, adjusting the question and answer display interface according to user characteristic data can ensure that the adjusted display interface is closer to the target user's true intentions and usage habits, and the specific adjustment method of the question and answer display interface can be flexibly set according to actual conditions.
[0126] As can be seen from the above content, the business execution method based on intelligent question and answer provided in this specification can determine the corresponding historical question and answer subject information in advance according to the historical question and answer record data corresponding to the target user, and associate the associated information corresponding to the historical question and answer subject information with the attribute data that is related in the user attribute information corresponding to the target user, thereby obtaining the user feature data corresponding to the target user. Then, when the target user asks a question, the target question raised by the target user can be personalized according to the user feature data matched by the target user identifier. When the method in this specification is used to intelligently answer the questions raised by the user, the personalized characteristics of the user can be integrated into the question and answer results, so that the user can obtain a practical answer that not only meets his own personalized needs, but also solves practical problems. It effectively improves the closeness and practicality of the question answers obtained by the user to the actual situation, improves the efficiency of solving user problems, and the personalized intelligent question and answer also improves the user's experience.
[0127] The above are one or more implementation methods of this specification. Based on the same idea, this specification also provides a corresponding service execution device based on intelligent question and answer, such as Figure 4 as shown in .
[0128] Figure 4 A schematic diagram of a service execution device based on intelligent question answering provided in this specification includes:
[0129] An acquisition module 401 is used to acquire question text information corresponding to a target question input by a target user in the displayed question-answer display interface and a target user identifier corresponding to the target user;
[0130] The feature determination module 402 is used to determine the user feature data corresponding to the target user from a preset storage space according to the target user identifier, wherein the user feature data is obtained by pre-associating the user attribute information corresponding to the target user with the associated information corresponding to the historical question and answer topic information, wherein the historical question and answer topic information is pre-determined according to the historical question and answer record data corresponding to the target user, and the associated information corresponding to the historical question and answer topic information includes the upper concept information of the historical question and answer topic information or the lower concept information of the historical question and answer topic information;
[0131] The question answering module 403 is used to input the question text information and the user characteristic data into a preset intelligent question answering model, so that the intelligent question answering model obtains an answer result for the question text information according to the user characteristic data;
[0132] The service execution module 404 is used to execute the target question-and-answer service according to the answer result.
[0133] Optionally, the feature determination module 402 is specifically used to determine, for each dimension of attribute information contained in the user attribute information, the similarity between the attribute information and the associated information corresponding to the historical question and answer topic information, and when it is determined that the similarity is not less than a preset similarity threshold, associate the attribute information with the associated information corresponding to the historical question and answer topic information to obtain sub-user feature data corresponding to the attribute information; and obtain the user feature data based on the sub-user feature data corresponding to at least part of the attribute information in the user attribute information.
[0134] Optionally, the feature determination module 402 is specifically used to construct a basic user graph corresponding to the target user based on the user attribute information, with the user identifier corresponding to the target user as the central node and the attribute information of each dimension contained in the user attribute information as the adjacent nodes; expand the basic user graph based on the sub-user feature data corresponding to at least part of the attribute information in the user attribute information to obtain an expanded user graph, and use the expanded user graph as the user feature data, wherein, for each attribute information in the at least part of the attribute information, the node of the sub-user feature data corresponding to the attribute information in the expanded user graph is connected to the node corresponding to the attribute information.
[0135] Optionally, the feature determination module 402 is specifically used to perform word segmentation processing on the historical question and answer record data to obtain each word segmentation vocabulary; input each word segmentation vocabulary into a pre-trained topic detection model, so that the topic detection model determines, for each word segmentation vocabulary, the word segmentation category corresponding to the word segmentation vocabulary in the historical question and answer record data, and the word segmentation probability distribution corresponding to the word segmentation vocabulary in the historical question and answer record data; according to the word segmentation probability distribution corresponding to each word segmentation vocabulary and each word segmentation category, determine the category probability distribution corresponding to each word segmentation category in the historical question and answer record data; according to the each word segmentation category and the category probability distribution corresponding to each word segmentation category in the historical question and answer record data, determine the historical question and answer topic information corresponding to the target user.
[0136] Optionally, the feature determination module 402 is specifically used to obtain sample question and answer data; input the sample question and answer data into the topic detection model to be trained, so that the topic detection model to be trained determines the question and answer topic information corresponding to the sample question and answer data based on the sample question and answer data; determines the loss value for the topic detection model to be trained based on the question and answer topic information and the standard question and answer topic information corresponding to the sample question and answer data, and performs model training on the topic detection model to be trained based on the loss value, wherein the size of the loss value is negatively correlated with the similarity between the question and answer topic information and the standard question and answer topic information.
[0137] Optionally, the feature determination module 402 is specifically used to determine each candidate historical question topic information based on the historical question and answer record data corresponding to the target user; for each candidate historical question and answer main information, determine the data proportion of the candidate historical question and answer topic information in the historical question and answer record data, and when the data proportion is not less than a preset data proportion threshold, use the candidate historical question and answer topic information as the historical question topic information.
[0138] Optionally, the device further comprises:
[0139] The interface adjustment module 405 is used to obtain the historical usage record data of the target user for the question and answer display interface within a preset time range, the historical usage record data at least including the click record data of the target user in the question and answer display interface, the display time data of each question and answer function component in the question and answer display interface, and the component category data corresponding to each question and answer function component in the question and answer display interface, the click record data at least including the click record data of the target user for each question and answer function component; for each question and answer function component in the question and answer display interface, determine the importance representation value of the question and answer function component to the target user according to the historical usage record data and the user characteristic data; according to the importance representation value corresponding to each question and answer function component in the question and answer display interface, adjust the display of the question and answer display interface, and present the adjusted question and answer display interface to the target user.
[0140] This specification also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1 A business execution method based on intelligent question and answer is provided.
[0141] This manual also provides Figure 5 The one shown corresponds to Figure 1 A schematic diagram of the electronic device. Figure 5 As shown, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 The business execution method based on intelligent question and answer.
[0142] In the 1990s, it was very clear whether the improvement of a technology was hardware improvement (for example, improvement of the circuit structure of diodes, transistors, switches, etc.) or software improvement (improvement of the method flow). However, with the development of technology, many improvements of the method flow today can be regarded as direct improvements of the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with hardware entity modules. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0143] The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, and the memory controller may also be implemented as part of the control logic of the memory. It is also known to those skilled in the art that, in addition to implementing the controller in a purely computer-readable program code manner, the controller may be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller may be considered as a hardware component, and the devices for implementing various functions included therein may also be considered as structures within the hardware component. Or even, the devices for implementing various functions may be considered as both software modules for implementing the method and structures within the hardware component.
[0144] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0145] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0146] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0147] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0148] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0149] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0150] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0151] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0152] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0153] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0154] It should be understood by those skilled in the art that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0155] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0156] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system 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.
[0157] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.
Claims
1. A business execution method based on intelligent question and answer, characterized in that: include: Obtaining question text information corresponding to a target question input by a target user in the displayed question-answer display interface and a target user identifier corresponding to the target user; According to the target user identifier, user feature data corresponding to the target user is determined from a preset storage space, the user feature data is determined in advance based on user attribute information corresponding to the target user and associated information corresponding to historical question and answer topic information, the historical question and answer topic information is determined in advance based on historical question and answer record data corresponding to the target user, the associated information corresponding to the historical question and answer topic information is determined based on the historical question and answer topic information, and the associated information corresponding to the historical question and answer topic information includes superordinate concept information of the historical question and answer topic information or subordinate concept information of the historical question and answer topic information; Inputting the question text information and the user characteristic data into a preset intelligent question-answering model, so that the intelligent question-answering model obtains an answer result for the question text information according to the user characteristic data; According to the answer result, the target question and answer service is executed.
2. The method according to claim 1, characterized in that The user characteristic data is determined in advance based on the user attribute information corresponding to the target user and the associated information corresponding to the historical question and answer topic information, specifically including: For each dimension of attribute information included in the user attribute information, determine the similarity between the attribute information and the associated information corresponding to the historical question and answer topic information, and when it is determined that the similarity is not less than a preset similarity threshold, associate the attribute information with the associated information corresponding to the historical question and answer topic information to obtain sub-user feature data corresponding to the attribute information; The user characteristic data is obtained according to the sub-user characteristic data corresponding to at least part of the attribute information in the user attribute information.
3. The method according to claim 2, characterized in that Obtaining the user characteristic data according to the sub-user characteristic data corresponding to at least part of the attribute information in the user attribute information specifically includes: According to the user attribute information, a basic user graph corresponding to the target user is constructed with the user identifier corresponding to the target user as a central node and the attribute information of each dimension contained in the user attribute information as adjacent nodes; According to the sub-user characteristic data corresponding to at least part of the attribute information in the user attribute information, the basic user graph is expanded to obtain an expanded user graph, and the expanded user graph is used as the user characteristic data, wherein, for each attribute information in the at least part of the attribute information, a node of the sub-user characteristic data corresponding to the attribute information in the expanded user graph is connected to a node corresponding to the attribute information.
4. The method according to claim 1, characterized in that The historical question and answer topic information is determined in advance according to the historical question and answer record data corresponding to the target user, specifically including: Performing word segmentation processing on the historical question and answer record data to obtain each word segmentation vocabulary; Inputting each of the segmentation words into a pre-trained topic detection model, so that the topic detection model determines, for each segmentation word, a segmentation category corresponding to the segmentation word in the historical question and answer record data, and a segmentation probability distribution corresponding to the segmentation word in the historical question and answer record data, and determines a category probability distribution corresponding to each segmentation category in the historical question and answer record data according to the segmentation probability distribution corresponding to each segmentation word and each segmentation category; The historical question and answer topic information corresponding to the target user is determined according to the word segmentation categories and the category probability distribution corresponding to the word segmentation categories in the historical question and answer record data.
5. The method according to claim 4, characterized in that Training the topic detection model specifically includes: Get sample question and answer data; Inputting the sample question and answer data into a topic detection model to be trained, so that the topic detection model to be trained determines the question and answer topic information corresponding to the sample question and answer data according to the sample question and answer data; Based on the question and answer topic information and the standard question and answer topic information corresponding to the sample question and answer data, determine the loss value for the topic detection model to be trained, and based on the loss value, perform model training on the topic detection model to be trained, wherein the size of the loss value is negatively correlated with the similarity between the question and answer topic information and the standard question and answer topic information.
6. The method according to claim 4, characterized in that The historical question and answer topic information is determined in advance according to the historical question and answer record data corresponding to the target user, specifically including: Determine each candidate historical question and answer topic information according to the historical question and answer record data corresponding to the target user; For each candidate historical question and answer subject information, determine the data proportion of the candidate historical question and answer topic information in the historical question and answer record data, and when the data proportion is not less than a preset data proportion threshold, use the candidate historical question and answer topic information as the historical question and answer topic information.
7. The method according to claim 1, characterized in that The method further comprises: Acquire historical usage record data of the target user for the question-and-answer display interface within a preset time range, wherein the historical usage record data at least includes click record data of the target user in the question-and-answer display interface, display duration data of each question-and-answer functional component in the question-and-answer display interface, and component category data corresponding to each question-and-answer functional component in the question-and-answer display interface, and the click record data at least includes click record data of the target user for each question-and-answer functional component; For each question-and-answer function component in the question-and-answer display interface, determine, based on the historical usage record data and the user characteristic data, an importance representation value of the question-and-answer function component for the target user; According to the importance representation value corresponding to each question and answer functional component in the question and answer display interface, the question and answer display interface is adjusted, and the adjusted question and answer display interface is presented to the target user.
8. A business execution device based on intelligent question and answer, characterized in that: include: An acquisition module, used to acquire question text information corresponding to a target question input by a target user in the displayed question-answer display interface and a target user identifier corresponding to the target user; A feature determination module, used to determine user feature data corresponding to the target user from a preset storage space according to the target user identifier, wherein the user feature data is determined in advance according to user attribute information corresponding to the target user and associated information corresponding to historical question and answer topic information, wherein the historical question and answer topic information is determined in advance according to historical question and answer record data corresponding to the target user, wherein associated information corresponding to the historical question and answer topic information is determined according to the historical question and answer topic information, wherein the associated information corresponding to the historical question and answer topic information includes superordinate concept information of the historical question and answer topic information or subordinate concept information of the historical question and answer topic information; A question answering module, used to input the question text information and the user characteristic data into a preset intelligent question answering model, so that the intelligent question answering model obtains an answer result for the question text information according to the user characteristic data; The business execution module is used to execute the target question-and-answer business according to the answer result.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of claims 1 to 7 is implemented.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method described in any one of claims 1 to 7 is implemented.
