Knowledge conflict detection and deterministic analysis method and system based on knowledge unit attributes, electronic device and storage medium
By acquiring and analyzing the attributes of knowledge units, the problem of accuracy in identifying and resolving knowledge unit conflicts in enterprise knowledge bases is solved. It enables separate processing of legitimate temporal transitions and real conflicts, ensuring the reliability of the resolution results. In cases of uncertainty, the unresolved state is retained for manual confirmation, thereby improving the stability of knowledge base management.
Patent Information
- Application Number
- CN202611414237.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-11
- Publication Date
- 2026-11-20
AI Technical Summary
In dynamic enterprise knowledge bases, existing technologies struggle to identify conflicts between different knowledge units under the same issue, easily misjudging normal version evolution as errors, and failing to reliably reproduce parsing results in real conflicts, lacking structured constraints and manual review support.
By acquiring the attributes of knowledge units, such as subject, predicate, object value, version identifier, effective time, lifecycle status, and source authority, conflict candidates are detected and classified. Combined with the cascading parsing of rules such as version identifier, effective time, and source authority, the system ensures that legitimate time-series transitions and real conflicts are handled separately. When the rules cannot uniquely determine the conflict, the system retains the unresolved state and outputs a warning.
It enables accurate identification and resolution of knowledge unit conflicts in the enterprise knowledge base, avoids misjudgment, ensures the legality and reliability of the resolution results, and retains the unresolved state for manual confirmation when uncertain, thereby improving the stability and accuracy of knowledge base management.
Smart Images

Figure CN123138231A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of retrieval enhancement generation and knowledge base quality management technology, specifically to a knowledge conflict detection and deterministic resolution method, system, electronic device, and computer-readable storage medium based on knowledge unit attributes. Background Technology
[0002] The retrieval enhancement system retrieves evidence from the knowledge base and provides that evidence to the answer generation module to generate an answer. In an enterprise knowledge base, the same policies, manuals, or business rules are often revised over time, and old and new versions of knowledge may be retained simultaneously; documents issued by different departments may also provide different values for the same matter. Existing methods typically rank search results based on text similarity or vector similarity. When search results simultaneously contain current knowledge, historical knowledge, and knowledge from different sources, the lack of structured constraints on version, effective date, substitution relationship, and source authority can easily lead to outdated values or treat normal version progression as conflicts. Furthermore, some methods rely on the question-answering generation module to directly determine inconsistencies, resulting in outputs that depend on unstructured reasoning and are difficult to reproduce reliably. In enterprise knowledge governance scenarios, the process typically requires preserving evidence, retaining candidates, and supporting manual review. Therefore, a technical solution is needed that detects conflicts based on knowledge unit attributes, distinguishes between normal temporal changes and genuine conflicts, and retains an unresolved state when rules cannot determine the issue. Summary of the Invention
[0003] (a) Technical problems to be solved The technical problem to be solved by this invention is: in a dynamic enterprise knowledge base, how to identify conflicts between different knowledge units under the same matter, avoid misjudging normal version evolution as an error, and determine the parsing result based on structured attributes and fixed priority rules when a real conflict exists; when the rules cannot uniquely determine the result, the conflict candidates can be retained and a warning requiring user confirmation can be output, instead of forcing a choice among the candidates without explanation of the basis. (II) Technical Solution To address the aforementioned technical problems, this invention provides a method for knowledge conflict detection and deterministic resolution based on knowledge unit attributes, comprising the following steps: Step 1: Obtain knowledge units from the knowledge base. Each knowledge unit includes at least one or more attributes such as subject, predicate, object value, version identifier, effective time interval, lifecycle status, source type, and source authority. The lifecycle status includes at least one of currently effective, replaced, deprecated, and deleted. Knowledge units can be extracted from document paragraphs using rule templates, entity recognition models, or semantic parsing models. When a paragraph contains business objects, constraints, and value content, it is identified as a fact assertion and written into the subject, predicate, and object value fields. Step 2: Detect conflict candidates for knowledge units. Group knowledge units according to predicates or normalized predicates, and compare each knowledge unit pairwise within the same group to calculate the semantic similarity of the subjects. When the semantic similarity of the subjects reaches a first preset threshold and the object values are inconsistent, a conflict candidate is generated; when the object values are the same, or when the semantic overlap of the object values reaches a second preset threshold after unit conversion, synonym replacement, and normalization of upper and lower limit expressions, false conflicts are eliminated. Step 3: Automatically classify conflict candidates. Based on version identifier, effective time interval, lifecycle status, source type, source authority, and object value type, the conflict candidates are determined to be at least one of the following: chronological progression, source conflict, numerical conflict, or value conflict. Step 4: Perform timing determination. When two knowledge units have different versions, different effective time intervals, and a correspondence exists between the replaced knowledge unit and the currently effective knowledge unit, the conflict candidate is determined as a temporal progression and marked as a legitimate temporal transition, rather than being treated as an erroneous conflict. Step 5: Perform deterministic rule cascading analysis on real conflicts. The first priority is substitution relationship: if there is a substitution relationship between the conflicting parties, the currently effective knowledge unit pointed to by the substitution relationship is adopted; the second priority is effective time: select the knowledge unit whose judgment time falls within the effective period and has not been substituted; the third priority is source authority: when there are multiple simultaneously effective candidates, select the knowledge unit with higher source authority. Step 6: If the above rule cascading still cannot determine a unique candidate, set the conflict status to unresolved, retain the conflict candidate set and the rejected candidate set, output a warning message requiring user confirmation, and trigger manual confirmation or supplementary search according to system configuration; in the unresolved state, do not directly output a unique answer among conflict candidates. Step 7: Normalize and deduplicate conflict records. Form conflict normalization keys based on the subject, conflict type, and knowledge unit identifier set. Merge conflict records with the same normalization key into a single record, retaining the conflict cause, resolution status, selected knowledge unit, and rejected candidate information. (III) Beneficial Effects The above structure allows version, validity period, substitution relationship, and source authority to directly participate in conflict detection and resolution. Legitimate temporal transitions and genuine conflicts are handled separately, and rules are executed in a fixed order; when a rule cannot determine a unique result, the unresolved state is retained and a warning message is output. Attached Figure Description
[0004] Figure 1 This is a schematic diagram of the knowledge conflict detection and deterministic resolution system architecture according to an embodiment of the present invention. Figure 2 This is a flowchart of the pairwise collision detection and automatic classification process according to an embodiment of the present invention. Figure 3 This is a flowchart of the deterministic rule cascading parsing process according to an embodiment of the present invention. Figure 4 This is a schematic diagram of the conflict status and warning output in an embodiment of the present invention. Detailed Implementation
[0005] The implementation method is described below with reference to the accompanying drawings. The following content is for illustrative purposes only and is not intended to limit the scope of protection. Specific thresholds, data structures, and module divisions can be configured according to the scenario. Example 1: System Overall Architecture like Figure 1 As shown, the system in this embodiment includes a grouping detection unit, an automatic classification unit, a temporal discrimination unit, a rule-cascaded parsing unit, and a pending alert unit. The grouping detection unit acquires knowledge units from the knowledge base and groups them according to predicates or normalized predicates; the automatic classification unit classifies conflict candidates based on the knowledge unit's version, effective period, source, and object value; the temporal discrimination unit identifies legitimate progressions between knowledge versions; the rule-cascaded parsing unit determines the parsing results according to a preset priority; and the pending alert unit saves conflicts for which a unique candidate could not be determined and outputs an alert. Source authority can be mapped from document type, issuing department, approval level, and applicable scope, and written into the knowledge unit attributes as a numerical level or an enumerated level. Knowledge units can be represented using structured records, including, for example, a knowledge unit identifier, subject, predicate, object value, version identifier, effective start time, effective end time, status, source type, source identifier, and source authority. Substitution relationships can be represented using directed relationships from old knowledge units to new knowledge units. Example 2: Conflict Candidate Detection and Automatic Classification like Figure 2As shown, knowledge units are first grouped according to predicates. For two knowledge units within the same predicate group, their subject semantic similarity is calculated. Semantic similarity can be achieved using Dice similarity based on character sets, word set similarity, vector cosine similarity, or a combination thereof. Taking character sets as an example, the Dice similarity between two subjects can be expressed as: D(A, B) = 2|A∩B| / (|A|+|B|), where A and B are the feature sets of the two subjects, respectively. When the semantic similarity of the subjects reaches a preset threshold and the object values are inconsistent, conflict candidates are generated. For knowledge units with the same object value, such as "the reimbursement limit is 5000 yuan" and "the reimbursement limit is 5000 yuan", conflicts are directly excluded; for knowledge units with different expressions, such as "not exceeding 5000 yuan" and "the limit is 5000 yuan", but with overlapping object values, false conflicts are excluded when the overlap of object values reaches a preset threshold. For the retained conflict candidates, when the versions and effective periods of two knowledge units are different and one knowledge unit is replaced by the other, it is determined to be a chronologically progressive type; when the source types of two knowledge units are different and do not belong to chronologically progressive, it is determined to be a source conflict type; when the values of two objects are both numeric and the values are different, it is determined to be a numeric conflict type; other cases where the object values are inconsistent are determined to be value conflict types. Example 3: Deterministic Rule Cascade Parsing like Figure 3 As shown, the timing of conflict candidates is first determined; candidate records judged as having a legal timing transition are considered legal transitions and do not proceed to the actual conflict resolution. For the remaining actual conflicts, the rules are executed in a fixed order. First, it is checked whether there is a substitution relationship between the conflicting parties. If so, the currently effective knowledge unit pointed to by the substitution relationship is taken, and the old knowledge unit is marked as substituted. If no explicit substitution relationship exists, check whether the judgment time uniquely matches the effective period of a certain knowledge unit, and confirm that the knowledge unit has not been substituted. If it uniquely matches, then the knowledge unit is taken as the parsing result. If multiple knowledge units are valid simultaneously, compare the source authority; if there is a clear difference in source authority, select the one with higher authority. If none of the above rules can determine a unique candidate, for example, if both formal systems are in effect, have no substitution relationship, and their source authority cannot be distinguished, then the conflict will be marked as unresolved, the selected knowledge unit in the parsing result will be empty, both the conflict candidate set and the rejected candidate set will be retained, and a warning requiring user confirmation will be output. Example 4: Conflict Recording and Alert Output like Figure 4As shown, conflict detection results can be written to a conflict record, which includes at least the conflict identifier, conflict type, conflicting parties, object value, version, effective time, source, and detection reason. After rule parsing is completed, the parsing result includes at least the parsing status, selected knowledge unit identifier, rejected candidate set, parsing rule, and whether user confirmation is required. When the resolution status is resolved, the system can provide the selected knowledge unit to the downstream question-and-answer or retrieval process; when the resolution status is a legitimate time-series transition, the system can select the appropriate version according to the user's current or historical time intent; when the resolution status is unresolved, the system can display a risk warning on the question-and-answer interface, restrict unresolved candidates from being directly output as definitive answers, and transfer conflicts to manual confirmation or supplementary retrieval processes. Example 5: Typical Business Scenarios Taking the travel accommodation expense reimbursement limit as an example, the knowledge base contains a 2024 version of the policy with a recorded limit of 3,000 yuan; simultaneously, a 2025 version of the policy exists with a recorded limit of 5,000 yuan, and the 2025 version explicitly replaces the 2024 version. The system detected that the two knowledge units have the same subject and predicate but inconsistent object values. However, due to the different versions, staggered effective periods, and substitution relationship, it is determined to be a sequential progression rather than an error conflict. When a user inquires about the current reimbursement limit, the rule cascading parsing unit selects the 5000 yuan knowledge unit from the 2025 version; when a user inquires about historical regulations from 2024, the system allows recalling the 3000 yuan knowledge unit from the 2024 version and using it as evidence of the historical version. If another departmental notice from the same period records 4000 yuan, and the source of the financial regulation has higher authority, the system selects the financial regulation according to the source authority rule; if both official regulations are valid and their authority cannot be distinguished, an unresolved warning is output. Example 6: Conflict Normalization and Engineering Boundaries For multiple detection results formed by the same subject, conflict type, and knowledge unit set, the system generates the same normalization key and merges the records to avoid the same conflict appearing repeatedly in the conflict list. Conflict detection relies on the completeness of knowledge unit attributes; when version, effective range, or source authority is missing, the judgment capability of the corresponding rules is reduced. For conflicts that are semantically similar but have different predicates, complex applicable scopes, or require interpretation by business personnel, the unresolved state can be retained and submitted for manual confirmation or subsequent rule expansion. Terminology Explanation
[0006] Knowledge Unit: A factual unit in the knowledge base that can be independently retrieved and judged, carrying subject, predicate, object value, and version or lifecycle attributes. Sequential progression: Changes in the legal value of knowledge of the same subject as the version or effective period change. Source authority: A numerical or graded information used to indicate the trust level or priority level of different source files in the current business scenario. Deterministic rule cascading: A sequence of rules that are executed sequentially according to a preset fixed priority. Unresolved conflict: A conflict state where a unique candidate cannot be determined even after configuring rules, requiring manual confirmation or additional retrieval.
Claims
1. A knowledge conflict detection and deterministic resolution method based on knowledge unit attributes, characterized in that, include: Knowledge units are extracted from knowledge base documents, and each knowledge unit is written with a subject, predicate, object value, version identifier, effective time interval, life cycle status, source type, and source authority. The life cycle status includes at least the current effective status and the replaced status. The knowledge units are grouped according to the normalized predicates. Within the same predicate group, the subject semantic similarity of any two knowledge units is calculated, and when the subject semantic similarity reaches a first threshold and the object values are inconsistent, conflict candidates are generated. The conflict type of the conflict candidate is determined based on the version identifier, effective time interval, lifecycle status, source type, source authority, and object value type. When the conflict candidate is characterized by a temporal progression caused by version updates or changes in effective time, the conflict candidate is recorded as a legitimate temporal transition. For conflict candidates that do not belong to the legal time sequence transition, they are parsed according to the preset rule cascade, which includes substitution relationship rules, effective time rules, and source authority rules in sequence; when the rule cascade cannot determine a unique current knowledge unit, the conflict candidate is marked as unresolved and a warning message containing the conflict candidate and the confirmation identifier is output.
2. The method according to claim 1, characterized in that, The step of extracting knowledge units from knowledge base documents includes: performing fact assertion recognition on document paragraphs, converting text fragments containing business objects, constraint relationships, and value content into a subject, predicate, and object value triple; and writing the document version number, publication time, publishing department, validity period, source type, and alternative declaration into the attribute fields of the corresponding knowledge unit.
3. The method according to claim 1, characterized in that, After generating the conflict candidates, if the object values of the two knowledge units are the same, or if the semantic overlap of the object values after unit conversion, synonym normalization, and upper and lower limit expression normalization reaches the second threshold, it is determined that the two knowledge units do not constitute a real conflict.
4. The method according to claim 1, characterized in that, The determination of the conflict type of the conflict candidate includes: when the version identifiers of the two knowledge units are different, their effective time intervals do not overlap, and there is a substitution relationship between the old knowledge unit and the new knowledge unit, it is determined to be a time-series conflict type; when the source types of the two knowledge units are different and the conditions of the time-series conflict type are not met, it is determined to be a source conflict type; when the object values of the two knowledge units are both numerical and the normalized values are different, it is determined to be a numerical conflict type; and the remaining cases where the object values are inconsistent are determined to be value conflict types.
5. The method according to claim 1, characterized in that, The substitution relationship rule includes: when there is a substitution relationship between the conflicting parties from the old knowledge unit to the new knowledge unit, the new knowledge unit is determined as the current knowledge unit, and the old knowledge unit is written into the rejected candidate set; the effective time rule includes: using the query time or the current system time as the judgment time, selecting knowledge units from the conflict candidates whose judgment time falls within their effective time interval and whose life cycle state is not the substituted state, and when there is only one knowledge unit that meets the conditions, that knowledge unit is determined as the current knowledge unit.
6. The method according to claim 1, characterized in that, The source authority rule includes: when multiple conflict candidates are all in a valid state at the same determination time, comparing the source authority of each conflict candidate; when the highest source authority is unique, determining the knowledge unit with the highest source authority as the current knowledge unit; when the highest source authority is not unique, marking the conflict candidate as unresolved.
7. The method according to claim 1, characterized in that, Also includes: A conflict normalization key is generated based on the subject, conflict type, and knowledge unit identifier set. Conflict records with the same conflict normalization key are merged, and the resolution status, hit rule, current knowledge unit, and rejected candidate set of each conflict record are retained.
8. A knowledge conflict detection and deterministic resolution system based on knowledge unit attributes, characterized in that, include: The knowledge unit extraction module is used to extract knowledge units from knowledge base documents and write them into the subject, predicate, object value, version identifier, effective time interval, life cycle status, source type and source authority; the conflict candidate generation module is used to group knowledge units according to normalized predicates and generate conflict candidates within the same predicate group based on the semantic similarity of the subject and the inconsistency of the object value. The conflict classification module is used to determine the conflict type based on version identifier, effective time interval, lifecycle status, source type, source authority, and object value type. The timing discrimination module is used to record conflict candidates that represent the temporal progression caused by version updates or changes in effective time as legitimate timing transitions; The rule cascading parsing module is used to determine the current knowledge unit for conflict candidates that do not belong to the legal temporal transition, according to the substitution relationship rule, the effective time rule, and the source authority rule in sequence. The pending alert module is used to mark the conflict candidate as unresolved and output a confirmation flag when the rule cascade parsing module cannot determine a unique current knowledge unit.
9. An electronic device, characterized in that, It includes a processor and a memory, wherein the memory stores a computer program that, when executed by the processor, causes the electronic device to perform the method as described in any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it causes the processor to implement the method as described in any one of claims 1 to 7.
