Method, device, program product, storage medium and electronic device for intelligent question answering
By dynamically setting the threshold for interaction rounds and automatically triggering the review process in the intelligent question-answering system, the problem of low reliability of intelligent question-answering in existing systems is solved, a dynamic balance between automatic interaction and manual review is achieved, and the reliability and efficiency of intelligent question-answering are improved.
Patent Information
- Application Number
- CN202611563130.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-09
- Publication Date
- 2026-11-27
AI Technical Summary
Existing intelligent question-answering systems cannot adaptively adjust the scope of intelligent answers based on the knowledge accumulation level of different modules. This results in unnecessary human intervention in modules with sufficient knowledge coverage, while human intervention cannot be introduced in a timely manner in modules with insufficient knowledge coverage, leading to low reliability of intelligent question answering.
By dynamically setting an interaction round threshold in the target dialogue and using historical dialogue records to determine the interaction round threshold, the review process is automatically triggered when the threshold is exceeded. The target object generates an answer based on the original code, thus achieving a dynamic balance between automatic interaction and manual review.
This improves the reliability of intelligent question answering, avoids unnecessary human intervention or low-quality answers caused by fixed thresholds, and ensures the accuracy and efficiency of intelligent question answering.
Smart Images

Figure CN123178575A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computers, and more specifically, to a method, apparatus, program product, storage medium, and electronic device for intelligent question answering. Background Technology
[0002] In modern large-scale software enterprises, various functional components, basic components, and algorithms are integrated and encapsulated in different common libraries for reuse by multiple product lines and departments. These common libraries are usually maintained by designated module owners. During daily product integration, issues inevitably arise regarding component usage methods, interface calls, configuration parameters, and troubleshooting. Currently, intelligent operation and maintenance of these common libraries is primarily achieved through intelligent customer service Q&A.
[0003] However, most existing intelligent operation and maintenance solutions use fixed thresholds for human intervention, which cannot adaptively adjust the scope of intelligent answers based on the knowledge accumulation of different modules. This results in unnecessary human intervention for modules with sufficient knowledge coverage, while for modules with insufficient knowledge coverage, human questions cannot be introduced in a timely manner, leading to poor reliability of intelligent Q&A and consequently low efficiency of intelligent operation and maintenance.
[0004] There is currently no effective solution to the above problems. Summary of the Invention
[0005] This application provides a method, apparatus, program product, storage medium, and electronic device for intelligent question answering, in order to at least solve the technical problem of low reliability of intelligent question answering in related technologies.
[0006] According to one aspect of the embodiments of this application, a method for intelligent question answering is provided, comprising: after creating a target dialogue for generating an answer to a target question in response to a session creation instruction from a target account, determining a dialogue record related to the target question from historical dialogue records to obtain a first dialogue record, wherein the target dialogue includes at least one round of interaction, each round of interaction being used to generate an answer to the target question based on a first knowledge base and historical dialogue records, the target question being a question triggered by the target account in the current round of interaction, the first knowledge base storing descriptive information of original code, the original code being used to implement the operation indicated by the target question; determining an interaction round threshold for the target dialogue based on the first dialogue record; and triggering a review process when the number of interaction rounds M of the target dialogue is greater than the interaction round threshold, and the target account has initiated the M+1th interaction, wherein the review process is used for the target object to generate an answer to the target question based on the original code, and M is an integer greater than 0.
[0007] In one exemplary embodiment, determining the interaction round threshold of a target dialogue based on a first dialogue record includes: determining the last dialogue record included in the first dialogue record used to perform a two-way verification operation to obtain a second dialogue record, wherein the two-way verification operation is used to verify the consistency between the first knowledge base and historical dialogue records; determining the reliability of historical dialogue records based on the number of first dialogue records and the number of second dialogue records; and determining the interaction round threshold based on the reliability of historical dialogue records.
[0008] In an exemplary embodiment, before determining the last dialogue record used to perform the bidirectional verification operation included in the first dialogue record and obtaining the second dialogue record, the method further includes: if a change is detected in the first code segment in the original code, updating the first description information in the first knowledge base based on the second code segment obtained by changing the first code segment to obtain second description information, wherein the first description information is the description information of the first code segment; determining at least one dialogue record in the historical dialogue records that has an association with the first code segment to obtain a third dialogue record; and verifying the consistency between the second description information and the third dialogue record based on the second description information and the third dialogue record.
[0009] In one exemplary embodiment, verifying the consistency between the second description information and the third dialogue record based on the second description information and the third dialogue record includes: comparing each dialogue record in the third dialogue record with the second code segment to determine the accuracy of the content in each dialogue record, wherein the accuracy is used to describe the consistency between the original code segment that generated the content in each dialogue record and the second code segment; determining dialogue records in each dialogue record whose accuracy is greater than or equal to an accuracy threshold as valid dialogue records; and verifying the second description information through the valid dialogue records when the number of valid dialogue records is greater than or equal to a preset number threshold.
[0010] In one exemplary embodiment, after determining the accuracy of the content in each dialogue record, the method further includes: identifying dialogue records with an accuracy less than an accuracy threshold as dialogue records to be verified; generating a first prompt message, wherein the first prompt message is used to prompt the target object to correct the dialogue records to be verified.
[0011] In one exemplary embodiment, after verifying the second description information through valid dialogue records, the method further includes: if the second description information fails verification, determining the description information that needs to be corrected in the second description information based on the valid dialogue records; and correcting the description information that needs to be corrected.
[0012] In one exemplary embodiment, determining the reliability of historical dialogue records based on the number of first dialogue records and the number of second dialogue records includes: determining the historical coverage of the target question by the historical dialogue records based on the number of first dialogue records, wherein the historical coverage is used to indicate the extent to which the answers to the target question are included in the historical dialogue records; determining the consistency between the first dialogue records and the original code by the ratio between the number of valid dialogue records in the second dialogue records and the number of second dialogue records; and determining the reliability by the product between the historical coverage and the consistency.
[0013] In an exemplary embodiment, determining the historical coverage of a target question based on the number of first dialogue records includes: obtaining a pre-set coverage threshold; determining the ratio between the number of first dialogue records and the coverage threshold as a first ratio; and determining the minimum value between the first ratio and a preset first value as the historical coverage.
[0014] In one exemplary embodiment, determining the interaction round threshold based on the reliability of historical dialogue records includes: obtaining the minimum and maximum interaction rounds of a pre-set target dialogue; determining the difference between the maximum and minimum interaction rounds as the interaction difference; determining the product between the interaction difference and the reliability as a first product; and determining the sum of the first product and the minimum interaction rounds as the interaction round threshold.
[0015] In one exemplary embodiment, the method further includes: generating a target dialogue record based on the target dialogue when the end of the target dialogue is detected; verifying the description information stored in the first knowledge base based on the target dialogue record; and performing a target operation corresponding to the verification result.
[0016] According to another aspect of the embodiments of this application, an intelligent question-answering apparatus is also provided, comprising: a first determining module, configured to, after creating a target dialogue for generating an answer to a target question in response to a session creation instruction from a target account, determine a dialogue record related to the target question from historical dialogue records to obtain a first dialogue record, wherein the target dialogue includes at least one round of interaction, each round of interaction being used to generate an answer to the target question based on a first knowledge base and historical dialogue records, the target question being a question triggered by the target account in the current round of interaction, the first knowledge base storing descriptive information of original code, the original code being used to implement the operation indicated by the target question; a second determining module, configured to determine an interaction round threshold of the target dialogue based on the first dialogue record; and a triggering module, configured to trigger a review process when the number of interaction rounds M of the target dialogue is greater than the interaction round threshold and the target account has initiated the M+1th interaction, wherein the review process is used for the target object to generate an answer to the target question based on the original code, and M is an integer greater than 0.
[0017] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored therein, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed by a processor.
[0018] According to another aspect of the embodiments of this application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to perform the steps in any of the method embodiments described above.
[0019] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to perform the steps of any of the above method embodiments through the computer program.
[0020] Through this application, after creating a target dialogue in response to the target account's session creation instruction, the first dialogue record that is related to the current target question is determined from the historical dialogue records. The first dialogue record is used to determine the interaction round threshold of the target dialogue. Then, when the number of interaction rounds M in the target dialogue is greater than the determined interaction round threshold, and the target account initiates the M+1th interaction, the review process is automatically triggered, and the target object generates the answer to the target question based on the original code.
[0021] By dynamically setting a threshold for the number of automatic interaction rounds in the current target dialogue based on historical interaction records, and controlling the timing of human intervention through this dynamically set threshold, a review process is automatically triggered when the threshold is exceeded, introducing human intervention to answer the target question. This avoids unnecessary human intervention due to fixed thresholds, or problems where the large language model continuously provides low-quality answers without timely human intervention. Thus, a dynamic balance between automatic interaction and human review is achieved while ensuring the accuracy of intelligent question answering. Therefore, this addresses the issue of low reliability in related technologies for intelligent question answering, thereby improving the reliability of intelligent question answering. Attached Figure Description
[0022] Figure 1 This is a schematic diagram illustrating an application scenario of intelligent question answering according to an embodiment of this application;
[0023] Figure 2 This is a flowchart illustrating the intelligent question-answering process according to an embodiment of this application;
[0024] Figure 3This is a flowchart of the dual-source mutual verification intelligent operation and maintenance method according to an embodiment of this application;
[0025] Figure 4 This is a structural block diagram of an intelligent question-answering device according to an embodiment of this application. Detailed Implementation
[0026] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0027] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings 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 such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0028] According to one aspect of the embodiments of this application, a method for intelligent question answering is provided. Optionally, in this embodiment, the above-described method for intelligent question answering may be applied to, but is not limited to, [examples of applications]. Figure 1 The hardware environment shown includes terminal device 102 and server 104. Server 104 can be connected to terminal device 102 via a network and can be used to provide services (e.g., application services, etc.) to terminal device 102 or clients installed on terminal device 102. A database can be set up on server 104 or independently of server 104 to provide data storage services for server 104.
[0029] The aforementioned network may include, but is not limited to, at least one of the following: wired network and wireless network. The aforementioned wired network may include, but is not limited to, at least one of the following: wide area network (WAN), metropolitan area network (MAN), and local area network (LAN). The aforementioned wireless network may include, but is not limited to, at least one of the following: Wireless Fidelity (WIFI) and Bluetooth. Terminal device 102 may be, but is not limited to, a personal computer (PC), mobile phone, tablet computer, etc. Server 104 may be, but is not limited to, a cloud server, server cluster, or other server types.
[0030] The intelligent question-answering method of this application embodiment can be executed by server 104, terminal device 102, or jointly by server 104 and terminal device 102. Alternatively, the intelligent question-answering method of this application embodiment can be executed by a client installed on the terminal device 102.
[0031] Taking the intelligent question-answering method in this embodiment executed by terminal device 102 as an example, Figure 2 This is a flowchart illustrating the intelligent question-answering method according to an embodiment of this application, such as... Figure 2 As shown, the process of this method may include the following steps:
[0032] Step S202: After creating a target dialogue for generating an answer to a target question in response to a session creation instruction from the target account, a dialogue record related to the target question is determined from the historical dialogue record to obtain a first dialogue record. The target dialogue includes at least one round of interactive operations. Each round of interactive operations is used to generate an answer to the target question based on the first knowledge base and the historical dialogue record. The target question is the question triggered by the target account in the current round of interactive operations. The first knowledge base stores description information of the original code, which is used to implement the operation indicated by the target question.
[0033] The aforementioned target dialogue can be a conversational interaction process between the user and a large language model, used to answer the user's questions through the large language model. This dialogue interaction process can include one or more rounds of dialogue (i.e., interaction), in which the large language model provides a corresponding answer based on the user's question.
[0034] The aforementioned target account can be the account used by the questioner (i.e., the user) to interact with the large language model. In this embodiment, when the user needs to interact with the large language model, a new dialogue (i.e., the target dialogue) is created through the target account, thereby enabling dialogue interaction with the large language model.
[0035] The aforementioned historical dialogue records can be generated based on historical dialogues, which can be conversations between the large language model and the same or different accounts within a historical time frame. In this embodiment, after each dialogue, a dialogue record is generated based on the conversation content, thus generating a historical dialogue record. This record serves as a reference in subsequently created new dialogues, enabling fast and accurate intelligent responses. The historical dialogue records can be stored in a second knowledge base (i.e., ChatWiki). Each dialogue record includes the question from the dialogue, the answer to the question, and the location information of the code snippet on which the answer to the question was generated (such as the functions and fields referenced by the code snippet, and its position in the original code).
[0036] The aforementioned source code can serve as a reference for large language models to perform intelligent responses (i.e., generate answers to the target question). In this embodiment, the application platform will contain multiple code repositories, which are maintained by at least one target object (such as operations and maintenance personnel). Each code repository stores one or more source codes, each code used to implement the same or different functions.
[0037] The aforementioned first knowledge base can be a deep knowledge base (i.e., DeepWiki), which includes relevant textual descriptions of the original materials. In this embodiment, the first knowledge base is structured knowledge automatically generated based on the original code stored in the code repository, including interface calls, configurations, referenced functions, and implemented functionalities of the original code, used to provide a basis for intelligent responses. When generating the first knowledge base, the knowledge in the first knowledge base can be partitioned according to the access level of the original code. Furthermore, when generating answers to the target question, the knowledge in the corresponding partition can be selected based on the access level of the target account to provide intelligent responses to the target question triggered by the target account, ensuring the security of the knowledge.
[0038] The aforementioned target question can be a specific question description entered by the user through the target account during this dialogue, and it is also the initial input of the large language model. In the embodiments of this application, the target can be "how to implement function A", "what is the correct order of calling interface B", etc.
[0039] The aforementioned first dialogue record can be a dialogue record in historical dialogue records that is related to the target question, such as a dialogue record that includes the target question, or a dialogue record that includes a portion of the target question, or a dialogue record that includes content similar to the target question. The first dialogue record may consist of one or more dialogue records, or it may not exist.
[0040] In this embodiment, the user first performs a session creation action, sending a session creation instruction to the system. When the system receives the session creation instruction initiated by the target account, it creates a new target dialogue. Simultaneously, the large language model deployed within the system, upon receiving the target question triggered by the target account, parses the target question, determines its specific meaning, and identifies a first dialogue record related to the target question from the historical dialogue records stored in the second knowledge base. Furthermore, based on the specific meaning of the target question, the system identifies a code repository among multiple code repositories on the platform that can support generating the answer to the target question. It then finds knowledge fragments related to the target question in the first knowledge base of the identified code repository, and finally generates and outputs the answer to the target question based on the first dialogue record and the knowledge fragments related to the target question.
[0041] It should be noted that when outputting the answer to the target question, the answer can also be filtered and anonymized based on the access permission level of the target account to ensure that the content of the output answer to the target question is content that the target account can access, thereby ensuring the security of the code file.
[0042] Step S204: Determine the interaction round threshold of the target dialogue based on the first dialogue record;
[0043] The aforementioned interaction round threshold can be a condition that triggers the intervention of the target object (such as maintenance personnel). This condition can be dynamically adjusted and determined based on the actual situation of the problem triggered by the target account and the historical dialogue records.
[0044] In this embodiment, after analyzing the target question and identifying the first dialogue record from historical dialogue records, the interaction round threshold for automatic interaction (i.e., intelligent question answering) between the system (or the large language model deployed within the system) and the target account in the current target dialogue scenario is determined based on the actual situation of the first dialogue record (such as quantity and quality). This quantifies historical dialogue records to accurately determine the maximum number of interaction rounds allowed in the target dialogue, avoiding the problems of an excessively small fixed threshold leading to unnecessary manual intervention, or an excessively large fixed threshold failing to introduce manual intervention in a timely manner, resulting in excessive resource consumption.
[0045] As an optional implementation, determining the interaction round threshold of the target dialogue based on the first dialogue record includes: determining the last dialogue record included in the first dialogue record used to perform a two-way verification operation to obtain a second dialogue record, wherein the two-way verification operation is used to verify the consistency between the first knowledge base and the historical dialogue records; determining the reliability of the historical dialogue records based on the number of the first dialogue records and the number of the second dialogue records; and determining the interaction round threshold based on the reliability of the historical dialogue records.
[0046] The aforementioned two-way verification operation can be a mutual verification operation between the first knowledge base and historical dialogue records. It is used to verify the consistency between the first knowledge base and historical dialogue records in terms of semantics, code location, logical description, etc., thereby ensuring the accuracy and completeness of the content in the first knowledge base and historical dialogue records, and preventing the knowledge base and historical dialogue records from becoming inaccurate over time.
[0047] The aforementioned second dialogue record can be a dialogue record related to the target question from the dialogue record of the last execution of the two-way verification operation. The first dialogue record includes the second dialogue record.
[0048] The aforementioned reliability can be the credibility of historical dialogue records, used to reflect the sufficiency and accuracy of the current historical dialogue records. In this embodiment, the credibility of the intelligent response of the large language model is quantified by historical dialogue records that are related to the target question, and then the triggering conditions for human intervention are adaptively determined based on the credibility of the intelligent response of the large language model.
[0049] In this embodiment of the application, when creating a new target dialogue, it is necessary to dynamically determine the interaction round threshold for automatically triggering manual intervention in the target dialogue scenario. First, in the first dialogue record that is related to the target question, the dialogue record that performed the two-way verification operation last time is identified, and the second dialogue record is obtained. Then, the reliability of the historical dialogue record is determined by the number of the first dialogue record and the number of the second dialogue record, and then the interaction round threshold is dynamically determined based on the reliability of the historical dialogue record.
[0050] Through the above operations, the timing of human intervention is adaptively and dynamically adjusted according to the historical accumulation of different target problems. This ensures that unnecessary human review is reduced when the historical accumulation is sufficient, thereby improving the efficiency of intelligent response. When the historical accumulation is insufficient, human review is introduced in a timely manner to reduce low-quality interaction rounds, thereby achieving a dynamic balance between the quality and efficiency of intelligent response and improving the reliability of intelligent response.
[0051] Step S206: If the number of rounds M of interaction in the target dialogue is greater than the interaction round threshold, and the target account has started the M+1th interaction, a review process is triggered. The review process is used to generate the answer to the target question by the target object based on the original code, where M is an integer greater than 0.
[0052] In this embodiment, after a new target dialogue is initiated, the system monitors the number of interaction rounds between the large language model and the target account. If the current number of interaction rounds M has not reached the interaction round threshold, and the target account continues to initiate a new round of interaction, the large language model will continue to intelligently respond to the target question triggered by the target account based on the first knowledge base and historical dialogue records. If the current number of interaction rounds M has reached (i.e., exceeded) the interaction round threshold, and the target account does not end the current target dialogue but continues to initiate a new round of interaction, it indicates that the user has not received the desired answer, and the target question cannot be solved by the large language model alone. In this case, the system will automatically trigger a review process, notify the target object, and the target object will analyze and answer the target question based on the original code to generate the answer to the target question.
[0053] As an optional implementation, the method further includes: generating a target dialogue record based on the target dialogue when the end of the target dialogue is detected; verifying the description information stored in the first knowledge base based on the target dialogue record; and performing the target operation corresponding to the verification result.
[0054] In this embodiment, upon detecting the end of the target dialogue, the system automatically generates a target dialogue record based on the content of the target dialogue and stores it in the second knowledge base as a historical dialogue record. Simultaneously, since the answer to the target question in the target dialogue may be automatically generated by a large language model and be considered an accurate answer by the user, or an accurate answer directly generated by the target object through analysis (where reference information for generating the answer is marked during the target object's analysis process), after generating the target dialogue, the system also verifies the content (i.e., the stored descriptive information) in the first knowledge base using the target dialogue record to determine whether the content in the first knowledge base is accurate or missing. If the content in the first knowledge base is inaccurate or missing, the system corrects or supplements the content in the first knowledge base (i.e., executes the corresponding target operation). It should be noted that the above correction or supplementation can be automatically executed by the system based on the original code and the target dialogue record, or it can be executed by the target object after the system notifies the target object; no specific limitations are imposed here.
[0055] Through the above operations, by capturing the complete dialogue and verifying the stored knowledge through the dialogue content, dynamic maintenance and self-optimization of the knowledge base are achieved. This avoids the problem of the knowledge base becoming inaccurate over time due to the lack of a verification mechanism, and ensures the consistency between the descriptive information in the knowledge base and actual operational experience.
[0056] Through the above steps, after creating the target dialogue in response to the target account's session creation instruction, the first dialogue record that is related to the current target question is determined from the historical dialogue records. The first dialogue record is then used to determine the interaction round threshold of the target dialogue. When the number of interaction rounds M in the target dialogue is greater than the determined interaction round threshold, and the target account initiates the M+1th interaction, the review process is automatically triggered, and the target object generates the answer to the target question based on the original code.
[0057] By dynamically setting a threshold for the number of automatic interaction rounds in the current target dialogue based on historical interaction records, and controlling the timing of human intervention through this dynamically set threshold, a review process is automatically triggered when the threshold is exceeded, introducing human intervention to answer the target question. This avoids unnecessary human intervention due to fixed thresholds, or problems where the large language model continuously provides low-quality answers without timely human intervention. Thus, a dynamic balance between automatic interaction and human review is achieved while ensuring the accuracy of intelligent question answering. This solves the problem of low reliability in related technologies and improves the reliability of intelligent question answering.
[0058] As an optional implementation, before determining the last dialogue record used to perform the bidirectional verification operation included in the first dialogue record and obtaining the second dialogue record, the method further includes: if a change is detected in the first code segment in the original code, updating the first description information in the first knowledge base based on the second code segment obtained by changing the first code segment to obtain second description information, wherein the first description information is the description information of the first code segment; determining at least one dialogue record that has an association with the first code segment in the historical dialogue records to obtain a third dialogue record; and verifying the consistency between the second description information and the third dialogue record based on the second description information and the third dialogue record.
[0059] The first code snippet mentioned above can be a modified code snippet from the original code. The second code snippet is obtained after modifying the first code snippet. For example, if the first code snippet in the original code implements a target sub-function, and this first code snippet shows that the target sub-function is implemented through function 1, but due to actual needs, the target sub-function needs to be implemented through function 2, then the first code snippet in the original code is changed to the second code snippet, which references function 2. Alternatively, if a new logic (i.e., code) is added to the first code snippet to jointly implement the target sub-function, then the first code snippet is changed to the second code snippet, which includes the first code snippet and the newly added code.
[0060] The aforementioned first descriptive information may be the descriptive information of the first code segment, which may include the location information of the first code segment, such as the functions and fields referenced by the code segment, and the position of the code segment in the original code.
[0061] The aforementioned second descriptive information may be the descriptive information of the second code segment, which may include the location information of the second code segment, such as the functions and fields referenced by the code segment, and the position of the code segment in the original code.
[0062] The aforementioned third dialogue record can be a dialogue record in the historical dialogue record that is related to the first code segment, such as a dialogue record that includes all or part of the first code segment.
[0063] In this embodiment, the original code may be adjusted and updated during routine operation and maintenance. To avoid discrepancies or missing content between the content in the first and second knowledge bases and the original code, a two-way verification operation is required. When the system detects a change in the original code, it first locates the first description information of the first code fragment in the first knowledge base based on the changed first code fragment, and updates the first description information based on the changed second code fragment to obtain second description information. Then, based on the first code fragment, it identifies a third dialogue record related to the first code fragment in historical dialogue records, and performs a two-way verification operation on the second description information and the third dialogue record. This ensures consistency between knowledge bases and between the knowledge base and the original code, avoiding lag or inaccuracy in the knowledge base content due to iterative updates of the original code, thereby improving the accuracy and reliability of subsequent intelligent question answering.
[0064] Optionally, the consistency between the second description information and the third dialogue record is verified based on the second description information and the third dialogue record, including: comparing each dialogue record in the third dialogue record with the second code segment to determine the accuracy of the content in each dialogue record, wherein the accuracy is used to describe the consistency between the original code segment that generated the content in each dialogue record and the second code segment; determining the dialogue records in each dialogue record whose accuracy is greater than or equal to an accuracy threshold as valid dialogue records; and verifying the second description information through the valid dialogue records when the number of valid dialogue records is greater than or equal to a preset number threshold.
[0065] In this embodiment of the application, since the second description information is automatically generated by the system based on the second code fragment, there may be inaccuracies or missing content. Furthermore, changing the first code fragment to the second code fragment will also affect the accuracy of the answers to questions recorded in some dialogue records in the historical dialogue records. Therefore, after generating the second description information, it is necessary to use the second description information and the third dialogue record to perform bidirectional verification between the second description information and the third dialogue record. First, the modified original code (i.e., the second code fragment) is used to verify the third dialogue record to determine whether the content in the third dialogue record is still valid (i.e., accurate), including whether the location information of the code fragment recorded in the third dialogue record matches the second code fragment. If a dialogue record in the third dialogue record is still valid (i.e., the accuracy is greater than or equal to the accuracy threshold), it means that the original code change (i.e., the first code fragment is changed to the second code fragment) has not affected the content in that dialogue record, that is, the answer to the question recorded in that dialogue record is still accurate. At this time, the dialogue record is marked as a valid dialogue record. Then, if the number of valid dialogue records is greater than or equal to a preset number threshold, it means that the historical dialogue records are sufficient to support accurate intelligent question answering. At this time, the valid dialogue records are used to perform reverse verification on the second description information to determine whether the content in the second description information is accurate or missing.
[0066] Through the above operations, when code changes trigger knowledge base updates, the consistency and accuracy of the knowledge base can be automatically verified through dual-effect checks. This avoids the problems of delayed updates of knowledge content in the knowledge base after the original code changes and the disconnection from the actual state of the original code, thereby improving the accuracy of the knowledge base and the reliability of intelligent question answering.
[0067] As an optional implementation, after determining the accuracy of the content in each dialogue record, the method further includes: identifying dialogue records with an accuracy less than an accuracy threshold as dialogue records to be verified; generating a first prompt message, wherein the first prompt message is used to prompt the target object to correct the dialogue record to be verified.
[0068] In this embodiment of the application, if a certain dialogue record in the third dialogue record is still invalid (i.e., the accuracy is less than the accuracy threshold), it indicates that the original code change (i.e., the first code segment is changed to the second code segment) has affected the accuracy of the content in the dialogue record. That is, the answer to the question recorded in the dialogue record is still inaccurate. At this time, the system automatically marks the dialogue record as a dialogue record to be verified and generates a first prompt message to prompt the target object to verify and correct the dialogue record to be verified.
[0069] As an optional implementation, after verifying the second description information through valid dialogue records, the method further includes: if the second description information fails verification, determining the description information that needs to be corrected in the second description information based on valid dialogue records; and correcting the description information that needs to be corrected.
[0070] In this embodiment, if the second description information does not contain description information of some or all of the code fragments recorded in the valid dialogue record, and / or the description information in the second description information is inconsistent with some or all of the code fragments recorded in the valid dialogue, then the verification of the second description information is confirmed to have failed. In this case, the system determines the description information that needs to be corrected (such as missing description information or inaccurate description information) in the second description information based on the valid dialogue record, and corrects the description information that needs to be corrected. It should be noted that the above correction is automatically executed by the system based on the second code fragment and the valid dialogue record, or it can be executed by the target object after the system notifies the target object; no specific limitation is made here.
[0071] As an optional implementation, determining the reliability of historical dialogue records based on the number of first dialogue records and the number of second dialogue records includes: determining the historical coverage of the target question by the historical dialogue records based on the number of first dialogue records, wherein the historical coverage is used to indicate the extent to which the answer to the target question is included in the historical dialogue records; determining the consistency between the first dialogue records and the original code by the ratio between the number of valid dialogue records in the second dialogue records and the number of second dialogue records; and determining the reliability by the product between the historical coverage and the consistency.
[0072] The aforementioned historical coverage can refer to the extent to which historical dialogue records cover the target question, and is used to quantify the sufficiency of historical dialogue records related to the target question (i.e., the sufficiency of experience with the target question). The higher the historical coverage, the more complete the historical dialogue records related to the target question, and the greater the possibility of generating an accurate answer to the target question through historical dialogue records.
[0073] The aforementioned consistency can be the degree of consistency between the first dialogue record and the original code, used to quantify the consistency between existing historical experience (i.e., the first dialogue record) and the original code. Higher consistency indicates more accurate historical experience and a greater likelihood of generating an accurate answer to the target question through historical dialogue records. In the application embodiment, consistency can be determined by the number of dialogue records for which two-way verification is performed, and the number of valid dialogue records determined by performing the two-way verification operation. For example, consistency can be determined in the following way:
[0074]
[0075] in, It refers to the consistency between the first dialogue record and the original code. It is the number of valid dialogue records in the second dialogue record. It represents the number of second-stage conversation records.
[0076] In this embodiment, the historical coverage of the target problem by historical dialogue records is determined based on the number of first dialogue records, thus quantifying the richness of experience of historical dialogue records with the target problem, i.e., the number of first dialogue records. Simultaneously, the ratio between the number of valid dialogue records in the second dialogue records and the total number of second dialogue records is determined as the consistency between the first dialogue records and the original code, thus quantifying the accuracy of historical dialogue records related to the target problem, i.e., the quality of the first dialogue records. Furthermore, the product of historical coverage and consistency is determined as reliability, thereby determining the interaction round threshold through the combined number and quality (i.e., reliability) of the first dialogue records. For example, the reliability of historical dialogue records can be determined using the following formula:
[0077]
[0078] in, It is the reliability of historical dialogue records. It's about historical coverage. It refers to consistency.
[0079] Through the above operations, the reliability of the answers to the target questions generated based on historical dialogue records is determined by comprehensively considering two dimensions: historical coverage and consistency. This approach takes into account both the richness and quality of historical experience data, which helps to dynamically set the threshold for autonomous interaction rounds. This enables dynamic and precise control over intelligent question answering and improves its reliability.
[0080] Optionally, determining the historical coverage of the target issue based on the number of first dialogue records includes: obtaining a pre-set coverage threshold; determining the ratio between the number of first dialogue records and the coverage threshold as a first ratio; and determining the minimum value between the first ratio and a preset first value as the historical coverage.
[0081] In this embodiment, a threshold for determining the richness of historical experience (i.e., a coverage threshold) is first obtained. Then, based on the coverage threshold and the number of first dialogue records, the richness of historical dialogue records for the target object (i.e., a first ratio) is determined, and the historical coverage is controlled within the range of [0,1]. The minimum value between the first ratio and the value 1 (i.e., a preset first value) is determined as the historical coverage. For example, the historical coverage can be determined in the following way:
[0082]
[0083] in, It's about historical coverage. It is the number of the first conversation records. It is a pre-set coverage threshold. It is the preset first value.
[0084] As an optional implementation, determining the interaction round threshold based on the reliability of historical dialogue records includes: obtaining the minimum and maximum interaction rounds of a pre-set target dialogue; determining the difference between the maximum and minimum interaction rounds as the interaction difference; determining the product between the interaction difference and the reliability as the first product; and determining the sum of the first product and the minimum interaction rounds as the interaction round threshold.
[0085] In this embodiment, a pre-set minimum number of interaction rounds is used as the benchmark for interaction rounds. Adjustments are made based on the reliability of historical dialogue records. For example, if the first dialogue record is nonexistent, the calculated reliability is 0, and the interaction round threshold is the pre-set minimum number of interaction rounds. If the first dialogue record consists of one or more dialogue records, an adjustment ratio (i.e., reliability) is determined based on the number of first dialogue records. Then, based on this adjustment ratio, the corresponding number of interaction rounds is increased based on the minimum number of interaction rounds to determine the interaction round threshold. For example, the interaction round threshold can be determined in the following way:
[0086]
[0087] in, It is the threshold for the number of interaction rounds. It is the minimum number of interaction rounds. It is the maximum number of interaction rounds. It refers to reliability.
[0088] As an optional implementation, Figure 3 This is a flowchart of the dual-source mutual verification intelligent operation and maintenance method according to an embodiment of this application, such as... Figure 3 As shown, the specific process is as follows:
[0089] In step S301, the system responds to the session creation instruction and automatically creates a new session (i.e., target dialogue) with the localized deployment of the large language model.
[0090] Step S302: The questioner describes the problem (i.e. the target problem) through the target account, and uses the problem description as the initial input of the conversation;
[0091] In step S303, the large language model analyzes the code repository to which the question belongs based on the functional module name corresponding to the question or the semantic information of the question. During the generation of DeepWiki, the system divides the DeepWiki chapters into corresponding security level areas according to the security level tags (such as public, internal, non-public, etc.) of the code files (i.e., the original code). Knowledge of different security levels is stored in isolated knowledge partitions. When loading knowledge, the large language model only loads the partitions that the questioner can access based on the questioner's access permission level.
[0092] Step S304: Check if DeepWiki (i.e., the first knowledge base) exists in the repository; if it exists, proceed directly to step S306; if it does not exist, continue to step S305.
[0093] Step S305: The large language model performs in-depth analysis of the code repository and automatically generates DeepWiki after de-identification processing;
[0094] Step S306: Dynamically trim the minimum necessary knowledge from DeepWiki based on the question description, and use the trimmed knowledge fragments (i.e., descriptive information) as the context information of the question. The dynamic trimming of minimum necessary knowledge includes the following processes: semantic analysis of the questioner's question to identify the knowledge category to which the question belongs (e.g., interface call category, configuration category, exception handling category, architecture category, security category, etc.); extraction of the corresponding knowledge chapter set from DeepWiki according to the knowledge category; construction of the minimum necessary knowledge fragment based on the content in this indicated chapter set, instead of loading the complete DeepWiki; and desensitization processing of the minimum necessary knowledge fragment according to the questioner's access permission level, identifying and replacing security-sensitive information (including keys, internal implementation of encryption algorithms, security verification logic details, etc.), replacing sensitive implementations with functional descriptive text.
[0095] Step S307: Load the ChatWiki (i.e., the second knowledge base) of the code repository.
[0096] Step S308: Dynamically calculate the dynamic threshold for manual access (i.e., the interaction round threshold) based on the last executed bidirectional verification operation and the problem description.
[0097] Step S309: The large language model analyzes and answers questions based on the knowledge in the trimmed DeepWiki and ChatWiki, combined with multiple rounds of dialogue with the questioner (i.e., at least one round of interactive operation);
[0098] Step S310: Determine whether the number of communication rounds (i.e., the number of rounds M already interacted) between the large language model and the questioner exceeds the dynamic threshold, and whether the current question has been resolved; if the number of communication rounds between the large language model and the questioner exceeds the dynamic threshold and the questioner has not confirmed the answer, then proceed directly to S312; if the number of communication rounds between the large language model and the questioner does not exceed the dynamic threshold and the questioner has not confirmed the answer, then continue to S311; if the number of communication rounds between the large language model and the questioner exceeds the dynamic threshold but the questioner has confirmed the answer, then end the current session and generate a dialogue record.
[0099] Step S311: The questioner repeatedly confirms and asks follow-up questions, continuing to interact with the Big Prophecy model;
[0100] In step S312, the system automatically triggers the review process, pulling the corresponding module manager (i.e., the target object) into the conversation; the module manager analyzes the problem and provides answers or troubleshooting directions in the conversation, and at the same time, during the analysis, marks the key files and key processes (i.e., reference code snippets for generating answers) in the source code (i.e., the original code).
[0101] Step S313: After the problem is solved (i.e., the answer to the problem is confirmed), the large language model automatically summarizes the context of this human dialogue and generates or updates the ChatWiki entry (i.e., the target dialogue record); the key code in the ChatWiki entry is located and cross-validated with the corresponding chapter in DeepWiki (i.e., the reverse verification step in the two-way verification operation). If inconsistencies are found, the verification difference is marked.
[0102] Simultaneously, when a change in the code repository is detected, a DeepWiki update is triggered. The system automatically performs a two-way verification between the updated DeepWiki section (i.e., the second description information) and all ChatWiki entries that reference that section (i.e., the third dialogue records). The system also compares the location of key code in the entries (i.e., each dialogue record of the third dialogue record) with the updated code (i.e., the second code snippets) to determine if the location is still valid. For entries whose location is still valid, they are automatically marked as valid entries (i.e., valid dialogue records). For entries whose location is invalid, they are automatically marked as pending verification (i.e., pending verification dialogue records), their search weight in subsequent Q&A is reduced, and the module leader is notified (i.e., the first prompt information is generated) for confirmation. After the module leader confirms, the ChatWiki entry is updated or the entry is confirmed to still be valid, and its search weight is restored.
[0103] When the number of valid entries in ChatWiki reaches a preset threshold (i.e., the preset quantity threshold), reverse verification is triggered. Key code for each entry (i.e., valid chat log) in ChatWiki is located, and its existence and consistency with the corresponding section (i.e., the second description information) in DeepWiki are verified. When multiple ChatWiki entries point to missing or insufficiently described code areas in DeepWiki, knowledge blind spots in DeepWiki (i.e., description information that needs correction) are identified. These blind spots are then fed back to the DeepWiki management module, triggering supplementary analysis of the code corresponding to the blind spots and updating DeepWiki (i.e., the second description information). Alternatively, when the information described in a ChatWiki entry is inconsistent with the information recorded in DeepWiki, it is marked as a potential code defect or document error (i.e., description information that needs correction) and submitted to the module manager for review.
[0104] Step S314: Correct the content of the marked verification difference (i.e., perform the target operation corresponding to the verification result).
[0105] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0106] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as read-only memory (ROM) / random access memory (RAM), magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0107] According to another aspect of the embodiments of this application, an intelligent question-answering apparatus is also provided. This intelligent question-answering apparatus can be used to implement the intelligent question-answering method provided in the above embodiments, and details already described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0108] Figure 4 This is a structural block diagram of an intelligent question-answering device according to an embodiment of this application, such as... Figure 4 As shown, the intelligent question-answering device includes: a first determining module 402, configured to, after creating a target dialogue for generating an answer to a target question in response to a session creation instruction from a target account, determine dialogue records related to the target question from historical dialogue records to obtain a first dialogue record, wherein the target dialogue includes at least one round of interaction, each round of interaction being used to generate an answer to the target question based on a first knowledge base and historical dialogue records, the target question being a question triggered by the target account in the current round of interaction, the first knowledge base storing descriptive information of original code, the original code being used to implement the operation indicated by the target question; a second determining module 404, configured to determine an interaction round threshold for the target dialogue based on the first dialogue record; and a triggering module 406, configured to trigger a review process when the number of interaction rounds M of the target dialogue is greater than the interaction round threshold and the target account has initiated the M+1th interaction, wherein the review process is used for the target object to generate an answer to the target question based on the original code, and M is an integer greater than 0.
[0109] In an exemplary embodiment, the second determining module determines the interaction round threshold of the target dialogue in the following manner: determining the last dialogue record included in the first dialogue record used to perform a two-way verification operation to obtain a second dialogue record, wherein the two-way verification operation is used to verify the consistency between the first knowledge base and the historical dialogue records; determining the reliability of the historical dialogue records based on the number of the first dialogue records and the number of the second dialogue records; and determining the interaction round threshold based on the reliability of the historical dialogue records.
[0110] In one exemplary embodiment, the apparatus further includes: an update module, configured to, before determining the last dialogue record included in the first dialogue record for performing the bidirectional verification operation and obtaining the second dialogue record, update the first description information in the first knowledge base based on the second code segment obtained by changing the first code segment in the original code, to obtain second description information, wherein the first description information is the description information of the first code segment; a third determination module, configured to determine at least one dialogue record in the historical dialogue records that has an association with the first code segment, to obtain a third dialogue record; and a first verification module, configured to verify the consistency between the second description information and the third dialogue record based on the second description information and the third dialogue record.
[0111] In an exemplary embodiment, the first verification module verifies the consistency between the second description information and the third dialogue record in the following manner: each dialogue record in the third dialogue record is compared with the second code segment to determine the accuracy of the content in each dialogue record, wherein the accuracy is used to describe the consistency between the original code segment that generated the content in each dialogue record and the second code segment; dialogue records with an accuracy greater than an accuracy threshold are determined as valid dialogue records; when the number of valid dialogue records is greater than or equal to a preset number threshold, the second description information is verified through the valid dialogue records.
[0112] In an exemplary embodiment, the first verification module is further configured to, after determining the accuracy of the content in each dialogue record, identify dialogue records with an accuracy less than an accuracy threshold as dialogue records to be verified; and generate a first prompt message, wherein the first prompt message is used to prompt the target object to correct the dialogue record to be verified.
[0113] In an exemplary embodiment, the first verification module is further configured to, after verifying the second description information through valid dialogue records, determine the description information that needs to be corrected in the second description information based on the valid dialogue records if the second description information fails verification; and correct the description information that needs to be corrected.
[0114] In an exemplary embodiment, the second determining module determines the reliability of the historical dialogue records by: determining the historical coverage of the target question based on the number of first dialogue records, wherein the historical coverage is used to indicate the extent to which the answer to the target question is included in the historical dialogue records; determining the consistency between the first dialogue records and the original code by the ratio between the number of valid dialogue records in the second dialogue records and the number of second dialogue records; and determining the reliability by the product of the historical coverage and the consistency.
[0115] In an exemplary embodiment, the second determining module determines the historical coverage of the target question by: obtaining a pre-set coverage threshold; determining the ratio between the number of first dialogue records and the coverage threshold as a first ratio; and determining the minimum value between the first ratio and a preset first value as the historical coverage.
[0116] In an exemplary embodiment, the second determining module determines the interaction round threshold by: obtaining the minimum and maximum interaction rounds of the target dialogue as preset; determining the difference between the maximum and minimum interaction rounds as the interaction difference; determining the product between the interaction difference and the reliability as the first product; and determining the sum of the first product and the minimum interaction round as the interaction round threshold.
[0117] In one exemplary embodiment, the apparatus further includes: a generation module, configured to generate a target dialogue record based on the target dialogue when the target dialogue is detected to have ended; and a second verification module, configured to verify the description information stored in the first knowledge base based on the target dialogue record, and execute a target operation corresponding to the verification result.
[0118] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0119] According to another aspect of the embodiments of this application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein the program executes the steps in any of the above method embodiments when it is run.
[0120] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as USB flash drives, ROMs, RAMs, portable hard drives, magnetic disks, or optical disks.
[0121] According to another aspect of the embodiments of this application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. The processor is configured to perform the steps of any of the method embodiments described above via the computer program. In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0122] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0123] According to another aspect of the embodiments of this application, a computer program product is also provided, which includes a computer program / instructions containing program code for performing the methods shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication component, and / or installed from a removable medium. When the computer program is executed by a central processing unit, it performs various functions provided in the embodiments of this application. The sequence numbers of the embodiments of this application above are merely descriptive and do not represent the superiority or inferiority of the embodiments.
[0124] In particular, according to embodiments of this application, the processes described in the various method flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts.
[0125] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.
[0126] The above are merely preferred embodiments of this application and are not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.
Claims
1. A method for intelligent question answering, characterized in that, include: After creating a target dialogue to generate an answer to a target question in response to a session creation instruction from the target account, a dialogue record related to the target question is determined from the historical dialogue record to obtain a first dialogue record. The target dialogue includes at least one round of interaction. Each round of interaction is used to generate an answer to the target question based on a first knowledge base and the historical dialogue record. The target question is the question triggered by the target account in the current round of interaction. The first knowledge base stores descriptive information of the original code, which is used to implement the operation indicated by the target question. The interaction round threshold of the target dialogue is determined based on the first dialogue record; If the number of rounds M in the target dialogue has been greater than the interaction round threshold, and the target account has initiated the (M+1)th interaction, a review process is triggered. The review process is used to generate the answer to the target question by the target object based on the original code, where M is an integer greater than 0.
2. The method according to claim 1, characterized in that, Determining the interaction round threshold of the target dialogue based on the first dialogue record includes: The last dialogue record used to perform the two-way verification operation is identified in the first dialogue record to obtain the second dialogue record, wherein the two-way verification operation is used to verify the consistency between the first knowledge base and the historical dialogue records. The reliability of the historical dialogue records is determined based on the number of the first dialogue records and the number of the second dialogue records; The interaction round threshold is determined based on the reliability of the historical dialogue records.
3. The method according to claim 2, characterized in that, Before determining the last dialogue record used to perform the bidirectional verification operation included in the first dialogue record and obtaining the second dialogue record, the method further includes: If a change is detected in the first code segment in the original code, the first description information in the first knowledge base is updated based on the second code segment obtained by changing the first code segment to obtain the second description information, wherein the first description information is the description information of the first code segment; In the historical dialogue records, at least one dialogue record that is associated with the first code segment is identified to obtain the third dialogue record; The consistency between the second description information and the third dialogue record is verified based on the second description information and the third dialogue record.
4. The method according to claim 3, characterized in that, Verifying the consistency between the second description information and the third dialogue record based on the second description information and the third dialogue record includes: Each dialogue record in the third dialogue record is compared with the second code segment to determine the accuracy of the content in each dialogue record, wherein the accuracy is used to describe the consistency between the original code segment that generated the content in each dialogue record and the second code segment; Dialogue records with an accuracy greater than or equal to an accuracy threshold are identified as valid dialogue records. If the number of valid dialogue records is greater than or equal to a preset threshold, the second description information is verified using the valid dialogue records.
5. The method according to claim 4, characterized in that, After determining the accuracy of the content in each of the dialogue records, the method further includes: Dialogue records whose accuracy is less than the accuracy threshold are identified as dialogue records to be verified. Generate a first prompt message, wherein the first prompt message is used to prompt the target object to correct the dialogue record to be verified.
6. The method according to claim 4, characterized in that, After verifying the second description information using the valid dialogue records, the method further includes: If the second description information fails verification, the description information that needs to be corrected is determined from the second description information based on the valid dialogue record; The description information that needs to be corrected is corrected.
7. The method according to claim 4, characterized in that, Determining the reliability of the historical dialogue records based on the number of the first dialogue records and the number of the second dialogue records includes: The historical coverage of the target question by the historical dialogue records is determined based on the number of the first dialogue records, wherein the historical coverage is used to indicate the extent to which the answer to the target question is included in the historical dialogue records; The ratio between the number of valid dialogue records in the second dialogue record and the total number of the second dialogue records is determined as the consistency between the first dialogue record and the original code; The reliability is determined by multiplying the historical coverage and the consistency.
8. The method according to claim 7, characterized in that, Determining the historical coverage of the target question by the number of the first dialogue records includes: Get the pre-set coverage threshold; The ratio between the number of the first dialogue records and the coverage threshold is determined as the first ratio. The minimum value between the first ratio and the preset first value is determined as the historical coverage.
9. The method according to claim 2, characterized in that, Determining the interaction round threshold based on the reliability of the historical dialogue records includes: Obtain the pre-set minimum and maximum number of interaction rounds for the target dialogue; The difference between the maximum number of interaction rounds and the minimum number of interaction rounds is defined as the interaction difference. The product between the interaction difference and the reliability is determined as the first product; The sum between the first product and the minimum number of interaction rounds is determined as the interaction round threshold.
10. The method according to claim 1, characterized in that, The method further includes: If the target dialogue is detected to have ended, a target dialogue record is generated based on the target dialogue. The description information stored in the first knowledge base is verified based on the target dialogue record, and the target operation corresponding to the verification result is executed.
11. A device for intelligent question answering, characterized in that, include: The first determining module is configured to, after creating a target dialogue for generating an answer to a target question in response to a session creation instruction from a target account, determine a dialogue record that is associated with the target question from historical dialogue records to obtain a first dialogue record. The target dialogue includes at least one round of interactive operations. Each round of interactive operations is used to generate an answer to the target question based on a first knowledge base and the historical dialogue records. The target question is a question triggered by the target account in the current round of interactive operations. The first knowledge base stores descriptive information of original code, which is used to implement the operation indicated by the target question. The second determining module is used to determine the interaction round threshold of the target dialogue based on the first dialogue record; The triggering module is used to trigger a review process when the number of rounds M in the target dialogue interaction is greater than the interaction round threshold and the target account has started the M+1th interaction. The review process is used to generate the answer to the target question by the target object based on the original code, where M is an integer greater than 0.
12. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method according to any one of claims 1 to 10.
14. 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 computer program, it implements the steps of the method according to any one of claims 1 to 10.
