Intelligent question answering method, device and equipment based on cooperation of double knowledge bases
By introducing dual knowledge base collaboration technology into the intelligent Q&A system, the existing intelligent Q&A methods lack in-depth answers have been solved, and more detailed and targeted replies have been achieved, improving user experience and system intelligence.
Patent Information
- Application Number
- CN202411883523.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2044-12-19
AI Technical Summary
The existing intelligent Q&A methods lack the depth of reply and cannot effectively meet users' in-depth answers.
Using an intelligent Q&A method based on dual knowledge base collaboration, we can obtain the Q&A needs of the target user, judge the requirements type, match key knowledge points, traverse the historical and real-time case knowledge base, generate a detailed list of answers and examples, and visually display them to users.
It improves the depth and pertinence of the reply, enables users to obtain the detailed answers they expect, and improves the intelligence level of the user experience and Q&A system.
Smart Images

Figure CN119808948A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an intelligent question-answering method, device and equipment based on dual knowledge base collaboration. Background Art
[0002] With the development of information technology and artificial intelligence, intelligent question answering has been widely used. It can solve the problems of low answering efficiency and poor user experience in traditional manual question answering.
[0003] However, the existing intelligent question-answering methods simply answer questions based on keyword matching, which lacks the depth of the answers, making it impossible for users to obtain the answers they expect, resulting in a poor user experience.
[0004] To address the above problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of this specification provide an intelligent question-answering method, apparatus and device based on dual knowledge base collaboration to solve the problem that existing intelligent question-answering methods lack answer depth.
[0006] In a first aspect, the embodiments of this specification provide an intelligent question answering method based on dual knowledge base collaboration, including:
[0007] Obtaining a target question-answering demand of a target user, and determining whether a type of the target question-answering demand is a first preset demand type;
[0008] If yes, match the target key knowledge point set corresponding to the target question answering requirement;
[0009] Traversing the first target key knowledge point in the target key knowledge point set in a pre-built dual knowledge base to obtain a first answer case list, wherein the dual knowledge base is composed of a historical case knowledge base and a real-time case knowledge base, and the historical case knowledge base is constructed by screened historical typical cases;
[0010] The visualized first answer case list is displayed on a target display of a target user.
[0011] In some embodiments, determining whether the type of the target question answering requirement is a first preset requirement type includes:
[0012] Extracting target keywords from the target question text corresponding to the target question answering requirement;
[0013] Determine whether the target keyword matches the first professional word identifier corresponding to the first course, and if so, determine that the type of the target question-answering demand is the first preset demand type, the first course is any course in the pre-acquired target user course list, and the type of the target question-answering demand is the first preset demand type, indicating that the target question-answering demand is related to the first course;
[0014] Accordingly, matching the target key knowledge point set corresponding to the target question answering requirement includes:
[0015] Match a target key knowledge point set corresponding to the first course related to the target question answering requirement.
[0016] In some embodiments, the historical typical cases are screened in the following manner:
[0017] Extracting the first historical case record corresponding to the first case in the historical key knowledge point case record;
[0018] Reading a preset case feature, and collecting features of the first historical case record based on the preset case feature to obtain a first feature data set;
[0019] Using the first feature data set as a clustering constraint, clustering a historical case set in the historical key knowledge point records to obtain a first cluster, wherein the historical case set consists of a plurality of first cases;
[0020] Determine a first universality index of the first case according to a ratio of the number of cases in the first cluster to the total number of cases in the historical case set;
[0021] Reading a preset discussion feature, and collecting features of the first historical case record based on the preset discussion feature to obtain a second feature data set;
[0022] performing standardized coefficient of variation weighting processing on the second feature data set to obtain a first revelatory index of the first case;
[0023] Performing weighted processing on the first universality index and the first revelatory index to obtain a first typicality index of the first case;
[0024] When the first typical index reaches a preset typical threshold, the first case is taken as a historical typical case.
[0025] In some embodiments, the historical case knowledge base is constructed by screening typical historical cases, including:
[0026] Using the first feature data set as a first label for the first case, and obtaining a key knowledge point label corresponding to the first case as a second label;
[0027] A historical case knowledge base is constructed based on the first case, the first label, and the second label.
[0028] In some embodiments, the real-time case knowledge base is constructed in the following manner:
[0029] Based on the preset case features, features of the second case are collected to obtain a third feature data set, where the second case is a case at the first time in the real-time key knowledge point case;
[0030] Using the third feature data set as a third label of the second case, and obtaining a key knowledge point label corresponding to the second case as a fourth label;
[0031] A real-time case knowledge base is constructed according to the second case, the third label, and the fourth label.
[0032] In some embodiments, traversing the first target key knowledge point in the target key knowledge point set in the pre-built dual knowledge base to obtain a first answer case list includes:
[0033] Traversing the historical case knowledge base in the pre-built dual knowledge base for the first target key knowledge point to obtain a first historical case set;
[0034] Traversing the real-time case knowledge base in the pre-built dual knowledge base for the first target key knowledge point to obtain a first real-time case set;
[0035] Combining the first historical case set with the first real-time case set to obtain a first candidate case set for a first target key knowledge point;
[0036] Calculate the matching degree between the first candidate case in the first candidate case set and the first target key knowledge point;
[0037] According to the matching degree calculation result, the first candidate cases are sorted, and target candidate cases are screened from the sorting results as the first answer case list, and the sorting threshold of the target candidate cases is greater than the preset sorting threshold.
[0038] In some embodiments, the method further comprises:
[0039] If not, traverse the extracted target keywords in the dual knowledge base to obtain a second answer case list;
[0040] The visualized second answer case list is displayed on a target display of a target user.
[0041] In a second aspect, the embodiments of this specification also provide an intelligent question-answering device based on dual knowledge base collaboration, including:
[0042] A judgment module, used to obtain a target question-answering requirement of a target user, and judge whether the type of the target question-answering requirement is a first preset requirement type;
[0043] A matching module, for matching a target key knowledge point set corresponding to the target question answering requirement;
[0044] A traversal module, used for traversing the first target key knowledge point in the target key knowledge point set in a pre-built dual knowledge base to obtain a first answer case list, wherein the dual knowledge base is composed of a historical case knowledge base and a real-time case knowledge base, and the historical case knowledge base is constructed by screened historical typical cases;
[0045] The display module is used to display the first answer case list after visualization processing to the target display of the target user.
[0046] On the third aspect, an embodiment of the present specification also provides an electronic device, including a memory and a processor, wherein the processor and the memory are communicatively connected to each other, the memory stores computer instructions, and the processor implements the steps of the above-mentioned intelligent question-answering method based on the collaboration of dual knowledge bases by executing the computer instructions.
[0047] In a fourth aspect, the embodiments of this specification further provide a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the steps of the above-mentioned intelligent question-answering method based on the collaboration of dual knowledge bases.
[0048] The embodiment of this specification provides an intelligent question-answering method, device and equipment based on the collaboration of dual knowledge bases. First, the target question-answering demand of the target user is obtained, and it is determined whether the type of the target question-answering demand is a first preset demand type. If so, the target key knowledge point set corresponding to the target question-answering demand is matched. Then, the first target key knowledge point in the target key knowledge point set is traversed in the pre-constructed dual knowledge base to obtain a first answer case list, and the dual knowledge base is composed of a historical case knowledge base and a real-time case knowledge base, and the historical case knowledge base is constructed by screening historical typical cases. Finally, the first answer case list after visualization is displayed to the target display of the target user. In the embodiment of this specification, after obtaining the target question-answering demand, it is first determined whether the type of the target question-answering demand is the first preset demand type, and the correct question-answering path can be guided according to the judgment result, effectively improving the user experience and the intelligence of question-answering. After judging it as the first preset demand type, the corresponding target key knowledge point set is matched, and the first target key knowledge point in the target key knowledge point set is traversed in the dual knowledge base, which can effectively improve the depth of the reply, so that the target user can obtain the answer he expects. The dual knowledge base consists of a historical case knowledge base and a real-time case knowledge base. The two knowledge bases can call each other, complement each other, and work together. By traversing the dual knowledge base at the first key knowledge point, a real-time, dynamic, and comprehensive first-answer case list can be obtained, solving the technical problem that the existing technical answers lack pertinence and depth. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0050] Figure 1 It is a flowchart of an intelligent question answering method based on dual knowledge base collaboration provided in an embodiment of this specification;
[0051] Figure 2 It is a schematic diagram of the structure of an intelligent question-answering device based on dual knowledge base collaboration provided in an embodiment of this specification;
[0052] Figure 3 It is a schematic diagram of the structural composition of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION
[0053] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0054] As mentioned above, the existing intelligent question-answering methods simply answer questions based on keyword matching, which lacks the depth of the answers, making it impossible for target users to obtain the answers they expect, resulting in a poor user experience.
[0055] In order to solve the above problems, the embodiment of this specification provides an intelligent question-answering method based on the collaboration of dual knowledge bases. First, the target question-answering demand of the target user is obtained, and it is determined whether the type of the target question-answering demand is a first preset demand type. If so, the target key knowledge point set corresponding to the target question-answering demand is matched. Then, the first target key knowledge point in the target key knowledge point set is traversed in the pre-built dual knowledge base to obtain a first answer case list. The dual knowledge base is composed of a historical case knowledge base and a real-time case knowledge base. The historical case knowledge base is constructed by screened historical typical cases. Finally, the visualized first answer case list is displayed to the target display of the target user.
[0056] In the embodiments of this specification, after obtaining the target question-answering demand, it is first determined whether the type of the target question-answering demand is the first preset demand type. According to the determination result, the correct question-answering path can be directed, effectively improving the user experience and the intelligence of the question-answering. After determining that it is the first preset demand type, the corresponding target key knowledge point set is matched, and the first target key knowledge point in the target key knowledge point set is traversed in the dual knowledge base, which can effectively improve the depth of the reply, so that the target user can obtain the reply he expects. Among them, the dual knowledge base is composed of a historical case knowledge base and a real-time case knowledge base. The two knowledge bases can call each other, complement each other, and work together. The first key knowledge point is traversed in the dual knowledge base to obtain a real-time dynamic and comprehensive first answer case list, thereby effectively improving the user experience.
[0057] It should be noted that the terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so as to describe the embodiments of the present application described herein.
[0058] It should also be noted that the user-related information and data involved in the embodiments of the specification of this application are all information and data authorized by the user or fully authorized by relevant parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users or relevant parties to choose to authorize or refuse.
[0059] It is understood that the above method provided in the embodiments of this specification can be applied to electronic devices, and the electronic devices can refer to electronic devices with data calculation, processing and storage capabilities. The electronic device can be a terminal such as a PC (Personal Computer), a tablet computer, a smart phone, a wearable device, an intelligent robot, etc.; it can also be a server. Among them, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.
[0060] The following will introduce an intelligent question-answering method based on dual knowledge base collaboration provided by an embodiment of this specification in conjunction with the accompanying drawings.
[0061] Figure 1 It is a flow chart of an intelligent question-answering method based on dual knowledge base collaboration provided by an embodiment of this specification. Although this specification provides method operation steps or device structures as shown in the following embodiments or drawings, more or fewer operation steps or module units may be included in the method or device based on routine or no creative labor. In the steps or structures that do not logically have a necessary causal relationship, the execution order of these steps or the module structure of the device is not limited to the execution order or module structure shown in the embodiments or drawings of this specification. When the method or module structure is applied in an actual device, server or terminal product, it can be executed sequentially or in parallel according to the method or module structure shown in the embodiments or drawings (for example, a parallel processor or multi-threaded processing environment, or even a distributed processing, server cluster implementation environment). For specific implementation, refer to Figure 1 As shown, the method can be applied to an intelligent question answering system based on dual knowledge base collaboration, and the method can include the following contents.
[0062] S101: Obtain a target question-answering requirement of a target user, and determine whether the type of the target question-answering requirement is a first preset requirement type.
[0063] S102: If yes, match the target key knowledge point set corresponding to the target question answering requirement.
[0064] In the above embodiments, the target user is any user to be questioned and answered, and the target question-answering demand is realized through text, voice or other forms of interactive data input by the target user. The text or voice information input by the target user represents the needs of the target user, which is used as the target question-answering demand. The first preset demand type refers to a preset type of demand, which is usually a typical question type based on a specific field or topic. A preset classification algorithm or rule can be used to determine whether the target question-answering demand of the target user is the first preset demand type, such as extracting keywords in the target question-answering demand for classification matching. This process relies on the combination of natural language processing technology, keyword matching and predetermined rules, which can accurately identify the target user's demand type and guide it to the correct question-answering path, thereby improving the intelligence level of the question-answering system and user experience.
[0065] In some embodiments, the determination of whether the type of the target question answering requirement is the first preset requirement type in S101 may include:
[0066] S11: extracting target keywords from the target question text corresponding to the target question answering requirement;
[0067] S12: Determine whether the target keyword matches the first professional word identifier corresponding to the first course. If so, determine that the type of the target question-answering demand is a first preset demand type, the first course is any course in the pre-acquired target user course list, and the type of the target question-answering demand is the first preset demand type, indicating that the question-answering demand is related to the first course;
[0068] Accordingly, the matching of the target key knowledge point set corresponding to the target question answering requirement in S102 may include:
[0069] S13: Matching a target key knowledge point set corresponding to the first course related to the target question answering requirement.
[0070] Specifically, the above-mentioned course list is the target major course of the target user, which may include multiple courses or course texts with key knowledge points and professional word identifiers. Among them, the key knowledge points are the core knowledge points of the course, and the professional word identifiers are specific professional field terms involved in the course content, which can be specifically set by relevant technical personnel in this field in combination with actual conditions, and this specification does not make specific limitations on this. The above-mentioned first course is any course in the course list. The first course has a corresponding first key knowledge point (first key knowledge point identifier) and a first professional word identifier, and there may be more than one first key knowledge point. The process of determining whether the target question-answering demand is the first preset demand type is the above-mentioned S11-S12, which is as follows:
[0071] S11 may specifically be: using natural language processing technology to extract keywords from the target question text in the target question answering requirement as target keywords. This process includes steps such as word segmentation, entity recognition, and keyword extraction. The extracted target keywords represent the core content of the issues that users are concerned about.
[0072] S12 may specifically be: determining whether the extracted target keyword contains the first professional word identifier, that is, whether the target keyword matches the first professional word identifier corresponding to the first course. If it matches the first professional word identifier, the type of the target question-answering demand is considered to be the first preset demand type. At the same time, it can be determined that the target user's demand is related to the first course, and the related first course can be used as the target course. The first key knowledge point in the first course (target course) related to the demand is extracted as the first target key knowledge point, and a target key knowledge point set is formed based on multiple first target key knowledge points. The first target key knowledge point can be any key knowledge point in the related first course.
[0073] Correspondingly, the target key knowledge point set in the above S13 includes multiple first target key knowledge points.
[0074] For example, if the target keyword of the target question text in the target user's question-and-answer demand is A, and the professional term identifier of the first course is A1 under the A system, it is considered that the target user's question-and-answer preset meets the first preset demand type, and the target user's question belongs to the scope of the first course. Subsequently, the first target key knowledge point B within the relevant first course scope can be traversed in the dual knowledge base to find the corresponding in-depth answer case.
[0075] After obtaining the target user's target answer needs, by extracting the target keywords and matching them with the first professional word identifier corresponding to the target user's first course, we can combine the target user's professional background and course content to determine the courses and corresponding key knowledge points most relevant to the target question-answering needs, thereby providing users with accurate and personalized question-answering services.
[0076] In some embodiments, the above-mentioned target question text can be a structured text (data with fixed fields and types) or an unstructured text (data without fixed fields and types, such as a long paragraph of text formed by a description of the question, etc.). After the question-answering system obtains the target question-answering needs of the target user, it can first determine the type of the target text in the target question-answering needs, and then determine whether it meets the first preset demand type for different text types. For example: If the target question text is a structured text, the target question text can be directly matched with the first professional word identifier. When the matching degree meets the preset matching degree threshold, it can be determined that the type of the target question-answering demand is the first preset demand type or meets the first preset demand type; if the target question text is an unstructured text, it can be converted into a structured text first, and then matched with the first professional word identifier. Among them, the preset matching degree threshold can be set according to actual needs, and can also be determined according to the number of target keywords corresponding to the target question. This specification does not make specific limitations on this.
[0077] S103: Traverse the first target key knowledge point in the target key knowledge point set in a pre-constructed dual knowledge base to obtain a first answer case list, wherein the dual knowledge base consists of a historical case knowledge base and a real-time case knowledge base, and the historical case knowledge base is constructed by screened historical typical cases.
[0078] In this embodiment, the above-mentioned dual knowledge base can centrally store and manage historical typical cases and real-time cases that meet the standards after screening. Among them, the case may include a question and the reply or answer corresponding to the question. The above-mentioned first reply case list may include multiple reply cases for the target question-answering needs. By traversing the first target key knowledge point in the target key knowledge point set in the pre-built dual knowledge base, the reply case related to the specific question can be quickly retrieved, which is convenient for intelligent question-answering and analysis.
[0079] In some embodiments, the historical typical cases in S103 above can be screened in the following manner:
[0080] S21: extracting the first historical case record corresponding to the first case in the historical key knowledge point case record;
[0081] S22: Reading a preset case feature, and collecting features of the first historical case record based on the preset case feature to obtain a first feature data set;
[0082] S23: using the first feature data set as a clustering constraint, clustering the historical case set in the historical key knowledge point records to obtain a first cluster;
[0083] S24: determining a first universality index of the first case according to a ratio of the number of cases in the first cluster to the total number of cases in the historical case set;
[0084] S25: reading a preset discussion feature, and collecting features of the first historical case record based on the preset discussion feature to obtain a second feature data set;
[0085] S26: performing standardized coefficient of variation weighting processing on the second feature data set to obtain a first revelatory index of the first case;
[0086] S27: performing weighted processing on the first universality index and the first revelatory index to obtain a first typicality index of the first case;
[0087] S28: When the first typical index reaches a preset typical threshold, the first case is taken as a historical typical case.
[0088] Specifically, the above-mentioned historical key knowledge point case records refer to key knowledge point cases in historical time, which usually include a large number of key knowledge point related cases. These cases include different themes, backgrounds and processing methods. In order to effectively use these data, it is necessary to first conduct a multi-dimensional analysis and screening of the historical key knowledge point case records according to the predetermined screening strategy to obtain historical typical cases, such as: screening out historical typical cases from the dimensions of the educational value of the case, the discussion heat, the key knowledge points involved, etc. Among them, the design of the predetermined screening strategy is usually based on several core features: the universality of the case, (educational) enlightenment, and discussion activity. Universality can be judged by analyzing indicators such as the frequency of occurrence of the case in history and the number of related discussions; educational enlightenment can be measured by evaluating the contribution of the case to education, such as whether it has triggered students' in-depth thinking and whether it has brought valuable educational experience; discussion activity reflects the social attention of the case, which is usually evaluated by analyzing the quantity and quality of social platforms, academic discussions and media reports. Among them, the process of screening out historical typical cases is the above S21-S28, as follows:
[0089] S21 may specifically be: extracting a first historical case record corresponding to the first case from the historical key knowledge point case record, wherein the first case generally refers to any case in the historical key knowledge point case record, and the first historical case record is a historical record corresponding to the first case.
[0090] S22 may specifically be: reading relevant data of the first historical case record, collecting features of the first historical case record according to preset case features, or extracting case features in the first historical case record according to preset case features, such as: the field, object, case type, etc. of the case, to form a first feature data set.
[0091] S23 may specifically be: using the first feature data set as a clustering constraint, clustering the historical case set in the historical key knowledge point record to obtain a first cluster. The purpose of cluster analysis is to classify similar cases into one category, thereby extracting case clusters with similar characteristics. The historical case set may be a set formed based on the first case, and the first cluster may generally refer to any one of the clusters or case clusters.
[0092] S24 may specifically be: the first universality index may be determined by the ratio of the number of cases in the first cluster to the total number of cases in the historical case set. The first universality index reflects the representativeness and universality of the first case in the entire case set. For example, assuming that there are 1,000 historical cases in total, the historical case set is divided into 10 clusters through cluster analysis, and the first cluster contains 100 cases. Therefore, the first universality index is 100 / 1000=0.1, indicating that the popularity of the case in all historical cases is relatively low.
[0093] S25 may specifically be: reading preset discussion features, where the preset discussion features may include the number of discussants and the length of discussion on any platform, where any platform may refer to any platform in the entire network platform set. Further feature collection is performed on the first historical case record based on the preset discussion features to obtain a second feature data set. The feature collection at this stage is intended to assess the discussion popularity of the case in society or academia, thereby providing data support for subsequent educational enlightenment analysis. For example, assuming that on a certain social platform, the number of discussants of the case is 500 and the discussion duration is 200 hours, these data are constructed into a second feature data set.
[0094] S26 may specifically be: the second characteristic data set may be subjected to a weighted standardized coefficient of variation process, which is a key step in calculating the enlightenment index or educational enlightenment index. The data in the second characteristic data set is standardized by an existing data standardization method to eliminate the differences between different characteristic dimensions, and then the coefficient of variation is used to weight the data to obtain a comprehensive first enlightenment index or first educational enlightenment index. If the discussion heat of the case is outstanding in historical cases, the coefficient of variation will be weighted and increased, and finally a high educational enlightenment index will be obtained, reflecting the importance and enlightenment of the case in education.
[0095] S27 may specifically be: weighting the first universality index and the first revelatory index to calculate the first typical index, wherein the weights of the first universality index and the first revelatory index may be set by professionals in the field according to actual needs, and this specification does not limit this.
[0096] S28 may specifically be: the first typical index may be compared with a preset typical threshold (preset typical index threshold), and when the first typical index reaches the preset typical threshold, the first case may be regarded as a historical typical case. At this point, it is indicated that the first case is outstanding in terms of universality and educational enlightenment, and meets the standards of a typical case, and is included in the historical case knowledge base. Among them, the above-mentioned predetermined screening strategy may be a pre-set case screening standard, such as a preset typical threshold, and the preset typical threshold may be a threshold corresponding to when it is considered a typical case, and may be set according to actual needs, and this specification does not specifically limit this.
[0097] For example, the first universality index of the first case is calculated to be 0.8, the first educational enlightenment index is 0.7, and the first typical index is 0.75 (based on average weighted calculation). If the preset typical threshold is 0.7, the case is considered a typical case and is added to the historical case knowledge base. Through the above steps, it is ensured that the cases with the most educational value and social impact can be screened out from a large number of historical cases for intelligent question answering and analysis.
[0098] In some embodiments, the historical case knowledge base in S103 is constructed by screening typical historical cases, and in specific implementation, it may include:
[0099] S29: using the first feature data set as a first label of the first case, and obtaining a key knowledge point label corresponding to the first case as a second label;
[0100] S30: Construct a historical case knowledge base according to the first case, the first label, and the second label.
[0101] Specifically, the first case can be assigned a first label, which comes from the first feature data set. The first feature data set is formed by extracting various data of the first case, such as the fields, objects, and case types involved in the case. The first label can be regarded as a classification label for the case, representing the overall characteristics of the case and helping the question-answering system to identify the type of the case. In addition to the first label, a second label will also be extracted. The second label identifies the key knowledge point in the case, that is, the case is associated with a key point. The specific label can be determined based on the educational content involved in the case. Finally, a historical case knowledge base can be constructed based on the first case, the first label, and the second label.
[0102] In some embodiments, the real-time case knowledge base in S103 above can be constructed in the following manner:
[0103] S31: collecting features of the second case based on preset case features to obtain a third feature data set, where the second case is a case at the first time in the real-time key knowledge point case;
[0104] S32: using the third feature data set as a third label of the second case, and obtaining a key knowledge point label corresponding to the second case as a fourth label;
[0105] S33: Build a real-time case knowledge base according to the second case, the third label, and the fourth label.
[0106] Specifically, the above-mentioned real-time key knowledge point cases can also be called the time series data of real-time key knowledge point cases, which usually come from various social platforms, news media, education discussion forums and other channels. Through existing crawler technology, API interfaces or data partners, these real-time case records are dynamically obtained to obtain the time series data of real-time key knowledge point cases. These data reflect the current discussions and social hot issues in real time. The construction of the above-mentioned real-time case knowledge base depends on the time series number of real-time key knowledge point cases. The case at the first time in the time series data of the real-time key knowledge point case can be used as the second case, and the first time can be any time in the time series data.
[0107] Specifically, the second case can be feature extracted according to the predetermined case features to obtain a third feature data set, which specifically includes case fields, objects, types, etc. The third feature data set can be used as the third label of the second case to represent the specific features of the case. For example, the third label may be the theme label of mental health education. Then, the key knowledge point label corresponding to the second case is used as the fourth label of the second case. A real-time case knowledge base can be constructed based on the second case, the third label, and the fourth label. At this time, the real-time case knowledge base stores all labeled real-time case data and can respond to the query and analysis needs of the latest events in a timely manner. Unlike the historical case knowledge base, the real-time case knowledge base is characterized by strong data mobility and frequent updates. It is necessary to ensure that the real-time case knowledge base can efficiently process the constantly updated real-time data and can quickly respond to the user's query needs when needed. Through the real-time case knowledge base, the question-answering system can provide timely answers to current social hot topics and related educational content to ensure that users get the most immediate and relevant information.
[0108] Finally, a dual knowledge base can be formed based on the historical case knowledge base and the real-time case knowledge base to form a complementary system structure, which can not only rely on the experience of historical cases, but also respond to emerging problems and social events in a timely manner. In the process of integrating the dual knowledge base, the two knowledge bases can be connected so that the historical case knowledge base and the real-time case knowledge base can call and complement each other. Through the collaborative work of the dual knowledge base, it is possible to realize the two-way call of historical experience and real-time events, which can not only provide classic cases in the past, but also quickly respond to new problems at present, forming a dynamically updated, comprehensive intelligent question-answering system.
[0109] In some embodiments, the above-mentioned step S103 of traversing the first key knowledge point in the target key knowledge point set in the pre-built dual knowledge base to obtain the first answer case list may include:
[0110] S34: Traversing the historical case knowledge base of the first target key knowledge point in the pre-built dual knowledge base to obtain a first historical case set;
[0111] S35: Traversing the real-time case knowledge base of the first target key knowledge point in the pre-built dual knowledge base to obtain a first real-time case set;
[0112] S36: combining the first historical case set and the first real-time case set to obtain a first candidate case set for a first target key knowledge point;
[0113] S37: Calculating the matching degree between the first candidate case in the first candidate case set and the first target key knowledge point;
[0114] S38: sorting the first candidate cases according to the matching degree calculation result, and selecting target candidate cases from the sorting result as the first answer case list, wherein the sorting threshold of the target candidate cases is greater than the preset sorting threshold.
[0115] Specifically, when the first target key knowledge point is matched, the cases related to the first target key knowledge point can be found by traversing the dual knowledge base, and a first answer case list can be generated. The core of this process is to use the historical classic cases and real-time cases in the dual knowledge base, combined with the first target key knowledge point, to screen out the most relevant cases to ensure the pertinence and timeliness of the reply content. Through this dual knowledge base traversal analysis and case screening, users can be provided with detailed, comprehensive and accurate replies. Among them, the process of obtaining the first answer case list is the above-mentioned S34-S38, as follows:
[0116] S34 may specifically be: performing traversal analysis on the first target key knowledge point in the historical case knowledge base, retrieving all cases involving the first target key knowledge point in the historical case knowledge base, and forming a first historical case set.
[0117] S35 may specifically be: performing the same traversal analysis in the real-time case knowledge base, searching for real-time cases related to the first target key knowledge point, and forming a first real-time case set.
[0118] S36 may specifically be: combining the first historical case set and the first real-time case set to form a complete case set as the first candidate case set for the first target key knowledge point, which includes all historical cases and real-time cases related to the first target key knowledge point, and represents the application and discussion of the key knowledge point at different times and in different contexts.
[0119] S37 may specifically be: calculating the matching degree between the first candidate case in the first candidate case set and the first target key knowledge point, wherein the first candidate case may generally refer to any case in the first candidate case set. The purpose of the matching degree calculation is to evaluate the relevance between the first candidate case and the first target key knowledge point.
[0120] S38 can be specifically as follows: after calculating the matching degree of the first candidate case, all first candidate cases are sorted in descending order according to the matching degree calculation result to obtain the sorting result. According to the preset rules, a predetermined proportion of cases (i.e., target candidate cases) can be taken out from the sorting result as the final first answer case list. Among them, the predetermined proportion part is the preset sorting threshold mentioned above, which can be set according to actual needs. For example, the top 10% of the cases in matching degree can be selected, or the top 5 most relevant cases can be selected. The goal of this step is to ensure that the question-answering system only displays the most representative and relevant cases, avoid information overload, and help users quickly find the most relevant answers to their questions.
[0121] Therefore, by traversing the historical cases and real-time cases in the dual knowledge base, combined with the matching degree calculation and descending sorting method, the most relevant cases can be effectively screened out for user reference. Through this precise matching and sorting mechanism, the most valuable and targeted response cases can be provided to users, ensuring the quality and efficiency of answering questions.
[0122] In some embodiments, the specific process of calculating the matching degree between the first candidate case in the first candidate case set and the first target key knowledge point in S37 may be as follows:
[0123] S371: Analyze the first candidate case row, extract all key knowledge point labels involved in the first candidate case, and obtain the first candidate key knowledge point labels;
[0124] S372: Calculate the first candidate coverage between the first candidate key knowledge point label and the target key knowledge point set;
[0125] S373: Using the first candidate coverage as the matching degree between the first candidate case and the first target key knowledge point.
[0126] Among them, the core of calculating the first candidate coverage in S372 is to evaluate the overlap between each candidate key knowledge point label and the target key knowledge point set. Specifically, the first candidate key knowledge point label is matched with the label in the target key knowledge point set, and the ratio of the number of overlapping labels to the total number of key knowledge points in the target key knowledge point set is calculated. The result is the first candidate coverage. The first candidate coverage can be used in S373 as the match between the first candidate case and the first target key knowledge point (which can be called the first match). The first match represents the degree of correlation between the key knowledge point label of the candidate case and the target key knowledge point set. The higher the value, the more the case meets the needs of the user.
[0127] By calculating the coverage of the first candidate key knowledge point labels, the relevance of each candidate case can be accurately evaluated, thereby providing users with more accurate and targeted responses, effectively improving the matching accuracy of the intelligent question-answering system, and ensuring that users can get the responses that best meet their needs.
[0128] In some embodiments, the above-mentioned determination of whether the type of the target question answering requirement is the first preset requirement type may further include:
[0129] If not, traverse the extracted target keywords in the dual knowledge base to obtain a second answer case list;
[0130] The visualized second answer case list is displayed on a target display of a target user.
[0131] Specifically, it can be determined whether the target keyword contains the first professional word identifier. If not, it is inferred that the target question-answering demand does not fully meet the set first preset demand type, and can be the second preset demand type. In order to deal with this situation, the target user's target question-answering demand can be directly analyzed and screened through the historical case knowledge base and the real-time case knowledge base in the dual knowledge base, and the target keywords are traversed and analyzed in the dual knowledge base, that is, the core keywords in the question are matched and analyzed. The cases in the dual knowledge base usually already contain various cases, discussions and social events related to key knowledge points. Therefore, through this keyword matching, a series of case collections related to the target user's target question-answering demand can be found. These cases can be composed of the historical case knowledge base and the real-time case knowledge base to generate a second answer case list. The second answer case list is visualized and displayed to the target user through a target display (such as a user interface, a smart screen, etc.).
[0132] Therefore, by displaying all cases related to user problems in an intuitive and structured way, the user experience can be improved and timely and efficient services can be provided in response to changing educational needs.
[0133] S104: Displaying the visualized first answer case list to a target display of a target user.
[0134] Specifically, the first answer case list selected from the dual knowledge base can be visualized, and after the visualization is completed, the first answer case list is displayed on the target display of the target user in the form of graphics, images, tables, charts, etc. The target display can be the user's computer, tablet, smart phone, teaching screen or other display device.
[0135] 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. For details, please refer to the description of the above-mentioned related processing related embodiments, and no further description is given here.
[0136] The above is an explanation of the present invention, however, it is worth noting that the specific embodiment is only for the purpose of better illustrating the present application and describing a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0137] The above method is described below in conjunction with a specific embodiment. However, it should be noted that this specific embodiment is only for better illustrating the present application and does not constitute an improper limitation on the present application.
[0138] Before specific implementation, a predetermined screening strategy is introduced to analyze and screen the historical key knowledge point case records to obtain historical typical cases, and build a historical case knowledge base. The real-time case knowledge base is built through the time sequence of the real-time key knowledge point cases dynamically obtained, and it forms a dual knowledge base with the historical case knowledge base.
[0139] In the specific implementation, the target question-answering demand of the target user is obtained, and it is determined whether the type of the target question-answering demand is the first preset demand type. If so, the target key knowledge point set corresponding to the target question-answering demand is matched, and the target key knowledge point set includes the first target key knowledge point. The first target key knowledge point is traversed and analyzed in the dual knowledge base to obtain a first answer case list. The visualized first answer case list is displayed on the target display of the target user.
[0140] By introducing dynamically acquired real-time key knowledge point case data and combining it with historical typical cases, a dynamic and intelligent dual knowledge base is built, which can efficiently integrate the historical knowledge base and real-time data stream. Then, by matching the target key knowledge points and professional terms, the most relevant response cases can be intelligently screened out according to the user's background and needs, which can effectively integrate education into professional course teaching, realize the organic combination of subject knowledge and education, and thus achieve the technical effect of improving the depth of responses.
[0141] Although this specification provides examples such as the following embodiments or the attached Figure 2 The method operation steps or device structure shown in the figure, but based on routine or no creative labor, the method or device may include more or fewer operation steps or module units after partial merger. In the steps or structures that do not logically have a necessary causal relationship, the execution order of these steps or the module structure of the device is not limited to the execution order or module structure shown in the embodiments of this specification or the drawings. When the method or module structure is applied to an actual device, server or terminal product, it can be executed sequentially or in parallel according to the method or module structure shown in the embodiments or drawings (for example, in an environment of parallel processors or multi-threaded processing, or even in an implementation environment of distributed processing and server clusters). Based on the above-mentioned intelligent question-answering method based on the collaboration of dual knowledge bases, the embodiments of this specification also propose an embodiment of an intelligent question-answering device based on the collaboration of dual knowledge bases. As Figure 2 As shown, the device may specifically include the following modules:
[0142] The judgment module 201 may be used to obtain a target question-answering requirement of a target user and judge whether the type of the target question-answering requirement is a first preset requirement type;
[0143] A matching module 202 may be used to match a target key knowledge point set corresponding to the target question answering requirement;
[0144] The traversal module 203 may be used to traverse the first target key knowledge point in the target key knowledge point set in a pre-built dual knowledge base to obtain a first answer case list, wherein the dual knowledge base is composed of a historical case knowledge base and a real-time case knowledge base, and the historical case knowledge base is constructed by screened historical typical cases;
[0145] The display module 204 may be used to display the first answer case list after visualization processing to a target display of a target user.
[0146] In some embodiments, the above-mentioned judgment module 201 can be specifically used to extract the target keywords in the target question text corresponding to the target question and answer demand; determine whether the target keyword matches the first professional term identifier corresponding to the first course, and if so, determine that the type of the target question and answer demand is the first preset demand type, and the first course is any course in the pre-acquired target user course list. The type of the target question and answer demand is the first preset demand type, indicating that the target question and answer demand is related to the first course.
[0147] In some embodiments, the matching module 202 may be specifically used to match a target key knowledge point set corresponding to a first course related to the target question answering requirement.
[0148] In some embodiments, the above-mentioned traversal module 203 can be specifically used to extract the first historical case record corresponding to the first case in the historical key knowledge point case record; read the preset case feature, and collect features of the first historical case record based on the preset case feature to obtain a first feature data set; use the first feature data set as a clustering constraint to cluster the historical case set in the historical key knowledge point record to obtain a first cluster cluster, and the historical case set is composed of multiple first cases; determine the first universality index of the first case according to the ratio of the number of cases in the first cluster cluster to the total number of cases in the historical case set; read the preset discussion feature, and collect features of the first historical case record based on the preset discussion feature to obtain a second feature data set; perform standardized coefficient of variation weighting processing on the second feature data set to obtain a first revelation index of the first case; weight the first universality index and the first revelation index to obtain a first typical index of the first case; when the first typical index reaches a preset typical threshold, the first case is used as a historical typical case.
[0149] In some embodiments, the traversal module 203 can also be used to use the first feature data set as the first label of the first case, and obtain the key knowledge point label corresponding to the first case as the second label; and build a historical case knowledge base based on the first case, the first label and the second label.
[0150] In some embodiments, the above-mentioned traversal module 203 can also be specifically used to collect features of the second case based on preset case features to obtain a third feature data set, where the second case is a case at the first time in the real-time key knowledge point case; the third feature data set is used as the third label of the second case, and the key knowledge point label corresponding to the second case is obtained as the fourth label; a real-time case knowledge base is constructed according to the second case, the third label, and the fourth label.
[0151] In some embodiments, the above-mentioned traversal module 203 can also be specifically used to traverse the historical case knowledge base in the pre-built dual knowledge base for the first target key knowledge point to obtain a first historical case set; traverse the real-time case knowledge base in the pre-built dual knowledge base for the first target key knowledge point to obtain a first real-time case set; combine the first historical case set with the first real-time case set to obtain a first candidate case set for the first target key knowledge point; calculate the matching degree between the first candidate case in the first candidate case set and the first target key knowledge point; sort the first candidate case according to the matching degree calculation result, and select the target candidate case from the sorting result as the first answer case list, and the sorting threshold of the target candidate case is greater than the preset sorting threshold.
[0152] In some embodiments, the judgment module 201 may be further used to traverse the extracted target keywords in the dual knowledge bases to obtain a second answer case list; and display the visualized second answer case list to the target display of the target user.
[0153] It can be seen from the above that an intelligent question-answering device based on dual knowledge base collaboration provided in the embodiments of this specification can effectively improve the depth of answers and enable target users to obtain the answers they expect.
[0154] The embodiment of the present specification also provides an electronic device based on the above-mentioned intelligent question-answering method based on the collaboration of dual knowledge bases, including a processor and a memory for storing processor executable programs / instructions. When the processor is implemented, it can perform the following steps according to the program / instructions: obtain the target question-answering demand of the target user, and determine whether the type of the target question-answering demand is a first preset demand type; if so, match the target key knowledge point set corresponding to the target question-answering demand; traverse the first target key knowledge point in the target key knowledge point set in the pre-constructed dual knowledge base to obtain a first answer case list, the dual knowledge base is composed of a historical case knowledge base and a real-time case knowledge base, and the historical case knowledge base is constructed by screened historical typical cases; the visualized first answer case list is displayed on the target display of the target user.
[0155] In order to complete the above instructions more accurately, refer to Figure 3 As shown, the embodiment of this specification also provides another specific electronic device, wherein the electronic device includes a network communication port 301, a processor 302 and a memory 303, and the above structures are connected through internal cables so that each structure can perform specific data interaction.
[0156] The network communication port 301 may be used to obtain a target question-answering requirement of a target user and determine whether the type of the target question-answering requirement is a first preset requirement type;
[0157] The processor 302 may be specifically used to match a target key knowledge point set corresponding to the target question answering requirement; traverse the first target key knowledge point in the target key knowledge point set in a pre-built dual knowledge base to obtain a first answer case list, wherein the dual knowledge base is composed of a historical case knowledge base and a real-time case knowledge base, and the historical case knowledge base is constructed by screened historical typical cases; and display the visualized first answer case list to a target display of a target user;
[0158] The memory 303 may be specifically used to store corresponding instruction programs.
[0159] In this embodiment, the network communication port 301 can be a virtual port that is bound to different communication protocols so that different data can be sent or received. For example, the network communication port can be a port responsible for web data communication, a port responsible for FTP data communication, or a port responsible for email data communication. In addition, the network communication port can also be a physical communication interface or communication chip. For example, it can be a wireless mobile network communication chip, such as GSM, CDMA, etc.; it can also be a Wifi chip; it can also be a Bluetooth chip.
[0160] In this embodiment, the processor 302 may be implemented in any appropriate manner. For example, the processor may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as 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, etc. This specification does not limit this.
[0161] In this embodiment, the memory 303 may include multiple levels. In a digital system, anything that can store binary data can be a memory; in an integrated circuit, a circuit with a storage function but no physical form is also called a memory, such as RAM, FIFO, etc.; in a system, a storage device with a physical form is also called a memory, such as a memory stick, TF card, etc.
[0162] The embodiment of this specification also provides a computer storage medium based on the above-mentioned intelligent question-answering method based on the collaboration of dual knowledge bases, and the computer storage medium stores a computer program / instruction, which, when executed, implements: obtaining the target question-answering demand of the target user, and determining whether the type of the target question-answering demand is a first preset demand type; if so, matching a target key knowledge point set corresponding to the target question-answering demand; traversing the first target key knowledge point in the target key knowledge point set in a pre-constructed dual knowledge base to obtain a first answer case list, wherein the dual knowledge base is composed of a historical case knowledge base and a real-time case knowledge base, and the historical case knowledge base is constructed by screened historical typical cases; and displaying the visualized first answer case list to the target display of the target user.
[0163] In this embodiment, the storage medium includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a cache, a hard disk (HDD), or a memory card. The memory may be used to store computer program instructions. The network communication unit may be an interface for network connection communication set in accordance with the standard specified by the communication protocol.
[0164] In this embodiment, the functions and effects specifically implemented by the program instructions stored in the computer storage medium can be explained in comparison with other implementations and will not be described in detail here.
[0165] Although the present specification provides method operation steps as described in the embodiments or flow charts, more or less operation steps may be included based on conventional or non-creative means. The order of steps listed in the embodiments is only one way of executing the order of many steps, and does not represent a unique execution order. When the device or client product in practice is executed, it can be executed in sequence or in parallel according to the method shown in the embodiments or the drawings (for example, a parallel processor or a multi-threaded processing environment, or even a distributed data processing environment). The term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, product or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, product or device. In the absence of more restrictions, it is not excluded that there are other identical or equivalent elements in the process, method, product or device including the elements. The first, second, etc. words are used to represent the name, and do not represent any particular order.
[0166] Those skilled in the art also know that, in addition to implementing the controller in a purely computer-readable program code, the controller can be made to implement the same function in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered as a hardware component, and the devices for implementing various functions included therein can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules for implementing the method and structures within the hardware component.
[0167] 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, classes, 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.
[0168] Through the description of the above embodiments, it can be known that those skilled in the art can clearly understand that the present specification can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present specification can essentially be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a mobile terminal, a server, or a network device, etc.) to execute the methods described in each embodiment of the present specification or some parts of the embodiments.
[0169] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. This specification can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld devices or portable devices, tablet devices, multi-processor systems, microprocessor-based systems, set-top boxes, programmable electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc.
[0170] Although the present specification is described through embodiments, persons skilled in the art will appreciate that there are many variations of the present specification without departing from the spirit of the present specification, and it is intended that the appended claims include these variations without departing from the spirit of the present specification.
Claims
1. An intelligent question answering method based on dual knowledge base collaboration, characterized in that: include: Obtaining a target question-answering demand of a target user, and determining whether a type of the target question-answering demand is a first preset demand type; If yes, match the target key knowledge point set corresponding to the target question answering requirement; Traversing the first target key knowledge point in the target key knowledge point set in a pre-built dual knowledge base to obtain a first answer case list, wherein the dual knowledge base is composed of a historical case knowledge base and a real-time case knowledge base, and the historical case knowledge base is constructed by screened historical typical cases; The visualized first answer case list is displayed on a target display of a target user.
2. The method according to claim 1, characterized in that The determining whether the type of the target question answering requirement is a first preset requirement type includes: Extracting target keywords from the target question text corresponding to the target question answering requirement; Determine whether the target keyword matches the first professional word identifier corresponding to the first course, and if so, determine that the type of the target question-answering demand is the first preset demand type, the first course is any course in the pre-acquired target user course list, and the type of the target question-answering demand is the first preset demand type, indicating that the target question-answering demand is related to the first course; Accordingly, matching the target key knowledge point set corresponding to the target question answering requirement includes: Match a target key knowledge point set corresponding to the first course related to the target question answering requirement.
3. The method according to claim 1, characterized in that The typical historical cases were selected in the following way: Extracting the first historical case record corresponding to the first case in the historical key knowledge point case record; Reading a preset case feature, and collecting features of the first historical case record based on the preset case feature to obtain a first feature data set; Using the first feature data set as a clustering constraint, clustering a historical case set in the historical key knowledge point records to obtain a first cluster, wherein the historical case set consists of a plurality of first cases; Determine a first universality index of the first case according to a ratio of the number of cases in the first cluster to the total number of cases in the historical case set; Reading a preset discussion feature, and collecting features of the first historical case record based on the preset discussion feature to obtain a second feature data set; performing standardized coefficient of variation weighting processing on the second feature data set to obtain a first revelatory index of the first case; Performing weighted processing on the first universality index and the first revelatory index to obtain a first typicality index of the first case; When the first typical index reaches a preset typical threshold, the first case is taken as a historical typical case.
4. The method according to claim 3, characterized in that The historical case knowledge base is constructed from screened historical typical cases, including: Using the first feature data set as a first label for the first case, and obtaining a key knowledge point label corresponding to the first case as a second label; A historical case knowledge base is constructed based on the first case, the first label, and the second label.
5. The method according to claim 1, characterized in that The real-time case knowledge base is constructed in the following manner: Based on the preset case features, features of the second case are collected to obtain a third feature data set, where the second case is a case at the first time in the real-time key knowledge point case; Using the third feature data set as a third label of the second case, and obtaining a key knowledge point label corresponding to the second case as a fourth label; A real-time case knowledge base is constructed according to the second case, the third label, and the fourth label.
6. The method according to claim 1, characterized in that The first target key knowledge point in the target key knowledge point set is traversed in the pre-built dual knowledge base to obtain a first answer case list, including: Traversing the historical case knowledge base in the pre-built dual knowledge base for the first target key knowledge point to obtain a first historical case set; Traversing the real-time case knowledge base in the pre-built dual knowledge base for the first target key knowledge point to obtain a first real-time case set; Combining the first historical case set with the first real-time case set to obtain a first candidate case set for a first target key knowledge point; Calculate the matching degree between the first candidate case in the first candidate case set and the first target key knowledge point; According to the matching degree calculation result, the first candidate cases are sorted, and target candidate cases are screened from the sorting results as the first answer case list, and the sorting threshold of the target candidate cases is greater than the preset sorting threshold.
7. The method according to claim 1, characterized in that The method further comprises: If not, traverse the extracted target keywords in the dual knowledge base to obtain a second answer case list; The visualized second answer case list is displayed on a target display of a target user.
8. An intelligent question-answering device based on dual knowledge base collaboration, characterized in that: include: A judgment module, used to obtain a target question-answering requirement of a target user, and judge whether the type of the target question-answering requirement is a first preset requirement type; A matching module, for matching a target key knowledge point set corresponding to the target question answering requirement; A traversal module, used for traversing the first target key knowledge point in the target key knowledge point set in a pre-built dual knowledge base to obtain a first answer case list, wherein the dual knowledge base is composed of a historical case knowledge base and a real-time case knowledge base, and the historical case knowledge base is constructed by screened historical typical cases; The display module is used to display the first answer case list after visualization processing to the target display of the target user.
9. An electronic device, characterized in that: include: A memory and a processor, wherein the processor and the memory are communicatively connected to each other, the memory stores computer instructions, and the processor implements the steps of the method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Data processing method and device used for knowledge quizzes, server and medium
CN108897867A
Intelligent question answering method, device and intelligent terminal
CN109063152A
Question and answer knowledge base updating method and device combining RPA and AI, equipment and medium
CN112287081A
Data search method and device and storage medium
CN116166780A
Question answering method and device based on artificial intelligence, electronic equipment and storage medium
CN117725188A