Enterprise-level unified knowledge base construction system based on LLM Wiki self-growth
By generating structural fingerprints for enterprise-level knowledge bases and performing three-way arbitration, the problem of inconsistent representation caused by changes in Wiki page link relationships is solved, ensuring the synchronization and accuracy of the knowledge base, preventing knowledge pollution, and improving the reliability of the knowledge base and the accuracy of query results.
Patent Information
- Application Number
- CN202611288021.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-24
- Publication Date
- 2026-11-27
AI Technical Summary
During the self-growth process of an enterprise-level knowledge base, frequent changes in Wiki page link relationships lead to inconsistencies between vector indexes, knowledge graph triples, and Wiki page representations. This results in contradictions between retrieved fragments and the graph context, multi-hop reasoning leading to incorrect nodes along broken links, and unauthorized access leaks. User feedback lacks consistency verification with the current knowledge structure state, which may cause knowledge pollution.
By generating a structural fingerprint for each knowledge unit, the vector representation, graph triplet, and Wiki page are associated with the snapshot of the generation time of the structural fingerprint. Three-way arbitration is performed to write synchronously or establish parallel version branches. The fingerprint summary matching status between adjacent units is verified hop by hop, and the effective feedback is used to update the confidence. The structural fingerprint is introduced as a unified anchoring mechanism.
Ensuring that vector representations, graph triples, and Wiki pages remain synchronized during structural changes avoids contradictions between search results and graph context, failures in multi-hop reasoning, and leakage due to unauthorized access, thereby improving the accuracy and reliability of the knowledge base and preventing feedback pollution caused by knowledge version iterations.
Smart Images

Figure CN123180299A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the fields of knowledge graphs and machine learning, and in particular to an enterprise-level unified knowledge base construction system based on LLM Wiki self-incrementing. Background Technology
[0002] The construction of enterprise-level knowledge bases increasingly relies on large language models to distill source documents into structured Wiki entries and simultaneously maintain vector indexes and knowledge graphs to support enhanced retrieval generation. Within this self-growing framework, the knowledge base needs to continuously receive new documents, automatically reconstruct the Wiki page topology, and update vector and graph representations, forming a closed-loop evolution.
[0003] However, the link relationships between Wiki pages change frequently during automatic reconstruction, causing the vector index, knowledge graph triples, and Wiki pages to evolve independently, resulting in multiple representation inconsistencies. Specifically, this manifests as: the vector index being updated while the corresponding graph relationships are not yet synchronized; or the link neighborhood of a Wiki page changing after reconstruction while the permission annotations remain in the pre-reconstruction state. This inconsistency leads to contradictions between retrieved fragments and the graph context, multi-hop reasoning jumping to incorrect nodes along broken links, and the breaching of original permission boundaries after automatic page reconstruction, resulting in unauthorized access leaks.
[0004] Furthermore, user feedback on search results lacks consistency verification with the current state of the knowledge structure. The knowledge version evaluated in the feedback may have been overwritten by subsequent reconstructions, and directly incorporating such feedback into confidence updates would cause knowledge pollution. These problems stem from the lack of a unified anchoring mechanism that remains stable when rewriting page content but is sensitive to changes in the link structure. This prevents the integration, retrieval, access control, and feedback processes of the knowledge base from operating collaboratively on a consistent scale. Summary of the Invention
[0005] This application provides an enterprise-level unified knowledge base construction system based on LLM Wiki self-incrementing, the technical solution of which is as follows: On the one hand, an enterprise-level unified knowledge base construction system based on LLM Wiki self-growth is provided, the system including a processor and memory, the processor being configured to perform the following steps: For each knowledge unit in the Wiki topology, a structural fingerprint is generated based on the neighborhood connection pattern. The vector representation, graph triples, and Wiki pages are all associated with and recorded with the snapshot of the generation time of the structural fingerprint. For candidate entries extracted and structured from the source document by the large language model, three-way arbitration is performed based on the structure fingerprint as the alignment benchmark. For mergeable cases, the entries are synchronously written to the vector index, knowledge graph and Wiki page under the condition of consistent budget fingerprint. For non-mergeable cases, parallel version branches are established, and the effective security level is propagated and updated along the link relationship by fingerprint recalculation. In response to a query, the entry point retrieved by the vector index is checked for consistency between the snapshot of the entry point's generation time and the current fingerprint. For the entry point that passes the check, the fingerprint digest matching status between adjacent units is verified hop by hop along the link relationship. In the same traversal, pruning is performed at the user's security level. The evidence chain that passes the structure check and permission check is incorporated into the unified knowledge base. The comparison result between the snapshot of the adopted evidence in the evidence chain and the current fingerprint is used as the feedback adoption condition. Valid feedback is screened and the confidence of the corresponding unit is updated. The Wiki page with the updated confidence is then deposited into the unified knowledge base. Attached Figure Description
[0006] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying 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.
[0007] Figure 1 This is a flowchart illustrating a method for constructing an enterprise-level unified knowledge base based on an LLM Wiki self-growing architecture, as provided in this application embodiment. Figure 2 This is a flowchart of another method for constructing an enterprise-level unified knowledge base based on an LLM Wiki self-growth, provided in an embodiment of this application. Figure 3 This is a flowchart of another method for constructing an enterprise-level unified knowledge base based on an LLM Wiki self-growth, provided in the embodiments of this application; Figure 4 This is a flowchart of another method for constructing an enterprise-level unified knowledge base based on an LLM Wiki self-growth, provided in an embodiment of this application. Detailed Implementation
[0008] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0009] In this application, the terms "first," "second," etc., are used to distinguish identical or similar items with essentially the same function. It should be understood that there is no logical or temporal dependency between "first," "second," and "nth," nor are there any restrictions on quantity or execution order.
[0010] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, data stored, data displayed, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0011] This embodiment discloses an enterprise-level unified knowledge base construction system based on LLM Wiki self-growth, aiming to solve the problem of inconsistency between vector representation, graph triples, and Wiki page representation caused by frequent changes in Wiki page link relationships during the self-growth process of traditional knowledge bases. This may lead to contradictions between search hit fragments and graph context, multi-hop reasoning jumping to incorrect nodes along broken links, and unauthorized access leakage. In addition, the lack of consistency verification between user feedback and the current knowledge structure state may lead to knowledge pollution.
[0012] To address this, this application proposes an enterprise-level unified knowledge base construction system based on an LLM Wiki self-growing architecture. This system includes a processor and memory; see [link to relevant documentation]. Figure 1 The processor is configured to perform the following steps: 101. For each knowledge unit in the Wiki topology, generate a structural fingerprint based on the neighborhood connection pattern, and associate the vector representation, graph triplet, and Wiki page with the snapshot of the generation time of the structural fingerprint. 102. For candidate entries extracted and structured from the source documents by the large language model, three-way arbitration is performed based on the structure fingerprint as the alignment benchmark. For mergeable cases, the entries are synchronously written to the vector index, knowledge graph and Wiki page under the condition that the budget fingerprint is consistent. For non-mergeable cases, parallel version branches are established, and the effective security level is propagated and updated along the link relationship by fingerprint recalculation. 103. In response to the query, verify the consistency between the snapshot of the entry point at the time of its generation and the current fingerprint for the entry point retrieved by the vector index. For the entry point that passes the verification, verify the fingerprint digest matching status of the records between adjacent units hop by hop along the link relationship. In the same traversal, perform pruning at the user security level and incorporate the evidence chain that passes the structure verification and permission verification into the unified knowledge base. 104. Using the comparison result between the snapshot of the adopted evidence in the evidence chain at the time of adoption and the current fingerprint as the feedback adoption condition, filter the valid feedback and update the confidence of the corresponding unit, and deposit the Wiki page with the updated confidence into the unified knowledge base.
[0013] For ease of understanding, the following explains some key terms in this embodiment: A Wiki topology refers to the overall network structure of all Wiki pages and their inter-page links within an enterprise-level unified knowledge base. This topology reflects how knowledge is organized and the paths of association.
[0014] A knowledge unit is a basic information carrier in a Wiki topology, typically corresponding to a Wiki page, a concept, or an entity. Each knowledge unit carries specific knowledge content and is interconnected with other knowledge units through links.
[0015] A structural fingerprint is a numerical code generated for each knowledge unit that uniquely identifies its local structural context within the Wiki topology. This fingerprint is obtained by analyzing the neighborhood connection patterns of the knowledge unit, and its changes reflect alterations in the knowledge unit's topological structure.
[0016] A snapshot at the time of creation is a fixed value that records the structural fingerprint of a knowledge unit at the moment it is created or updated, representing the data representation, graph triple, or Wiki page. This snapshot is used to subsequently verify the consistency between the data representation and the topological structure.
[0017] Vector representation refers to converting the semantic content of knowledge units into high-dimensional vectors through embedding techniques. These vectors can be used for efficient similarity searches in vector indexes to recall knowledge units that are semantically relevant to the query.
[0018] A graph triple is a structured knowledge fragment organized in the form of "entity-relationship-entity" or "entity-attribute-value". Multiple graph triples together construct a knowledge graph, which is used to represent complex relationships between entities.
[0019] A Wiki page is a text-based carrier of knowledge content within an enterprise-wide unified knowledge base. Each Wiki page typically corresponds to a knowledge unit and includes its detailed description, related information, and hyperlinks to other Wiki pages.
[0020] A large language model is a natural language processing model based on deep learning, possessing powerful text understanding, generation, and reasoning capabilities. In this embodiment, the large language model is used to extract information from source documents and structure it into candidate entries usable in a knowledge base.
[0021] Three-way arbitration refers to a decision-making process in which, when dealing with newly introduced candidate entries, the baseline version, the current state of the knowledge base, and the newly introduced content are compared to determine whether the old and new knowledge can be merged or whether parallel version branches need to be established.
[0022] The effective security level refers to the highest security level possessed by a knowledge unit. This security level is not determined solely by the knowledge unit's own labeling, but rather by comprehensively considering the security levels of its ancestral knowledge units along the hierarchical path, as well as the security levels of adjacent knowledge units that are incorporated through specific link relationships.
[0023] This embodiment generates a structural fingerprint for each knowledge unit in the Wiki topology based on the neighborhood connection pattern, and associates and records the vector representation, graph triple, and Wiki page with a snapshot of the structural fingerprint's generation time. In one implementation, a simple hash value can be assigned as its structural fingerprint to each knowledge unit; this hash value is generated solely based on the knowledge unit's own identifier. When the knowledge unit's vector representation, graph triple, or Wiki page is created or updated, this hash value at that time can be stored directly in the metadata of the corresponding representation data as a snapshot of the generation time. For example, when a Wiki page is created, its content hash value is calculated and recorded as a snapshot. In another implementation, a simple adjacency list can be maintained for each knowledge unit, recording the identifiers of its directly connected knowledge units, and the hash value of this adjacency list can be used as the structural fingerprint. When any representation data changes, this fingerprint snapshot is updated.
[0024] For candidate entries extracted and structured from source documents using a large language model, a three-way arbitration is performed based on the structural fingerprint as the alignment benchmark. The results of the arbitration are used to write or create version branches, and the effective security level is propagated through fingerprint recalculation. Specifically, candidate entries can be matched with existing knowledge units in the knowledge base using simple text similarity to determine potential affiliation positions. Then, for the selected affiliation positions, the content of the candidate entry can be manually compared with that of the existing knowledge unit to determine if merging is possible. If merging is deemed possible, the content of the candidate entry is directly written into the vector index, knowledge graph, and Wiki page. If merging is deemed impossible, an independent version is created for the candidate entry and marked for manual processing. When the Wiki topology changes, fingerprint recalculation of the affected knowledge units can be manually triggered, and the effective security level of the relevant knowledge units is manually evaluated and updated based on the recalculation results. For example, when a Wiki page is moved to a new directory, its fingerprint needs to be recalculated, and its security level may need to be manually adjusted.
[0025] Therefore, when responding to user queries, the consistency between the snapshot at the time of generation and the current fingerprint of the entry point retrieved by the vector index is verified. The fingerprint digest matching status between adjacent units is verified hop-by-hop along the link relationships. Simultaneously, pruning is performed based on the user's security level. Finally, the evidence chain that passes structural and permission verifications is incorporated into the unified knowledge base. For example, when a query vector retrieves an entry knowledge unit in the vector index, the snapshot at the time of generation recorded in the entry knowledge unit's vector metadata can be simply compared with the current fingerprint of that entry knowledge unit. If they are inconsistent, the entry knowledge unit is removed from the retrieval results. For entry knowledge units that pass the verification, they can be expanded along their hyperlink relationships. At each hop of expansion, only the existence of hyperlinks pointing to the current knowledge unit in adjacent knowledge units is checked to confirm the existence of the link relationship. During the expansion process, the security level of the target knowledge unit can be simply compared based on the user's security level. If the user's security level is lower than the security level of the target knowledge unit, the expansion of that path is stopped. For example, if a user queries "company financial statements," the retrieved entry page will not be displayed if its snapshot is inconsistent with the current fingerprint. If they match, the process extends further to the linked "Profit and Loss Statement" page and checks if the user has permission to access it. Through this process, all extended paths that pass the structure and permission checks are collected, forming a chain of evidence.
[0026] The process uses the comparison between the snapshot of the adopted evidence in the evidence chain at the time of adoption and the current fingerprint as the feedback adoption condition. Valid feedback is filtered, and the confidence level of the corresponding unit is updated. The Wiki page with the updated confidence level is then added to the unified knowledge base. Specifically, when a user provides feedback on a piece of evidence in the search results, the system time at which the feedback occurs can be recorded as a snapshot of the adoption time. Then, this snapshot of the adoption time is compared with the current fingerprint of the knowledge unit containing the adopted evidence. If they do not match, the feedback is considered to be for an older version of the knowledge and is marked as invalid feedback. If they match, the feedback is considered valid, and the confidence level of the corresponding knowledge unit is adjusted based on whether the feedback is positive or negative. For example, if a user indicates that a piece of evidence is "useful," the confidence level of the corresponding knowledge unit increases by a fixed value; if they indicate that it is "useless," it decreases by a fixed value. After the confidence level is updated, the Wiki page corresponding to that knowledge unit will be marked as updated and added to the unified knowledge base.
[0027] Based on the above methods, this application addresses the issue of inconsistent representations in enterprise-level knowledge bases during self-growth by introducing structural fingerprints as a unified anchoring mechanism. This method ensures that vector representations, graph triples, and Wiki pages remain synchronized during structural changes, avoiding contradictions between search results and graph context, failures in multi-hop reasoning, and leakage due to unauthorized access. By performing snapshot consistency checks on user feedback, feedback pollution caused by knowledge version iterations is prevented, improving the accuracy and reliability of the knowledge base.
[0028] This application proposes a method, see [link to relevant documentation] Figure 2 Executed by the system's processor, it includes the following steps: 201. Establish a topological anchor for each knowledge unit, and split the Wiki topological position of the topological anchor into a hierarchical channel and an association channel. The hierarchical channel records the node identifiers at each level on the directory path from the root directory to the knowledge unit. The association channel records the set of adjacent pages directly connected to the knowledge unit through hyperlinks and the association type corresponding to each hyperlink. The association type is taken from the classification results of the link relationship in the knowledge graph. 202. Perform iterative neighborhood aggregation independently on the hierarchical channel and the associated channel. In each round, aggregate the labels of the adjacent topological anchors within the neighborhood of the topological anchor along with the corresponding association type into a label group. Perform compression encoding on the label group to obtain the updated label of the topological anchor. After multiple rounds of iteration, the hierarchical fingerprint component and the associated fingerprint component are obtained respectively. The hierarchical fingerprint component and the associated fingerprint component are spliced together to form the structural fingerprint. 203. When the Wiki topology is structurally modified, a depth-limited traversal is performed along the topology from the modified position. The affected topological anchors within the traversal range are added to the recalculation queue. The structural fingerprint of each affected topological anchor is recalculated one by one. After the recalculation is completed, the fingerprint digests of adjacent topological anchors that are records of each other are updated. The recalculation is completed when the recalculation queue is cleared. The depth of this depth-limited traversal matches the number of rounds of the iterative neighborhood aggregation. 204. Write the structural fingerprint of the vector representation, graph triplet and Wiki page at the time of generation or update as a snapshot of the generation time into the metadata of the corresponding representation data. Establish the anchoring association between the three representations with the knowledge unit as the anchor point, and at the same time establish fingerprint summary pairs that record each other between the knowledge unit and each directly adjacent knowledge unit.
[0029] For example, a topological anchor is established for each knowledge unit. This anchor is a unique identifier for each knowledge unit within the Wiki topology, binding its logical content to its position and connections within the topological structure. Through the topological anchor, the system can accurately locate and reference knowledge units, and use it as the center for calculating and managing structural fingerprints. The Wiki topological position of this anchor is divided into hierarchical channels and association channels. Hierarchical channels record the hierarchical structure information of the knowledge unit within the Wiki directory tree. This is represented by a sequence of node identifiers at each level along the path from the root directory to the current knowledge unit, such as directory codes, path hashes, or lists of node IDs. Hierarchical channels reflect the classification and hierarchical relationships of knowledge units and are an important component of their structural fingerprint. Association channels record non-hierarchical relationships between knowledge units and other knowledge units, primarily through hyperlinks. These include the set of adjacent pages directly connected to the current knowledge unit, and the association type attached to each hyperlink. This association type can be obtained from the predefined link relationship classification results in the knowledge graph, such as "reference," "related," or "containment," to characterize the semantic attributes of the link. Association channels can capture the lateral connections and semantic networks of knowledge units, providing rich contextual information for structural fingerprints.
[0030] Building upon this, iterative neighborhood aggregation is performed independently on both the hierarchical channel and the associated channel. Iterative neighborhood aggregation is a method for capturing local topological features of knowledge units through multiple rounds of information transfer and convergence. Performing aggregation independently on the hierarchical and associated channels means that only directory hierarchy relationships are considered when calculating hierarchical fingerprint components, and only hyperlink relationships are considered when calculating associated fingerprint components; no information exchange occurs between the two during the aggregation process. This independence helps maintain the purity of the fingerprint components, enabling them to reflect the hierarchical and associated contexts of knowledge units separately, thereby improving the discriminative power and robustness of structural fingerprints. In each round of aggregation, the topological anchor collects label information from its neighboring topological anchors within its neighborhood. For associated channels, the corresponding association types are also included in the aggregation. These collected labels and association types constitute a label group. To transform this discrete information into a compact and comparable form, the label group is compressed and encoded, for example, through hash functions, feature vector encoding, or bitmap encoding, to generate an updated label representing the aggregation result of the current round. After multiple rounds of iterative aggregation, each channel generates a label sequence, which constitutes the hierarchical fingerprint component and the associative fingerprint component, respectively. Multiple iterations enable the fingerprint to capture broader neighborhood information. These two independent fingerprint components are then concatenated in a predetermined manner, such as connecting them in a fixed positional order, to form a complete structural fingerprint. This concatenation method ensures that the structural fingerprint can simultaneously encode the hierarchical and associative attributes of knowledge units.
[0031] When the Wiki topology undergoes structural changes, such as page movement, link additions or deletions, or directory adjustments, these changes affect the structural fingerprints of related knowledge units. To efficiently respond to these changes, the system performs a depth-limited traversal of the topology, starting from the location of the change. The depth of the depth-limited traversal is typically matched to the number of iterations of neighborhood aggregation to ensure that only knowledge units whose fingerprints are potentially affected are recalculated, avoiding unnecessary global recalculations. During the depth-limited traversal, all topological anchors identified as affected are added to a recalculation queue. The system retrieves topological anchors from the queue according to a certain strategy (e.g., from the nearest to the furthest location of the change) and recalculates their structural fingerprints one by one. This queue mechanism helps manage recalculation tasks, ensuring orderly and efficient processing. After the structural fingerprint of each topological anchor is recalculated, its fingerprint summary, which serves as a record for adjacent topological anchors, needs to be updated. The fingerprint summary is a concise representation of the structural fingerprint, used to quickly verify the consistency between adjacent knowledge units. By updating the summary bidirectionally, the consistency of the local topological structure can be maintained, providing a basis for subsequent query verification. The recalculation process is complete when the recalculation queue is empty.
[0032] To ensure consistency between the topological structure of different representations (vector representations, graph triples, and Wiki pages) and knowledge units in the knowledge base, the structural fingerprints of each vector representation, graph triple, and Wiki page at the time of their generation or update are written as snapshots of their generation moments into the metadata of the corresponding representation data. This snapshot is written into the metadata of the corresponding representation data, such as metadata fields for vector entries, attributes of graph nodes, or header information for Wiki pages. This provides a timestamp and structural context for subsequent version tracking and consistency verification. A logical association is established between the knowledge unit and its vector representation, graph triple, and Wiki page, using the knowledge unit as an anchor. This means that these three different forms of data all point to the same knowledge unit and share its structural fingerprint snapshot. This anchoring association ensures that the representation of the knowledge unit is unified and synchronized across different dimensions, guaranteeing the overall consistency of the knowledge base. Fingerprint summary pairs are established between the knowledge unit and its directly adjacent knowledge units. This means that knowledge unit A will record the fingerprint summary of its adjacent knowledge unit B, and knowledge unit B will also record the fingerprint summary of knowledge unit A. This bidirectional recording mechanism provides a lightweight means of verifying local consistency, enabling rapid checking of the structural integrity between adjacent units during query traversal.
[0033] The above technical solution provides a refined and efficient mechanism for generating and maintaining structural fingerprints, addressing the challenges of ensuring the accuracy, consistency, and synchronous association of knowledge unit structural fingerprints with multimodal representations in complex and ever-changing Wiki topologies. For example, by establishing a topological anchor for each knowledge unit and splitting its Wiki topological position into hierarchical and relational channels, the hierarchical affiliation and semantic association of knowledge units can be comprehensively and meticulously captured, laying a solid foundation for structural fingerprint generation. Based on this, iterative neighborhood aggregation is performed independently on the hierarchical and relational channels, and after multiple iterations, they are concatenated to form a structural fingerprint. This allows the fingerprint to reflect the hierarchical and relational contexts of the knowledge unit separately, improving fingerprint discriminability and robustness to different types of structural changes. When the Wiki topology undergoes structural changes, a depth-limited traversal and recalculation queue mechanism efficiently identifies and updates the affected structural fingerprints, avoiding the overhead of global recalculation. Simultaneously, by updating the fingerprint summaries of adjacent topological anchors, the consistency of the local topological structure is ensured. More importantly, by associating the structural fingerprints generated or updated at the time of creation of vector representations, graph triples, and Wiki pages as snapshots of their creation moments, and establishing anchoring relationships between these three representations using knowledge units as anchor points, this ensures that the representations of knowledge units across different dimensions remain synchronized with specific topological versions. This mechanism provides a reliable alignment benchmark for subsequent three-way arbitration, enabling the arbitration process to make judgments based on accurate structural context. When responding to queries, it can effectively filter out outdated or inconsistent knowledge by verifying the consistency between the entry point's creation moment snapshot and the current fingerprint, and by verifying the fingerprint summary matching status between adjacent units on a hop-by-hop basis. This improves the reliability of the knowledge base and the accuracy of query results.
[0034] This application further proposes establishing a topological anchor for each knowledge unit, splitting the Wiki topological position of the topological anchor into a hierarchical channel and an association channel. The hierarchical channel records the node identifiers at each level on the directory path from the root directory to the knowledge unit, and the association channel records the set of adjacent pages directly connected to the knowledge unit through hyperlinks and the association type corresponding to each hyperlink. Specifically, this includes: the node identifiers at each level in the hierarchical channel are taken from the hierarchical encoding of the Wiki directory tree; the association type of each hyperlink in the association channel is taken from the classification results of link relationships in the knowledge graph; for each hyperlink, the relationship type between the entities at both ends of the hyperlink is extracted from the knowledge graph, and the relationship type is mapped to the association type, which includes at least four categories: subordinate, reference, parallel, and dependent; an association type label is attached to each hyperlink in the association channel, and the association type label is used as the basis for modulating the connection weight in iterative neighborhood aggregation; the association type label is further distinguished into content-carrying associations and directory index associations. The pages connected by the hyperlinks corresponding to the content-carrying associations have content progression or semantic continuity relationships, while the hyperlinks corresponding to the directory index associations only serve navigation or classification functions.
[0035] For example, the node identifiers at each level in this hierarchical channel are derived from the hierarchical encoding of the Wiki directory tree, and the association type of each hyperlink in this association channel is derived from the knowledge graph's classification of link relationships. This means that the location information of a knowledge unit in the hierarchical channel is no longer a simple path string, but is represented by a standardized Wiki directory tree hierarchical encoding, ensuring its structure and uniqueness. The hyperlink type in the association channel is no longer a generic "link," but is directly derived from the knowledge graph's fine-grained classification of relationships between entities, thus giving each link a clear semantic meaning. For example, the hierarchical encoding could be " / product / hardware / processor," while the association type could be "subordinate relationship" or "reference relationship."
[0036] Building upon this foundation, for each hyperlink, the relationship type between the entities at both ends of the hyperlink is extracted from the knowledge graph, and this relationship type is mapped to an association type. This association type includes at least four categories: dependent, reference, parallel, and dependent. This process aims to unify the various fine-grained relationship types that may exist in the knowledge graph (e.g., "is a component," "is a reference," "is a sibling," "is a precondition") into a standardized, more general set of association types. For example, the "is a component" relationship in the knowledge graph can be mapped to a "dependent" association type, and "is a reference" can be mapped to a "reference" association type. This mapping mechanism ensures the standardization and controllability of association types, providing a unified semantic foundation for subsequent structural fingerprint generation.
[0037] Each hyperlink in the associated channel is labeled with an association type, and this label serves as the basis for modulating the connection weights during iterative neighborhood aggregation. By attaching these semantically rich association types as labels to hyperlinks, they are no longer merely connections in the iterative neighborhood aggregation process, but can influence the weights in the aggregation calculation. For example, a "dependent" type link may be assigned a higher weight to emphasize its importance in the structural fingerprint, while a "reference" type link may have a lower weight. This modulation mechanism enables the generated structural fingerprint to more accurately reflect the semantic strength and properties of the connections between knowledge units, thereby improving the fingerprint's discriminative and expressive power.
[0038] This association type tag is further divided into content-carrying associations and directory-indexing associations. Content-carrying associations link pages with a content progression or semantic connection, while directory-indexing associations only serve a navigation or categorization function. This detailed distinction is crucial. Content-carrying associations (such as "dependent" or "dependent") indicate a substantial content connection or logical connection between linked pages, and information flow typically follows these links. Directory-indexing associations (such as certain "parallel" or "referenced" links) are primarily used for navigation, categorization, or providing supplementary information, and do not necessarily represent a strong content connection or information flow. This distinction allows the system to selectively follow content-carrying associations when handling operations such as security level propagation, avoiding inappropriate dissemination of security levels through purely navigational links, thereby improving the accuracy and security of security level propagation.
[0039] By employing the aforementioned technical solutions, and extracting node identifiers for hierarchical channels and association types for related channels from the hierarchical encoding of the Wiki directory tree and the classification results of link relationships in the knowledge graph, the generation of structural fingerprints is ensured to be based on more accurate and semantically rich topological information. For example, by extracting the relationship types between entities at both ends of hyperlinks from the knowledge graph and mapping them to standardized association types (such as subordinate, reference, parallel, and dependent), each hyperlink carries explicit semantic information. These association type labels serve as the basis for modulating connection weights in iterative neighborhood aggregation, enabling the generated structural fingerprints to more accurately reflect the strength and nature of connections between knowledge units, thereby improving the granularity and discriminative power of the structural fingerprints. Furthermore, further distinguishing association type labels into content-carrying associations and directory indexing associations allows the system to differentiate between links with content progression or semantic continuity relationships and links that only serve navigation or classification functions. This distinction is particularly crucial for the subsequent security level propagation mechanism, ensuring that security levels only propagate along the path that truly carries information flow, avoiding unnecessary diffusion or omissions, thereby improving the accuracy and security of security level propagation. Overall, these improvements make the structured representation of the knowledge base more accurate, providing a more solid and intelligent foundation for subsequent knowledge integration, query retrieval, and security classification management.
[0040] This application further proposes the following technical solution. The iterative neighborhood aggregation of the hierarchical channel is performed only along the directory hierarchy, and the iterative neighborhood aggregation of the associated channel is performed only along hyperlinks. The two channels do not exchange intermediate tags during the aggregation process. This technical feature aims to ensure the orthogonality and independence of hierarchical and associated structural information during fingerprint generation. For example, the aggregation operation of the hierarchical channel strictly follows the hierarchical relationship of the Wiki directory tree. For instance, the hierarchical fingerprint component of a knowledge unit is aggregated only from the information of its parent directory, ancestor directories, and sibling directories. The aggregation of the associated channel focuses on the horizontal associations established by knowledge units through hyperlinks. For instance, the associated fingerprint component of a knowledge unit is aggregated only from its directly linked adjacent pages and their associated type information. During the aggregation process, no intermediate tags are exchanged between the two channels, meaning that hierarchical aggregation is not affected by the hyperlink structure, and vice versa. This design avoids confusion between different types of structural information, ensures the purity of each fingerprint component, and thus allows the structural fingerprint to more accurately reflect the structural characteristics of the knowledge unit in different dimensions.
[0041] The tag sequence obtained from hierarchical channel aggregation constitutes the hierarchical fingerprint component, and the tag sequence obtained from association channel aggregation constitutes the association fingerprint component. Directory adjustments only change the hierarchical fingerprint component, and the addition or deletion of hyperlinks only changes the association fingerprint component. This technical feature further clarifies the source of hierarchical and association fingerprint components and their response mechanism to structural changes. After multiple rounds of iterative neighborhood aggregation, the final output tag sequence of the hierarchical channel directly forms the hierarchical fingerprint component, which encodes the position and context information of the knowledge unit in the Wiki directory structure. Similarly, the tag sequence obtained from association channel aggregation constitutes the association fingerprint component, which reflects the semantic association established between the knowledge unit and other knowledge units through hyperlinks. This design makes the structural fingerprint highly interpretable and maintainable: when the Wiki directory structure is adjusted (e.g., page movement, directory renaming), only the hierarchical fingerprint component is affected, without affecting the association fingerprint component; conversely, when hyperlink relationships are added, deleted, or modified, only the association fingerprint component is affected, while the hierarchical fingerprint component remains unchanged. This decoupling mechanism simplifies the scope and complexity of fingerprint recalculation and improves the efficiency and accuracy of fingerprint updates.
[0042] Based on this, the hierarchical fingerprint component and the associated fingerprint component are concatenated in a fixed bit order, with the hierarchical fingerprint component occupying the high-order bit segment and the associated fingerprint component occupying the low-order bit segment. The concatenated complete bit string undergoes a one-way compression transformation to obtain the final value of the structural fingerprint. This technical feature describes how to combine two independent fingerprint components into a unified structural fingerprint and encode it. By using a fixed bit order concatenation method, the positions of hierarchical information and associated information in the final fingerprint are determined and resolvable. Placing the hierarchical fingerprint component in the high-order bit segment and the associated fingerprint component in the low-order bit segment is a common bit encoding strategy that can be adjusted according to actual needs. For example, if it is believed that changes in the hierarchical structure have a greater impact on the identity of knowledge units, they can be given higher weights or more prominent bit segments. The concatenated complete bit string undergoes a one-way compression transformation (e.g., a hash function) to generate a fixed-length, unique final value of the structural fingerprint. This one-way compression transformation can not only map bit strings of arbitrary length to fingerprints of fixed length, making them easier to store and compare, but also enhance the collision resistance of fingerprints to a certain extent, ensuring that even if the original bit string changes slightly, it can still produce significantly different fingerprints, thereby effectively identifying structural changes in knowledge units.
[0043] Through the above technical solution, strict separation and independent aggregation of hierarchical and relational structural information are achieved when generating the structural fingerprint of knowledge units. For example, iterative neighborhood aggregation of hierarchical channels is performed only along the directory hierarchy, while iterative neighborhood aggregation of relational channels is performed only along hyperlinks. Furthermore, the two channels do not exchange intermediate tags during aggregation, fundamentally avoiding mutual interference between different types of structural information and ensuring the purity of their respective fingerprint components. Thus, the tag sequence obtained from hierarchical channel aggregation clearly constitutes the hierarchical fingerprint component, while the tag sequence obtained from relational channel aggregation constitutes the relational fingerprint component. This ensures that directory adjustments only affect the hierarchical fingerprint component, and hyperlink additions and deletions only affect the relational fingerprint component. This explicit mapping relationship allows the structural fingerprint to accurately reflect the structural changes of knowledge units in different dimensions, improving the fingerprint's sensitivity and interpretability. Based on this, by concatenating the hierarchical and relational fingerprint components in a fixed bit order, specifying that the hierarchical fingerprint component occupies the high bit segment and the relational fingerprint component occupies the low bit segment, and then performing a unidirectional compression transformation on the concatenated complete bit string, the final value of the structural fingerprint is obtained. This combination not only ensures the integrity and uniqueness of the fingerprint, but also, through the segmentation of bits, allows the fingerprint to logically distinguish between hierarchical and relational information, providing fine-grained granularity for subsequent fingerprint comparison and change detection. For example, when only a directory adjustment occurs, changes in higher bits will be more significant, while lower bits may remain unchanged, and vice versa. This design enables the knowledge base to more efficiently and accurately identify and respond to different types of structural changes, thereby providing a more stable and reliable alignment benchmark in fingerprint recalculation, three-way arbitration, and consistency verification, improving the self-growth capability and data consistency maintenance level of the enterprise-level unified knowledge base.
[0044] The "one-way compression transformation" mentioned repeatedly in this application can be implemented using cryptographic hash functions (such as SHA-256, SM3) or Locality-Sensitive Hashing (LSH) to map the concatenated fingerprint components of arbitrary length to a fixed-length structural fingerprint output value. Taking SHA-256 as an example, for the complete bit string generated by concatenating hierarchical fingerprint components and associated fingerprint components in a fixed bit order, SHA-256 calculates a 256-bit fixed-length output, which serves as the structural fingerprint of the knowledge unit at the current topological moment. In the construction of fingerprint digest pairs between adjacent units, SHA-256 can also be used to perform a one-way compression transformation on the updated structural fingerprint, and the result is written into the mutual digest table of directly adjacent anchors, ensuring that the storage and comparison overhead of the digest is controllable.
[0045] Furthermore, the "label group" aggregation in the "iterative neighborhood aggregation" of this application can adopt a neighborhood information aggregation method based on graph neural networks: taking the current label of the topological anchor as the initial state vector, in each iteration, the label vectors of all adjacent topological anchors within the neighborhood are weighted and summed according to the weights modulated by the associated type label corresponding to the connection. The weighted sum is then concatenated with its own label vector (Concat), and after passing through a fully connected network and a nonlinear activation function (such as ReLU), the updated label for this round is obtained. The "compression encoding" can use MinHash, SimHash, or a bitmap encoding strategy based on Bloom filters to reduce the dimensionality of the label group, so that the encoded label maintains sufficient neighborhood pattern distinguishability and has collision resistance. For example, SimHash can be used to map the text concatenated by each adjacent label and its associated type label in the label group into a fixed-length binary fingerprint, which serves as the output label for this round of aggregation, ensuring that the label length is constant and robust to input perturbations.
[0046] This application further proposes a method for recalculating the structural fingerprint of a Wiki when its topology is altered. This involves performing a depth-limited traversal along the topology from the altered location, adding affected topological anchors within the traversal range to a recalculation queue, recalculating the structural fingerprint of each affected anchor, and updating the fingerprint digests of adjacent topological anchors after recalculation. The recalculation is complete when the recalculation queue is emptied. Specifically, this includes: starting from the altered location, performing a breadth-first traversal along the associated channel, incrementing a depth counter by 1 for each hop outward, and stopping the traversal when the depth counter reaches a specified depth limit; adding all topological anchors along the traversal path to the recalculation queue, ensuring each anchor appears only once; recalculating the fingerprints of topological anchors sequentially from the altered location in ascending order; after recalculating the fingerprint of each anchor, traversing all its direct neighbors, compressing the updated fingerprint of the anchor, and writing it into the mutual digest table of each direct neighbor; simultaneously, retrieving the updated fingerprint of each direct neighbor anchor, compressing it, and updating its own mutual digest table.
[0047] For example, starting from the location of the change, a breadth-first traversal is performed along the association channels to efficiently and with boundaries identify knowledge units affected by the structural changes. Breadth-first traversal ensures that it expands outward layer by layer from the source of the change, prioritizing the knowledge units closest to the change. Association channels specifically refer to traversing along hyperlink relationships, which closely matches the actual semantic connections and information flow between knowledge units. A depth counter is used to record the number of traversal layers, and specifying a depth limit sets clear boundaries for the traversal, avoiding unlimited traversal in large wiki topologies, thus effectively controlling the scope of recalculation and improving efficiency.
[0048] Adding all topological anchors traversed along the path to the recalculation queue, and ensuring that each anchor appears only once in the queue, is to avoid redundant calculations and wasted resources. The strategy of recalculating fingerprints by retrieving topological anchors sequentially from the nearest to the modified location is crucial. Since the generation of structural fingerprints depends on their neighborhood information, changes in the fingerprints of topological anchors closer to the modified location may affect the fingerprints of more distant anchors. Therefore, prioritizing the recalculation of anchors closer to the modified location ensures that updated fingerprint information in the neighborhood is available when recalculating more distant anchors, thus guaranteeing the accuracy and consistency of fingerprint recalculation.
[0049] After each topological anchor fingerprint is recalculated, it is necessary to traverse all its directly adjacent anchors and perform bidirectional fingerprint digest updates. Specifically, the updated fingerprint of the current topological anchor is compressed and then written into the mutual digest table of each of its directly adjacent anchors. The updated fingerprint is then retrieved from each directly adjacent anchor, compressed, and updated into its own mutual digest table. This bidirectional update mechanism ensures that, even after topological changes, the fingerprint digest pairs between all directly adjacent knowledge units remain synchronized and consistent. The use of unidirectional compression effectively reduces storage and transmission overhead while ensuring sufficient digest information for consistency checks.
[0050] The above technical solutions accurately define the scope of impact of Wiki topology changes, avoiding unnecessary global recalculation and improving the efficiency of fingerprint recalculation. An ordered recalculation queue processing mechanism ensures that fingerprint update dependencies are handled correctly, thereby guaranteeing the accuracy of the structural fingerprint of each knowledge unit. Furthermore, the bidirectional update mechanism of mutual fingerprint summary recording between adjacent topological anchors effectively maintains the consistency of the topology, ensuring that the knowledge base can still provide reliable structural information during dynamic changes, providing a solid foundation for subsequent three-way arbitration and query verification.
[0051] The “version chain” data structure cited in many places in this application can be organized and maintained in the following way: The version chain uses the knowledge unit identifier as the primary key and adopts a singly linked list or Merkle DAG (directed acyclic graph) structure to organize each version node. Each version node contains at least the following fields: (1) Version identifier - a globally unique version number or hash value; (2) Structure fingerprint snapshot - the knowledge unit structure fingerprint corresponding to the time of generation of this version; (3) Parent version identifier - a pointer to the previous version, the parent version identifier of the initial version is empty; (4) Creation timestamp - the generation time of this version; (5) Operation type - the operation that triggers the generation of this version, such as “LLM extraction”, “user editing”, “arbitration merging”, “version fork”, etc.
[0052] In version forking scenarios, version chains of the same knowledge unit can form a branch structure, that is, a parent version can correspond to multiple child version branches. The version nodes of each branch are linked to the common ancestor node through the parent version identifier field, forming a tree-like or DAG-like version topology. The version chain supports the following core operations: (1) Forward tracing—traversing backward from any version node along the parent version identifier chain to the initial version; (2) Version comparison—comparing the topological differences between two versions through structural fingerprint snapshots; (3) Snapshot positioning—quickly locating the corresponding version node in the version chain based on the structural fingerprint value. The persistent storage of the version chain can adopt a relational database (such as using the knowledge unit identifier + version identifier as a composite primary key) or a content-addressable key-value store (such as using the structural fingerprint as the key).
[0053] This application further proposes a specific method for associating the vector representation, graph triples, and Wiki page with a snapshot of the generation time of the structural fingerprint. See [link to relevant documentation]. Figure 3 Taking the system's processor as the execution subject as an example, the following steps are included.
[0054] 301. When vector entries, graph nodes, and Wiki pages are generated or updated, the system will write the structural fingerprint at that time as a snapshot of the generation time into the metadata of the corresponding representation data, and establish anchoring associations between the three representations with each knowledge unit in the Wiki topology as the anchor point.
[0055] This means that whether it is a vector representation, a graph triple, or a Wiki page, the structural fingerprint at the time of its creation or most recent modification will be accurately recorded as a timestamped snapshot of that data version, and all these different forms of data are closely linked by a common knowledge unit identifier, ensuring that they logically point to the same knowledge entity.
[0056] 302. Using the knowledge unit identifier as the primary key, establish a mapping relationship between the three types of entries—vector entries, graph nodes, and Wiki pages—and the corresponding snapshots generated at the time of creation in the unified index table.
[0057] This unified index table not only supports forward queries by knowledge unit identifier to retrieve all representations of that knowledge unit and their corresponding snapshots, but also supports reverse queries by snapshot value to locate all knowledge unit identifiers associated with a specific structural fingerprint snapshot. In this way, the system can efficiently manage and retrieve the association information between different representations and structural fingerprint snapshots, providing a foundation for subsequent consistency checks and data synchronization.
[0058] Furthermore, this association record is maintained using an event-driven approach. When any representation is updated, the system automatically locates the corresponding entries in the other two representations using the knowledge unit identifier as an index, and refreshes the snapshots of the three representations at their generation time to the updated structural fingerprint. This refresh operation is executed in an atomic transaction manner, ensuring that the snapshots of the three representations are either all updated or all rolled back. This means that any modification to a knowledge unit, regardless of whether it initially occurred on a vector, graph, or Wiki page, will trigger a synchronous update mechanism, updating the snapshots of all related representations to the latest structural fingerprint. The introduction of atomic transactions fundamentally guarantees that the snapshots of all representations remain consistent during the update process, avoiding data mismatch problems caused by partial update failures.
[0059] The above technical solution addresses the challenge of ensuring consistency, real-time performance, and atomicity between various data representations (vector representations, graph triples, and Wiki pages) and structural fingerprint snapshots in a dynamic knowledge base environment. By generating snapshots for each representation record and establishing anchoring relationships, the system can accurately track data versions of knowledge units under different structural states. The establishment of a unified index table improves the management and query efficiency of these related information, facilitating rapid location and verification of data consistency. Crucially, the event-driven atomic transaction refresh mechanism ensures that when any part of a knowledge unit is updated, snapshots of all related representations are synchronously and error-free updated to the latest structural fingerprint, thus avoiding data mismatch or state asynchrony issues. This enhances the data integrity and reliability of the enterprise-level unified knowledge base, providing a solid and consistent data foundation for subsequent knowledge arbitration, query response, and feedback processing.
[0060] This application further proposes that when vector entries, graph nodes, and Wiki pages are generated or updated, the structural fingerprint at that time is written as a snapshot of the generation moment into the metadata of the corresponding representation data. An anchoring relationship is established between the three representations using each knowledge unit in the Wiki topology as an anchor point. For example, the metadata of a vector entry carries at least the knowledge unit identifier and the structural fingerprint snapshot at the generation moment; the metadata of a graph node carries at least the knowledge unit identifier; and the header of the Wiki page records at least the knowledge unit identifier and the current structural fingerprint. The knowledge unit identifier recorded in the metadata of a vector entry is used to associate it with a specific knowledge unit, while the structural fingerprint snapshot at the generation moment records the generation information of the vector representation in a specific state of the Wiki topology, providing a benchmark for subsequent consistency checks. The metadata of a graph node includes the knowledge unit identifier, ensuring that entities in the graph can be accurately mapped back to their corresponding knowledge units. The header of the Wiki page records the knowledge unit identifier as the primary key of the knowledge unit and records the current structural fingerprint, which represents the latest topology state of the Wiki page. The settings of these metadata fields lay the foundation for subsequent cross-modal data association and consistency checks.
[0061] This knowledge unit identifier anchors vector representations, graph triples, and Wiki pages onto the same knowledge unit. When any representation changes, the corresponding parts of the other two representations are located along this knowledge unit identifier. This means the knowledge unit identifier acts as a unified anchor connecting vectors, graphs, and Wiki pages. When any representation changes (e.g., a change in the structural fingerprint due to a Wiki page content update), the system can quickly locate the corresponding parts of the other two representations (vector representation and graph triples) using this knowledge unit identifier, thus performing necessary synchronization or consistency checks. This mechanism ensures strong logical correlation between different modalities of data in the knowledge base, enabling efficient management and collaboration even with separate physical storage through a unified identifier.
[0062] Furthermore, a background sampling comparison is performed on the generation snapshots of the three representations and the current fingerprint of the knowledge unit, triggered by an event. When inconsistencies are found, the inconsistent representation is marked as pending synchronization, and the inconsistency type and discovery time are recorded. This pending synchronization state serves as a maintenance signal for the anchor association, which is then read by subsequent repair processes. To proactively detect and resolve data inconsistency issues, this application designs a background comparison mechanism. This mechanism can be triggered by specific events (e.g., scheduled tasks, Wiki page update events, etc.) to compare the generation snapshots recorded in the metadata of vector representations and graph triples with the current structural fingerprint recorded in the header of the Wiki page. Once an inconsistency is found, it indicates that the data state of a certain representation does not match the latest structural state of the knowledge unit. At this time, the system marks the inconsistent representation as "pending synchronization" and records the inconsistency type (e.g., vector snapshot inconsistency, graph snapshot inconsistency) and discovery time in detail. This "pending synchronization" marking serves as a clear maintenance signal that can be identified and processed by subsequent automated repair processes or manual intervention processes, ensuring the long-term data health of the knowledge base.
[0063] The above technical solution effectively addresses the challenge of maintaining consistency of multimodal data (vectors, graphs, wiki pages) in a dynamically updated enterprise-level unified knowledge base. By embedding key identifiers and snapshot information into the metadata of each representation and establishing anchoring relationships centered on knowledge unit identifiers, tight coupling between different modalities of data is achieved. More importantly, an event-triggered background sampling and comparison mechanism can promptly and proactively detect data inconsistencies and mark them as pending synchronization, providing clear guidance for subsequent remediation processes. This not only improves the data integrity and reliability of the knowledge base, avoiding query errors or misleading information due to data inconsistencies, but also ensures that the knowledge base can still provide relatively accurate services in the face of data drift by downweighting or marking inconsistent representations as pending repair, and provides a foundation for system self-healing, thereby enhancing the robustness and availability of the enterprise-level knowledge base.
[0064] This application further proposes a method for managing and maintaining the associated records of multimodal representations of knowledge units. For example, the forward query takes a knowledge unit identifier as input and returns three records corresponding to that knowledge unit identifier: a vector entry, a graph node, and a Wiki page, along with their respective generation snapshots. These three records are stored physically adjacent in the unified index table according to the knowledge unit identifier. The reverse query takes a snapshot value as input and returns a list of all knowledge unit identifiers carrying that snapshot value. This list is used to locate which representation snapshots need to be refreshed after fingerprint recalculation. When any representation is updated, the corresponding entry is located in the unified index table using the knowledge unit identifier as an index. The generation snapshot field of that entry is updated to the current structure fingerprint. After the update, the reverse query is executed with the updated snapshot value to confirm that there are no residual entries carrying the old snapshot value in the unified index table.
[0065] Forward querying is one of the most common operations in knowledge bases. Its function is to quickly retrieve all relevant information about a knowledge unit at different representation levels based on a known knowledge unit identifier. By physically contiguously storing vector entries, graph nodes, and Wiki pages, along with their respective snapshots at the time of creation, in a unified index table according to the knowledge unit identifier, query efficiency can be significantly improved. When the system receives a query request for a specific knowledge unit, it can directly locate the storage area through the knowledge unit identifier and read all relevant representations and snapshots of that knowledge unit at once, avoiding the overhead of multiple I / O operations or cross-table queries. This physically contiguous storage implementation can employ clustered indexes in a database or specific data file organization methods to ensure the continuity of related data on disk, thereby optimizing disk seek time and data transfer efficiency.
[0066] Reverse lookup is a key mechanism in this method for maintaining data consistency. Its function is to quickly identify all knowledge unit identifiers currently carrying a specific snapshot value (i.e., a snapshot taken at the time the structural fingerprint was generated). After the structural fingerprint of the knowledge base is recalculated or updated, it is necessary to identify which knowledge unit representations (vectors, graphs, Wiki pages) are still associated with the old snapshot value in order to refresh them. By establishing a reverse lookup mechanism indexed by snapshot values, the system can efficiently locate these knowledge units that need to be refreshed, avoiding the inefficient operation of scanning and comparing the entire knowledge base. This reverse index can be implemented using data structures such as inverted indexes or hash tables, mapping snapshot values to corresponding lists of knowledge unit identifiers, thereby supporting fast lookups.
[0067] This step describes how to ensure that the associated generation snapshot remains consistent with the latest structural fingerprint when any representation of a knowledge unit (vector, graph, or wiki page) is updated. When a representation is updated, the system locates the corresponding record in the unified index table using the knowledge unit identifier. Then, the generation snapshot field stored in that record is updated to the latest structural fingerprint of that knowledge unit. To further ensure data consistency and integrity, the system immediately performs a reverse lookup using the updated snapshot value after the snapshot update. The purpose of this reverse lookup is to verify whether any residual entries carrying old snapshot values still exist in the unified index table. If the reverse lookup result shows residual entries, it indicates a potential data inconsistency or incomplete update. The system can then trigger alerts or further remediation mechanisms to prevent data "ghosts" or inconsistent states, ensuring the healthy operation of the knowledge base.
[0068] By introducing a unified index table and supporting both forward and reverse queries, this method improves the retrieval efficiency and data consistency maintenance capabilities of multimodal representation data (vector entries, graph nodes, Wiki pages) in the knowledge base. Forward queries, using knowledge unit identifiers as input, quickly and completely retrieve all associated representations of a knowledge unit and their snapshots at the time of its generation. Optimization of physically adjacent storage reduces data read latency. Reverse queries provide an efficient mechanism to quickly locate all knowledge units requiring snapshot updates after structural fingerprint recalculation, avoiding a full database scan and significantly reducing maintenance costs and time. Furthermore, after any representation is updated, by immediately updating the snapshot and performing a reverse query to confirm the absence of old snapshot remnants, this method proactively detects and corrects potential data inconsistencies, ensuring the knowledge base always reflects the latest knowledge state. This provides a solid and reliable data foundation for subsequent three-way arbitration, query verification, and other processes.
[0069] This application further proposes that when the atomic transaction fails, the knowledge unit is marked as pending repair. In this pending repair state, the retrieval ranking score of the knowledge unit is subject to a decay weight but not removed from the index. The lagging side is located by comparing the registration time of the snapshots of the three representations at their respective generation times with the version chain. The representation with the oldest snapshot registration time and the one that deviates from the current fingerprint is determined as the lagging side. The missing update records of the lagging side are extracted from the version chain and replayed to fill in the missing records according to the original update order. After the replay is completed, the structural fingerprint of the knowledge unit is recalculated and compared with the current fingerprint. If they match, the pending repair mark is removed. If the version chain is missing or the fingerprints of the three representations are still inconsistent after the replay is completed, the graph triples are re-extracted from the Wiki page text and the vector representation is regenerated. After the reconstruction is completed, the pending repair mark is removed, and the snapshots of the generation times of the three representations are uniformly refreshed to the reconstructed structural fingerprint in an atomic transaction manner.
[0070] For example, when the system attempts to update the snapshots of the generation times of the vector representation, graph triples, and Wiki page of a knowledge unit using atomic transactions, if the transaction fails to commit, it indicates that the data for that knowledge unit may be in an inconsistent state. In this case, the system marks the knowledge unit as "pending repair" to clarify that it requires further processing. In this state, to avoid the inconsistent data having an excessively negative impact on search results without completely blocking accessibility, the system applies a decay weight to its ranking score in the search results. This means that the knowledge unit's ranking in the search results will decrease, but it will still remain in the index, allowing users to access it when necessary and providing a time window for subsequent repair processes. For example, a decay coefficient (such as 0.5) can be set, multiplying the original search score by this coefficient to reduce its priority in the ranking.
[0071] To accurately repair inconsistent knowledge units, the system needs to identify which representation (vector, graph, or wiki page) is "lagging," meaning it failed to update to the latest state. This is achieved by comparing the registration times of the snapshots generated by each of the three representations; the oldest registered representation is typically the lagging one. These snapshots are then checked to see if they deviate from the knowledge unit's current structural fingerprint, further confirming that its data is outdated. Once the lagging one is identified, the system extracts the missing update records from the knowledge unit's version chain. These update records contain all successful modifications from the lagging snapshot time to the current time. The system then "replays and completes" the lagging one update record at a time, following the original order of these update records, gradually catching up to the latest state. For example, if a wiki page is lagging, and its version chain records multiple updates to the graph and vectors, the system will attempt to synchronize and update the wiki page based on these update records.
[0072] After replaying and completing the lagging representations, the system recalculates the structural fingerprint of the knowledge unit to verify the effectiveness of the repair. This newly calculated fingerprint is compared with the current structural fingerprint of the knowledge unit. If they match, it indicates that the three representations of the knowledge unit have been restored to a consistent state through the replay and completion operation, and match the latest structural fingerprint. At this point, the system removes the "to be repaired" mark from the knowledge unit, restoring it to its normal state, and the retrieval ranking score is no longer subject to attenuation weighting.
[0073] In certain complex situations, such as incomplete or corrupted version chain records, or even after replaying and completion, the fingerprints of the three representations of a knowledge unit may still not be consistent, indicating that simple incremental repair is insufficient to solve the problem. In such cases, the system adopts a more thorough "reconstruction" strategy. It uses the Wiki page text as the most reliable baseline data source, as Wiki pages are typically manually edited and maintained, possessing high authority. Based on the Wiki page text, the system reuses tools such as large language models to extract the latest graph triples and regenerate the corresponding vector representations. After reconstruction, the system removes the "pending repair" mark from the knowledge unit and, again through atomic transactions, refreshes the snapshots of the generation times of these three representations (the reconstructed Wiki page, graph triples, and vector representations) to a unified reconstructed structural fingerprint, ensuring complete logical and physical consistency of the data.
[0074] The above technical solution addresses the issue of data consistency in enterprise-level unified knowledge bases when atomic transaction updates of multimodal knowledge representations (vectors, graphs, Wiki pages) fail. When an atomic transaction fails, the system promptly marks the affected knowledge units as pending repair and applies a decay weight to their retrieval ranking score. This reduces the negative impact of inconsistent data on user query results without completely removing the accessibility of knowledge units, ensuring the availability of the knowledge base. Furthermore, this application intelligently locates lagging components and uses version chains for incremental replay completion, efficiently repairing most data inconsistencies and avoiding unnecessary full reconstruction, thus improving repair efficiency and resource utilization. For extreme cases where version chains are missing or replay completion still fails to achieve consistency, this application performs comprehensive graph triplet and vector representation reconstruction based on the Wiki page text, ensuring the authority and eventual consistency of the data source and completely eliminating the risk of data inconsistency. Furthermore, after the repair is completed, the generation snapshots of the three representations are refreshed uniformly through atomic transactions, ensuring complete logical and physical synchronization of knowledge units. This provides a solid data foundation for subsequent knowledge evolution, query response, and feedback adoption. This layered and intelligent repair strategy not only guarantees the data integrity and reliability of the knowledge base but also enhances the system's robustness and self-healing capabilities, enabling the enterprise-level unified knowledge base to operate stably in large-scale, high-concurrency, and complex environments.
[0075] This application proposes a refined three-way arbitration mechanism, using the structural fingerprint as an alignment benchmark to process candidate entries extracted and structured from source documents by a large language model. For mergeable cases, entries are simultaneously written to the vector index, knowledge graph, and Wiki page under the condition of consistent budget fingerprints; for non-mergeable cases, parallel version branches are established.
[0076] For example, to find the most suitable integration point for a new candidate entry, the system locates existing corresponding nodes in the knowledge graph based on candidate triples extracted from the candidate entry through entity relations. The anchor points to which these existing corresponding nodes are attached are considered "graph path candidate positions." The system uses the vector representation of the candidate entry to recall semantically similar existing knowledge units in the vector index; the anchor points to which these units are attached constitute "vector path candidate positions." To integrate structural and semantic information, the system prioritizes the intersection of the graph path candidate positions and the vector path candidate positions as the "candidate attachment position." If the intersection is empty, the union is used as a fallback option to ensure that new knowledge can always find a potential attachment point. This dual-path localization strategy can significantly improve the accuracy of aligning new knowledge with existing knowledge and avoid incorrectly associating new knowledge with irrelevant knowledge units. For example, a new entry about "product A feature B" may be found in the graph as a node of "product A", or it may be highly similar to the semantic vector of "product A" or "feature B" in the vector space. By using the intersection priority strategy, it can be ensured that it is accurately attached to the knowledge unit of "product A".
[0077] After identifying candidate attachment locations, the system performs a thorough "three-path comparison" to identify potential conflicts and merging opportunities. These three paths include: the baseline, the current state, and the newcomer. The baseline is the common ancestor version of existing pages at the candidate attachment location in the version chain, providing a stable historical reference point. The current state represents the latest state of the candidate attachment location in the current knowledge base, encompassing its vector representation, graph relationships, and the current Wiki topology. The newcomer refers to the changes brought about by the candidate entry. Using this structural fingerprint as an alignment benchmark, the system decomposes the change path from the baseline to the current state (reflecting the evolution of existing knowledge) and the change path from the baseline to the newcomer (reflecting the introduction of new knowledge) into hierarchical and relational components, respectively. By analyzing the sub-neighborhood range and direction of change touched by these two change paths, the system can perform refined three-class arbitration to determine whether the old and new knowledge can be merged, requires version forking, or has a direct conflict. For example, if the old and new modification paths are in different sub-neighborhoods, they may be determined as a conflict-free merge; if they involve the same sub-neighborhood but are in the same direction, further double verification may be required; if the directions conflict, it is directly determined as a version fork. This multi-dimensional comparison mechanism can effectively identify subtle differences and potential conflicts in the knowledge evolution process, providing intelligent decision-making for subsequent knowledge fusion.
[0078] Based on the arbitration results, the system adopts different processing methods. For candidate entries deemed suitable for merging by arbitration, the system does not immediately write them to the knowledge base. Instead, it generates updated content for these entries in the vector index, knowledge graph, and Wiki page in a "preparatory area," while simultaneously "budgeting" the updated structural fingerprint. Only when the structural fingerprints budgeted by these three representations are consistent are they considered a complete and consistent update, and are committed to the knowledge base in a single atomic operation. This budgeting and consistency checking mechanism ensures high consistency between the updated multimodal representations in the knowledge base, avoiding data mismatches caused by partial updates. For candidate entries deemed to be version forks by arbitration, the system establishes a parallel version branch at the candidate's attachment position. This parallel version branch carries an independent fingerprint snapshot and confidence level, existing in parallel with the existing version. Conflict points are registered in detail in the "arbitration queue" for further manual or automatic processing. This approach preserves the potential value of new knowledge while preventing inconsistencies from directly polluting the main knowledge base, providing flexibility and traceability for knowledge evolution.
[0079] The aforementioned technical solution ensures that new knowledge generated by the large language model, when integrated into an enterprise-level unified knowledge base, can be accurately located, intelligently arbitrated, and consistently updated. This mechanism avoids data inconsistencies or knowledge contamination caused by conflicts between old and new knowledge, enhancing the robustness, reliability, and maintainability of the knowledge base. Especially in scenarios where the knowledge base is continuously self-growing, this solution effectively manages knowledge evolution and version conflicts, ensuring that the knowledge base consistently provides high-quality, highly consistent knowledge services, thus providing a solid data foundation for enterprise decision-making and business applications. By preserving version forks and registering conflict points, a clear path is provided for subsequent knowledge governance and manual intervention, enabling the knowledge base to better adapt to complex and ever-changing business needs.
[0080] The calculation mechanism of the "budget fingerprint" in this application is as follows: Before performing the merging operation on the candidate entries, the system simulates the complete structural fingerprint generation process in the "prefetch area", but does not write the results to the vector index, knowledge graph and Wiki page in the production environment. For example: (1) Based on the proposed attachment position of the candidate entries, a temporary topological snapshot containing the content to be updated is constructed in memory; (2) The same iterative neighborhood aggregation and one-way compression transformation as the formal process is performed on the affected topological anchors in the temporary topological snapshot to obtain the "budget fingerprint" of each affected knowledge unit; (3) The budget fingerprints corresponding to the three representations of vector index, knowledge graph and Wiki page are compared to see if they are consistent with each other. The "consistency" means that the budget fingerprint values calculated by the three representations through their respective fingerprint generation paths are completely the same, indicating that the update to be generated is structurally self-consistent from the three dimensions of vector semantics, graph structure and Wiki topology. Only when the budget fingerprints of the three representations are all consistent will the system perform an atomic commit operation and write the updated content in the prefetch area to the production environment at once. If the budget fingerprint of any representation is inconsistent with other representations, it indicates a potential data conflict or logical inconsistency. The system will abandon this merge, roll back the contents of the preparation area, and reroute the candidate entries to the three-way arbitration process or the queue to be arbitrated.
[0081] This application further proposes that when determining candidate anchoring positions, if the intersection of the candidate position of the graph path and the candidate position of the vector path is not empty, the anchors within the intersection are used as candidate anchoring positions; if the intersection is empty, the anchors within the union are used as candidate anchoring positions, and a specified number of anchors are selected in descending order of semantic similarity. When the union of the candidate position of the graph path and the candidate position of the vector path is also empty, or the semantic similarity of all anchors in the union is lower than a specified threshold, a new Wiki page is created under the appropriate node in the Wiki directory tree, and minimum association is established. When there are multiple candidates for the candidate position of the graph path and the candidate position of the vector path, the neighborhood connection density of each candidate position is used as the priority ranking criterion, with higher neighborhood connection density candidate positions having higher priority, and the candidate position with the highest priority is taken as the final anchoring position.
[0082] For example, when determining candidate anchoring positions, this application attempts to find the intersection between candidate graph path positions and candidate vector path positions. When the intersection is not empty, it indicates that both structured knowledge (graph) and semantic representation (vector) point to the same knowledge unit (anchor). In this case, the system will prioritize anchors that are confirmed in both modalities as candidate anchoring positions. This strategy ensures that new knowledge can be integrated into the most explicit and multimodal validated existing knowledge units, thereby improving the accuracy and reliability of knowledge integration. If the intersection is empty, that is, the two modalities do not directly point to the same set of anchors, the system will expand the search scope and consider the union of candidate graph path positions and candidate vector path positions. When selecting anchors from the union, they are sorted in descending order according to semantic similarity, and a specified number of anchors are selected. This allows the system to provide reasonable anchoring options based on semantic relevance even when strong consistency is lacking, avoiding the omission of potential associations, while the quantity limit avoids introducing too many irrelevant candidates.
[0083] This application considers the scenario where the union of candidate positions in the graph path and candidate positions in the vector path is also empty, or where the semantic similarity of all anchors in the union is below a preset threshold. In this case, it indicates that the new knowledge has not found a suitable attachment point in the existing knowledge base. Instead of forcibly attaching the new knowledge to unrelated existing knowledge units, the system chooses to create a new Wiki page under an appropriate node in the Wiki directory tree. This appropriate node can be intelligently recommended based on the candidate entry's topic classification, keywords, or a preset knowledge domain structure. The system establishes minimal associations for the newly created Wiki page, such as automatically generating links with parent directory nodes and related topic pages, or establishing links with entities in the existing knowledge graph based on a small number of key entities extracted from its content. This ensures that even entirely new knowledge will not become an isolated information island, but can be initially integrated into the overall structure of the knowledge base, providing a foundation for subsequent knowledge growth and association.
[0084] Furthermore, when the combination of candidate positions for graph paths and candidate positions for vector paths generates multiple potential candidate attachment positions, this application introduces neighborhood connection density as a priority ranking criterion. Neighborhood connection density refers to the richness and importance of connections within a knowledge unit's local topology. For example, it can be calculated by considering the number of hyperlinks connected to an anchor, the types of these links (e.g., content-carrying associations have a higher weight than directory-indexing associations), and the confidence level of its neighboring nodes. Knowledge units with higher connection density typically play a more core and authoritative role in the knowledge base, or are closely connected to more related knowledge. Therefore, attaching new knowledge to candidate positions with higher neighborhood connection density maximizes the relevance of new knowledge to existing knowledge, making it easier to discover and utilize, and helps maintain the structural stability and logical consistency of the knowledge base. The system calculates the neighborhood connection density of each candidate attachment position and selects the one with the highest density as the attachment position.
[0085] The above technical solutions address the challenge of accurately and intelligently determining the optimal placement of candidate entries during knowledge base construction. By prioritizing the intersection of candidate positions in the graph path and the vector path, the system ensures that new knowledge finds a highly consistent affiliation in both structure and semantics, improving the accuracy and reliability of knowledge integration. When such strong consistency is lacking, the system uses a combination of union and semantic similarity in descending order to flexibly find suitable placement points within a broader range of semantic relevance, avoiding knowledge omissions caused by overly strict matching conditions. For new knowledge for which no existing placement point can be found, this application provides a mechanism to create a new Wiki page under an appropriate node in the Wiki directory tree and establish minimal associations. This not only prevents new knowledge from becoming isolated information islands but also ensures the continuous expansion capability of the knowledge base and the initial integration of new knowledge. When multiple candidate placement points exist, neighborhood connection density is introduced as a priority ranking criterion, allowing new knowledge to be preferentially placed in more core and relevant positions within the knowledge network, thereby maximizing the visibility and usability of new knowledge and further enhancing the structural stability of the knowledge base and the interoperability between knowledge points. These mechanisms work together to make the construction process of an enterprise-level unified knowledge base more intelligent, automated, and robust, thereby improving the quality and efficiency of knowledge integration.
[0086] This application further proposes a three-path comparison of selected candidate affiliation locations: baseline, current status, and new arrival. Using structural fingerprints as the alignment benchmark, the modification path from the baseline to the current status and from the baseline to the new arrival are decomposed into hierarchical and relational components, respectively. A three-class arbitration is then performed based on the sub-neighborhood range and modification direction reached by the two modification paths. For example, when the sub-neighborhoods reached by two modification paths do not overlap, it is determined to be a conflict-free merger. This means that changes to old and new knowledge are completely independent in terms of topological structure and can be safely integrated, thereby improving the efficiency of knowledge integration.
[0087] When changes affect the same sub-neighborhood and are consistent in direction, the system performs dual checks. These checks include ontology consistency checks on the graph side and semantic direction consistency checks on the vector side. The graph-side ontology consistency check aims to ensure the logical compatibility of new and old knowledge from a structured knowledge perspective. It includes type constraint checks to verify whether the types of entities or attributes conform to predefined ontology specifications; cardinality constraint checks to check whether the quantity restrictions on relationships between entities are met; and incompatible relation constraint checks to identify whether logically mutually exclusive relationships exist. These checks prevent logical contradictions or structural errors in the knowledge graph. The vector-side semantic direction consistency check verifies at the semantic content level, determining whether the offset direction of candidate vectors is the same as that of existing vectors. For example, if new knowledge is a refinement or extension of existing knowledge, its vector offset direction should be consistent with the semantic evolution direction of existing knowledge. This check helps identify new knowledge that appears related but is semantically inconsistent.
[0088] A convergence and merging operation is only considered successful when both checks pass. This means that the new knowledge is not only compatible with the existing knowledge base in terms of structured representation, but also maintains consistency with or reasonably evolves from existing knowledge in terms of deep semantics, thus ensuring the quality of the merging operation and avoiding the introduction of inaccurate or contradictory knowledge. Conversely, if either check fails, a version fork is identified. Furthermore, when changes affect the same sub-neighborhood and conflict in direction, the system directly identifies a version fork without requiring double checks. This direct determination mechanism can quickly identify explicit conflicts and avoid unnecessary check overhead.
[0089] Through the aforementioned technical solutions, this method can more intelligently and accurately handle the integration of new knowledge generated by large language models with existing knowledge bases. By introducing detailed conflict determination rules and a dual verification mechanism, this method improves the accuracy and reliability of knowledge merging, avoiding the blind integration of superficially consistent but deeply conflicting knowledge. For conflicts that cannot be directly merged, the system can promptly identify and isolate them, and by establishing parallel version branches, it provides a clear conflict management mechanism for subsequent manual arbitration or more complex automatic repairs, thereby maintaining the overall consistency and data quality of the unified knowledge base, while optimizing the efficiency of knowledge updates and the conflict resolution mechanism.
[0090] The specific implementation of the "decomposition of the modification path from the baseline to the current status and the modification path from the baseline to the new status into hierarchical components and associated components" in this application is as follows: (1) Taking the structural fingerprints of the baseline version, the current status version, and the new status (candidate entry) version as input, respectively, extract the high-order segments of the hierarchical fingerprint components and the low-order segments of the associated fingerprint components; (2) Perform a bit-by-bit comparison between the baseline hierarchical fingerprint components and the current status hierarchical fingerprint components, and perform a bit-by-bit comparison between the baseline hierarchical fingerprint components and the new status hierarchical fingerprint components, mark the changed segments, and map the changed segments to the corresponding components. (3) Similarly, perform the same operation on the associated fingerprint components to identify the specific sub-neighborhoods involved in the associated changes (i.e., the range of hyperlink neighborhoods affected); (4) Take the union of the set of sub-neighborhoods involved in the hierarchical changes and the set of sub-neighborhoods involved in the associated changes as the "touched sub-neighborhoods" of the change path; (5) By comparing whether the sets of sub-neighborhoods touched by the two change paths have an intersection and the change direction (whether the change direction of the hierarchical component is consistent with the change direction of its associated component), perform three-item classification arbitration judgment. The above decomposition operation is essentially performing differential encoding (DiffEncoding) on the differences between the two versions in the bit string space of the structural fingerprint, and using the bit segments in the structural fingerprint bit string as the smallest granularity for difference localization.
[0091] To address this, this application further proposes establishing parallel version branches at the location of candidates deemed version forks by arbitration. These parallel version branches carry independent fingerprint snapshots and confidence levels, with existing versions retained and conflict points registered in the arbitration queue. However, simply registering conflict points in the queue and establishing version branches does not provide a clear conflict resolution mechanism. This could lead to a continuous accumulation of conflicting versions in the arbitration queue, resulting in a large number of unresolved conflicting versions in the knowledge base. Consequently, this affects the authority, consistency, and maintainability of the knowledge base, reducing retrieval efficiency and user trust in the knowledge base.
[0092] To address the aforementioned issues, this application proposes a more robust conflict management and resolution mechanism. For example, the conflict points in the arbitration queue support both automatic convergence exits based on confidence evolution and manual adjudication exits. This design aims to provide two main resolution approaches for conflict points arising from version forks in the knowledge base. The automatic convergence exit based on confidence evolution allows the system to automatically judge and resolve conflicts according to preset rules and the confidence change trends of knowledge units, thereby reducing manual intervention and improving processing efficiency. The manual adjudication exit provides a channel for human intervention in complex, high-risk, or expert-required conflicts, ensuring the accuracy and authority of key knowledge. The arbitration queue can be implemented as a persistent data structure, such as a database table or message queue, to store all pending conflict information. The system can be configured with a background service to periodically scan the queue and trigger corresponding processing flows based on the conflict type, urgency, or confidence status.
[0093] In this automatic convergence exit mechanism, when the confidence difference between different branches exceeds a specified gap, the branch with the highest confidence automatically wins, and the remaining branches are archived. This mechanism describes the specific process of automatically resolving conflicts. The system continuously monitors the conflict points in the arbitration queue and compares the confidence of each parallel version branch involved in the conflict. When there is a significant difference between the confidence of a branch and the confidence of other branches, and this difference exceeds a pre-set "specified gap" threshold, the system will automatically determine that the branch with the highest confidence is the "winning branch." This means that the knowledge content represented by this branch is considered to be the most reliable and accurate version at present. Other branches with lower confidence are automatically transferred to the "archived" state. They no longer participate in retrieval and subsequent arbitration as active knowledge, but their content is still retained in the version chain for traceability.
[0094] In this manual adjudication exit, users with adjudication privileges select the winning branch from the queue of branches awaiting arbitration. This mechanism provides a means for manual intervention in conflict resolution. When the automatic convergence mechanism cannot resolve a conflict (e.g., the confidence differences between branches are not significant, or the nature of the conflict is complex and requires manual judgment), the system submits these conflict points to the manual adjudication exit. At this time, the system provides a dedicated management interface accessible to users with specific adjudication privileges. Users can view the conflict details in the queue of branches awaiting arbitration on this interface, including the content, confidence level, fingerprint snapshot, and conflict discovery time of each branch, and manually select a branch as the "winning branch" based on their professional judgment. The system records the adjudication operation and its executor to ensure the traceability of the operation.
[0095] To ensure transparency, traceability, and efficiency in conflict management and resolution, the conflict registration information in the arbitration queue includes at least the conflict type, the branch identifiers involved, the current confidence level of each branch, the current fingerprint snapshot of each branch, and the conflict discovery time. The conflict type identifies the nature of the conflict, such as semantic conflict, structural conflict, or other types of conflict, helping the system or human adjudicators quickly understand the root cause of the conflict and take appropriate measures. The branch identifiers uniquely identify the parallel version branches involved in the conflict, ensuring accurate location and management of these branches. The current confidence level of each branch reflects its reliability at the current moment, serving as a core basis for automatic convergence decisions and providing important reference for human adjudication. The current fingerprint snapshot of each branch records the structural fingerprint of each branch at the time the conflict occurred, which is crucial for subsequent version comparison, difference analysis, and historical tracing. The conflict discovery time records the point in time the system detected the conflict, aiding in conflict aging management, prioritization, and performance analysis. This information can be stored in a structured manner, such as in a database table, for easy querying, updating, and analysis.
[0096] Once the conflict is resolved, the knowledge content of the winning branch in the automatic convergence process is written to the Wiki page, the graph triples, and the vector index. Once a branch is determined to be the winner during automatic convergence or manual adjudication, the system performs a series of operations to synchronously update the knowledge content it represents across all components of the knowledge base. For example, the text content of that branch will be written to the corresponding Wiki page, its structured information (such as entities and relations) will be updated to triples in the knowledge graph, and its semantic representation (such as embedding vectors) will be updated to the vector index. This process ensures that each representation layer of the knowledge base reflects the latest, conflict-resolved knowledge state.
[0097] The knowledge content of archived branches is retained in the version chain and is traceable, but it does not participate in retrieval or subsequent arbitration. This mechanism aims to balance the real-time nature and historical traceability of the knowledge base. When a version branch is determined to be a non-winning branch in automatic convergence or manual adjudication, it is not completely deleted, but marked as "archived." This means that its knowledge content remains in the system's storage medium and is associated with the main branch or other active branches through the version chain. Users can access and view these archived contents through specific historical version tracing functions. However, in daily knowledge retrieval operations, these archived branches are not included in the search scope, nor do they participate in any subsequent arbitration processes, thus avoiding interference from outdated or non-mainstream information on the current state of the knowledge base and ensuring the accuracy and relevance of search results.
[0098] By employing the aforementioned technical solution and introducing a conflict resolution mechanism that combines automatic convergence with manual adjudication, the issues of knowledge base consistency and maintainability caused by merely establishing parallel version branches without a clear processing procedure are resolved. For example, the automatic convergence exit based on confidence evolution can intelligently identify and resolve most conflicts, significantly reducing the need for manual intervention and improving the efficiency and automation level of knowledge base updates. For complex or critical conflicts, the manual adjudication exit provides a channel for expert intervention, ensuring the accuracy and authority of knowledge. By recording detailed information such as conflict type, branch identifier, confidence level, fingerprint snapshot, and discovery time, the system can achieve comprehensive management and traceability of conflict points, improving the transparency and auditing capabilities of the knowledge base. Furthermore, the knowledge content of the winning branch is synchronously written into the Wiki page, graph triples, and vector indexes, ensuring the consistency of each representation layer of the knowledge base. By archiving and retaining non-winning branches in the version chain, the traceability of knowledge history is ensured, and outdated or non-mainstream information is prevented from interfering with current knowledge retrieval and decision-making. This enables the enterprise-level unified knowledge base to maintain a high degree of accuracy, consistency and efficiency when faced with the massive amount of information and potential conflicts brought by large language models.
[0099] This application proposes a method for updating the effective security level along the link relationship driven by fingerprint recalculation. (See [link to relevant documentation]). Figure 4 Taking the system-wide processing as an example, the process includes the following steps.
[0100] 401. For each knowledge unit in the Wiki topology, the highest of the following three levels is taken as the effective security level of the knowledge unit: its own security level, the effective security level of all ancestral knowledge units on the hierarchical path, and the effective security level of adjacent knowledge units directly merged into it through content-carrying links. The link relationship is distinguished between content-carrying and directory index types, and only content-carrying links participate in the security level transmission. 402. Bind fingerprint recalculation and security level propagation as two actions of the same event. First, complete the structural fingerprint recalculation of the affected knowledge unit, and then perform depth-limited propagation along the link relationship involved in the structural fingerprint recalculation. Update the effective security level of the affected knowledge unit according to the rule of taking the highest security level. The event is marked as complete only after fingerprint recalculation and security level propagation are completed. 403. When a link relationship is deleted, the effective security level raised by that link relationship remains the same as before the deletion during the relaxation period. After the relaxation period ends, the rule of taking the highest security level is re-executed to make the effective security level fall back to the result without that link relationship.
[0101] For example, the effective security level of a knowledge unit is not simply determined by its own attributes, but rather by a comprehensive consideration of its multiple security contexts within the Wiki topology. It is evaluated from three dimensions: the explicitly marked security level of the knowledge unit itself, representing its original security attributes; the effective security levels of all its superior (ancestor) knowledge units in the directory hierarchy, ensuring that child knowledge units do not have lower security requirements than their parents or higher levels; and the effective security levels of all adjacent knowledge units that directly point to this knowledge unit through "content-carrying links," reflecting the security impact of strong content connections between knowledge units. Of these three, the system selects the highest security level as the final effective security level for the knowledge unit, following the "barrel effect" principle—that is, the overall security level is determined by the weakest link—but in this case, the highest level is chosen to ensure security. It is worth noting that the link relationships are subdivided into content-carrying and directory-indexing types. Only "content-carrying links" that represent content progression, semantic continuity, or strong dependencies will participate in the security level transmission, while "directory-indexing links" used only for navigation or classification will not affect the security level, thus avoiding unnecessary security level upgrades and excessive restrictions.
[0102] To ensure the structural integrity and security consistency of the knowledge base are updated synchronously, this application tightly binds "fingerprint recalculation" and "security level propagation" into two consecutive actions of an atomic event. When the Wiki topology changes, triggering the recalculation of the structural fingerprints of knowledge units, the system updates the structural fingerprints of all affected knowledge units. Based solely on the links involved in these recalculations, the system initiates the security level propagation process. Security level propagation traverses these affected links to a limited depth and recalculates and updates the effective security level of the affected knowledge units according to the aforementioned rule of "taking the highest security level." Only when both structural fingerprint recalculation and security level propagation are successfully completed and reach a stable state is the entire event marked as complete, thus guaranteeing strong consistency between the structural fingerprint and the effective security level and avoiding data inconsistency issues in intermediate states.
[0103] Considering the potential impact of link deletion on the effective security level of knowledge units, this application introduces a "relaxation period" mechanism. When a link is deleted, if that link previously led to an increase in the effective security level of a knowledge unit (i.e., the link was one of the reasons for its higher security level), the effective security level of the knowledge unit will not immediately drop. Instead, it will temporarily maintain the higher security level before deletion within a preset "relaxation period." This aims to prevent a sudden drop in security level due to the instantaneous deletion of links, thereby avoiding potential security risks or unnecessary changes in access permissions. Only after the "relaxation period" ends will the system reassess the effective security level of the knowledge unit. According to the rule of "taking the highest security level," the deleted link will no longer participate in the security level calculation, thus causing the effective security level to fall back to a reasonable level that does not include the influence of the deleted link. This mechanism provides a buffer period, allowing the system to perform necessary verification or manual intervention before adjusting the security level, enhancing the robustness of security level management.
[0104] The above technical solution addresses the issue of untimely or inaccurate updates to the effective security level of knowledge units in dynamically changing Wiki topologies. By comprehensively considering the security level of the knowledge unit itself, the security level of its ancestor units, and the security levels of adjacent units incorporated through content-carrying links, and taking the highest value as the effective security level, the solution ensures that the security level of a knowledge unit fully reflects its true security context within a complex knowledge network, avoiding security vulnerabilities arising from single-dimensional assessments. Binding fingerprint recalculation and security level propagation as two atomic actions within the same event guarantees strong consistency between knowledge base structure updates and security policy updates, preventing data inconsistencies or permission mismatches caused by asynchronous updates. Furthermore, the relaxation period mechanism introduced for link deletion effectively prevents a sudden drop in security level due to instantaneous link deletion, providing the system with buffer and verification time, thus enhancing the robustness and stability of security level management. Overall, the solution in this application ensures that the access control policy of an enterprise-level unified knowledge base can be dynamically, accurately, and securely adjusted when the structure changes, improving the security and reliability of the knowledge base.
[0105] This application further proposes that for each knowledge unit in the Wiki topology, the highest of the following three levels of security level is selected: the security level of the knowledge unit itself, the effective security level of all ancestor knowledge units on the hierarchical path, and the effective security level of adjacent knowledge units directly imported through content-carrying links. Specifically, this includes: security level values arranged in ascending order to form a finite total order chain; the operation of selecting the highest security level can be performed between any two security levels, and this operation satisfies the associative law; the security level of the knowledge unit itself is the initial security level manually marked by the Wiki page when it is added to the database or inherited by the source system, and this initial security level is the starting point of security level propagation, not the final effective security level; for each incoming edge pointing to the knowledge unit in the link relationship, the association type tag corresponding to the incoming edge is checked, and only when the association type tag belongs to a content-carrying association is the effective security level of the source knowledge unit of the incoming edge included in the operation of selecting the highest security level.
[0106] To ensure the logical rigor and operability of classification comparison and dissemination, this application clarifies that the classification values should form a finite total order chain. This means that all possible classifications (e.g., "public," "internal," "confidential," "top secret") have a clear order relationship and can be compared in magnitude. For example, "public" is lower than "internal," and "internal" is lower than "confidential." Based on this, the "highest classification" operation can be performed between any two classifications, i.e., selecting the one with the higher classification. This operation must also satisfy the associative law, for example, (A max B)max C = A max(B max C). This guarantees that when multiple classifications are involved in the calculation, regardless of the calculation order, the final result is consistent and definite, avoiding the uncertainty of classification caused by different calculation orders.
[0107] To clarify the initial source of the security classification of knowledge units, this application stipulates that the self-labeled security classification can be explicitly labeled manually by the Wiki page corresponding to the knowledge unit when it is first added to the database, or it can be inherited from its original source system (such as a document management system, business system, etc.). This initial security classification is the starting point of the security classification propagation process, representing the most original and direct security classification attribute of the knowledge unit. However, it should be emphasized that this initial security classification is not the final effective security classification of the knowledge unit, because the effective security classification of the knowledge unit also needs to be propagated by comprehensively considering its hierarchical and link relationships in the Wiki topology to ensure the consistency and accuracy of the security classification throughout the entire knowledge base.
[0108] To precisely control the scope and effectiveness of security classification propagation, this application rigorously filters each incoming edge pointing to a knowledge unit within a link relationship. When calculating the effective security classification of a knowledge unit, the system iterates through all incoming edges pointing to that knowledge unit. For each incoming edge, its associated type label is examined. Only when the associated type label is explicitly identified as a "content-carrying association" will the effective security classification of the source knowledge unit connected by this incoming edge be included in the "highest security classification" calculation. This means that "directory index-type associations" used only for navigation, classification, or indexing will not participate in security classification propagation, thus avoiding unnecessary security classification elevation or confusion and ensuring the semantic accuracy and security of security classification propagation.
[0109] The above technical solution clarifies the comparison rules and operational characteristics of security level values, ensuring the logical rigor and predictability of security level propagation calculations. By clearly defining the source of the security level label and its role as the initial security level, ambiguity in the source of security levels is avoided, providing a reliable starting point for subsequent security level propagation. Furthermore, by checking the association type tags of incoming edges in the link relationships and only allowing content-carrying associations to participate in security level propagation, this application can effectively filter out mispropagation of security levels caused by non-content associations, thereby ensuring that the calculation of the effective security level of knowledge units is more accurate and reasonable. This not only improves the accuracy and consistency of knowledge security level management in enterprise-level unified knowledge bases but also enhances the security of knowledge access control, enabling users to more reliably obtain knowledge content that conforms to their permissions and avoiding the risk of sensitive information leakage.
[0110] This application further proposes two actions that bind fingerprint recalculation and security level propagation into the same event. First, the structural fingerprint of the affected knowledge unit is recalculated. Then, a depth-limited propagation is performed along the link relationships involved in the structural fingerprint recalculation. The effective security level of the affected knowledge unit is updated according to the rule of taking the highest security level. The event is marked as complete only after both fingerprint recalculation and security level propagation are completed. For example, after fingerprint recalculation is completed, the system passes the change type and the set of link relationships involved in the change carried by the recalculation event to the security level propagation action. The change type identifies whether the recalculation event is a link addition, link redirection, or link deletion. The security level propagation action performs a depth-limited propagation along the set of link relationships, re-executing the rule of taking the highest security level for each knowledge unit in the propagation path to calculate the effective security level, and writes the updated effective security level into the metadata of the knowledge unit. When the event is marked as complete, it is written to the audit log. The audit log records the triggering event identifier, the identifier of the knowledge unit involved, the valid security level before the update, the valid security level after the update, the fingerprint recalculation completion timestamp, and the security level propagation completion timestamp. The completion of writing the audit log serves as the final confirmation that the event has been marked as complete.
[0111] In the specific implementation, when the topology of the knowledge base changes—for example, by adding a link, changing the direction of a link, or deleting a link—a structural fingerprint recalculation of the affected knowledge units is triggered. Once the fingerprint recalculation is complete, the system does not immediately end the event. Instead, it encapsulates the structural change information generated by the recalculation, including the specific type of change (e.g., link addition, link redirection, or link deletion) and the set of all links affected by the change, into a recalculation event and passes it to the security-level propagation module. This mechanism ensures that the security-level propagation module can accurately perceive the nature and scope of the structural changes, thereby enabling targeted processing.
[0112] Upon receiving the recalculation event, the security classification propagation module will propagate it along the set of links specified in the event, limiting the propagation to a depth. This means that the propagation does not occur across the entire knowledge graph, but is limited to knowledge units directly related to the structural change and within a preset depth range. For each knowledge unit along the propagation path, the system will re-execute the security classification calculation rules, taking the highest of the following: the knowledge unit's own labeled security classification, the effective security classifications of all ancestor knowledge units along its hierarchical path, and the effective security classifications of adjacent knowledge units directly imported through content-carrying links. The calculated updated effective security classification is then promptly written into the knowledge unit's metadata, ensuring the real-time nature and accuracy of security classification information in the knowledge base.
[0113] The entire event is marked as complete only after the two closely related actions of fingerprint recalculation and security classification propagation are successfully completed. To provide complete traceability and auditability, the system automatically writes a detailed audit log upon event completion. This audit log not only records the unique identifier that triggered the event and the identifiers of all affected knowledge units, but also details the valid security classifications of these knowledge units before and after the update, as well as the timestamps for fingerprint recalculation and security classification propagation completion. The successful writing of the audit log is the final confirmation of the entire event handling process, ensuring that all structural changes and their resulting security classification adjustments are traceable.
[0114] The above technical solution tightly couples fingerprint recalculation with security level propagation, forming an atomic processing event, thus resolving the issue of asynchronous security level propagation and structural changes. By transmitting precise modification types and sets of links, security level propagation enables efficient depth-limited propagation, avoiding unnecessary full graph traversal and improving system response efficiency. Furthermore, the introduction of an audit log mechanism provides detailed records of every structural change and its resulting security level adjustment, enhancing the transparency, auditability, and security of the knowledge base. This ensures that the security policies of the enterprise-level knowledge base can be reliably and verifiably enforced when facing frequent updates.
[0115] This application further proposes that when a link relationship is deleted, the effective security level raised by that link relationship remains at its pre-deletion effective security level during the relaxation period. After the relaxation period expires, the rule of taking the highest security level is re-executed to bring the effective security level back to the result without the link relationship. For example, the duration of the relaxation period is determined based on the duration of the deleted link relationship; the longer the link relationship lasts, the longer the relaxation period. During the relaxation period, the effective security level of the knowledge units involved in the deleted link relationship remains in its pre-deletion state, and retrieval pruning is still performed according to the effective security level before deletion. When a link relationship is deleted, and a circular path exists in the remaining link relationships causing a closed loop in security level propagation, iterative relaxation calculation is performed on the effective security level of each knowledge unit. In each iteration, each knowledge unit takes the highest of its current security level and the security levels of all incoming edges, and the iteration terminates when the effective security level of all knowledge units no longer changes between adjacent rounds.
[0116] The "relaxation period" refers to the time after a link in the knowledge base is deleted, during which the effective security level of the knowledge units affected by that link does not immediately change but temporarily maintains its original state. This mechanism aims to provide a buffer period for the system to cope with the potential impact of link deletion, such as allowing users to complete their current operation or giving administrators time to review the rationale for the deletion. The duration of this relaxation period is not fixed but dynamically determined based on the "duration" of the deleted link. Duration refers to the time elapsed from the creation of the link to its deletion. Generally, the longer the duration of a link, the greater its influence and dependency in the knowledge network, thus requiring a longer relaxation period to ensure system stability and user experience. For example, linear, logarithmic, or piecewise functions can be used to map duration and relaxation period, such as a relaxation period of 1 hour for links lasting less than one year, 1 day for links lasting one to five years, and 1 week for links lasting more than five years.
[0117] During the aforementioned relaxation period, even if a link has been logically deleted, the effective security level of a knowledge unit that was elevated by that link will retain its pre-deletion security level. This means that during the relaxation period, all access control and "retrieval pruning" operations targeting that knowledge unit will continue to be judged based on its pre-deletion effective security level. For example, if a knowledge unit's security level is elevated from "public" to "internal" due to a link, and that link is deleted, during the relaxation period, the knowledge unit will still be considered "internal," accessible only to users with "internal" security level permissions. This avoids potential data leaks or access control confusion that could result from the security level immediately reverting to "public" due to link deletion. This effectively ensures the business continuity and security of the knowledge base during structural changes.
[0118] When a link is deleted from the knowledge base, if the remaining links form a "circular path"—that is, a path of interdependent security level propagation between knowledge units—this may lead to a "closed loop" in security level propagation. In this case, simply calculating the security level once may not yield stable results. To address this, this application introduces an "iterative relaxation computation" mechanism. This mechanism gradually converges the effective security level of knowledge units through multiple iterations. In each iteration, each knowledge unit re-evaluates its effective security level by taking the highest of its "current security level" and the security levels of all "incoming edges pointing to that knowledge unit." Here, "current security level" refers to the effective security level of the knowledge unit at the end of the previous iteration. This process continues until the effective security levels of all knowledge units no longer change between adjacent iterations, i.e., a stable state is reached, at which point the iterative computation terminates. This iterative computation method effectively handles complex circular dependencies, ensuring that after link deletion, the effective security level of knowledge units can correctly and stably converge to a state conforming to the new topology.
[0119] The above technical solutions address the potential business interruption and convergence issues in security level propagation within complex topologies caused by security level adjustments after the deletion of links in the knowledge base. By introducing a "relaxation period" based on link duration, the system can smoothly maintain the effective security level of affected knowledge units after link deletion, avoiding the immediate impact of sudden security level drops on user access and business processes, thus ensuring business continuity and data access stability of the knowledge base. To address the closed-loop problem of security level propagation in circular paths that may result from link deletion, an "iterative relaxation computation" mechanism is employed. This ensures that, under complex dependencies, the effective security level of knowledge units can accurately and stably converge to a state consistent with the latest topology, avoiding the uncertainty of security level calculation. This strategy, combining relaxation periods and iterative computation, enables the knowledge base to manage access permissions of knowledge units more robustly and reliably in dynamically changing environments, improving the overall availability and security of the knowledge base.
[0120] This application further proposes a method that, in response to a query, verifies the consistency between the snapshot of the entry point's generation time and the current fingerprint for the entry point retrieved by the vector index, verifies the fingerprint digest matching status of adjacent units as records for the entry points that pass the verification hop by hop along the link relationship, and performs pruning at the user's security level in the same traversal, specifically including: The query vector is used to retrieve entry knowledge units in the vector index. For each entry knowledge unit, the snapshot of the generation time recorded in the vector metadata of the entry knowledge unit is compared with the current fingerprint of the topological location of the entry knowledge unit. Entry knowledge units that match are expanded, while entry knowledge units that do not match are downgraded and marked for repair. Starting from the verified entry knowledge unit, the process expands hop by hop along the link relationship. Before each hop from the current knowledge unit to the adjacent knowledge unit, the first summary recorded by the current knowledge unit for the adjacent knowledge unit is compared with the current fingerprint of the adjacent knowledge unit. Then, the second summary recorded by the adjacent knowledge unit for the current knowledge unit is compared with the current fingerprint of the current knowledge unit. Only if both sides match can the hop be allowed to the adjacent knowledge unit. If either side does not match, the hop is removed and the link is registered for repair. In each hop, the bidirectional comparison is performed by comparing the user's security level with the effective security level of the target knowledge unit. If the user's security level is lower than the effective security level, the hop is removed. The removed knowledge unit and its subsequent extension branches are no longer accessed. The bidirectional comparison and the security level comparison share the same traversal process. The extension paths that survive the traversal process constitute a candidate set of evidence chains that pass the structure verification and permission verification.
[0121] For example, when a user initiates a query, the query content is converted into a query vector. This query vector is used to perform a similarity search in the vector index to identify the knowledge unit most semantically relevant to the query as the initial entry knowledge unit. The vector index can employ Approximate Nearest Neighbor (ANN) algorithms, such as Faiss and HNSW, to efficiently retrieve the knowledge units with the highest semantic similarity from massive vectors. When the vector representation of each knowledge unit is generated or updated, a snapshot of the generation time of its corresponding structural fingerprint is recorded in its metadata. During a query, the system obtains the current structural fingerprint of the entry knowledge unit in the Wiki topology. By comparing the snapshot in the vector metadata with the current fingerprint, it can be determined whether the vector representation is consistent with the latest structural state of the knowledge unit. If consistent, it indicates that the vector representation was generated based on the latest knowledge structure and its semantic reference can be trusted. Only entry knowledge units that pass the consistency check between the snapshot and the current fingerprint are considered reliable and allowed as a starting point for subsequent knowledge graph and Wiki topology expansion traversal to build a chain of evidence. For entry knowledge units with inconsistent comparisons, it indicates that their vector representation may be outdated and fails to reflect the latest structural changes of the knowledge unit. To avoid providing inaccurate information, these knowledge units are subject to a decay weight during sorting, placing them lower in the search results, but they may still be considered. The system marks them as "pending repair," recording the type of inconsistency and the time of discovery, so that subsequent background repair processes can handle them, such as regenerating the vector representation or updating the metadata snapshot.
[0122] Starting with the entry knowledge unit that passes the initial validation, the system explores its neighboring knowledge units step by step along the hyperlinks defined in the Wiki topology to discover more knowledge relevant to the query. This expansion can be done using either breadth-first or depth-first traversal. Before jumping from the current knowledge unit to a neighboring knowledge unit, the system performs a bidirectional fingerprint digest matching check. It checks the fingerprint digest (first digest) recorded by the current knowledge unit in its metadata for the neighboring knowledge unit and compares it with the current complete structural fingerprint of the neighboring knowledge unit. This verifies whether the current knowledge unit's understanding of the neighboring knowledge unit's state is accurate. The system then checks the fingerprint digest (second digest) recorded by the neighboring knowledge unit in its metadata for the current knowledge unit and compares it with the current complete structural fingerprint of the current knowledge unit. This verifies whether the neighboring knowledge unit's understanding of the current knowledge unit's state is accurate. Only when the fingerprint digest comparisons in both directions are consistent is it considered that the link between the current knowledge unit and the neighboring knowledge unit is structurally consistent and synchronous. Only then is it allowed to jump along the link to the neighboring knowledge unit and include it in the candidate set of the evidence chain. If the comparison in either direction is inconsistent, it indicates a structural inconsistency in the link, possibly due to a change in the structure of one party while the other party has not updated its recorded summary in a timely manner. To ensure the reliability of the chain of evidence, the inconsistent jump will be immediately pruned, meaning it will no longer be extended along the link. The inconsistent link will be registered as "pending repair," recording the identifiers of the knowledge units at both ends, their respective current fingerprints, and the summaries they recorded for each other, so that the background repair process can handle it.
[0123] The system performing bidirectional structural consistency comparison obtains the security level information of the current querying user and compares it with the effective security level of the target knowledge unit (i.e., adjacent knowledge unit) to which the user is about to jump. The effective security level is the highest security level propagated from the knowledge unit's own labeled security level, ancestor security level, and content-carrying link relationships. If the user's security level is lower than the effective security level of the target knowledge unit, it indicates that the user does not have sufficient permissions to access that knowledge unit. In this case, the jump will be immediately pruned, preventing the user from accessing the sensitive information. Once a knowledge unit is pruned due to insufficient permissions, all subsequent extension branches originating from that knowledge unit (i.e., the child nodes of that knowledge unit and their links) will no longer be accessed, thus effectively implementing the pruning operation of access control and ensuring that users can only access knowledge within their authorized scope. Structural consistency verification (bidirectional comparison) and permission verification (security level comparison) are integrated and executed in the same traversal process. This means that each time an attempt is made to jump from one knowledge unit to another, these two verifications are executed in parallel or sequentially to minimize traversal overhead and improve query response efficiency. Only those links and knowledge units that pass all structural consistency and permission verifications can constitute the candidate set of evidence chains. These candidate sets are rigorously screened, reliable, and user-accessible knowledge paths, providing a foundation for subsequent evidence chain construction and feedback adoption.
[0124] Through the above technical solutions, this application can resolve potential structural inconsistencies and access control leaks in the knowledge base when responding to user queries. By comparing the snapshot of the entry knowledge unit's generation time with the current fingerprint, knowledge units whose vector representations have become outdated due to structural changes can be promptly identified and downgraded, preventing inaccurate initial information from being included in the evidence chain. During the hop-by-hop expansion process, a bidirectional fingerprint digest matching mechanism is introduced, where adjacent units record each other's fingerprints, ensuring the structural consistency of the links between knowledge units. If the digest recorded by either party is inconsistent with the current fingerprint of the other party, the hop will be pruned and registered for repair, effectively preventing structurally inconsistent knowledge paths from being included in the query results and improving the structural reliability of the evidence chain. Integrating the comparison of the user's security level with the effective security level of the target knowledge unit into the same traversal process achieves efficient access control pruning. Once the user's security level is lower than the effective security level of the target knowledge unit, the knowledge unit and its subsequent branches will be pruned as a whole, fundamentally preventing unauthorized leakage of sensitive information and ensuring the security of the knowledge base query results. This tight integration and efficient execution of structure and permission verification not only ensures the accuracy and authority of query results but also enhances the overall security and user trust of the knowledge base, providing a solid guarantee for the stable operation of an enterprise-level unified knowledge base.
[0125] This application further proposes the following processing methods: When the snapshot of the entry knowledge unit's generation time is inconsistent with the current fingerprint comparison, the system does not immediately exclude it completely. Instead, it applies a decay coefficient of less than 1 to its semantic similarity score for attenuation modulation. This means that the weight of the knowledge unit is reduced, but it is still allowed to enter the subsequent expansion and verification processes. This approach aims to balance data consistency with the completeness of query results, avoiding the loss of potentially useful information due to local inconsistencies. Entry knowledge units that have undergone weight reduction will be placed relatively low in the ranking results, thus reducing their influence on user decisions without complete exclusion.
[0126] In extreme cases, if all entry knowledge units retrieved via vector indexing fail to match the current fingerprint through the generated snapshot, the system will employ a fault-tolerance mechanism. In this situation, fingerprint consistency is no longer enforced; instead, the pure vector retrieval results are used directly as the search output. To clearly indicate to the user that the current results may have data consistency issues, the system will attach a consistency warning label to the search results. To resolve potential data inconsistencies, the system will immediately trigger the corresponding repair process to ensure the healthy operation of the knowledge base.
[0127] To effectively manage and schedule knowledge base remediation efforts, the system assigns a remediation flag to entry knowledge units found to be inconsistent during consistency checks. This flag details the time the inconsistency was discovered, the specific type of inconsistency (e.g., a snapshot not matching the current fingerprint), and the identifier of the involved knowledge unit. This information serves as crucial input to the remediation process, allowing remediation tasks to be scheduled and processed chronologically based on their discovery time, thereby ensuring timely maintenance of the knowledge base and continuous improvement in data quality.
[0128] Through the above technical solution, even when the knowledge unit snapshot is inconsistent with the current fingerprint, the integrity of the query results and data consistency can be effectively balanced when responding to queries. For example, for some inconsistent entry knowledge units, their semantic similarity scores are downweighted, which avoids simply discarding potentially valuable information while ensuring that this information is in a reasonable position in the final ranking, reducing the risk of misleading users' decisions. When all entry knowledge units are inconsistent, the system can use pure vector recall results as a fallback, supplemented by consistency alerts, to ensure that retrieval output can still be provided in the worst case, improving the usability of the knowledge base and the user experience. By setting detailed repair markers for inconsistent knowledge units and triggering the repair process, this application realizes the timely discovery, recording, and scheduling of data quality problems in the knowledge base, thereby ensuring the long-term stable operation and data accuracy of the knowledge base. This mechanism not only improves the robustness of query results but also provides a key feedback loop for the self-growth and maintenance of the knowledge base.
[0129] This application further proposes an optimized scheme that, in response to a query, expands hop-by-hop along the link relationship starting from the verified entry knowledge unit. Before moving from the current knowledge unit to the adjacent knowledge unit at each hop, the first summary recorded by the current knowledge unit for the adjacent knowledge unit is compared with the current fingerprint of the adjacent knowledge unit. Then, the second summary recorded by the adjacent knowledge unit for the current knowledge unit is compared with the current fingerprint of the current knowledge unit. Only if both sides are consistent is the jump allowed to the adjacent knowledge unit. If either direction is inconsistent, the jump is removed and the link is registered for repair.
[0130] For example, when a hop is pruned, all subsequent extension branches originating from the target knowledge unit of that hop are simultaneously pruned, and the pruned content is not included in the evidence chain candidate set. This means that once a link is pruned due to structural inconsistency, all subsequent knowledge units and their derived paths that depend on that link will be immediately terminated, and no further traversal or evaluation will be performed. This simultaneous pruning mechanism can effectively avoid wasting computational resources on paths built based on inconsistent information, ensuring that the evidence chain candidate set only contains reliable paths that have undergone structural verification. For example, during knowledge graph traversal, if the link from knowledge unit A to knowledge unit B is determined to be inconsistent, then all paths originating from knowledge unit B, regardless of whether their subsequent links are consistent, will no longer be explored, thus avoiding invalid computation.
[0131] When registering a link for repair, the system records the knowledge unit identifiers, current fingerprints, and summaries recorded by each knowledge unit at both ends of the link. It also marks each knowledge unit at both ends with an inconsistency direction identifier, distinguishing between forward and reverse inconsistencies. When an inconsistency is detected in a link, the system goes beyond simply marking it as needing repair; it records detailed contextual information leading to the inconsistency. This includes the unique identifiers of the knowledge units at both ends of the link, their current structural fingerprints, and the fingerprint summaries they record for each other. Furthermore, the system explicitly indicates whether the inconsistency occurs in a "forward" record pointing from one knowledge unit to another, a "reverse" record, or both. This granular recording method provides highly accurate diagnostic information for subsequent repair processes, enabling precise identification of the problem's source. For example, if it is found that the summary of knowledge unit B recorded by knowledge unit A does not match the current fingerprint of knowledge unit B (forward inconsistency), the repair process will focus on checking and updating knowledge unit A's record of knowledge unit B.
[0132] Furthermore, when either of the knowledge units at either end of a link is in a state awaiting repair, the link is considered inaccessible in this round of expansion. The repair process determines the direction in which the summary needs to be recalculated based on the inconsistency direction identifier. Once the state awaiting repair is lifted, the link will be accessible again in the next round of queries. This means that once a knowledge unit or its associated link is marked as awaiting repair, the link will be temporarily disabled during the current query expansion process to prevent the further propagation of inconsistencies. The system will initiate a dedicated repair process that uses the previously recorded "inconsistency direction identifier" to intelligently determine which end's fingerprint summary needs to be recalculated. For example, if the identifier shows a positive inconsistency, the repair process will only recalculate the summary of the source knowledge unit to the target knowledge unit. Once the repair is completed and verified, the state awaiting repair of the link will be lifted, and it will be accessible again in subsequent queries.
[0133] By employing the aforementioned technical solution, when inconsistencies are detected in the links between knowledge units, all subsequent extension branches based on these inconsistent links can be immediately and synchronously pruned. This avoids invalid calculations and inaccurate evidence chain construction, improving query efficiency and result reliability. By meticulously recording the contextual information and inconsistency direction identifiers of the knowledge units at both ends of the inconsistent links, precise diagnostic criteria are provided for subsequent repair processes, enabling efficient and targeted repair work. Furthermore, before repair is complete, links in a state awaiting repair are considered inoperable, effectively preventing the propagation of inconsistent information and ensuring the structural integrity and data consistency of the knowledge base query results. Once repair is complete, the links are restored, guaranteeing the self-healing capability and continuous availability of the knowledge base, thereby comprehensively improving the robustness and query quality of the enterprise-level unified knowledge base.
[0134] This application further proposes a bidirectional comparison at each hop, comparing the user's security level with the effective security level of the target knowledge unit. If the user's security level is lower than the effective security level, the hop is removed. The removed knowledge unit, along with its subsequent extension branches, is no longer accessed. The bidirectional comparison and security level comparison share the same traversal process. The surviving extension paths after the traversal process constitute a candidate set of evidence chains that pass both structural and permission checks. For example, the security level comparison occurs after the bidirectional comparison passes. That is, the system first verifies structural consistency and then verifies permission compliance. These two checks are completed sequentially in a single traversal of the same hop. This means that when attempting to jump from the current knowledge unit to an adjacent knowledge unit, the system performs a bidirectional fingerprint digest comparison to confirm that the structural connection between adjacent knowledge units is valid and consistent. Only after the structural consistency check passes will the system further perform a security level comparison, comparing the user's security level with the effective security level of the target knowledge unit to determine whether the user has permission to access the knowledge unit. This serially executed verification process ensures that only structurally reliable paths are subject to permission evaluation, thereby optimizing resource usage and avoiding unnecessary permission checks on structurally inconsistent data.
[0135] Furthermore, during security pruning, the system records the query identifier, the identifier of the pruned knowledge unit, the user's security level, the effective security level of the target knowledge unit, and the pruning timestamp. When the user's security level is lower than the effective security level of the target knowledge unit, causing that knowledge unit and its subsequent extension branches to be pruned, the system generates a detailed log record. This record includes at least the unique identifier that triggered the query, the unique identifier of the pruned knowledge unit, the security level of the user performing the query, the effective security level set for the pruned knowledge unit, and the exact time the pruning operation occurred. These records can be stored in a dedicated audit log system or database for subsequent security audits, access control investigations, or system behavior analysis, providing a transparent and traceable basis for knowledge base operation and security audits.
[0136] Furthermore, when comparing security classifications, if multiple versions of the same knowledge unit exist, each version calculates its effective security classification independently, and the effective security classifications of each version do not affect each other. The traversal process performs security classification comparison independently for each version, and only the versions that pass the comparison are included in the traversal results. In enterprise-level knowledge bases, a knowledge unit may have multiple parallel versions due to reasons such as arbitration forking. This application's solution addresses this situation by calculating the effective security classification for each independent version of the knowledge unit. This means that even for the same knowledge unit, different versions may have different effective security classifications. During the traversal process, the system independently performs a comparison between the user's security classification and the effective security classification of each version. Only those versions that pass the security classification comparison are included in the traversal results and may become part of the evidence chain. Versions that fail the security classification comparison are removed, but this does not affect other versions of the same knowledge unit.
[0137] Through the above technical solutions, the accuracy, efficiency, and granularity of structure verification and permission verification can be improved during the knowledge base query response process. By explicitly stating that security level comparison occurs after bidirectional comparison is successful, the system ensures that only knowledge paths that are structurally verified to be consistent and reliable will be further evaluated for permissions. This avoids unnecessary security level calculations and comparisons for structurally inconsistent or invalid paths, thereby significantly reducing computational resource consumption and improving the overall efficiency of query response. Detailed information is recorded during security level pruning, providing a transparent and traceable basis for knowledge base operation and security auditing. This allows administrators to clearly understand which information is restricted due to insufficient permissions, facilitating rapid identification and resolution of permission configuration issues and enhancing system manageability and security. Furthermore, for multiple versions of the same knowledge unit that may exist, this application proposes a mechanism for each version to independently calculate its effective security level and independently perform security level comparisons. This means that users can access knowledge of a specific version based on their permissions, without being prevented from accessing it due to security level restrictions of other versions. This fine-grained version-level access control enhances the flexibility and usability of the knowledge base, ensuring that in a complex and ever-changing enterprise knowledge environment, users can accurately access the knowledge content they are authorized to access and that has a consistent structure, thereby building a more accurate and secure chain of evidence.
[0138] This application further proposes a method for optimizing the construction and ordering of this chain of evidence, the method comprising: The number of iterations of neighborhood aggregation is used as the maximum allowed number of hops for expansion. An expansion hop count counter is maintained for each expansion path. After each hop mutual consistency verification is completed, the expansion hop count counter is incremented by 1. When the expansion hop count counter reaches the maximum allowed number of hops, the expansion along the expansion path is stopped. During the hop-by-hop expansion process, the change in the coverage of the currently collected evidence set to the query intent is used as the marginal gain. Expansion stops when the marginal gain of several consecutive hops is lower than a specified threshold, and the counting threshold of these several hops is greater than 1. For the candidate evidence collected by hop-by-hop expansion, the comprehensive ranking score is determined by the coupling relationship between semantic similarity, topological distance and confidence. The topological distance is jointly determined by the number of expansion hops and the pass strength of the mutual consistency verification of each hop on the path. The lower the pass strength, the greater the negative contribution of the topological distance to the comprehensive ranking score. The ranked evidence, together with their respective Wiki level context, is output as the evidence chain.
[0139] To effectively control the depth of evidence chain expansion, this application uses the number of rounds of iterative neighborhood aggregation as the maximum allowed number of hops for expansion. This means that the neighborhood aggregation depth used when constructing the structural fingerprint of a knowledge unit is directly mapped to the maximum number of steps the evidence chain can expand in the topology. For each expansion path, the system maintains an expanded hop count counter. Each time a hop's relevance verification (i.e., fingerprint digest matching status verification between adjacent knowledge units) is completed, the expanded hop count counter is incremented by 1. When the expanded hop count counter reaches the preset maximum allowed number of hops, that specific expansion path will stop expanding. This mechanism ensures that the traversal of the evidence chain does not go indefinitely, thus avoiding unnecessary computational overhead and potential loop traversal problems. For example, if the structural fingerprint of a knowledge unit is generated through three rounds of neighborhood aggregation, then the maximum allowed number of hops for the evidence chain will also be set to three hops to ensure that the contextual relevance of the evidence is within a controllable range.
[0140] To optimize the breadth and relevance of the evidence chain, this application uses the change in the coverage of the currently collected evidence set to the query intent as the marginal gain during the hop-by-hop expansion process. For example, after each expansion and addition of new candidate evidence, the system evaluates the incremental contribution of the new evidence to the overall collected evidence set in satisfying the query intent. If the marginal gain for several consecutive hops is lower than a preset threshold, the system will stop expanding along that path. The counting threshold for these hops is greater than 1, designed to avoid premature termination due to a single low gain, providing a certain degree of fault tolerance. For example, the counting threshold can be set to 3, meaning expansion stops only when the marginal gain for three consecutive hops has not reached the threshold. This dynamic stopping strategy can intelligently determine when continuing expansion is no longer of significant value, thereby effectively eliminating inefficient or redundant expansion paths, focusing on the collection of high-value information, and avoiding the accumulation of irrelevant information.
[0141] For candidate evidence collected through hop-by-hop expansion, this application uses the coupled relationship of semantic similarity, topological distance, and confidence to determine the comprehensive ranking score. Semantic similarity measures the degree of matching between the evidence content and the query intent, and can be calculated using methods such as cosine similarity in a vector space model. Topological distance considers not only the number of hops expanded but also the pass strength of the mutual consistency verification of each hop along the path. That is, if the fingerprint summary matching of a hop is not robust enough (e.g., only unidirectional consistency rather than bidirectional consistency), the pass strength of that hop is low, thus increasing the negative contribution of the topological distance to the comprehensive ranking score, penalizing weakly connected evidence paths. Confidence reflects the reliability or authority of the knowledge unit itself, and its value is usually dynamically updated by a feedback mechanism. By calculating these three factors with a reasonable coupling relationship (e.g., weighted summation or product), a comprehensive ranking score can be obtained. The ranked evidence, along with its respective Wiki hierarchical context, is ultimately output as the evidence chain. This multi-dimensional comprehensive ranking ensures that the output evidence chain is not only semantically relevant and structurally robust but also content-credible, providing users with high-quality knowledge services.
[0142] The above technical solutions address the problems of excessive traversal range, high computational resource consumption, and the introduction of too much low-relevance information that may occur when constructing the evidence chain. By using the number of iterations of neighborhood aggregation as the maximum allowed number of hops, this application sets a reasonable depth boundary for the expansion of the evidence chain, avoiding unlimited traversal and thus significantly reducing computational overhead. Introducing marginal gain as a dynamic stopping condition allows the system to stop expanding in a timely manner when the newly added evidence does not adequately contribute to the coverage of the query intent, effectively filtering redundant or low-value information and ensuring the conciseness and efficiency of the evidence chain. Furthermore, by coupling semantic similarity, topological distance (considering the strength of mutual consistency verification), and confidence to determine the comprehensive ranking score, this application can more comprehensively and accurately evaluate the value of candidate evidence, prioritizing knowledge units that are highly relevant to the query intent, have a stable structural connection, and reliable content, thereby improving the quality of search results and users' trust in the knowledge base.
[0143] This application further proposes that, in response to a query, the number of iterations in the neighborhood aggregation is used as the maximum allowed number of hops for expansion. An expanded hop count counter is maintained for each expansion path, and this counter is incremented by 1 after each hop consistency verification is completed. Expansion along that path stops when the expanded hop count counter reaches the maximum allowed number of hops. For example, the number of iterations in the neighborhood aggregation is determined during knowledge base initialization and recalibrated according to the current topology scale each time a full network recalculation is triggered. The maximum allowed number of hops is adjusted synchronously with the update of the iterations in the neighborhood aggregation. This means that when the knowledge base is first established, an initial number of iterations in the neighborhood aggregation is set, which directly affects the generation depth of the structural fingerprint. As the knowledge base evolves, its topology and scale may change significantly. To ensure the effectiveness of the structural fingerprint and the rationality of query expansion, the system recalibrates the number of iterations in the neighborhood aggregation based on the current knowledge base topology scale (e.g., the number of knowledge units, average connection density, graph diameter, etc.) each time a full network recalculation is triggered. For example, as the knowledge base grows, the number of rounds may increase accordingly to capture a broader structural context; conversely, when the knowledge base is small, the number of rounds may decrease to avoid unnecessary computational overhead. Simultaneously, the maximum allowed number of hops, which serves as the upper limit of query expansion depth, will also be adjusted to ensure that the depth of query expansion always matches the current structural characteristics of the knowledge base.
[0144] Furthermore, each expansion path maintains its own hop count counter. Paths that reach the maximum allowed hop count earlier terminate their expansion early, while paths that haven't reached the maximum allowable hop count continue expanding to their respective limits. During the query response process, multiple parallel expansion paths may be generated starting from the entry knowledge unit, each representing a potential chain of evidence. To efficiently manage these paths, the system maintains an independent hop count counter for each expansion path, recording the number of hops traversed in real time. When a path's counter reaches the currently set maximum allowable hop count, the expansion of that path immediately terminates and stops exploring. Other paths that haven't reached their maximum hop count limits are allowed to continue expanding until they also reach their respective limits. This independent management and termination mechanism avoids excessive computational resources being consumed by an overly long path, while ensuring that all paths can be fully explored within their respective allowed depths.
[0145] When an expansion path terminates due to the maximum allowed number of hops, the reason for termination is marked as "hop count exhausted." Evidence collected on this path that has reached its maximum allowed number of hops still participates in subsequent ranking but is marked as truncated evidence. When an expansion path stops exploring because it has reached its maximum allowed number of hops, the system explicitly marks the reason for termination as "hop count exhausted." Although these paths did not fully explore their potential depth, the evidence collected before termination still has value. Therefore, this collected evidence is not simply discarded but incorporated into subsequent evidence ranking. To provide transparency and distinguish its completeness, this evidence is specifically marked as "truncated evidence," indicating that it may not have been fully explored due to depth limitations. This approach ensures that even under depth-limited conditions, the system can maximize the use of explored information, providing users with the most comprehensive evidence possible.
[0146] The above technical solution addresses the disconnect between query expansion depth and knowledge base structure under dynamic changes in the knowledge base, and fully utilizes evidence collected from expansion paths terminated due to depth limitations. For example, by dynamically adjusting the number of rounds and the maximum allowed hop count during knowledge base initialization and full network recalculation, it ensures that the query expansion depth remains consistent with the current knowledge base's topological scale and structural definition, avoiding overexploration or underexploration that might occur with a fixed hop count, thereby improving the efficiency and accuracy of evidence chain retrieval. Furthermore, maintaining independent hop count counters for different expansion paths and allowing them to terminate independently optimizes the allocation of computational resources. More importantly, for paths terminated due to reaching the maximum allowed hop count, the collected evidence is still included in subsequent sorting and explicitly marked as truncated evidence. This not only avoids the loss of potentially useful information but also provides transparent information about evidence integrity to users or subsequent processing, maximizing the utilization of explored knowledge with limited resources and improving the query response quality and user experience of the unified knowledge base.
[0147] This application further proposes that during the hop-by-hop expansion process, the change in the coverage of the currently collected evidence set to the query intent is used as the marginal gain. Expansion stops when this marginal gain for several consecutive hops is below a specified threshold, where the count threshold for these several hops is greater than 1. For example, using the currently collected evidence set as a baseline, the change in the coverage of the currently collected evidence set to the query intent is evaluated after each new piece of evidence is added, and this change in coverage is used as the marginal gain. This evaluation method aims to quantify the actual contribution of new evidence to answering the query, thereby providing a basis for subsequent stopping decisions. For example, a large language model can be used to semantically encode the query intent and evidence content, and then the change in coverage can be measured through vector similarity calculation.
[0148] The change in coverage is determined based on the information redundancy between the newly added evidence and existing evidence in the currently collected evidence set; the higher the information redundancy, the smaller the change in coverage. To more accurately measure marginal gain, this application further clarifies the calculation method for the change in coverage. When new evidence is highly redundant with existing evidence, its change in coverage for the query intent should be considered small, and vice versa. Information redundancy can be determined in various ways, such as calculating the mean cosine similarity between the vector representation of the new evidence and the vector representations of each piece of evidence in the collected evidence set, or judging it by the degree of overlap of features such as keywords, entities, and topics. In this way, the system can effectively avoid collecting duplicate or highly similar information, ensuring the conciseness of the evidence chain.
[0149] The counting threshold is 3, and this specified threshold is adaptively determined based on the number of subtopics involved in the query intent; the more subtopics involved, the lower the specified threshold. To achieve a more intelligent expansion stopping mechanism, this application sets specific stopping conditions. Expansion stops when the marginal gain of several consecutive hops is below the specified threshold, where the counting threshold for these hops is set to 3. This means that even if the gain from a particular expansion is small, the system will still try the next two hops to avoid premature stopping due to local fluctuations. This specified threshold is not a fixed value but is adaptively adjusted based on the number of subtopics involved in the query intent. When the number of subtopics involved in the query intent is large (e.g., a broad query), the system assumes that even a small marginal gain may represent coverage of a new subtopic, and therefore sets the specified threshold lower to encourage more comprehensive exploration. Conversely, when the number of subtopics involved in the query intent is small (e.g., a precise query), the system expects a higher marginal gain before continuing expansion, and therefore sets the specified threshold higher. The number of subtopics of a query intent can be obtained through semantic analysis, entity recognition, or topic modeling of the query text. This adaptive mechanism allows the expansion of the evidence chain to better match the complexity and breadth of the query.
[0150] The above technical solution addresses the challenge of accurately assessing the value of new evidence and intelligently controlling the depth of evidence expansion during evidence chain construction. By using the currently collected evidence set as a benchmark and combining the information redundancy between newly added evidence and existing evidence to determine the change in coverage as a marginal gain, the system can more accurately judge the actual contribution of new evidence to the query intent, thereby avoiding the collection of a large amount of duplicate or low-value information. Furthermore, setting a counting threshold of 3 and adaptively determining the specified threshold based on the number of sub-topics involved in the query intent makes the evidence chain expansion stopping mechanism more flexible and intelligent. For complex queries involving multiple sub-topics, a lower threshold encourages the system to explore more broadly, ensuring the comprehensiveness of the evidence chain; while for queries with a focused topic set, a higher threshold allows for faster convergence, avoiding unnecessary expansion. This refined marginal gain assessment and adaptive stopping strategy improves the efficiency and quality of evidence chain construction, ensuring that the final output evidence chain comprehensively covers the query intent while maintaining high conciseness, thus providing users with more accurate and efficient knowledge services.
[0151] The specific calculation method of the "coverage change" or marginal gain in this application is as follows: (1) Key information extraction: After each new piece of evidence is added, the core topic words, entities and relationships are extracted from the current collection of evidence using a large language model or keyword extraction algorithm to form the coverage feature vector F_existing; similarly, the core features are extracted from the newly added evidence to form the new evidence feature vector F_new; (2) Redundancy calculation: The semantic similarity between F_new and F_existing is calculated. The cosine similarity or Jaccard coefficient in the vector space model (based on the intersection-union ratio of the feature word set) can be used. The similarity value is recorded as Sim(F_new, F_existing), and (1 - Sim) is used as the information redundancy of the new evidence compared with the existing evidence set; (3) Marginal gain determination: The higher the information redundancy, the more overlapping content between the new evidence and the existing evidence, and the smaller the coverage change; conversely, the lower the information redundancy, the larger the coverage change. The marginal gain can be directly set to (1-Sim), that is, when the new evidence has no overlap with the existing evidence, the marginal gain is 1, and when they are completely repeated, the marginal gain approaches 0; (4) Threshold determination: compare the marginal gain with the specified threshold. When the marginal gain of 3 consecutive hops is lower than the threshold, it is determined that the marginal benefit of continuing to expand is insufficient, and the path is stopped. The specified threshold can be set to a value in the range of 0.1~0.3 by default, and can be adaptively adjusted according to the number of subtopics involved in the query intent: the more subtopics, the lower the threshold.
[0152] This application further proposes to determine the comprehensive ranking score of candidate evidence collected by hop-by-hop expansion based on the coupling relationship between semantic similarity, topological distance and confidence. The topological distance is jointly determined by the number of expansion hops and the pass strength of the mutual consistency verification of each hop on the path. The lower the pass strength, the greater the negative contribution of the topological distance to the comprehensive ranking score. The ranked evidence, together with their respective Wiki-level context, is output as the evidence chain.
[0153] For example, this comprehensive ranking score aims to quantitatively evaluate and prioritize candidate evidence that has passed structural and permission checks. It generates a single numerical value by integrating information from multiple dimensions, such as the semantic relevance of evidence to the query, the accessibility and reliability of evidence within the knowledge topology, and the confidence level of the evidence itself. This value intuitively reflects the overall value and recommendation priority of each piece of evidence. This can be achieved through weighted summation, multiplicative combination, or more complex machine learning models to integrate various indicators. The comprehensive ranking score is based on semantic similarity, a fundamental metric measuring the relevance between evidence content and the user's query intent. It is typically obtained by calculating the similarity between the query vector and the evidence vector, such as using cosine similarity, the reciprocal of Euclidean distance, or other metrics based on embedding space distance. Semantic similarity, as the base score, ensures that the ranking results meet the user's requirements for content relevance. Based on this, the reciprocal of the topological distance is used as a distance decay factor to attenuate and modulate the base score. The topological distance reflects the "proximity" of evidence to the query entry point within the knowledge topology, as well as its structural reliability along the expansion path. The distance decay factor translates this topological "proximity" and "reliability" into a correction to the base score. For example, the reciprocal of the topological distance means that evidence that is closer or has a more reliable path has a larger decay factor, and a stronger effect on preserving or improving the base score; conversely, evidence that is farther away or has a lower path reliability has a smaller decay factor, and a more significant effect on weakening the base score. This ensures that evidence that is closer to the query entry point and has a more stable structure receives higher priority. The confidence level is then used as a credibility weighting factor to multiplicatively weight the attenuated score. This confidence level is an indicator of the reliability or authority of the knowledge unit itself, reflecting the stability of the knowledge unit after feedback verification and time accumulation. As a credibility weighting factor, the confidence level acts multiplicatively on the score after distance decay modulation, meaning that only when the evidence itself has high credibility can its final score be improved. This helps filter out semantically relevant but questionable evidence, ensuring that the output evidence chain is not only relevant but also credible.
[0154] When calculating the topological distance, the pass strength of the mutual consistency check at each hop along the path is a key indicator for evaluating the reliability of each step in the evidence chain. It quantifies the degree of matching between the fingerprint digests of records between adjacent knowledge units. This strength value reflects the local consistency and stability of the knowledge topology. The higher the pass strength, the more reliable the connection of that hop and the more robust the structural relationship between knowledge units. The first strength value is taken when the comparison results in both directions are consistent. This first strength value corresponds to the highest level of pass, meaning that the fingerprint digests of records in both directions between adjacent knowledge units are completely consistent, indicating a highly stable structural relationship. The second strength value is taken when only one direction is consistent. This second strength value corresponds to a medium level of pass; for example, fingerprint digest matching in only one direction may mean partial inconsistency or synchronization in progress. The third strength value is taken when both directions are inconsistent. This third strength value corresponds to the lowest level of pass; for example, inconsistency in both directions indicates a significant structural problem in the connection. The first, second, and third strength values decrease sequentially, allowing the system to apply different weights to connections of different reliability levels when calculating the topological distance. The topological distance is calculated by summing the strengths of each hop and taking the reciprocal. This method accumulates the local reliability of all hops in the chain of evidence, forming a holistic topological distance metric. Summarizing the strengths means that the reliability of each step on the path affects the distance value. Taking the reciprocal ensures that the more reliable the path (the higher the summation strength), the smaller its topological distance, thus exhibiting a stronger preservation effect in the distance decay factor. This ensures that the topological distance considers not only the number of hops but also, more profoundly, the structural integrity of the path.
[0155] When this chain of evidence is output, each piece of evidence carries its own knowledge unit identifier, its ranking position in the chain, its corresponding Wiki hierarchical path, and a comprehensive ranking score. This output format aims to provide a structured, easy-to-understand, and traceable chain of evidence. The knowledge unit identifier ensures the uniqueness and traceability of each piece of evidence. The ranking position intuitively demonstrates the importance of the evidence. The comprehensive ranking score provides a quantitative evaluation basis. The Wiki hierarchical path traces upwards from the directory location of the knowledge unit's Wiki page to the root directory, providing bottom-up contextual information. By displaying the complete path of the knowledge unit in the Wiki directory tree, it helps users understand the classification, affiliation, and logical position of the knowledge unit within the entire knowledge system. For example, a knowledge unit about "feature of product A" might have a hierarchical path displayed as "product line / product A / feature," allowing users to quickly grasp the macro-level background of the evidence and determine its deep connection to their query intent, enhancing the interpretability and credibility of the evidence.
[0156] The above technical solution addresses the problem of collecting only candidate evidence without effective ranking and context. By introducing a comprehensive ranking score, semantic similarity, topological distance, and confidence are coupled, making the output evidence chain no longer a simple collection of evidence, but structured information that has undergone intelligent evaluation and priority ranking. For example, semantic similarity ensures a high relevance between the evidence and the query content; the introduction of topological distance, combined with the pass strength of the mutual consistency verification of each hop along the path, gives higher weight to evidence that is closer to the query entry point and has a more stable path structure, effectively avoiding misleading evidence caused by unstable topological structures; and confidence, as a credibility weighting factor, further guarantees the authority and reliability of the output evidence. In addition, the knowledge unit identifier, ranking position, and Wiki level path carried in the evidence chain output provide users with clear traceability information and rich context, improving users' understanding and trust in the evidence chain. This enables users to obtain the required information from the unified knowledge base more efficiently and accurately, improving the quality of knowledge retrieval and user experience.
[0157] This application proposes a more refined feedback adoption and confidence update mechanism, specifically including the following aspects: When feedback arrives, the system compares the snapshot of the adoption moment carried in the feedback record with the current fingerprint of the knowledge unit containing the adopted evidence. This snapshot records the structural fingerprint of the knowledge unit when the user adopted the evidence. This snapshot is then compared with the current structural fingerprint of the knowledge unit. If they do not match, it indicates that the structure or content of the knowledge unit has been restructured or updated after the user adopted the evidence. In this case, the feedback is no longer applicable to the current version of the knowledge, so it is marked as invalid and recorded in the feedback invalidation log, no longer participating in subsequent confidence calculations. Conversely, if the snapshot matches the current fingerprint, it means the feedback is for the currently valid knowledge version and can proceed to the subsequent stability assessment stage. This comparison mechanism ensures that only feedback for the currently valid knowledge version is used for confidence updates, avoiding feedback invalidation issues caused by knowledge version iterations.
[0158] Within a sliding time window, the system calculates the proportion of unidirectional feedback received by the knowledge unit containing the adopted evidence out of the total number of valid feedbacks. This feature aims to improve the stability and robustness of confidence updates, avoiding the undue influence of scattered or noisy feedback on the confidence of knowledge units. The system maintains a sliding time window for each knowledge unit, collecting all valid feedback (i.e., feedback through fingerprint comparison) for that knowledge unit within this window. Within the sliding time window, the system calculates the proportion of feedback consistent with the mainstream direction (e.g., feedback where most users consider the knowledge unit "useful" or "accurate") out of all valid feedback. When this proportion reaches a specified threshold, a valid feedback event is generated; scattered negative feedback that does not reach the specified threshold does not trigger confidence adjustments. This mechanism filters out accidental and unrepresentative feedback, ensuring that confidence updates are based on group consensus or significant trends, thereby improving the reliability of confidence changes.
[0159] Furthermore, when the same feedback source generates multiple feedbacks in the same direction within the sliding time window, these feedbacks are mapped to an equivalent feedback count using a decreasing rate of adjustment. This technical feature aims to address the problem of excessive influence on confidence caused by repeated feedback from a single feedback source. When the same user or system source generates multiple feedbacks in the same direction to the same knowledge unit within the sliding time window, the system does not simply count each feedback as equal. Instead, it uses a decreasing rate of adjustment to map these feedbacks to an "equivalent feedback count." For example, the first feedback might be counted as 1, the second as 0.5, the third as 0.25, and so on, gradually reducing the impact of subsequent feedbacks on the equivalent count. Once the equivalent feedback count reaches its adjustment limit, any further increases in the same direction feedback are not included in the statistics. This means that once the limit is reached, even if the same source continues to generate feedback in the same direction, the equivalent feedback count will not increase further, thus preventing feedback from a single source from having an infinitely large impact on confidence. The confidence adjustment corresponding to the valid feedback event is written into the confidence field of the knowledge unit and the Wiki page is updated. Through this adjustment mechanism, the system can more fairly and reasonably evaluate the weight of feedback from different sources, preventing a few active users or automated systems from improperly manipulating or biasing the confidence of knowledge units.
[0160] The above technical solutions address issues such as feedback failure, unstable confidence updates, and single-source feedback bias that may arise in enterprise-level unified knowledge bases. For example, by comparing the snapshot of the adoption time carried in the feedback record with the current fingerprint of the knowledge unit containing the adopted evidence when feedback arrives, feedback that has become invalid due to knowledge version reconstruction can be accurately identified and discarded. This ensures that only feedback targeting the current valid knowledge version is used for confidence updates, thus guaranteeing the effectiveness of the feedback. By statistically analyzing the proportion of unidirectional feedback to the total number of valid feedbacks within a sliding time window and setting a specified threshold to define valid feedback events, scattered and accidental feedback noise is effectively filtered out. This allows confidence adjustments to be based on a more stable and representative group consensus, improving the robustness of confidence updates. Furthermore, for cases where the same feedback source generates multiple unidirectional feedbacks within the sliding time window, a decreasing rate of conversion is used to map them to an equivalent feedback count, and a conversion cap is set. This effectively prevents a single active user or automated system from excessively influencing or manipulating the confidence of a knowledge unit, ensuring the fairness and objectivity of confidence assessment. The synergistic effect of these mechanisms makes the confidence update process of the knowledge base more accurate, stable and reliable, thereby promoting the healthy self-growth of the enterprise-level unified knowledge base.
[0161] This application further proposes that when feedback arrives, the snapshot of the adoption time carried in the feedback record is compared with the current fingerprint of the knowledge unit where the adopted evidence is located. If the comparison is inconsistent, it is determined that the knowledge version evaluated by the feedback has been overwritten by subsequent reconstruction, the feedback is marked as invalid and registered in the feedback invalidation log, and the comparison is consistent, and then proceeds to stability determination. When feedback that is consistent enters stability determination, the fingerprint generation time corresponding to the snapshot of the adoption time of the adopted evidence is read from the adoption log, and the difference between the fingerprint generation time and the feedback arrival time is used as the feedback delay. Feedback with a feedback delay exceeding a specified delay threshold is subject to attenuation weight in stability determination.
[0162] For example, when generating an answer for each piece of adopted evidence, the retrieval process writes a fingerprint snapshot of the adoption moment along with the knowledge unit identifier to the adoption log. The feedback record retrieves this snapshot from the adoption log. This mechanism aims to ensure that feedback can accurately trace the knowledge version targeted by the user's feedback. By writing the fingerprint snapshot of the adoption moment along with the knowledge unit identifier to the adoption log when generating an answer in the retrieval process, the system creates a clear version anchor for each knowledge adoption action. When a user provides feedback later, the feedback record can retrieve the precise version information of the knowledge unit at that time from the adoption log, i.e., the snapshot of the adoption moment. The adoption log can be a distributed log system, such as Kafka or a message queue, or a persistent database table used to record information such as the knowledge unit identifier, the structural fingerprint snapshot of the adoption moment, the user identifier, the query identifier, and the adoption timestamp. When the retrieval process returns the knowledge unit as an answer to the user, it synchronously triggers the log writing operation to ensure the atomic association between the adoption action and the version snapshot. After receiving user feedback, the feedback system uses the query identifier or knowledge unit identifier carried in the feedback to backtrack and query the adoption log to obtain the corresponding snapshot of the adoption moment.
[0163] Rejected feedback is registered in a feedback rejection log, which records the feedback identifier, feedback arrival time, snapshot of the adoption, current fingerprint, and reason for rejection. This mechanism handles feedback that becomes invalid due to knowledge version evolution. When the knowledge version (snapshot of adoption) upon which the user's feedback is based is inconsistent with the latest version (current fingerprint) of the knowledge unit in the current knowledge base, it indicates that the user's feedback represents an outdated knowledge state. In this case, marking such feedback as rejected and recording it in detail in the feedback rejection log can prevent it from erroneously affecting the confidence level of the current knowledge unit, while preserving the historical record of feedback for subsequent analysis and auditing. The feedback rejection log can be a separate database table or file system used to store feedback information determined to be rejected. Each rejection record should include the feedback identifier, feedback arrival time, fingerprint snapshot at the time of user adoption, current fingerprint of the knowledge unit, and a clear reason for rejection (e.g., "version mismatch"). After receiving feedback, the system compares the snapshot taken at the time of adoption with the current fingerprint. If an inconsistency is found, the invalidation registration process is triggered, the relevant information is written to the feedback invalidation log, and the feedback is prevented from entering the subsequent confidence and stability determination stage.
[0164] Furthermore, when consistent feedback is entered into the stability assessment, the fingerprint generation time corresponding to the snapshot of the adopted evidence is read from the adoption log. The difference between this fingerprint generation time and the feedback arrival time is used as the feedback latency. Feedback with a latency exceeding a specified threshold is subject to a reduction weight in the stability assessment. This mechanism aims to evaluate the timeliness of feedback and adjust its influence on confidence determination accordingly. Feedback latency refers to the time interval from the fingerprint generation time of the knowledge unit (i.e., the actual generation time when the knowledge version is adopted) to the arrival of user feedback in the system. If the feedback latency is too long, even if the snapshot at the adoption time matches the current fingerprint, it may mean that the user is thinking and providing feedback on an older but unreconstructed version, and the value of their feedback may be relatively reduced. By applying a reduction weight to high-latency feedback, the real-time value of feedback can be more accurately reflected, avoiding excessive influence of outdated feedback on the current knowledge state. In the stability assessment phase, the system extracts the fingerprint generation time of the adopted evidence from the adoption log and records the time when the feedback arrives in the system. The difference between the two is the feedback latency. One or more time delay thresholds are preset; for example, feedback exceeding 1 hour is weighted with 0.8, and feedback exceeding 1 day is weighted with 0.5. The attenuation weight can be a multiplicative factor less than 1, used to modulate the contribution of the feedback in subsequent confidence calculations. For example, when calculating the proportion of same-direction feedback or the confidence adjustment, the count or impact value of the feedback is multiplied by the attenuation weight.
[0165] Through the above technical solution, a more refined and robust version consistency verification and timeliness evaluation mechanism is introduced when processing user feedback to update the confidence of knowledge units. By writing the fingerprint snapshot at the time of adoption along with the knowledge unit identifier into the adoption log during the retrieval process, and having the feedback record obtain a snapshot from this log, the precise association between feedback and a specific knowledge version is ensured. This solves the problem of feedback becoming disconnected from the current knowledge state due to the dynamic evolution of the knowledge base, and avoids incorrect confidence adjustments to reconstructed knowledge. For feedback whose snapshot at the time of adoption is inconsistent with the current fingerprint, the system marks it as invalid and registers it in the feedback invalidation log, thereby effectively filtering out invalid feedback based on outdated knowledge versions, preventing it from interfering with the accuracy of confidence updates, and retaining audit clues for invalid feedback. Furthermore, by calculating the feedback latency and applying a decay weight to feedback exceeding a specified latency threshold in the stability judgment, this application can distinguish the timeliness of feedback, reduce the influence of outdated feedback on the current knowledge state, and enable confidence updates to reflect the latest state of knowledge and users' real-time evaluations more timely and accurately. These mechanisms work together to improve the accuracy and stability of knowledge confidence management in a dynamically changing environment for the enterprise-level unified knowledge base, ensuring the continuous high-quality self-growth of knowledge base content.
[0166] This application further proposes to statistically analyze the proportion of unidirectional feedback received by the knowledge unit containing the adopted evidence within a sliding time window, relative to the total number of valid feedbacks. When this proportion reaches a specified threshold, a valid feedback event is formed. Scattered reverse feedback that does not reach the specified threshold does not trigger confidence adjustment. Specifically, the window length of the sliding time window is adaptively adjusted based on the fingerprint stability duration of the knowledge unit containing the adopted evidence; the longer the fingerprint stability duration, the shorter the window length of the sliding time window. The unidirectional feedback proportion is the proportion of feedback that is consistent with the current mainstream feedback direction within the sliding time window to the total number of valid feedbacks. The mainstream feedback direction is determined by the majority vote of the feedback directions within the sliding time window. When the total number of valid feedbacks within the sliding time window is lower than the minimum sample threshold, the statistical analysis of the unidirectional feedback proportion and confidence adjustment are not triggered.
[0167] For example, the length of the sliding time window is adaptively adjusted based on the fingerprint stability duration of the knowledge unit containing the adopted evidence; the longer the fingerprint stability duration, the shorter the sliding time window. The fingerprint stability duration refers to the duration of the structural fingerprint of a knowledge unit since its last change. This duration reflects the structural stability of the knowledge unit. For knowledge units with a long structural stability duration, their content and structure tend to be stable, and a shorter sliding time window can be used to quickly capture the latest user feedback, thereby enabling agile adjustments to the confidence level. Conversely, for knowledge units with a short structural stability duration, their content or structure may still be frequently changing, requiring a longer sliding time window to accumulate sufficient feedback samples to ensure the accuracy and robustness of confidence level adjustments and avoid drastic fluctuations due to a small amount of feedback. The system can maintain a fingerprint update timestamp for each knowledge unit, calculate the difference between the current time and this timestamp to obtain the fingerprint stability duration, and dynamically adjust the length of the sliding time window according to a preset mapping function or rule.
[0168] The proportion of feedback aligned with the current mainstream feedback direction is the percentage of valid feedback within the sliding time window. The mainstream feedback direction is determined by a majority vote within the sliding time window. In practice, user feedback may be diverse and even contain conflicting opinions. To accurately assess the confidence level of a knowledge unit, this application introduces the concept of "mainstream feedback direction." Within the sliding time window, the system collects all valid feedback and statistically analyzes the direction of this feedback (e.g., positive, negative, neutral, etc.). Through a majority voting mechanism, the dominant feedback direction within the current time window is determined, which is the "mainstream feedback direction." "Same-direction feedback" specifically refers to feedback aligned with this mainstream direction. This mechanism effectively filters out minority opinions or noise, allowing confidence adjustments to focus more on the general acceptance or existing problems of the knowledge unit.
[0169] When the total number of valid feedbacks within the sliding time window is lower than the minimum sample threshold, the statistical calculation of the proportion of same-direction feedback and the subsequent confidence adjustment are not triggered. To avoid inaccurate confidence adjustments when feedback data is sparse, this application sets a minimum sample threshold. This means that the system will only calculate the proportion of same-direction feedback and perform subsequent confidence adjustments when the number of valid feedbacks collected within the sliding time window reaches or exceeds this threshold. If the total number of valid feedbacks is insufficient, the current sample size is considered insufficient to support a reliable judgment, and confidence adjustments are suspended until sufficient feedback data is accumulated. This helps improve the reliability of confidence adjustments and prevents randomness or misjudgment caused by an insufficient sample size.
[0170] The aforementioned technical solutions adaptively adjust the window length of feedback statistics based on the structural stability of knowledge units, enabling more timely feedback responses to stable knowledge and more prudent evaluation of unstable knowledge. Determining the mainstream feedback direction through majority voting effectively addresses the challenges posed by feedback diversity, ensuring that confidence adjustments are based on more representative user opinions. Furthermore, the introduction of a minimum sample threshold avoids inaccurate confidence adjustments when feedback data is sparse, improving the robustness and accuracy of confidence assessment. These improvements collectively ensure that the knowledge confidence of an enterprise-level unified knowledge base can more accurately, dynamically, and reliably reflect its true state, thus providing a solid foundation for the self-growth and maintenance of knowledge.
[0171] This application further proposes that when the same feedback source generates multiple unidirectional feedbacks within a sliding time window, the unidirectional feedbacks are mapped to an equivalent feedback count according to a decreasing rate of increase. This equivalent feedback count increases with the number of original unidirectional feedbacks, but the rate of increase decreases. The upper limit of this conversion is the maximum value of the equivalent feedback count. When the equivalent feedback count corresponding to the number of original unidirectional feedbacks has reached this upper limit, further increases in unidirectional feedback do not change the equivalent feedback count. Furthermore, the equivalent feedback counts from different feedback sources are calculated independently, without cross-source conversion or merging. The sum of the equivalent feedback counts from each source is used as the number of unidirectional feedbacks in the total number of valid feedbacks. After the statistics are completed, the final confirmed confidence adjustment is written into the confidence field of the knowledge unit and the version header of the Wiki page is updated.
[0172] For example, when the system receives multiple feedbacks from the same source to the same knowledge unit within the same sliding time window, it does not simply linearly accumulate these feedbacks. Instead, the system uses a decreasing-rate reduction rule, such as a logarithmic function or a similar curve, to map the original multiple feedbacks to an equivalent feedback count. This means that while subsequent feedbacks from the same source still increase the equivalent feedback count, their contribution to the count gradually decreases. For example, the first feedback might contribute 1 equivalent count, the second 0.5, the third 0.2, and so on. This mechanism aims to prevent a single user or automated program from excessively influencing the confidence of a knowledge unit by repeatedly submitting feedback, thereby ensuring the fairness and robustness of confidence updates.
[0173] To further limit the potential impact of a single feedback source on the confidence level of a knowledge unit, the system sets a conversion cap for the equivalent feedback count of each feedback source. Once the equivalent feedback count of a feedback source reaches or exceeds this preset maximum value, its equivalent feedback count will no longer increase, even if the source continues to generate unidirectional feedback within the sliding time window. This cap ensures that even with a decreasing conversion rule, the contribution of a single source has a hard ceiling, thus avoiding potential manipulation of confidence statistics in extreme cases and encouraging a wider range of users to participate in feedback to improve the confidence level of knowledge units.
[0174] This application explicitly stipulates that the equivalent feedback count for different feedback sources is calculated independently, without cross-source conversion or merging. This means that the system will calculate the equivalent feedback count for each user (A), user (B), user (C), etc., separately. When calculating the proportion of unidirectional feedback to the total number of valid feedback, the system will sum all independently calculated equivalent feedback counts to form the total number of unidirectional equivalent feedback for that knowledge unit within the current sliding time window. This independent calculation and summation method ensures that the contribution of each independent feedback source is reasonably evaluated, and the statistical results can comprehensively reflect the collective opinions from different users, thus making the confidence adjustment of the knowledge unit more objective and representative. After the statistics are completed, the final confirmed confidence adjustment amount will be written into the confidence field of the knowledge unit and the version header of the Wiki page will be updated to reflect the latest confidence status of the knowledge unit.
[0175] The above technical solution addresses the issue of a single feedback source potentially overly influencing the confidence level of knowledge units. By employing a logarithmic conversion rule with decreasing growth rate, the contribution of multiple feedbacks from the same source to the confidence level exhibits a diminishing marginal effect, preventing a few users or automated programs from manipulating the confidence level of knowledge units through repeated feedback. Setting a conversion cap further limits the maximum influence of a single source, ensuring the fairness of confidence level updates. Furthermore, equivalent feedback counts from different sources are calculated independently and accumulated, allowing confidence level adjustments to comprehensively reflect the collective opinions of multiple independent users, rather than concentrated feedback from a few active users. This enhances the robustness and objectivity of knowledge unit confidence assessment, enabling enterprise-level unified knowledge bases to more accurately identify and retain truly widely accepted knowledge, thereby strengthening the overall credibility and practical value of the knowledge base.
[0176] This application further proposes setting a lower and upper threshold for confidence level adjustment. A knowledge status transitioning from trustworthy to questionable requires the confidence level to fall below the lower threshold, while a transition from questionable to trustworthy requires the confidence level to rise above the upper threshold. The area between the lower and upper thresholds is a maintenance zone, where changes in confidence values do not trigger state switching. A protection index is maintained for each piece of knowledge, and this protection index is used to attenuate the confidence level adjustment amount for valid feedback events. This protection index increases with the number of unidirectional confirmations and the duration of fingerprint stability, and decreases with structural changes. After the confidence level is updated, it flows back to the version fork selection step in the arbitration process and the sorting step in the retrieval process. When the confidence level of a certain version branch falls below the elimination threshold for a specified number of consecutive evaluation periods, that version branch enters an archived state, no longer participating in retrieval but retaining traceability. The archived knowledge content is still retained as a historical version layer of the unified knowledge base.
[0177] For example, to avoid frequent switching of knowledge states due to minor fluctuations in confidence, this application introduces the concepts of a lower threshold and an upper threshold for confidence adjustment. A knowledge unit's confidence must fall below the lower threshold to transition from a "credible" state to a "questionable" state; conversely, it must rise above the upper threshold to transition from a "questionable" state to a "credible" state. A "holding zone" is formed between the lower and upper thresholds. Within this zone, even if the confidence value changes, the current state of the knowledge unit will not switch. This mechanism, by introducing hysteresis, effectively filters out instantaneous or minor feedback effects, ensuring that knowledge state switching is based on more stable and significant confidence changes, thereby improving the overall stability of the knowledge base. For example, the distance between the lower and upper thresholds can be determined based on the knowledge's protection level; the higher the protection level, the larger the distance between the lower and upper thresholds, giving more protected knowledge a larger stability range. Knowledge state switching events are recorded in a state switching log, which includes the knowledge state before and after the switch, the confidence value that triggered the switch, threshold information, and the switch time, facilitating auditing and traceability. When the initial confidence level of newly incorporated knowledge is within the retention zone, its initial knowledge state is set to doubtful by default, and it will only be switched to trustworthy when the confidence level rises above the upper threshold. This reflects a cautious attitude towards new knowledge.
[0178] This application maintains a protection index for each knowledge unit. This protection index is used to perform decay modulation on the confidence adjustment amount caused by valid feedback events. The protection index increases with the number of positive confirmations and the duration of fingerprint stability, meaning that knowledge units with multiple positive confirmations and stable structures have higher protection. Conversely, when the structure of a knowledge unit changes, its protection decreases accordingly. This mechanism makes the confidence adjustment of a knowledge unit no longer linear, but dynamically adjusted according to its own stability and importance. For example, the increase in protection can be achieved by mapping the number of positive confirmations and the duration of fingerprint stability to incremental factors and then accumulating them to the current protection. The decay update of protection is achieved by applying a decay coefficient less than 1 to the current protection at each structural change. The count of the number of positive confirmations is reset after each knowledge version reconstruction, and the duration of fingerprint stability is the duration from the most recent fingerprint change to the current moment. The protection level of newly integrated knowledge is initialized to the minimum protection level value. In the confidence adjustment, the newly integrated knowledge is directly adjusted without protection level modulation. After the protection level of the newly integrated knowledge accumulates to exceed a specified threshold with the number of confirmations and the stabilization time, it is switched to the protection level modulation adjustment method. When the newly integrated knowledge first encounters a structural change, the protection level immediately decays to the minimum protection level value. This ensures that the new knowledge can respond to feedback more quickly in the early stage.
[0179] Furthermore, after the confidence level is updated, the result will flow back to the version fork selection step in the arbitration process and the ranking step in the retrieval process. This means that the reliability of knowledge units directly affects the internal management and external presentation of the knowledge base. During version fork arbitration, version branches with higher confidence levels will receive higher priority, thereby promoting the evolution of the knowledge base towards greater reliability. During retrieval ranking, knowledge units with higher confidence levels will receive higher rankings, ensuring that users have priority access to high-quality information. When the confidence level of a version branch falls below the elimination threshold for a specified number of consecutive evaluation periods, that version branch will automatically be transferred to the archived state. Knowledge content in the archived state will no longer participate in daily retrieval, but its data will still be retained and traceable, serving as the historical version layer of the unified knowledge base. For example, after an eliminated version branch is transferred to the archived state, its Wiki page, graph triples, and vector indexes are retained in the storage medium and linked to the main branch through the version chain, supporting historical traceability queries by version identifier. During subsequent self-growth of the main branch, when newly incorporated knowledge establishes new links with the knowledge content in the obsolete version branch, the knowledge unit in the obsolete version branch that is linked to the newly incorporated knowledge is restored from the archived state to the retrieval-participating state. Upon restoration, the knowledge unit in the retrieval-participating state undergoes structural fingerprint recalculation and security level propagation. The result of this re-execution updates the metadata of the knowledge unit in the vector index, knowledge graph, and Wiki page. The archived version before restoration remains traceable through the version chain.
[0180] The above technical solutions address the issues of frequent fluctuations in knowledge unit confidence and unstable knowledge state transitions. The introduced confidence threshold and hold-up mechanism make knowledge state transitions more robust, preventing knowledge base turbulence caused by minor feedback. The introduction of a protection index allows for differentiated confidence adjustments to knowledge units based on their stability and importance, ensuring the resilience of core, stable knowledge while allowing for rapid feedback from new knowledge. Confidence feedback is routed back to the arbitration and retrieval stages, ensuring that knowledge reliability directly impacts the evolution of the knowledge base and the quality of information accessed by users, thus enhancing the overall authority and usability of the knowledge base. The version archiving mechanism maintains data integrity and traceability efficiently and concisely, providing a more stable, reliable, and intelligent management capability for enterprise-level unified knowledge bases.
[0181] In response, this application further proposes setting a lower threshold and an upper threshold for adjusting the confidence level. The knowledge state must fall below the lower threshold to change from credible to doubtful, and the knowledge state must rise above the upper threshold to change from credible to credible. The area between the lower threshold and the upper threshold is a holding zone, in which changes in the confidence value do not trigger a state switch.
[0182] This application further proposes that the gap between the lower threshold and the upper threshold is determined based on the protection level of the knowledge; the higher the protection level, the larger the gap between the lower threshold and the upper threshold. The knowledge state switching event is written to the state switching log, which records the knowledge state before the switch, the knowledge state after the switch, the confidence level value that triggered the switch, the lower threshold, the upper threshold, and the switching time. When the initial confidence level of the newly incorporated knowledge is within the retention zone, the initial knowledge state of the newly incorporated knowledge is set to doubtful by default, and is switched to trusted only after the confidence level rises above the upper threshold.
[0183] For example, the gap between the lower and upper thresholds is determined based on the protection level of the knowledge; the higher the protection level, the larger the gap between the lower and upper thresholds. This means that the confidence state switching of a knowledge unit no longer depends on a fixed threshold range, but is dynamically adjusted according to its inherent "protection level." Protection level can be understood as a comprehensive indicator of the stability, importance, or degree of verification of a knowledge unit. When a knowledge unit has a high protection level, it indicates that it has been sufficiently verified or has high authority. In this case, the amount of confidence change required for its confidence level to change from credible to questionable, or from questionable to credible, will be greater, meaning the gap between the lower and upper thresholds will be wider. This makes highly protected knowledge units more resistant to sporadic and uncertain feedback, avoiding frequent state switching due to a few negative feedbacks, thus ensuring the stability of core knowledge. Conversely, for knowledge units with low protection levels, the threshold gap is narrower, making their state switching more sensitive to feedback, which helps to promptly identify and address newly introduced or unstable knowledge issues. This dynamic adjustment mechanism can be implemented through a preset mapping function, for example, mapping the protection value to the amplification factor of the threshold spacing.
[0184] Furthermore, knowledge state transition events are written to a state transition log. When the confidence level of any knowledge unit triggers a state transition from "trustworthy" to "questionable" or from "questionable" to "trustworthy," the system records detailed information about this event. This state transition log records at least the knowledge state before the transition, the knowledge state after the transition, the confidence level that triggered the transition, the lower and upper thresholds in effect at that time, and the time the transition occurred. This log provides a complete audit trail, enabling knowledge base administrators to clearly understand the process of knowledge unit state changes, facilitating problem tracing, knowledge evolution trend analysis, and optimization of confidence level adjustment strategies. This log can be stored in a separate database table or a distributed log system, ensuring data persistence and queryability.
[0185] When the initial confidence level of newly incorporated knowledge falls within the retention zone, its initial knowledge state is set to "doubtful" by default. It is only switched to "trustworthy" once the confidence level exceeds the upper threshold. For newly introduced knowledge units, their initial confidence level may be in the "retention zone" between the lower and upper thresholds, meaning they have not yet reached a clearly defined trustworthy or doubtful state. To avoid new knowledge being mistakenly judged as trustworthy without sufficient verification, this application adopts a prudent strategy: setting its initial knowledge state to "doubtful" by default. This means that before new knowledge is fully trusted by the system, its confidence level needs to be increased and exceed the upper threshold through subsequent effective feedback before it can be finally confirmed as "trustworthy." This mechanism prevents unverified new knowledge from negatively impacting the overall quality of the knowledge base and ensures the reliability of the knowledge base content.
[0186] The above technical solution dynamically adjusts the sensitivity of confidence state switching based on the protection level of knowledge units, making core stable knowledge less susceptible to manipulation, while newly introduced or unstable knowledge can respond to feedback more promptly. This solves the rigidity or oversensitivity problems that may result from fixed thresholds, achieving refined and adaptive knowledge state management. By recording knowledge state switching events, the traceability and transparency of the knowledge base are enhanced, facilitating the monitoring and auditing of knowledge quality. Furthermore, for newly incorporated knowledge, its initial state is set to questionable by default, and it is required to rise above the upper threshold before becoming trustworthy. This establishes a "verify first, then trust" mechanism, effectively controlling the risk of introducing new knowledge and ensuring the overall quality and reliability of the enterprise-level unified knowledge base. This method, combining protection level, logging, and prudent initial state setting, makes the confidence management of the knowledge base more robust, flexible, and secure.
[0187] This application further proposes a specific method for maintaining a protection index for each piece of knowledge. The protection index is updated by mapping the number of unidirectional confirmations and the fingerprint stability duration to incremental factors and then accumulating them to the current protection index. The protection index is updated by applying a decay coefficient less than 1 to the current protection index for attenuation modulation during each structural change. The count of unidirectional confirmations is reset after each knowledge version reconstruction, and the fingerprint stability duration is the duration from the most recent fingerprint change to the current moment. The protection index of newly incorporated knowledge is initialized to the minimum protection index value. In confidence adjustment, the newly incorporated knowledge is directly adjusted without protection index modulation. Once the protection index of the newly incorporated knowledge accumulates to exceed a specified threshold with the number of confirmations and the stability duration, it switches to an adjustment method modulated with protection index. When the newly incorporated knowledge first encounters a structural change, its protection index immediately decays to the minimum protection index value.
[0188] The protection level update mechanism aims to reflect the stability and acceptance level of knowledge units. For example, the system maps the number of unidirectional confirmations and the fingerprint stability duration to incremental factors, and then accumulates these incremental factors to the current protection level. The number of unidirectional confirmations refers to the number of valid feedbacks received by the knowledge unit that align with the current mainstream feedback direction, reflecting the user's acceptance of the knowledge content. For example, the number of unidirectional confirmations can be mapped to incremental factors using a logarithmic function to avoid a few extreme feedbacks having an excessive impact on the protection level. The fingerprint stability duration refers to the duration from the most recent structural fingerprint change of the knowledge unit to the current moment, reflecting the structural stability of the knowledge unit. For example, the fingerprint stability duration can be mapped to incremental factors linearly or non-linearly over time periods (such as days or weeks). The accumulation of these incremental factors causes the protection level of the knowledge unit to gradually increase as the number of confirmations increases and the time the structure remains stable extends.
[0189] The decay update mechanism for protection scores reflects the impact of structural changes on the stability of knowledge units. Each time a knowledge unit undergoes a structural change, the system applies a decay coefficient less than 1 to the current protection score for attenuation modulation. Structural changes can include adjustments to the Wiki topology hierarchy, additions, deletions, or modifications to hyperlinks, or significant modifications to the knowledge unit's content that alter its structural fingerprint. For example, the decay coefficient can be set to 0.8 or 0.9, meaning that each structural change reduces the protection score by a certain percentage. This decay mechanism ensures that when the structure of a knowledge unit changes, its protection score reflects this uncertainty in a timely manner, making its confidence adjustment more sensitive to subsequent feedback and prompting the system to reassess its stability.
[0190] The count of unidirectional confirmations is reset after each knowledge version refactoring to ensure that it consistently reflects the acceptance level of the current knowledge version. Knowledge version refactoring refers to significant modifications to knowledge units, such as merging version branches, re-extracting graph triples from scratch, or regenerating vector representations. These operations typically result in significant changes to the structural fingerprint of the knowledge unit. Resetting the count prevents the accumulated confirmation counts from unduly influencing the new version. The fingerprint stability duration is defined as the duration from the most recent fingerprint change to the current moment. This means that as long as the structural fingerprint of the knowledge unit remains unchanged, its fingerprint stability duration will continue to increase, thus continuously contributing to improved protection.
[0191] The protection level of newly incorporated knowledge is initialized to the minimum protection level value, such as 0 or a very small positive number. This initialization strategy aims to make the new knowledge highly sensitive to feedback in the early stages, so as to quickly verify its accuracy and reliability. In confidence adjustment, the newly incorporated knowledge is adjusted directly without protection level modulation, meaning that its confidence adjustment is not affected by the decay modulation of protection level and can be adjusted significantly directly based on effective feedback. Once the protection level of the newly incorporated knowledge accumulates to exceed a specified threshold with the number of co-directional confirmations and the fingerprint stabilization time, the system will switch it to an adjustment method with protection level modulation, making its confidence adjustment more robust. In addition, when the newly incorporated knowledge encounters structural changes for the first time, its protection level will immediately decay to the minimum protection level value, further emphasizing the vulnerability of the new knowledge in structural instability and prompting the system to conduct more rigorous reviews.
[0192] The above technical solution provides a dynamic and adaptive knowledge protection management mechanism. This mechanism can reasonably increase the protection level of knowledge units based on their confirmation level and structural stability. This allows for appropriate attenuation modulation of stable and widely accepted knowledge during confidence level adjustments, preventing excessive fluctuations in confidence level due to minor negative feedback and enhancing the overall stability of the knowledge base. When a knowledge unit undergoes structural changes, the protection level is promptly decayed, enabling the system to reassess its reliability and ensuring the timeliness and accuracy of confidence level adjustments. Specifically, for newly incorporated knowledge, by initializing its protection level to the minimum and employing a direct adjustment method without protection level modulation, the new knowledge can quickly respond to initial feedback, accelerating its verification process. Furthermore, it immediately reduces the protection level upon the first structural change, effectively preventing immature or unstable new knowledge from negatively impacting the knowledge base. This refined protection level management makes the knowledge base's confidence level update mechanism more intelligent and robust, better adapting to the dynamic evolution of knowledge and improving the self-growth capability and knowledge quality of the enterprise-level unified knowledge base.
[0193] This application proposes an optimization scheme whereby, when a retired version branch is moved to archived status, its Wiki page, graph triples, and vector indexes are retained in the storage medium and linked to the main branch via a version chain, supporting historical tracing queries by version identifier. For example, when a version branch of a knowledge unit is deemed retired and moved to archived status because its confidence level falls below the retirement threshold for a specified number of consecutive evaluation periods, its corresponding Wiki page, graph triples, and vector indexes are not completely deleted but remain in the system's storage medium. This archived data is linked to the main branch via the version chain, ensuring its historical traceability. Users or the system can query by version identifier to view the complete knowledge content and status of the version branch before retirement. This retention mechanism avoids permanent knowledge loss and provides a foundation for subsequent knowledge reuse and auditing.
[0194] During the subsequent self-growth of the main branch, when newly incorporated knowledge establishes new links with knowledge content in a previously eliminated version branch, the knowledge unit in that branch linked to the newly incorporated knowledge is restored from its archived state to a retrieval-participating state. Specifically, as the knowledge base continuously grows, the system processes new knowledge content as it is integrated. If a new link is found between the newly incorporated knowledge and a knowledge unit in an archived version branch (e.g., the new knowledge references archived knowledge, or the semantics of the new knowledge are highly relevant to the archived knowledge), this indicates that the archived knowledge unit may have regained its active value. At this point, the system automatically identifies this new association and restores the specific archived knowledge unit linked to the new knowledge from its archived state, allowing it to re-participate in knowledge base retrieval and application. This mechanism enables the dynamic revival of knowledge, preventing valuable historical knowledge from being buried for extended periods.
[0195] Building upon this foundation, when a knowledge unit is restored to a retrieval-participating state, its structural fingerprint is recalculated and security level propagation is performed again. The results of this recalculation update the knowledge unit's metadata in the vector index, knowledge graph, and Wiki page. The archived version before restoration remains traceable through the version chain. For example, once a knowledge unit is restored from an archived state to a retrieval-participating state, the system immediately performs a structural fingerprint recalculation to ensure its accuracy and consistency within the current knowledge base topology. This process regenerates the knowledge unit's structural fingerprint based on its latest neighborhood connection pattern in the current Wiki topology. A security level propagation mechanism is triggered, recalculating and updating its effective security level based on its own labeled security level, ancestor unit security levels, and content-carrying link relationships. These recalculation results are used to update the knowledge unit's metadata in the vector index, knowledge graph, and Wiki page, ensuring that its various representations in the knowledge base remain synchronized with the latest topology and security policies. Notably, even if the knowledge unit is restored, its archived version before restoration remains traceable through the version chain for auditing and historical backtracking.
[0196] The above technical solution addresses the issue of archived knowledge potentially being permanently lost. When new knowledge content is associated with knowledge units in historical archived versions, the system intelligently identifies this potential for value rediscovery and automatically restores the relevant archived knowledge units to an active state. This dynamic knowledge revival mechanism not only avoids the waste of valuable historical knowledge resources and reduces the need for manual intervention, but also ensures the structural consistency, data accuracy, and access control compliance of the restored knowledge units within the unified knowledge base by re-performing structural fingerprint recalculation and security level propagation during restoration. Furthermore, preserving the traceability of archived versions provides a complete historical record and auditing capability for the evolution of the knowledge base, enhancing the adaptability and knowledge reuse efficiency of the enterprise-level unified knowledge base.
[0197] All of the above-mentioned optional technical solutions can be combined in any way to form the optional embodiments of this application, and will not be described in detail here.
[0198] The above are merely optional embodiments of this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A self-growing enterprise-level unified knowledge base construction system based on LLM Wiki, characterized in that, The system includes a processor and memory, the processor being configured to perform the following steps: For each knowledge unit in the Wiki topology, a structural fingerprint is generated based on the neighborhood connection pattern. The vector representation, graph triples, and Wiki pages are all associated with and recorded with the snapshot of the generation time of the structural fingerprint. For candidate entries extracted and structured from the source document by the large language model, three-way arbitration is performed based on the structure fingerprint as the alignment benchmark. For mergeable cases, the entries are synchronously written to the vector index, knowledge graph and Wiki page under the condition of consistent budget fingerprint. For non-mergeable cases, parallel version branches are established, and the effective security level is propagated and updated along the link relationship by fingerprint recalculation. In response to a query, the entry point retrieved by the vector index is checked for consistency between the snapshot of the entry point's generation time and the current fingerprint. For the entry point that passes the check, the fingerprint digest matching status between adjacent units is verified hop by hop along the link relationship. In the same traversal, pruning is performed at the user's security level. The evidence chain that passes the structure check and permission check is incorporated into the unified knowledge base. The comparison result between the snapshot of the adopted evidence in the evidence chain and the current fingerprint is used as the feedback adoption condition. Valid feedback is screened and the confidence of the corresponding unit is updated. The Wiki page with the updated confidence is then deposited into the unified knowledge base.
2. The system according to claim 1, characterized in that, For each knowledge unit in the Wiki topology, a structural fingerprint is generated based on the neighborhood connection pattern. The vector representation, graph triples, and Wiki pages are all associated and recorded with a snapshot of the structural fingerprint's generation time, including: A topological anchor is established for each knowledge unit. The Wiki topological position of the topological anchor is divided into hierarchical channels and association channels. The hierarchical channels record the node identifiers at each level on the directory path from the root directory to the knowledge unit. The association channels record the set of adjacent pages directly connected to the knowledge unit through hyperlinks and the association type corresponding to each hyperlink. The association type is taken from the classification results of link relationships in the knowledge graph. Iterative neighborhood aggregation is performed independently on the hierarchical channel and the associated channel. In each round, the labels of the adjacent topological anchors within the neighborhood range of the topological anchor, together with the corresponding association type, are aggregated into a label group. The label group is compressed and encoded to obtain the updated label of the topological anchor. After multiple rounds of iteration, the hierarchical fingerprint component and the associated fingerprint component are obtained respectively. The hierarchical fingerprint component and the associated fingerprint component are spliced together to form the structural fingerprint. When the Wiki topology undergoes structural changes, a depth-limited traversal is performed along the topology from the changed position. The affected topological anchors within the traversal range are added to the recalculation queue. The structural fingerprints of the affected topological anchors are recalculated one by one. After the recalculation is completed, the fingerprint digests of the records at adjacent topological anchors are updated. The recalculation is completed when the recalculation queue is cleared. The depth of the depth-limited traversal matches the number of rounds of the iterative neighborhood aggregation. The structural fingerprints generated or updated by the vector representation, graph triples, and Wiki page are written as snapshots of the generation time into the metadata of the corresponding representation data. Anchoring associations are established between the three representations with the knowledge unit as the anchor point. At the same time, fingerprint summary pairs that record each other are established between the knowledge unit and each directly adjacent knowledge unit.
3. The system according to claim 1, characterized in that, The step of associating the vector representation, graph triples, and Wiki page with the snapshot of the generation time of the structural fingerprint includes: When vector entries, graph nodes, and Wiki pages are generated or updated, the structural fingerprint at that time is written as a snapshot of the generation time into the metadata of the corresponding representation data, and the anchoring association between the three representations is established with each knowledge unit in the Wiki topology as the anchor point. Using the knowledge unit identifier as the primary key, a mapping relationship is established in the unified index table between the three representations of vector entries, graph nodes, and Wiki pages and the corresponding snapshots generated at the time of generation. The unified index table supports forward querying of the three representations and their snapshots by knowledge unit identifier, and also supports reverse querying of the corresponding knowledge unit identifier by snapshot value. The associated records are maintained in an event-driven manner. When any representation is updated, the corresponding entries of the other two representations are located using the knowledge unit identifier as an index. The snapshots of the generation times of the three representations are refreshed to the updated structural fingerprint. The refresh operation is performed in an atomic transaction manner. The snapshots of the three representations are either all updated or all rolled back.
4. The system according to claim 3, characterized in that, The associated records are maintained using an event-driven approach. When any representation is updated, the corresponding entries for the other two representations are located using the knowledge unit identifier as an index. The snapshots of the generation times of the three representations are uniformly refreshed to the updated structural fingerprint. The refresh operation is performed in an atomic transaction manner. The snapshots of the three representations are either all updated or all rolled back, including: When the atomic transaction fails, the knowledge unit is marked as pending repair. In the pending repair state, the retrieval ranking score of the knowledge unit is given a decay weight but not removed from the index. Locate the lagging representation by comparing the registration time of the snapshot generated by each of the three representations with the version chain. The representation with the oldest snapshot registration time and the one that is far from the current fingerprint is identified as the lagging representation. Extract the missing update records of the lagging representation from the version chain and replay the lagging representation to fill in the missing records according to the original update order. After replay, the structural fingerprint of the knowledge unit is recalculated and compared with the current fingerprint. If they match, the mark to be repaired is removed. If the version chain is missing or the fingerprints of the three representations are still inconsistent after replay, the graph triples are re-extracted from the Wiki page text and the vector representation is regenerated. After reconstruction, the mark to be repaired is removed, and the snapshots of the generation time of the three representations are uniformly refreshed as the reconstructed structural fingerprint in an atomic transaction manner.
5. The system according to claim 1, characterized in that, The candidate entries extracted and structured from the source documents by the large language model are subjected to three-way arbitration based on the structural fingerprint. For mergeable cases, they are simultaneously written to the vector index, knowledge graph, and Wiki page under the condition of consistent budget fingerprint. For non-mergeable cases, parallel version branches are established, including: Based on the candidate triples obtained by entity relation extraction of the candidate entries, the existing corresponding nodes are located in the graph. The anchors to which the existing corresponding nodes are attached are taken as candidate positions of the graph path. At the same time, the existing units with similar semantics are recalled in the vector index using the candidate vectors, and the anchors to which the existing units are attached are taken as candidate positions of the vector path. The intersection of the candidate positions of the graph path and the candidate positions of the vector path are prioritized, and the union is used as a catch-all to determine the candidate attachment position. For the selected candidate affiliation positions, a three-path comparison is performed using the baseline, the current status, and the new arrival. The baseline is the common ancestor version of the existing pages of the candidate affiliation position in the version chain. The current status is the vector representation, graph relationship, and Wiki topology status of the candidate affiliation position in the current knowledge base. The new arrival is the change content brought by the candidate entry. Using the structural fingerprint as the alignment benchmark, the change path from the baseline to the current status and the change path from the baseline to the new arrival are decomposed into hierarchical components and related components, respectively. A three-class arbitration is performed based on the sub-neighborhood range and change direction touched by the two change paths. For candidates deemed to be merged by arbitration, update content in three representations—vector index, knowledge graph, and Wiki page—is generated in the preparatory area, and the updated structural fingerprint is estimated. After confirming that the estimated fingerprints of the three representations are consistent, the update content is submitted and written at once. For candidates deemed to be version forks by arbitration, parallel version branches are established at the candidate's attachment position. The parallel version branches carry independent fingerprint snapshots and confidence levels. Existing versions are retained, and conflict points are registered in the queue to be arbitrated.
6. The system according to claim 1, characterized in that, The update of the effective security level driven by fingerprint recalculation propagates along the link relationship, including: For each knowledge unit in the Wiki topology, the highest of the following three levels is taken as the effective security level of the knowledge unit: its own security level, the effective security level of all ancestor knowledge units on the hierarchical path, and the effective security level of adjacent knowledge units directly imported through content-carrying links. The link relationships are distinguished between content-carrying and directory-indexing types, and only content-carrying links participate in the security level transmission. The fingerprint recalculation and security level propagation are bound as two actions of the same event. First, the structural fingerprint of the affected knowledge unit is recalculated. Then, a depth-limited propagation is performed along the link relationship involved in the structural fingerprint recalculation. The effective security level of the affected knowledge unit is updated according to the rule of taking the highest security level. The event is marked as complete only after the fingerprint recalculation and the security level propagation are completed. When a link relationship is deleted, the effective security level raised by the link relationship remains the same as before the deletion during the relaxation period. After the relaxation period expires, the rule of taking the highest security level is re-executed to make the effective security level fall back to the result without the link relationship.
7. The system according to claim 1, characterized in that, In response to the query, the entry point retrieved by the vector index is checked for consistency between the snapshot of the entry point's generation time and the current fingerprint. For the entry points that pass the check, the fingerprint digest matching status between adjacent units is verified hop-by-hop along the link relationship. Pruning is performed at the user's security level in the same traversal, including: The query vector is used to recall entry knowledge units in the vector index. For each entry knowledge unit, the snapshot of the generation time recorded in the vector metadata of the entry knowledge unit is compared with the current fingerprint of the topological location of the entry knowledge unit. Entry knowledge units that match are expanded, while entry knowledge units that do not match are downgraded and marked for repair. Starting from the verified entry knowledge unit, the process expands hop-by-hop along the link relationship. Before each hop from the current knowledge unit to the adjacent knowledge unit, the first summary recorded by the current knowledge unit for the adjacent knowledge unit is compared with the current fingerprint of the adjacent knowledge unit. Then, the second summary recorded by the adjacent knowledge unit for the current knowledge unit is compared with the current fingerprint of the current knowledge unit. Only if both sides match is the jump allowed to the adjacent knowledge unit. If either side does not match, the jump is removed and the link is registered for repair. While performing the bidirectional comparison at each hop, the user security level is compared with the effective security level of the target knowledge unit. If the user security level is lower than the effective security level, the hop is removed. The removed knowledge unit, along with the extension branches after the removed knowledge unit, is no longer accessed. The bidirectional comparison and the security level comparison share the same traversal process. The extension paths that survive the traversal process constitute a candidate set of evidence chains that pass the structure verification and permission verification.
8. The system according to claim 1, characterized in that, In response to a query, the entry point retrieved by the vector index is checked for consistency between the snapshot of the entry point's generation time and the current fingerprint. For entry points that pass the check, the fingerprint digest matching status between adjacent units is verified hop-by-hop along the link relationship. Pruning is performed at the user's security level during the same traversal. The evidence chain that passes the structural and permission checks is incorporated into the unified knowledge base, including: The number of iterations of neighborhood aggregation is used as the maximum allowed number of hops for expansion. An expanded hop count counter is maintained for each expansion path. After each hop reconciliation check is completed, the expanded hop count counter is incremented by 1. When the expanded hop count counter reaches the maximum allowed number of hops, the expansion along the expansion path is stopped. During the hop-by-hop expansion process, the change in the coverage of the currently collected evidence set to the query intent is used as the marginal gain. Expansion stops when the marginal gain of several consecutive hops is lower than a specified threshold, and the counting threshold of the several hops is greater than 1. For the candidate evidence collected by hop-by-hop expansion, the comprehensive ranking score is determined by the coupling relationship between semantic similarity, topological distance and confidence. The topological distance is jointly determined by the number of expansion hops and the pass strength of the mutual consistency verification of each hop on the path. The lower the pass strength, the greater the negative contribution of the topological distance to the comprehensive ranking score. The ranked evidence, together with their respective Wiki-level context, is output as the evidence chain.
9. The system according to claim 1, characterized in that, The comparison between the snapshot of the adopted evidence in the evidence chain at the time of adoption and the current fingerprint is used as the feedback adoption condition. Valid feedback is filtered and the confidence of the corresponding unit is updated. The Wiki page with the updated confidence is then deposited into the unified knowledge base, including: When feedback arrives, the snapshot of the adoption time carried in the feedback record is compared with the current fingerprint of the knowledge unit where the adopted evidence is located. If the comparison is inconsistent, it is determined that the knowledge version evaluated by the feedback has been overwritten by subsequent reconstruction. The feedback is marked as invalid and registered in the feedback invalidation log. If the comparison is consistent, it proceeds to stability determination. Within a sliding time window, the proportion of positive feedback received by the knowledge unit containing the adopted evidence to the total number of valid feedbacks is counted. When the proportion reaches a specified threshold, a valid feedback event is formed. Scattered negative feedback that does not reach the specified threshold does not trigger confidence adjustment. When the same feedback source generates multiple unidirectional feedbacks within the sliding time window, the unidirectional feedbacks are mapped to an equivalent feedback count according to a decreasing rate of increase. Unidirectional feedbacks that continue to increase after the equivalent feedback count reaches the upper limit of the calculation are not included in the statistics of the proportion. The confidence adjustment amount corresponding to the effective feedback event is written into the confidence field of the knowledge unit and the Wiki page is updated.
10. The system according to claim 1, characterized in that, The comparison between the snapshot of the adopted evidence in the evidence chain at the time of adoption and the current fingerprint is used as the feedback adoption condition. Valid feedback is filtered and the confidence of the corresponding unit is updated. The Wiki page with the updated confidence is then deposited into the unified knowledge base, including: The confidence level is adjusted by setting a lower threshold and an upper threshold. The knowledge status changes from credible to doubtful when the confidence level falls below the lower threshold, and the knowledge status changes from doubtful to credible when the confidence level rises above the upper threshold. The area between the lower threshold and the upper threshold is a holding zone. Within the holding zone, changes in the confidence level do not trigger a state switch. For each knowledge maintenance protection index, the confidence adjustment amount of the protection index for the effective feedback event is attenuated and modulated, wherein the protection index increases with the number of same-direction confirmations and the fingerprint stabilization time, and decreases with structural changes. After the confidence level is updated, it flows back to the version fork selection step in the arbitration process and the sorting step in the retrieval process. When the confidence level of a certain version branch falls below the elimination threshold for a specified number of consecutive evaluation periods, the version branch is transferred to the archived state, no longer participates in the retrieval but retains traceability, and the archived knowledge content is still retained as the historical version layer of the unified knowledge base.
