Knowledge question answering method and device, electronic equipment and storage medium
By introducing a verification mechanism for target behavior publishing snapshots and knowledge reference information, the problems of inconsistent output and knowledge pollution in question-answering systems are solved, ensuring the accuracy and reliability of question-answering results and realizing controlled knowledge base updates.
Patent Information
- Application Number
- CN202611607047.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-16
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies cannot accurately pinpoint the behavior configuration and knowledge submission version during question-and-answer generation, leading to inconsistent output results, affecting accuracy and reliability. Furthermore, the entire process cannot be reproduced, resulting in issues such as knowledge contamination and unverifiable authorization.
By introducing target behavior publishing snapshots and target knowledge citation information, and generating candidate response information, the accuracy and reliability of the output content are ensured. Preset user thresholds and review conditions are set to avoid individual erroneous feedback from polluting the knowledge base.
It achieves reproducibility of question-and-answer processing logic, ensures the accuracy and reliability of output content, avoids erroneous modification of the knowledge base, and realizes controlled closed-loop knowledge governance.
Smart Images

Figure CN123178576A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of knowledge question answering technology, and in particular to a knowledge question answering method, apparatus, electronic device and storage medium. Background Technology
[0002] In scenarios such as on-site support for industrial equipment, software maintenance, and production fault troubleshooting, on-site personnel describe equipment malfunctions to the question-and-answer system using natural language. The system then retrieves troubleshooting procedures from its knowledge base and provides operational suggestions. After the on-site personnel execute these suggestions, they provide feedback on the results using natural language. However, the current system cannot accurately pinpoint the actual behavioral configurations (system prompts, model parameters, contextual strategies) and knowledge submission versions used when generating the response. This results in large models potentially outputting different results for the same input, and the rationality of the input knowledge operations can only be verified manually afterward. This affects the accuracy and reliability of the output content, and the entire process cannot be reproduced. Summary of the Invention
[0003] Therefore, it is necessary to provide a knowledge question-answering method, device, electronic device, and storage medium to address the aforementioned technical problems.
[0004] In a first aspect, embodiments of this application provide a knowledge question-answering method, the knowledge question-answering method comprising: In response to user question and answer requests, a snapshot of the target behavior is generated and target knowledge reference information is generated based on the target knowledge base. The context information corresponding to the question-and-answer request and the target knowledge reference information is input into the target large language model to obtain the candidate answer information output by the target large language model; Based on the target behavior release snapshot and the target knowledge reference information, the candidate response information is verified to obtain the verification result corresponding to the candidate response information; If the verification result indicates that the verification is successful, target response information is generated based on the candidate response information, and the target response information is output to the user to receive feedback information from the user on the target response information; The question-and-answer request, the target response information, and the feedback information are associated to obtain and store the knowledge question record to be reviewed corresponding to the question-and-answer request. When the number of pending knowledge question records corresponding to the stored question-and-answer requests reaches a preset user threshold and meets the preset knowledge review conditions, multiple pending knowledge question records are reviewed, and the target knowledge base is updated based on the review results.
[0005] Secondly, embodiments of this application provide a knowledge question-answering device, the knowledge question-answering device comprising: The data generation module is used to respond to user question and answer requests, generate target behavior publishing snapshots, and retrieve target knowledge reference information based on the target knowledge base; The model question answering module is used to input the question answering request and the context information corresponding to the target knowledge reference information into the target large language model to obtain the candidate answer information output by the target large language model; The response verification module is used to verify the candidate response information based on the target behavior published snapshot and the target knowledge reference information, and obtain the verification result corresponding to the candidate response information. The response feedback module is used to generate target response information based on the candidate response information when the verification result indicates that the verification is passed, and output the target response information to the user, so as to receive the user's feedback information on the target response information; The record generation module is used to associate the question-and-answer request, the target response information, and the feedback information to obtain and store the knowledge question record to be reviewed corresponding to the question-and-answer request. The review and update module is used to review multiple knowledge question records to be reviewed when the number of stored knowledge question records to be reviewed corresponding to the question and answer request reaches a preset user threshold and the preset knowledge review conditions are met, and to update the target knowledge base according to the review results.
[0006] Thirdly, embodiments of this application provide an electronic device, the electronic device comprising: Memory containing executable program code; and a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the knowledge question-and-answer method in the first aspect of the embodiments of this application.
[0007] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that causes a computer to execute the knowledge question-answering method of the first aspect of embodiments of this application. The computer-readable storage medium includes ROM / RAM, a magnetic disk, or an optical disk, etc.
[0008] Fifthly, embodiments of this application provide a computer program product that, when run on a computer, causes the computer to perform some or all of the steps of any of the methods of the first aspect.
[0009] Sixthly, embodiments of this application provide an application publishing platform for publishing computer program products, wherein when the computer program product is run on a computer, the computer performs some or all of the steps of any of the methods of the first aspect.
[0010] Compared with the prior art, the embodiments of this application have the following beneficial effects: This application provides a knowledge question answering method, apparatus, electronic device, and storage medium. In response to a user's question-and-answer request, it generates a target behavior publication snapshot and retrieves target knowledge reference information based on a target knowledge base. It inputs the context information corresponding to the question-and-answer request and the target knowledge reference information into a target large language model to obtain candidate response information output by the target large language model. Based on the target behavior publication snapshot and the target knowledge reference information, it verifies the candidate response information to obtain a verification result. If the verification result indicates that the verification passed, it generates target response information based on the candidate response information and outputs the target response information to the user to receive user feedback. It associates the question-and-answer request, the target response information, and the feedback information to obtain and store the knowledge question record to be reviewed corresponding to the question-and-answer request. When the number of stored knowledge question records to be reviewed corresponding to the question-and-answer request reaches a preset user threshold and meets preset knowledge review conditions, it reviews multiple knowledge question records to be reviewed and updates the target knowledge base based on the review results. This solution introduces a target behavior release snapshot, making the system configuration for each round of question-and-answer sessions immutable and reproducible. Simultaneously, it utilizes target knowledge reference information to lock documents and metadata under specific submission versions of the knowledge base, allowing for the reproduction of the knowledge content upon which the question-and-answer relies. After the model outputs candidate answers, a dual verification is performed based on the snapshot configuration and immutable knowledge reference information to verify the source and capability authorization of the model's output fragments, ensuring the accuracy and reliability of the output content. Furthermore, preset user thresholds and preset knowledge review conditions are set. Single-user feedback only generates a record awaiting review and does not directly modify the knowledge base. Only when evidence from multiple users is aggregated and all conditions are met will it enter the manual review process, and then the knowledge base is updated. This prevents individual erroneous feedback from contaminating the knowledge base, achieving controlled closed-loop knowledge governance. Attached Figure Description
[0011] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0012] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1 This is a flowchart illustrating a knowledge question-answering method provided in an embodiment of this application. Figure 1 ; Figure 2 This is a flowchart illustrating a knowledge question-answering method provided in an embodiment of this application. Figure 2 ; Figure 3 This is a flowchart illustrating a knowledge question-answering method provided in an embodiment of this application. Figure 3 ; Figure 4 This is a schematic diagram of the structure of a knowledge question-answering device provided in an embodiment of this application; Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0014] To better understand the above-mentioned objectives, features, and advantages of this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be noted that, unless otherwise specified, the embodiments and features of this application can be combined with each other. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0015] The terms "first" and "second," etc., used in the specification and claims of this application are used to distinguish different objects, rather than to describe a specific order of objects.
[0016] The terms “comprising” and “having”, and any variations thereof, in this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to such process, method, product, or device.
[0017] It should be noted that in the embodiments of this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0018] In scenarios such as industrial equipment field support, software maintenance, and production fault troubleshooting, field personnel describe equipment malfunctions to the question-and-answer system using natural language. The system then retrieves troubleshooting procedures from its knowledge base and provides operational suggestions. After the field personnel execute these suggestions, they provide feedback in natural language, such as "communication was restored after following the steps" or "no effect." In these scenarios, erroneous operations may affect production equipment, and incorrect attributions may contaminate authoritative knowledge. Therefore, the entire process of question-and-answer, suggestion, feedback, and knowledge iteration must be reproducible, auditable, and preventable.
[0019] Existing retrieval enhancement generation systems typically combine user questions, search fragments, and large language model outputs into an answer, and save the answer text or fuzzy knowledge sources. Some systems further provide features such as prompt word version management, dialogue evaluation, or "knowledge improvement based on user feedback."
[0020] The existing solutions mentioned above involve retrieval enhancement, suggestion version management, or feedback collection, but they fail to form the following closed-loop processing: model outputs are uniformly restricted to candidates, and formal facts can only be generated by deterministic procedures along a unidirectional chain of "formal knowledge submission—immutable knowledge reference—contract execution—explicit confirmation feedback—fact execution—governance candidate." Existing systems cannot determine the actual behavioral configuration and knowledge submission version used when responding, cannot determine in a machine-verifiable way whether knowledge is authorized for on-site operation, cannot deterministically bind natural language feedback to specific suggestions, and cannot maintain factual consistency during contract changes, request retries, and external service interruptions.
[0021] Specifically, the existing technology has the following problems: (1) Misalignment of authoritative sources: The historical summaries and capability statements generated by the model are used as facts; the model's claim that a certain piece of knowledge is executable does not constitute a machine-verifiable authorization, which may lead to content that does not meet the conditions for execution being converted into on-site operation instructions.
[0022] (2) Dual-dimensional version drift of behavior and knowledge: The model behavior configuration (hints, tools, parameters) and knowledge content change continuously, and it is impossible to determine the actual version used when answering afterwards, resulting in "the same answer cannot be reproduced" and "old feedback misevaluates new knowledge".
[0023] (3) Unverifiable authorization: It is impossible to distinguish between "the knowledge text exists" and "the knowledge is authorized to be used to generate and execute the contract". The lack of general descriptions of operation objectives, feedback patterns or security constraints may lead to incorrect execution.
[0024] (4) Feedback target guessing: The feedback is bound to the most recent message, the largest record number or text similarity. In long dialogue, multi-task and cross-dialogue scenarios, the wrong association is caused by the success rate statistics and knowledge modification.
[0025] (5) Lack of consistency in writing: When users edit drafts, change contracts, retry the network and submit concurrently, there are problems such as duplicate execution of records, partial record writing, or the contract on which the feedback is based being replaced.
[0026] (6) Single evidence knowledge pollution: Negative wording, repeated questioning, or a single execution failure are directly regarded as knowledge errors and automatically learned. Transient failures and error attribution will pollute authoritative knowledge. (7) Cross-system side effects are not idempotent: When local transactions are mixed with external repository calls, external timeouts cause local facts to roll back, or external objects (Issue / change requests) are recreated after the response is interrupted.
[0027] Therefore, a technical solution is needed that simultaneously fixes the model behavior version and knowledge version, converts answer suggestions into execution contracts with formal identity and knowledge authorization, deterministically associates user feedback with the contract, idempotently writes the information into traceable facts after the contract remains unchanged and the user has explicitly confirmed it, and restricts knowledge iteration to an evidence-based, auditable, and rollback-capable process.
[0028] To address all or part of the aforementioned technical problems, embodiments of this application provide a knowledge question-answering method, apparatus, electronic device, and storage medium. In response to a user's question-answering request, a target behavior publication snapshot is generated, and target knowledge reference information is retrieved and generated based on a target knowledge base. The context information corresponding to the question-answering request and the target knowledge reference information is input into a target large language model to obtain candidate response information output by the target large language model. Based on the target behavior publication snapshot and the target knowledge reference information, the candidate response information is verified to obtain a verification result. If the verification result indicates that the verification passed, target response information is generated based on the candidate response information and output to the user to receive user feedback. The question-answering request, target response information, and feedback information are associated to obtain and store the knowledge question record to be reviewed corresponding to the question-answering request. When the number of stored knowledge question records to be reviewed corresponding to the question-answering request reaches a preset user threshold and meets preset knowledge review conditions, multiple knowledge question records to be reviewed are reviewed, and the target knowledge base is updated based on the review results. This solution introduces a target behavior release snapshot, making the system configuration for each round of question-and-answer sessions immutable and reproducible. Simultaneously, it utilizes target knowledge reference information to lock documents and metadata under specific submission versions of the knowledge base, allowing for the reproduction of the knowledge content upon which the question-and-answer relies. After the model outputs candidate answers, a dual verification is performed based on the snapshot configuration and immutable knowledge reference information to verify the source and capability authorization of the model's output fragments, ensuring the accuracy and reliability of the output content. Furthermore, preset user thresholds and preset knowledge review conditions are set. Single-user feedback only generates a record awaiting review and does not directly modify the knowledge base. Only when evidence from multiple users is aggregated and all conditions are met will it enter the manual review process, and then the knowledge base is updated. This prevents individual erroneous feedback from contaminating the knowledge base, achieving controlled closed-loop knowledge governance.
[0029] It should be noted that the knowledge question-and-answer device can be a device capable of implementing a knowledge question-and-answer method. The knowledge question-and-answer device can be a physical device or a virtual device that can be mounted on other electronic devices.
[0030] In this embodiment, the knowledge-based question-answering system includes a runtime plane, a domain plane, and a control plane. The runtime plane is responsible for dialogue thread identity, checkpoints, long history pruning, round serialization, and event stream output, using a runtime checkpoint database. The domain plane is responsible for account permissions, server-side business scope, formal task identity, knowledge citations, contract execution, feedback facts, and knowledge governance candidates, using a domain database. The control plane is responsible for immutable behavior publishing objects, evaluation evidence, canary routing, activity version selection, and rollback, using a control database. The permissions of the three databases are isolated from each other. The formal branch of the versioned knowledge base serves as the authoritative source of the knowledge text.
[0031] like Figure 1 As shown, Figure 1 A flowchart of a knowledge question-answering method provided in this application embodiment, the method may include the following steps: 101. In response to the user's question and answer request, generate a snapshot of the target behavior and generate target knowledge reference information based on the target knowledge base.
[0032] In this embodiment, when the server receives a user Q&A request from the client, the control plane first selects a behavior version and determines the target behavior to be published in this session round by combining the gray-scale routing logic. The publication identifier of the snapshot is written into the dialogue checkpoint of the running plane. All subsequent processes of this Q&A round use the configuration parameters corresponding to the snapshot. Even if the system switches the activity version in the middle of the round, it will not replace the snapshot already bound in this round.
[0033] Furthermore, the domain plane reads the business scope parameters pre-confirmed by the server. These business scope parameters may include: project type identifier, project identifier, component identifier, and the scope reported by the client is not accepted. The retrieval module is then invoked to perform a retrieval on the target knowledge base, and target knowledge reference information is generated based on the retrieved metadata.
[0034] It should be noted that the target behavior release snapshot can be understood as calculating a cryptographic hash of a normalized list containing dialogue graph version, system prompts, tool contracts, model configuration, and context policy, generating a unique list digest as an immutable behavior release snapshot. This snapshot prohibits any replacement operation throughout the entire round's lifecycle and anchors the baseline environment for all behaviors in this round throughout the entire process.
[0035] It should be noted that the target knowledge reference information (KRef) is a frozen reference pointing to a specific document and its version metadata within a specific commit of a versioned knowledge base. Here, K represents "knowledge" and Ref represents "reference". The system only identifies knowledge that has been successfully retrieved in the formal schema search, matched dimension-by-dimensionally with the business scope confirmed by the server, and whose metadata verification has passed as KRef. A KRef consists of at least a knowledge base identifier, a complete commit hash, a document path or stable document identifier, a source type, a business tag snapshot, a capability authorization set, and a schema version. The knowledge it references is uniquely identified by "knowledge base identifier + complete commit hash + document path or stable document identifier". Once a KRef is generated, none of its fields can be modified in situ. When the knowledge text, tags, or capability authorization change, a new repository commit and a new KRef must be generated. The old KRef still points to the original commit, thus reproducing the original knowledge content; hence, it is called an immutable knowledge reference.
[0036] 102. Input the context information corresponding to the question-and-answer request and the target knowledge reference information into the target large language model to obtain the candidate response information output by the target large language model.
[0037] In this embodiment, after obtaining the target knowledge reference information, the knowledge document text and metadata of the corresponding knowledge base submission version can be extracted from the target knowledge reference information and assembled into a context fragment for use by the large model. The runtime plane encapsulates the tool call return content into an untrusted envelope structure before sending it into the model. The historical dialogue summary of the runtime plane belongs to the untrusted context and cannot be used to create formal business objects; it is only used as model input material. After concatenating the user's question-and-answer request and context information, they are input into the target large language model. The target large language model can be a large language reasoning model deployed on the server side, which receives user questions and knowledge context, and generates natural language output. The model itself does not have the authority to modify formal business objects or modify the knowledge base. The target large language model can combine context information to perform retrieval and reasoning on the user's question-and-answer request in the knowledge base, thereby obtaining and outputting candidate response information. The candidate response information may contain the answer text and may also contain the operation instructions, execution steps, expected observations, and security constraints output by the model. The candidate response information is the raw output that has not been verified and is not directly used as the final response.
[0038] 103. Based on the target behavior release snapshot and target knowledge reference information, verify the candidate response information and obtain the verification result corresponding to the candidate response information.
[0039] In this embodiment, after obtaining candidate response information, it is necessary to verify the candidate response information to see if it is reasonable and accurate, and whether it can answer the user's question and answer request. Therefore, the candidate response information can be verified based on the tool contract, response mode, verification strategy, etc., specified in the pre-fixed target behavior release snapshot, as well as the business tags, capability authorization set, and referenced original knowledge carried by the target knowledge reference information, to obtain the verification result. The verification result is divided into verification passed and verification failed. Verification failed means that the candidate response has problems such as fragment forgery, illegal source, and capability overreach. Verification passed means that the text fragment, source basis, and capability authorization of the candidate response all meet the constraints and can be further generated to generate an external response.
[0040] In some embodiments, the verification process may include two layers of core verification logic: The first step is precise fragment verification: traverse all operation instructions, execution steps, expected observations, and security constraints within the candidate response information; each complete string must be able to find a completely matching content in the candidate response text itself, or in the original knowledge base fragment pointed to by the target knowledge reference information; if any fragment cannot be matched, the verification is directly judged as failing.
[0041] The second is source and capability verification: on the one hand, source proof is verified, and conclusions inferred by the model without source are directly rejected; on the other hand, closed-world knowledge capability gate verification is performed: all capabilities to be used in the candidate response must be explicitly declared in the capability authorization set of the target knowledge reference information; if no explicit authorization is declared, it is determined to be unauthorized, and it is forbidden to infer authorization from document title, directory name, model text.
[0042] If both checks are satisfied, the check result is "check passed"; if either check is not satisfied, the check result is "check failed". In the event of a check failure, the plain text response can be retained, but no formal execution entity will be generated.
[0043] 104. If the verification result indicates that the verification is successful, generate the target response information based on the candidate response information and output the target response information to the user to receive the user's feedback on the target response information.
[0044] In this embodiment, if the verification result is successful, target response information is generated for the user based on the candidate response information. This target response information can be a specific execution contract used to record operation objectives, steps, security constraints, KRef lists, etc. Simultaneously, a formal identity chain is built internally to persistently execute the contract. The server can return the target response information to the user's client for display. After receiving the target response information, the user can submit feedback information, which the server receives. This feedback information can include error correction, problem description, problem evidence, etc. The feedback information is user-side input and needs to undergo parsing and explicit confirmation processes to become credible and valid feedback evidence.
[0045] 105. Associate the question-and-answer request, the target answer information, and the feedback information to obtain and store the knowledge question record to be reviewed corresponding to the question-and-answer request.
[0046] In this embodiment, after receiving feedback information, the trusted structured feedback information can be bound and associated with the original question-and-answer request, the target response information output externally, the target behavior release snapshot identifier used in this round, and the target knowledge reference information to form a knowledge question record to be reviewed. The knowledge question record to be reviewed is then written into the domain database for persistent storage. Specifically, the knowledge question record to be reviewed can record the question type, evidence text, and target path pointing to the knowledge base. The knowledge question record to be reviewed is an intermediate evidence object that has not yet triggered changes to the knowledge base. The record is generated by a single user feedback and will not directly modify the target knowledge base.
[0047] It should be noted that when generating knowledge question records to be reviewed, the minimum payload is used, and all redundant dialogue content is not stored; evidence fragments must come from confirmed feedback execution results, and the evidence pointing path must strictly match the document path corresponding to the target knowledge reference information; for new evidence with the same knowledge base path and the same question type, deduplication will be performed to avoid creating multiple duplicate knowledge question records to be reviewed, and new evidence will be appended to the existing record.
[0048] 106. When the number of pending knowledge question records corresponding to the stored question-and-answer requests reaches the preset user threshold and meets the preset knowledge review conditions, multiple pending knowledge question records are reviewed, and the target knowledge base is updated according to the review results.
[0049] In this embodiment, the server continuously counts the number of knowledge question records under the same target document path and the same question type, determining whether a preset user threshold has been reached. This preset user threshold is a pre-configured evidence quantity threshold, representing the required number of valid feedback evidence from different users. Simultaneously, it verifies whether all preset knowledge review conditions are met. These conditions may include: the question type belongs to a verified method type that allows for changes; the target knowledge reference information is unique; the knowledge question record already exists; the responsibility scope metadata is complete; and the submitted version of the official knowledge base branch is consistent with the complete submission hash in the target knowledge reference information bound to the record to be reviewed. When the number of knowledge question records to be reviewed reaches the preset user threshold, and all preset knowledge review conditions are met, evidence from multiple knowledge question records to be reviewed can be aggregated to generate a knowledge change candidate. This candidate generates an independent candidate branch, solidifies the structured business scope, and initiates manual review. If the manual review passes, the target knowledge base is updated, and the change is merged into the official target knowledge base branch. If the manual review rejects the change, the candidate is abandoned, and the target knowledge base is not updated. If neither the threshold nor the review conditions are met simultaneously, the knowledge issue record to be reviewed will be maintained in storage, and the knowledge base change process will not be initiated.
[0050] This application provides a knowledge question answering method. In response to a user's question-and-answer request, it generates a target behavior publication snapshot and retrieves target knowledge reference information based on a target knowledge base. The method inputs the context information corresponding to the question-and-answer request and the target knowledge reference information into a target large language model to obtain candidate response information output by the target large language model. Based on the target behavior publication snapshot and the target knowledge reference information, the method verifies the candidate response information to obtain a verification result. If the verification result indicates that the verification passed, it generates target response information based on the candidate response information and outputs the target response information to the user to receive user feedback. The method associates the question-and-answer request, the target response information, and the feedback information to obtain and store the knowledge question record to be reviewed corresponding to the question-and-answer request. When the number of stored knowledge question records to be reviewed corresponding to the question-and-answer request reaches a preset user threshold and meets preset knowledge review conditions, the method reviews multiple knowledge question records to be reviewed and updates the target knowledge base based on the review results. This solution introduces a target behavior release snapshot, making the system configuration for each round of question-and-answer sessions immutable and reproducible. Simultaneously, it utilizes target knowledge reference information to lock documents and metadata under specific submission versions of the knowledge base, allowing for the reproduction of the knowledge content upon which the question-and-answer relies. After the model outputs candidate answers, a dual verification is performed based on the snapshot configuration and immutable knowledge reference information to verify the source and capability authorization of the model's output fragments, ensuring the accuracy and reliability of the output content. Furthermore, preset user thresholds and preset knowledge review conditions are set. Single-user feedback only generates a record awaiting review and does not directly modify the knowledge base. Only when evidence from multiple users is aggregated and all conditions are met will it enter the manual review process, and then the knowledge base is updated. This prevents individual erroneous feedback from contaminating the knowledge base, achieving controlled closed-loop knowledge governance.
[0051] like Figure 2 As shown, Figure 2 A flowchart of a knowledge question-answering method provided in this application embodiment, the method may further include the following steps: 201. In response to the user's question and answer request, extract multiple preset configuration fields from the trusted configuration library of the control plane.
[0052] 202. Concatenate and hash multiple preset configuration fields to obtain a summary of the behavior list corresponding to the multiple preset configuration fields, and obtain the corresponding target behavior release snapshot based on the behavior list summary.
[0053] In this embodiment, the behavior publishing snapshot is an immutable rule anchor point for the entire lifecycle of this round of dialogue. It is generated entirely by the behavior publishing controller in the control plane and does not rely on client input at all. The behavior publishing controller can directly read multiple preset configuration fields from the current object to be published, such as dialogue graph version, system prompt message, module coverage configuration, tool contract, model configuration, context strategy, response mode, and evaluation strategy. All fields come from the trusted configuration library of the control plane and do not accept configuration parameters submitted by the client.
[0054] Then, all the collected preset configuration fields can be arranged in ascending order by field name, uniformly using UTF-8 character encoding, and uniformly representing null values, numbers, and arrays according to serialization rules. They are then concatenated using a fixed delimiter to generate a unique, unambiguous byte sequence, completely eliminating non-semantic differences caused by different serialization frameworks. Next, a SHA-256 hash operation can be performed on the normalized byte sequence to obtain a 256-bit behavior list digest H_B = SHA-256(Canon(M)). This behavior list digest uniquely identifies the current complete set of behavior configurations. Here, M represents the behavior release list, whose value is formed by the behavior release controller reading the aforementioned configuration fields from the current object to be released; Canon represents normalization processing, and Canon(M) represents a unique byte sequence generated by arranging M in ascending order by field name, using uniform character encoding, uniformly representing null values and numbers, and using a fixed delimiter rule; SHA-256 represents a secure hash algorithm that outputs a 256-bit result; H represents the hash value, the subscript B represents the behavior, and H_B uniquely represents the behavior list digest.
[0055] Furthermore, the system can automatically verify that the same normalized list corresponds to only one behavior publishing object. As long as any field affecting the execution semantics is modified, a brand new publishing object and a corresponding new summary will be generated. All state transitions are only implemented by appending state transition records, and the content of existing objects that have already been generated is never modified. When a new user Q&A request arrives, the release snapshot parser first performs grayscale routing determination based on the stable routing key generated by the server: It calculates the SHA-256 hash SHA-256(release_id||":"||route_key) by combining the grayscale version identifier and the stable routing key. The first 8 bytes are then modulo 10000. If the result is less than the grayscale percentage × 100, the system routes to the grayscale version; otherwise, it routes to the active version. Here, release_id represents the grayscale release version identifier, where release means "release" and id means "identifier." Its value is generated by the behavior release object in the control plane and persisted in the release record. route_key represents the stable routing key, where route means "route" and key means "key." Its value is generated by the server by combining the fixed route namespace and the authenticated user identifier according to a predetermined format. The symbol || indicates concatenating byte sequences from left to right. The colon is a fixed program separator, not taken from user input. SHA-256 represents a secure hash algorithm that outputs a 256-bit result. Finally, the selected release identifier is written to the runtime checkpoint, thus obtaining the target behavior release snapshot. This snapshot will last throughout the entire dialogue round. Any changes to the active version of the control plane during the round will not replace the behavior release snapshot that has been fixed in this round.
[0056] 203. Read the business project information from the server through the domain plane, and perform multi-level retrieval in the target knowledge base based on the business project information to obtain multiple candidate documents.
[0057] 204. Extract metadata fields from multiple candidate documents, validate the metadata fields, and generate target knowledge reference information based on the validated entries.
[0058] In this embodiment, the target knowledge reference information is a frozen authoritative reference to a specific commit in the versioned knowledge base. It is generated entirely by the domain plane, with all fields derived from knowledge documents and accompanying metadata of the same version. The domain plane directly reads the business project information pre-saved and confirmed by the server. This business project information may include: project type identifier, project identifier, and component identifier, etc., completely independent of the scope declaration submitted by the client, thus avoiding the risk of the client tampering with the business scope from the source. Multi-level retrieval can then be performed. Specifically, retrieval can be executed sequentially in three modes. The retrieval order only determines the order of candidate returns and does not affect subsequent authorization decisions: the discovery mode allows documents with incomplete metadata to participate in candidate ranking; the reference mode requires all documents to have immutable metadata, and the metadata must intersect with the confirmed business scope; the formal mode requires that business tag snapshots be precisely bound dimension-by-dimensional to the confirmed scope, and the component dimension supports parent-child hierarchical coverage.
[0059] Furthermore, for the content matched in the official mode, fixed metadata fields are extracted sequentially from the corresponding versioned knowledge base commit: the knowledge base identifier is taken from the trusted knowledge base registry, the complete commit hash is taken from the commit object pointed to by the official branch at the time of retrieval, the document path / stable document identifier is taken from the directory entry of the commit or the metadata of the same version, and the source type, business tag snapshot, capability authorization set, and mode version are taken from the metadata of the commit located in the same location as the document. At the same time, the tags are verified to be consistent with the stable classification dictionary and the document status is valid. If any field is missing or the verification is inconsistent, no official KRef will be generated. After all fields pass the verification, the above metadata fields are combined into a structured KRef object. After generation, all fields are prohibited from being modified in place. When any changes occur to the knowledge text, tags, or capability authorization, a new version commit and a brand new KRef must be generated. The old KRef always points to the original commit content to ensure that historical knowledge can be 100% reproduced. The multiple KRefs generated in this round are sorted and deduplicated according to <Knowledge Base Identifier, Submission Hash, Document Identifier / Path>. After normalization and serialization, the hash is calculated to obtain the knowledge baseline fingerprint, so that the execution contracts generated later can accurately point to the specific knowledge content when the suggestion was generated. Even if the knowledge content of the same path is overwritten later, the original knowledge version can be traced back through the fingerprint.
[0060] 205. Input the context information corresponding to the question-and-answer request and the target knowledge reference information into the target large language model to obtain the candidate response information output by the target large language model.
[0061] 206. Extract fields from candidate response information to obtain a set of structured fields. Based on the target knowledge reference information, perform full string matching on each structured field in the set of structured fields to obtain the string verification result corresponding to the candidate response information.
[0062] In this embodiment, after obtaining the candidate response information, it is necessary to verify the candidate response information. Verification can be performed from multiple dimensions. First, structural fields need to be extracted. Specifically, multiple structured fields can be accurately split from natural language text: whether it is executable, operation target, execution steps, expected observation, and security constraints, to obtain a set of structural fields. All extraction results are only used as input for subsequent verification and will not directly generate any formal entity. Then, full string verification can be performed. Specifically, full string matching can be performed on each segment of the extracted structural field set. It is required that the complete string of each operation instruction, each step description, each expected observation, and security constraint must appear 100% in the system prompt locked by the current behavior release snapshot, or in the knowledge original text fragment pointed to by the current KRef. If the string of any field cannot find a completely matching original text within the specified range, the formal verification channel is directly closed, no formal entity is created, and only ordinary answers and citations are returned to the user.
[0063] 207. Determine the source information for the candidate response information, publish a snapshot based on the target behavior, verify the source information, and obtain the source verification result corresponding to the candidate response information.
[0064] In this embodiment, source proof verification can also be performed. Specifically, the system automatically generates source information for candidate response information, recording information such as source type, source citation, action subject, creation subject, authority level, and confirmation status. Operations explicitly required from the user must satisfy the following conditions: the action subject is the current task owner, the authority level is manual confirmation, and for manually confirmed knowledge records, the action subject must be the owner, maintainer, or manager. The action subject and the creation subject must be completely identical. All source proofs generated solely by the model are directly judged as verification failures.
[0065] 208. If both the string validation result and the source validation result indicate that the validation passed, determine the target capability item.
[0066] 209. Based on the target knowledge reference information, retrieve whether there is any authorization statement information corresponding to the target capability item.
[0067] 210. If authorization statement information exists, generate target response information.
[0068] In this embodiment of the application, if at least one verification fails after the string verification and source proof verification are completed, the process can be terminated directly. Only if both verification results pass will subsequent operations continue. At this time, an immutable four-layer formal identity chain can be created: the task belongs to the current user, the task thread is bound to the current dialogue and the root message, the suggested candidate is bound to the extraction result of the previous step, the formal suggestion is bound to the original answer generated by the model, all entities are assigned stable public identifiers, and the corresponding source proof information is associated throughout the process.
[0069] Furthermore, the target capability items required to generate the execution contract can be determined. These target capability items may include: execution procedures, operational objectives, feedback patterns, security constraints, authoritative sources, etc. Each item is compared with the explicit capability authorization set in all KRefs in this round, strictly following the rule of "undeclared is unauthorized", and absolutely no implicit authorization is inferred from the directory name, document title or model description. Once all capability items are matched and passed, the complete execution contract is persistently generated, that is, the target response information is obtained.
[0070] In some embodiments, if any capability is missing, a blocking record that records the list of missing capabilities is persistently generated; the execution contract and the blocking record are completely mutually exclusive for the same formal proposal and are all persisted with idempotent keys; replay of the same candidate directly returns the existing execution contract or blocking record; fingerprint conflicts directly reject writing.
[0071] 211. Output the target response information to the user in order to receive the user's feedback on the target response information.
[0072] In some embodiments, after a user has responded to the target answer, they may later discover that the feedback is incorrect. The user can then actively correct the error. Therefore, in response to the user's correction of the feedback, a new feedback correction message is created. Based on the feedback correction message, a confirmation record and an associated invalidation statement are generated. The associated invalidation statement indicates that the feedback message of the target answer is replaced by the feedback correction message. The question-and-answer request, the target answer, and the feedback correction message are associated to generate a new knowledge question record to be reviewed corresponding to the question-and-answer request.
[0073] It should be noted that after a user updates their feedback, the system does not allow direct overwriting or modification of the original feedback record. The entire process employs an immutable append-based error correction design, permanently storing all historical traces. The specific processing flow is divided into two core stages: writing error correction and reading the projection. Error correction writing phase: After a user initiates an error correction request, the system does not open and edit existing submitted feedback records. Instead, in response to the user's correction operation, it directly generates a completely new feedback correction message, binding it to the current user's identity and the corresponding original execution contract, without touching any previous historical data. The system can then generate an independent explicit confirmation record for this feedback correction message. Subsequently, through a single-transaction idempotent materialization process, it generates a completely new alternative execution attempt, alternative execution result, and new execution-related facts. All new entities have independent, stable, and unique identifiers, completely isolated from the old entities.
[0074] In addition, although previous feedback information will not be deleted or overwritten, if the user has sent new feedback information, the previous feedback information needs to be declared invalid. Specifically, the system can synchronously generate an associated invalidation declaration, clearly stating that the original old execution associated fact has been replaced and directly pointing to the newly generated execution associated fact. The invalidation state is the final state, and the same execution associated fact is only allowed to be marked as invalid once. Repeated revocation and secondary modification of the invalidation state are absolutely not allowed.
[0075] During the projection reading phase: When reading the full data of this feedback, the association resolver will not directly return the latest single result. Instead, it will use the original feedback event as the anchor point to re-complete the full-link verification and association projection: First, it will re-verify the identity and legality of the original event snapshot, task member relationships, execution attempts, and execution results to ensure that all entities have not been tampered with. Then, it will project all association records under this anchor point, including all historical feedback, new associations generated during each correction, and all terminating failure facts, completely restoring the entire correction path. Based on the projection results, it will automatically return three states: If only one currently valid target remains, it will directly return the "re-verifiable" state, displaying the latest corrected feedback content; if multiple valid targets exist, it will directly return the ambiguous state, never arbitrarily sorting or automatically selecting the "latest" result to avoid giving users incorrect information; if any authoritative entity fails to load, it will directly return the "incomplete projection" state, refusing to return incomplete results.
[0076] This mechanism completely preserves the entire chain of original feedback and error correction, and can fully explain at any point in time why a certain governance evidence is effective and why it was replaced by a subsequent error correction version. It completely avoids the problem of "original feedback being overwritten and historical operation traces disappearing", and ensures the auditability and traceability of the entire knowledge governance process from the root.
[0077] 212. Associate the question-and-answer request, the target answer information, and the feedback information to obtain and store the knowledge question record to be reviewed corresponding to the question-and-answer request.
[0078] 213. When the number of knowledge question records to be reviewed corresponding to the stored question-and-answer requests reaches the preset user threshold and the preset knowledge review conditions are met, multiple knowledge question records to be reviewed are reviewed, and the target knowledge base is updated according to the review results.
[0079] In this embodiment, the description of steps 212-213 is the same as the detailed description of steps 105-106 in the above embodiments, and will not be repeated in this embodiment.
[0080] like Figure 3 As shown, Figure 3 A flowchart of a knowledge question-answering method provided in this application embodiment, the method may further include the following steps: 301. In response to the user's question and answer request, generate a snapshot of the target behavior and generate target knowledge reference information based on the target knowledge base.
[0081] 302. Input the context information corresponding to the question-answering request and the target knowledge reference information into the target large language model to obtain the candidate response information output by the target large language model.
[0082] 303. Based on the target behavior release snapshot and target knowledge reference information, verify the candidate response information and obtain the verification result corresponding to the candidate response information.
[0083] 304. If the verification result indicates that the verification is successful, generate the target response information based on the candidate response information and output the target response information to the user to receive the user's feedback on the target response information.
[0084] In the embodiments of this application, the description of steps 301 to 304 is the same as the detailed description of steps 101 to 104 in the above embodiments, and will not be repeated in the embodiments of this application.
[0085] 305. Based on the candidate condition chain, filter the response information in the historical question and answer content library to determine at least one response information corresponding to the feedback information.
[0086] 306. Determine the target response from at least one response, and associate the question-and-answer request, the target response, and the feedback information to obtain and store the knowledge question record to be reviewed.
[0087] In this embodiment of the application, it is conceivable that users may not use the large language model for intelligent question answering only once. Therefore, the user's feedback information may be feedback on the answers to previous dialogues. Thus, after receiving the user's feedback information, it is necessary to further accurately bind the user's operation feedback to the corresponding execution contract, thereby preventing the user from mistakenly submitting the fault feedback of device A to the work order of device B, and completely eliminating the risk of feedback data polluting the knowledge base.
[0088] Specifically, all invalid candidates that do not meet the admission criteria can be filtered out first, narrowing the range of choices from the source. The feedback target parser will only query candidate chains that simultaneously meet all five hard conditions: (1) Candidates must belong entirely to the currently authenticated user, and access to other users' operation records is absolutely not allowed; (2) The supporting tasks corresponding to the candidates are in an open and feedback-enabled state, and tasks that have been closed for archiving are directly excluded; (3) The task thread in which the candidate is located is in a valid state and has not been marked as deleted or invalid; (4) The formal suggestions corresponding to the candidates have passed double verification and are not unverified content generated by the model; (5) Candidates that have generated a valid execution contract are directly excluded if there is no blocking record of execution contract.
[0089] All candidates that do not meet the criteria will be filtered out and will not proceed to the subsequent matching process.
[0090] Then, the binding is prioritized within the current conversation context, which is the most accurate matching scenario. If, after filtering through the aforementioned candidate condition chain, only one valid response remains in the current conversation, the system automatically binds the user's feedback to this single execution contract, requiring no manual selection from the user. The user can simply click "Completed" to submit, resulting in zero-burden interaction. If multiple valid responses exist in the current conversation, the system will not automatically select one but will return a very simple clarifying question, such as "Did you want to provide feedback on the E12 communication fault troubleshooting steps?", allowing the user to make a single selection confirmation. The system will absolutely not use any vague rules to automatically guess the binding target.
[0091] In some embodiments, when a user does not submit feedback in the current conversation, but instead submits feedback information from a previous response in a new conversation window several days later, the system will not use natural language such as "the problem you mentioned before" to match historical records, nor will it select the most recent one by timestamp. Instead, it will rely solely on the deterministic intersection rules of structured business identifiers to recall historical candidates for the same user. (1) Rule 1: If the feedback submitted by the user contains a project identifier and the historical candidate also contains a project identifier, there must be a clear intersection between the two project identifiers for recall to be allowed; (2) Rule 2: If neither party has a project identifier, but both have component identifiers, there must be a clear intersection between the two component identifiers. The parent-child hierarchy of the components is also considered a valid intersection (for example, "Chiller Unit" and "Chiller Unit X3 Communication Board" are at the parent-child level and are considered a valid intersection). (3) Rule 3: If the business scope identifier of either party is empty, the historical recall will be stopped directly and no candidates will be returned.
[0092] The entire process avoids using uncontrollable rules such as natural language similarity, timestamps, record insertion order, and maximum record ID to select targets, thus completely eliminating the basic error of "the system automatically binding feedback to the error history work order".
[0093] Finally, based on the number of candidates selected in the previous steps, the four completely mutually exclusive results are output deterministically, without any ambiguous intermediate states: Automatic binding: If there is exactly one trustworthy candidate after filtering, the feedback binding is completed directly, and the user submits the data and the process directly enters the subsequent execution fact generation process. Confirmation Required: After filtering, 2-3 reliable candidates are obtained. The system then returns to a very simple selection and confirmation interface, allowing the user to select and confirm the target. Clarification Required: If more than 3 candidates are obtained after screening, a clarification question will be returned directly, allowing the user to supplement the project or component identifier to narrow down the scope; New task candidate: If no credible candidate is found, a new unbound task draft will be created directly, and the user will be explicitly asked to provide corresponding operation suggestions and project information. We will never arbitrarily find a historical candidate to bind to.
[0094] After obtaining the target response information that matches the feedback information through the above steps, the question-and-answer request, the target response information, and the feedback information can be associated to obtain and store the knowledge question record to be reviewed.
[0095] In some embodiments, throughout the entire feedback chain, it is necessary to completely eliminate risks such as "feedback being tampered with midway, duplicate submissions, or partial writing," and to associate and bind the feedback obtained from the deterministic parsing in the previous step to ensure that it can be securely implemented as an immutable formal execution fact, with no room for ambiguity throughout the process. Therefore, after the user confirms the feedback information, an editable intermediate draft is first created to fundamentally avoid the risk of tampering caused by the user directly submitting raw data. The system does not directly receive the user's input feedback content and write it directly, but instead reloads the already bound execution contract from the domain database, solidifying all nine core fields—contract business version, two mode versions, operation objective, execution steps, feedback requirements, expected observations, security constraints, and KRef—into the draft, completely eliminating interference from non-semantic fields such as database identifiers and creation time. Then, after normalizing and serializing these nine fields, the contract semantic fingerprint H_C is calculated. This fingerprint uniquely identifies the semantic content of the current execution contract, and the fingerprint will be completely different if the contract content changes in any subsequent stage. The draft allows users to edit and supplement their own execution results. Each modification automatically increments the draft revision number, and all modification traces are fully available.
[0096] Furthermore, the draft is bound to an irrefutable user confirmation credential to prevent the user's confirmation action from being "drifted" to subsequent draft versions. The confirmation record generated by the system will simultaneously bind three fields: draft identifier, the specific revision number at the time of user confirmation, and the identity of the confirmer. Even if the user subsequently edits the draft and generates a new revision number, the previous confirmation action will only strictly correspond to the version confirmed at that time, and will never be automatically applied to subsequent edited versions. It's equivalent to taking a "confirmation snapshot" with an identity watermark for the draft that the user saw at that time, completely eliminating the risk of "the user confirms version A, but the backend secretly replaces it with version B and submits it."
[0097] At the moment the user clicks submit, a final round of end-to-end consistency verification is performed to prevent the contract from being tampered with during the gap between user confirmation and submission. Upon receiving the submission request, the system first locks the current draft and verifies that the draft owner's identity, the user-provided expected revision number, and the previously generated confirmation record all match perfectly to prevent unauthorized submissions. Instead of relying on cached data in the draft, the system reloads all four core entities—task, thread, suggestion, and execution contract—from the database using the official identity, verifying that all foreign key relationships are completely legal and valid. Based on the reloaded latest execution contract, the contract semantic fingerprint H_C is recalculated and compared with the fingerprint previously saved in the draft. If they do not match, a "Contract has changed, please reconfirm" error is returned, rejecting the submission and completely intercepting any mid-process tampering of the execution contract.
[0098] The semi-structured feedback content in the draft is atomically converted into a formal persistent entity in the domain database in one go, ensuring that all data is either written successfully or rolled back completely. Based on contract identity and business version, the system selects a unique materializer from the static registry to convert the user feedback content in the draft into four categories of structured standard business data: executed steps, changes, observations, and measurements. All write operations are placed within the same outer database transaction, sequentially writing the feedback message, execution attempt, execution result, and execution-related facts, finally updating the draft status to "committed." If any step fails, the entire transaction is immediately and completely rolled back, absolutely preventing partial write exceptions such as "feedback message written successfully, but execution result not written."
[0099] Finally, the duplicate commit problem in a distributed environment is completely solved. Even if a user accidentally clicks the submit button 10 times consecutively, only one official execution fact will be generated, ensuring no duplicate writing. Based on the globally unique commit-level idempotent key K generated when the user submits, a stage idempotent key K_stage is derived for each materialization stage. The key for each stage is generated by concatenating a fixed operation range constant, the commit-level idempotent key K, and the stage name into a hash, preventing key conflicts throughout the process. The system saves the payload fingerprint of each request and the reference to the result entity generated at each stage, strictly adhering to three rules: when the same key is used for replaying the same request, the already generated entity is returned directly, without repeating the write; when the same key is used for different requests, execution is rejected; when a unique constraint conflict is encountered during writing, the existing idempotent record is immediately read back, and the existing result is returned after verifying that the fingerprint is completely consistent. Even in high-concurrency scenarios where multiple identical commit requests arrive simultaneously, the system can guarantee that only one official execution fact will be generated, completely eliminating the basic error of generating duplicate work orders.
[0100] 307. When the number of knowledge question records to be reviewed reaches the preset user threshold, the knowledge question records to be reviewed are classified by content attributes.
[0101] 308. When the knowledge issue record to be reviewed belongs to the verification method attribute, determine the target knowledge reference information corresponding to each of the multiple knowledge issue records to be reviewed.
[0102] 309. When the target knowledge reference information corresponding to each knowledge question record to be reviewed is the same, check whether there is a business context identifier in the knowledge question record to be reviewed.
[0103] 310. If all knowledge question records to be reviewed have business context identifiers, determine the target knowledge base version corresponding to each knowledge question record to be reviewed.
[0104] 311. If the target knowledge base version corresponding to each knowledge question record to be reviewed is the same, review multiple knowledge question records to be reviewed.
[0105] In this embodiment, triggering a knowledge base update solely based on the quantitative indicator of "multi-user feedback" is extremely insecure. Therefore, to prevent low-quality data, broken evidence chains, or version conflicts from polluting the core knowledge base, the system establishes a strict four-dimensional access verification mechanism. Besides meeting the multi-user evidence condition of "the number of pending knowledge question records reaching a preset user threshold," the following four key conditions must also be met simultaneously: (1) The content attribute of the knowledge question record to be reviewed is the verification method attribute: Not all user feedback operations have the value of being transformed into standard knowledge. The system will classify the content attributes of the feedback, and only operations marked as "Verified Method" are allowed to enter the review pool.
[0106] In addition to this attribute, the following scenarios that need to be excluded can also be included: Temporary workarounds, such as "recovering temporarily after restarting the server," lack the ability to resolve the root cause and do not have long-term reuse value. Exploratory attempts: Operations that users discover on their own but have not yet developed into standardized procedures; Non-operational feedback: Plain text complaints or status descriptions that do not include actionable steps; Our core value is ensuring that only reusable and standardized best practices enter the review pool, rather than one-off emergency measures.
[0107] (2) Unique target knowledge reference information: All user feedback participating in the aggregation must point to the exact same target knowledge reference information (KRef). The KRef contains fields such as knowledge base identifier, complete submission hash, document path, and business tag snapshot. The system will verify whether the KRefs bound to all feedback are consistent at the bit level. This ensures that the subsequent reviewers see a cross-validation result for a specific version and a specific knowledge item, avoiding "false consensus" caused by version differences.
[0108] In some embodiments, cross-version aggregation: User A operates based on the V1.0 manual, and User B operates based on the V1.1 manual; even if the operation steps are similar, aggregation is rejected because the KRefs are different. Cross-document aggregation: Operation feedback for different fault codes or different device parts, even if performed by the same type of personnel, cannot be confused. In the above scenarios, if the target knowledge reference information is different, aggregation will be excluded.
[0109] (3) Complete Scope of Responsibility: Each execution fact must contain a complete and valid business context identifier to ensure the traceability of the operation and the clarity of rights and responsibilities. Specifically, it is necessary to check: **Project / Component Identifier Not Empty:** Feedback must be clearly bound to a specific project ID or component ID (such as "No. 1 Chiller Unit - X3 Communication Board"), and cannot be a vague global feedback; **Parent-Child Hierarchy Coverage Verification:** If the feedback is bound to a parent component (such as the entire machine), it is necessary to confirm whether the operation permissions and scope of its child components are within the authorized range; **User Identity and Role Matching:** The user performing the operation must have valid operation permissions within the scope of the business (such as maintenance engineer, administrator). Ensure that each piece of knowledge entering the review has a clear business attribution and responsible entity to prevent dirty data or malicious injection.
[0110] Anonymous or unattributed feedback: "orphan" data that cannot be traced to a specific business unit; unauthorized operation records: feedback from ordinary users who submitted high-risk operations that are only authorized for administrators, etc., need to be excluded.
[0111] (4) Main commit version consistency: All aggregated execution facts must have a consistent underlying repository storage version (Git Commit Hash) that they depend on, and this version must be a valid commit of the current Main Branch. Specifically, it can be verified whether the "full commit hash" in KRef points to the current HEAD or a valid historical node of the versioned repository's main branch. Ensure that there are no mixed operation records from "development branches," "grayscale branches," or "deprecated commits." Maintain the linear historical consistency of the repository to ensure that changes after approval can be seamlessly merged into the main branch, avoiding version conflicts and merge errors.
[0112] If branch pollution occurs: User A's operation is based on a development branch document that is being tested, while User B's operation is based on a production branch document, the two cannot be aggregated; and if rollback conflicts occur: If the knowledge base has been rolled back to an old version, new feedback based on an obsolete intermediate version will be rejected.
[0113] Only when all five conditions are met will the system generate a knowledge question record to be reviewed. This admission mechanism ensures that the data entering the manual review stage is already highly reliable, highly consistent, and high-value "quasi-knowledge," greatly reducing the review burden on senior operations and maintenance experts and fundamentally guaranteeing the accuracy and security of knowledge base updates.
[0114] 312. Update the target knowledge base based on the audit results.
[0115] In some embodiments, during the generation of knowledge governance candidates, the minimum payload is categorized as follows: the governance module only receives submitted and explicitly confirmed execution facts; the minimum payload sent to the classification model includes formal suggestions, reported execution steps, reported results, expected observations, and KRefs, excluding complete dialogues, system prompts, or implicit reasoning. Deterministic verification: the classification model outputs no-action, knowledge question, or knowledge change suggestion, along with the question type, precise evidence, and target path; server-side verification finds that the evidence must be a precise text fragment from the formal execution result, and the target path must uniquely match the KRef in the execution contract. Single-user threshold: semantic summaries are calculated and evidence is aggregated based on question type, target knowledge base, and target path; the first user's confirmed feedback creates at most a knowledge question object, and existing objects with normalized title similarity exceeding the threshold are deduplicated before creation; subsequent evidence with the same target is used as supplementary knowledge question comments. Multi-user change candidates: knowledge change candidates are only allowed to be reviewed if the question type is a validated method, there is confirmed feedback from another different user, the target reference is unique, there is an existing knowledge question object, and the responsibility scope metadata is complete; if any condition is not met, it is downgraded to a knowledge question object or rejected. Master commit consistency check: Before forming a change candidate, reread the commit version of the official branch. If it is different from the commit version bound to the execution contract, it is rejected. Change candidates are submitted only in the form of independent candidate branches and review requests. The commit description of the candidate branch is fixed with the structured business scope and cannot be automatically merged into the official branch by the feedback loop.
[0116] In some embodiments, local transactions and external side effects are coordinated in the sender's mailbox, with local facts committed first: Execution facts must first be committed independently in the domain database; external repository calls do not participate in local database transactions to avoid external timeouts causing confirmed facts to be rolled back or disguised as not occurring. Sender's mailbox persistence: Knowledge governance candidates are first persisted as sender's mailbox records in the local database transaction before calling the external repository interface. Action tag idempotency: Each external action carries an action tag ActionID=SHA-256 (governance version || idempotency key || action type || action target); before creating a knowledge question, supplementary comment, or creating a change candidate, an external object carrying the exact same action tag is searched; if an external service has already created an object but the response is interrupted, the existing object is retrieved via replay and local reconciliation is completed, without duplicate creation. Wherein, Action represents "action", ID represents "identifier", and ActionID represents action tag; the governance version is taken from the currently effective and persistent rule version of the knowledge governance module; the idempotent key is taken from the confirmed feedback materialized record that triggered this governance; the action type is taken from one of the three fixed enumeration values in the server's static registry: create knowledge question, supplement comment, or create change candidate; the action target is determined by the server according to the action type, and when creating a knowledge question or change candidate, it is taken from the document path in the KRef bound to the execution contract, and when supplementing a comment, it is taken from the combination of the existing knowledge question identifier and the fixed supplement tag; the symbol || represents the concatenation byte sequence.
[0117] In some embodiments, the evaluation, gray-scale release, rollback, and fault-safe services for behavior releases, along with state machines and shadow runs: Behavior release objects experience candidate, shadow, gray-scale, active, isolated, and replaced states; candidates first enter the shadow run of the real product path, and the shadow output does not replace the actual response received by the user; candidates must pass a hard threshold before entering gray-scale or active states—zero unauthorized reads, zero successful injection attempts, zero knowledge discovery leaks, zero formal factual errors, provider error rate not exceeding a threshold, and high-quantile response latency not exceeding a threshold; manual review and rollback: candidates can only enter gray-scale or active states after meeting the evaluation evidence and passing manual administrator review; when releasing a new active version, the original active version is converted to... Replaced; rollback does not modify the old version content, but reactivates an existing, evaluated, and unisolated immutable version; authenticate local snapshots: when the control database is inaccessible, the most recently accepted active baseline in memory is used first, otherwise the local persistent file is read; this file contains the schema version, snapshot payload, and key-based message authentication code, written using a temporary file with atomic replacement; the schema version, message authentication code, snapshot status (active or grayscale only), release identifier format, manifest digest format, and system prompt uniqueness are verified sequentially; snapshots in shadow, candidate, replaced, or isolated states must not be restored locally, and shadows will never be replayed from the cache when the control service is unavailable; retry is delayed by backoff intervals during failures.
[0118] The following technical effects can be achieved through the entire process of the knowledge question-answering method provided in this application: The results are reproducible: snapshots of fixed actions in each round are published, fixed versions of knowledge are submitted for contract execution, and a single response and its subsequent feedback can be accurately traced and replayed.
[0119] The blocking model is self-authorized: precise fragment verification, source proof authority verification, and closed-world capability limit the probabilistic output to candidates. Knowledge lacking authorization can only form blocking records.
[0120] Accurate feedback association: The feedback target is parsed using formal entity identity and structured business identifiers, reducing erroneous associations in multi-task and cross-dialogue scenarios.
[0121] Write consistency: Contract semantic fingerprints, draft revision numbers, and hierarchical idempotent keys prevent contract replacement, concurrent generation of partial facts, or duplicate writing.
[0122] Audit completeness: Additional corrective measures preserve the original facts of implementation and the corrective chain, and the validity of governance evidence can be explained at any time.
[0123] Cross-system idempotency: Local sender mailboxes and external action flags handle "external success but response interruption" to avoid duplicate creation of governance objects.
[0124] Knowledge pollution prevention: Multi-user cross-verification, master commit consistency checks, and manual boundary merging prevent a single feedback from automatically polluting formal knowledge.
[0125] High service availability: Local snapshots with message authentication codes, atomic writes, and status whitelists ensure service continuity during control plane failures and prevent downgrading to unapproved versions.
[0126] like Figure 4 As shown in the figure, this application provides a knowledge question answering device, which may include: The data generation module 401 is used to respond to the user's question and answer request, generate a target behavior publishing snapshot, and generate target knowledge reference information based on the target knowledge base. The model question answering module 402 is used to input the context information corresponding to the question answering request and the target knowledge reference information into the target large language model to obtain the candidate answer information output by the target large language model; The response verification module 403 is used to verify the candidate response information based on the target behavior release snapshot and target knowledge reference information, and obtain the verification result corresponding to the candidate response information. The response feedback module 404 is used to generate target response information based on candidate response information when the verification result indicates that the verification is passed, and output the target response information to the user in order to receive the user's feedback information on the target response information. The record generation module 405 is used to associate the question-and-answer request, the target answer information and the feedback information to obtain and store the knowledge question record to be reviewed corresponding to the question-and-answer request. The review and update module 406 is used to review multiple knowledge question records to be reviewed when the number of stored question-and-answer requests corresponding to the knowledge question records to be reviewed reaches a preset user threshold and the preset knowledge review conditions are met, and to update the target knowledge base based on the review results.
[0127] In some embodiments, the data generation module 401 is specifically used to extract multiple preset configuration fields from the trusted configuration library of the control plane in response to a user's question and answer request; Multiple preset configuration fields are concatenated and hashed to obtain a summary of the behavior list corresponding to the multiple preset configuration fields, and based on the summary of the behavior list, the corresponding target behavior release snapshot is obtained; The business project information of the server is read through the domain plane, and based on the business project information, multi-level retrieval is performed in the target knowledge base to obtain multiple candidate documents; Metadata fields are extracted from multiple candidate documents and validated. Target knowledge reference information is generated based on the validated entries.
[0128] In some embodiments, the response verification module 403 is specifically used to extract fields from the candidate response information to obtain a set of structured fields, and to perform full string matching on each structured field in the set of structured fields based on the target knowledge reference information to obtain the string verification result corresponding to the candidate response information. The source information of the candidate response information is determined, and a snapshot is published based on the target behavior. The source information is then verified to obtain the source verification result corresponding to the candidate response information.
[0129] In some embodiments, the response feedback module 404 is specifically used to determine the target capability item when both the string verification result and the source verification result indicate that the verification has passed; Based on the target knowledge citation information, search for whether there is authorization statement information corresponding to the target capability item; If authorization statement information exists, generate the target response information.
[0130] In some embodiments, the record generation module 405 is specifically used to filter the response information in the historical question and answer content library based on the candidate condition chain, and determine at least one response information corresponding to the feedback information; The target response is determined from at least one response, and the question-and-answer request, the target response, and the feedback are associated to obtain and store the knowledge question record to be reviewed.
[0131] In some embodiments, the review update module 406 is specifically used to classify the content attributes of the knowledge question records to be reviewed when the number of records to be reviewed reaches a preset user threshold. When the knowledge question record to be reviewed belongs to the verification method attribute, determine the target knowledge reference information corresponding to each of the multiple knowledge question records to be reviewed; When the target knowledge reference information corresponding to each knowledge question record to be reviewed is the same, check whether there is a business context identifier in the knowledge question record to be reviewed; If all knowledge question records to be reviewed have business context identifiers, determine the target knowledge base version corresponding to each knowledge question record to be reviewed; If the target knowledge base version corresponding to each knowledge question record to be reviewed is the same, multiple knowledge question records to be reviewed will be reviewed.
[0132] In some embodiments, the record generation module 405 is further configured to create new feedback correction information in response to a user's correction operation on the feedback information; Based on the feedback correction information, a confirmation record and an associated failure statement are generated. The associated failure statement is used to indicate that the feedback information of the target response information is replaced by the feedback correction information. The question-and-answer request, the target response information, and the feedback correction information are linked to generate a new knowledge question record to be reviewed corresponding to the question-and-answer request.
[0133] Figure 5 This is a structural block diagram of the electronic device provided in the embodiments of this application. For example... Figure 5 As shown, the electronic device includes: a processor, a memory, a communication interface, and a communication bus. The processor, the memory, and the communication interface communicate with each other through the communication bus. The memory is used to store at least one executable instruction, which causes the processor to perform the steps of the knowledge question-answering method of the aforementioned embodiment.
[0134] This application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the various processes of the knowledge question-answering method in the above-described method embodiments and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0135] This application also provides a computer program product, which stores a computer program. When the computer program is executed by a processor, it implements the various processes of the knowledge question-answering method in the above method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0136] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code.
[0137] It should be understood, in the several embodiments provided in this application, that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative; for example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0138] In this application, the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0139] In this application, memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, like read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0140] In this application, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. This program can be stored in a computer-readable storage medium, including permanent and non-permanent, removable and non-removable storage media. The storage medium can implement information storage by any method or technology, and the information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), other types of random access memory (RAM), read-only memory (ROM), one-time programmable read-only memory (OTPROM), electrically-erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile optical disc (DVD) or other optical storage, magnetic tape, disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information that can be accessed by a computing device. As defined in this document, computer-readable media do not include transient media, such as modulated data signals and carrier waves.
[0141] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the term "comprising" or any other variations thereof is intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.
[0142] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Those skilled in the art should also understand that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to this application. The above-mentioned multiple embodiments are not necessarily multiple independent embodiments; they are divided into multiple embodiments only to highlight different technical features in different embodiments. Those skilled in the art should understand that the above-mentioned multiple embodiments can also be combined arbitrarily.
[0143] In the various embodiments of this application, it should be understood that the sequence number of each process does not necessarily imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0144] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they can be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0145] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0146] If the integrated units described above are implemented as software functional units and sold or used as independent products, they can be stored in a computer-accessible memory. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several requests to cause a computer device (which can be a personal computer, server, or network device, specifically a processor in the computer device) to execute some or all of the steps of the methods described in the various embodiments of this application.
[0147] The above are merely specific embodiments of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to these embodiments, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A knowledge-based question-and-answer method, characterized in that, include: In response to user question and answer requests, a snapshot of the target behavior is generated and target knowledge reference information is generated based on the target knowledge base. The context information corresponding to the question-and-answer request and the target knowledge reference information is input into the target large language model to obtain the candidate answer information output by the target large language model; Based on the target behavior release snapshot and the target knowledge reference information, the candidate response information is verified to obtain the verification result corresponding to the candidate response information; If the verification result indicates that the verification is successful, target response information is generated based on the candidate response information, and the target response information is output to the user to receive feedback information from the user on the target response information; The question-and-answer request, the target response information, and the feedback information are associated to obtain and store the knowledge question record to be reviewed corresponding to the question-and-answer request. When the number of pending knowledge question records corresponding to the stored question-and-answer requests reaches a preset user threshold and meets the preset knowledge review conditions, multiple pending knowledge question records are reviewed, and the target knowledge base is updated based on the review results.
2. The method according to claim 1, characterized in that, The process of responding to a user's question-and-answer request, generating a target behavior publication snapshot, and retrieving target knowledge citation information based on the target knowledge base includes: In response to the user's question and answer request, multiple preset configuration fields are extracted from the trusted configuration library of the control plane; The multiple preset configuration fields are concatenated and hashed to obtain a summary of the behavior list corresponding to the multiple preset configuration fields, and a corresponding target behavior release snapshot is obtained based on the behavior list summary; The business project information of the server is read through the domain plane, and based on the business project information, a multi-level search is performed in the target knowledge base to obtain multiple candidate documents; Metadata fields are extracted from the multiple candidate documents, and the metadata fields are validated. The target knowledge reference information is generated based on the validated entry information.
3. The method according to claim 1, characterized in that, The step of verifying the candidate response information based on the target behavior snapshot and the target knowledge reference information to obtain the verification result corresponding to the candidate response information includes: Fields are extracted from the candidate response information to obtain a set of structured fields. Based on the target knowledge reference information, a full string match is performed on each structured field in the set of structured fields to obtain the string verification result corresponding to the candidate response information. The source information is determined for the candidate response information, and a snapshot is published based on the target behavior. The source information is then verified to obtain the source verification result corresponding to the candidate response information.
4. The method according to claim 3, characterized in that, If the verification result indicates that the verification passed, generating target response information based on the candidate response information includes: If both the string verification result and the source verification result indicate that the verification passed, the target capability item is determined; Based on the target knowledge reference information, search for whether there is authorization statement information corresponding to the target capability item; If the authorization statement information exists, the target response information is generated.
5. The method according to claim 1, characterized in that, The step of associating the question-and-answer request, the target response information, and the feedback information to obtain and store the knowledge question record to be reviewed corresponding to the question-and-answer request includes: Based on the candidate condition chain, the response information in the historical question and answer content library is filtered to determine at least one response information corresponding to the feedback information; The target response information is determined from the at least one response information, and the question-and-answer request, the target response information, and the feedback information are associated to obtain and store the knowledge question record to be reviewed.
6. The method according to claim 1, characterized in that, When the number of pending knowledge question records corresponding to the stored question-and-answer requests reaches a preset user threshold and meets preset knowledge review conditions, the process of reviewing multiple pending knowledge question records includes: When the number of records of knowledge questions to be reviewed reaches the preset user threshold, the records of knowledge questions to be reviewed are classified by content attributes. When the knowledge question record to be reviewed belongs to the verification method attribute, determine the target knowledge reference information corresponding to the multiple knowledge question records to be reviewed respectively; When the target knowledge reference information corresponding to each knowledge question record to be reviewed is the same, it is detected whether the knowledge question record to be reviewed has a business context identifier; If all the knowledge question records to be reviewed have a business context identifier, determine the target knowledge base version corresponding to each knowledge question record to be reviewed; If the target knowledge base version corresponding to each knowledge question record to be reviewed is the same, the multiple knowledge question records to be reviewed will be reviewed.
7. The method according to claim 1, characterized in that, After the verification result indicates that the verification has passed, the method further includes generating target response information based on the candidate response information, outputting the target response information to the user, and receiving feedback from the user on the target response information, the method further includes: In response to the user's correction operation on the feedback information, a new feedback correction message is created; Based on the feedback correction information, a confirmation record and an associated failure statement are generated. The associated failure statement is used to indicate that the feedback information of the target response information is replaced by the feedback correction information. The question-and-answer request, the target response information, and the feedback correction information are associated to generate a new knowledge question record to be reviewed corresponding to the question-and-answer request.
8. A knowledge-based question-and-answer device, characterized in that, include: The data generation module is used to respond to user question and answer requests, generate target behavior publishing snapshots, and retrieve target knowledge reference information based on the target knowledge base; The model question answering module is used to input the question answering request and the context information corresponding to the target knowledge reference information into the target large language model to obtain the candidate answer information output by the target large language model; The response verification module is used to verify the candidate response information based on the target behavior published snapshot and the target knowledge reference information, and obtain the verification result corresponding to the candidate response information. The response feedback module is used to generate target response information based on the candidate response information when the verification result indicates that the verification is passed, and output the target response information to the user, so as to receive the user's feedback information on the target response information; The record generation module is used to associate the question-and-answer request, the target response information, and the feedback information to obtain and store the knowledge question record to be reviewed corresponding to the question-and-answer request. The review and update module is used to review multiple knowledge question records to be reviewed when the number of stored knowledge question records to be reviewed corresponding to the question and answer request reaches a preset user threshold and the preset knowledge review conditions are met, and to update the target knowledge base according to the review results.
9. An electronic device, characterized in that, The electronic device includes: Memory containing executable program code; and a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the knowledge question-answering method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, include: The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the knowledge question-answering method as described in any one of claims 1 to 7.
