A method for rendering semantic-enhanced documents with consistent information effectiveness in two channels
By constructing a three-layer semantically enhanced intermediate representation of documents, quantitatively evaluating and selecting the best remediation scheme, the problem of information consistency between human reading and machine processing of documents is solved, and global optimization and interpretability audit traceability capabilities of documents are realized.
Patent Information
- Application Number
- CN202611341065.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-01
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies cannot effectively address the consistency of information performance, interpretability, and audit traceability of documents across both human reading and machine processing channels, and remediation decisions lack global cost optimization and semantic fidelity.
We construct a semantically enhanced document intermediate representation that includes a typesetting structure layer, a semantic annotation layer, and a governance metadata layer. We quantitatively evaluate the total cost of multiple candidate remediation schemes and select the best one to execute. We simultaneously render and generate finely typed documents and structured data documents, and achieve information efficiency consistency through a set of key proposition validations.
It improves the consistency of information efficiency between human reading and machine processing, ensures global optimization and semantic fidelity of remediation decisions, and achieves interpretability and audit traceability throughout the entire lifecycle.
Smart Images

Figure CN123139980A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of document processing and artificial intelligence, and in particular to a dual-channel information performance consistency rendering method for semantically enhanced documents. Background Technology
[0002] Against the backdrop of the deep integration of digital office and enterprise knowledge management, documents, as core knowledge carriers, are currently facing a structural challenge from a "human-machine dual-channel" consumption mode: on the one hand, they need to be formatted in sophisticated formats such as DOCX and PDF to provide the layout standardization, visual hierarchy, and immersive experience required by human readers; on the other hand, they need to provide highly parsable, atomic semantic units to large language models and retrieval-enhanced generation systems using structured data such as JSON and Markdown. This dual-channel output requirement is particularly prominent in application scenarios such as enterprise bidding, intelligent contract review, compliance auditing, and intelligent customer service.
[0003] To address the aforementioned needs, the existing technological system has not formed an organically unified solution, but rather generally relies on three mutually exclusive technological approaches, each with significant and irreconcilable drawbacks, as detailed below: 1. Single-channel conversion scheme based on document intermediate representation (represented by Pandoc AST) This type of technology renders the target format by parsing the input format into a unified tree structure, but its fundamental flaw lies in the fact that the Abstract Syntax Tree (AST) is merely a static snapshot describing the layout structure, and the data model lacks the native ability to carry multi-dimensional information. Specifically, it lacks domain semantic labels, lifecycle metadata, and governance process information.
[0004] 2. Independent format repair and optimization tools (such as the intelligent formatting tools in Adobe Acrobat, MS Word, and WPS). The underlying logic of such tools is a mechanical, single-path repair based on deterministic rules (e.g., forcibly renumbering the entire document when a numbering change is detected). Their technical blind spot lies in the lack of awareness and assessment of the business-level side effects caused by the repair operation. In formal business documents (such as tender documents and legal contracts), chapter numbers often serve as external reference anchors. Mechanical renumbering will directly lead to the invalidation of cross-document references, and the resulting information disorder risk far exceeds the original formatting flaw itself. Such tools lack decision-making intelligence and cannot select the optimal strategy based on global cost among multiple approaches such as "insert placeholder," "mark as exemption," or "generate warning only" according to the application scenario.
[0005] 3. A fragmented dual-channel independent generation scheme ("layout first, then extraction" or generate independently). While this approach addresses the dual-channel requirement from an engineering perspective, it suffers from three major relational flaws: First, the data sources are fragmented, with DOCX and JSON undergoing different generation paths, resulting in a lack of strict consistency in the content, making it easy for manual corrections to be missed during the extraction process. Second, implicit semantics are lost, with strong semantic information such as layout hierarchy, font rhetoric, and table logic being discarded during the flattening conversion, effectively reducing the semantic density of the machine channel data. Third, after the dual channels are generated independently, there is a lack of verification and closed-loop adjustment mechanisms for the consistency of information effectiveness, making it impossible to ensure that the information reproduction at the key proposition level meets the standards for both the human and machine reading channels.
[0006] In summary, in the field of dual-channel document governance, the existing technical system faces at least four interrelated and long-standing key technical obstacles: Obstacle 1: Information bottleneck in intermediate representation. Existing data models for intermediate document representation lack the native capacity to carry semantic tags, governance process information, and original mapping relationships, causing the downstream rendering process to be unable to perceive the deep semantic structure of the document. At the same time, the interpretability requirements of the RAG system are blocked at the architectural level.
[0007] Obstacle 2: Lack of intelligent decision-making in repair. Existing repair tools lack a quantitative evaluation and intelligent optimization mechanism for the global cost of repair operations across multiple dimensions (structural integrity, reference stability, semantic fidelity). This makes it impossible to make the optimal decision among multiple candidate repair strategies, resulting in serious deficiencies in the logical completeness of the repaired documents on the machine.
[0008] Obstacle 3: Fragmentation of dual-channel data sources and lack of consistency verification. Existing technologies lack an integrated architecture that uses a single semantically enhanced intermediate representation as the sole data source to synchronously render dual-channel outputs. Furthermore, they lack the means to quantitatively evaluate and implement closed-loop control of the information efficiency consistency of dual-channel outputs at the key proposition level, making it impossible to guarantee the consistency between the dual-channel outputs.
[0009] Therefore, how to provide a dual-channel information performance consistency rendering method for semantically enhanced documents, so as to improve the information performance consistency, interpretability and audit traceability of documents in both human reading and machine processing channels, while taking into account the global cost optimization of repair decisions and semantic fidelity, has become an urgent technical problem to be solved. Summary of the Invention
[0010] The technical problem to be solved by this invention is to provide a dual-channel information performance consistency rendering method for semantically enhanced documents, which improves the information performance consistency, interpretability, and audit traceability of documents in both human reading and machine processing channels, while taking into account the global cost optimization of repair decisions and semantic fidelity.
[0011] This invention provides a dual-channel information performance consistency rendering method for semantically enhanced documents, comprising the following steps: Step S1: Obtain the original document, parse and semantically enhance the original document, and construct a semantically enhanced intermediate representation. The semantically enhanced intermediate representation includes a three-layer information architecture: a layout structure layer, a semantic annotation layer, and a governance metadata layer. The layout structure layer describes the layout elements and structural attributes of the original document. The semantic annotation layer is used to overlay semantic tags on text fragments in a non-intrusive manner. The governance metadata layer records the entire document governance process, including the repair trajectory, processing steps, quality scores, and original mapping relationships. Step S2: Based on the semantically enhanced document intermediate representation, identify the format defects in the original document, enumerate multiple candidate repair schemes, calculate the structural integrity cost, reference stability cost, and semantic fidelity cost of each candidate repair scheme from three dimensions: structural integrity, reference stability, and semantic fidelity, and sum them by weight to obtain the total cost of each candidate repair scheme; select the candidate repair scheme with the lowest total cost to perform the repair, and write the repair decision basis into the governance metadata layer; Step S3: Using the semantically enhanced document intermediate representation after repair as the sole data source, synchronously render and generate a finely formatted document for human reading and a structured data document for machine reading. Step S4: Extract all key propositions of the original document from the semantically enhanced document intermediate representation to form a key proposition verification set; based on the key proposition verification set, verify the reproducibility of the key propositions by the human reading channel and the machine reading channel respectively, and calculate the information efficiency consistency index; if the information efficiency consistency index is lower than the information efficiency threshold, automatically adjust the rendering strategy of the structured data document, and re-render and verify until the information efficiency consistency index reaches the information efficiency threshold.
[0012] Furthermore, in step S1, the semantic annotation layer includes: entity annotation, terminology standardization annotation, compliance markup, and hierarchical semantic role annotation; the entity annotation includes the type, standard name, and entity ID of the named entity; the terminology standardization annotation includes the original term, standard term, domain, and confidence level; the compliance markup includes the risk level, corresponding rule ID, and remediation suggestion; and the hierarchical semantic role includes the functional type of the paragraph.
[0013] Furthermore, in step S1, the governance metadata layer includes: a format repair trajectory, a semantic processing trajectory, a quality score, and an original mapping relationship; the format repair trajectory includes the content before repair, the content after repair, the type of repair operation, and the basis for selecting the repair scheme; the semantic processing trajectory includes term replacement records, entity alignment records, and conflict resolution records and their basis; the quality score includes format standardization, semantic standardization, and compliance risk level; the original mapping relationship includes the precise mapping of each text fragment after governance to the page number and position of the original document.
[0014] Furthermore, in step S2, the structural integrity cost is used to assess the degree of damage to the document hierarchy caused by the repair operation; the reference stability cost is calculated by scanning the full text and external document indexes to determine the ratio of the number of cross-references that became invalid due to the repair operation to the total number of references; and the semantic fidelity cost is used to assess whether the repair operation introduces semantic content that does not exist in the original text.
[0015] Furthermore, in step S2, the total cost is calculated according to the following formula: C_k=w_struct·c_struct,k+w_ref·c_ref,k+w_sem·c_sem,k; Where C_k is the total cost of the k-th candidate repair scheme; c_struct,k is the structural integrity cost of the k-th scheme; c_ref,k is the reference stability cost of the k-th scheme; c_sem,k is the semantic fidelity cost of the k-th scheme; w_struct, w_ref, and w_sem are the weights of the corresponding dimensions, and w_struct + w_ref + w_sem = 1.
[0016] Furthermore, in step S2, the weights corresponding to the structural integrity cost, reference stability cost, and semantic fidelity cost are dynamically adjusted according to the application scenario.
[0017] Furthermore, in step S4, the key propositions are extracted based on a weighted average of the document hierarchy, with the title paragraph and conclusion paragraph having a higher extraction weight than the main text description paragraph.
[0018] Furthermore, in step S4, the information performance consistency index is calculated according to the following formula: E = 1 - M / N; Where E is the information efficiency consistency index; N is the total number of key propositions in the key proposition verification set; and M is the number of key propositions that the machine reading channel cannot accurately reproduce.
[0019] Furthermore, in step S4, adjusting the rendering strategy of the structured data document specifically includes: locating the corresponding nodes of the key propositions that the machine reading channel cannot reproduce in the intermediate representation of the semantically enhanced document, analyzing the reasons for information efficiency loss, and adjusting the structured rendering method of the corresponding nodes to retain the lost semantic information.
[0020] Furthermore, the method also includes: Step S5: When generating the structured data document, associate the corresponding governance metadata index with each knowledge block and inject the structured data document into the RAG knowledge base; Step S6: In response to the user's tracing request for the generated answer of the large language model, retrieve the corresponding record in the governance metadata layer through the governance metadata index, and return the original document location information, governance modification trajectory information, and entity cross-document association information.
[0021] The advantages of this invention are: 1. By constructing a three-layer semantically enhanced document intermediate representation comprising a typesetting structure layer, a semantic annotation layer, and a governance metadata layer, a data foundation is provided for non-intrusive semantic annotation, end-to-end repair trajectory, and native carrying of original mapping relationships, fundamentally laying the information foundation for interpretability and audit traceability capabilities. Based on this, for format defects, the total cost of multiple candidate repair schemes is quantitatively evaluated from three dimensions: structural integrity, reference stability, and semantic fidelity, and the optimal scheme is selected for execution. Simultaneously, the repair decision basis is written into the governance metadata layer, thereby achieving global cost optimization of the repair operation while ensuring semantic fidelity. Furthermore, using this repaired intermediate representation as the sole data source, both human-readable finely typed documents and machine-readable structured data documents are simultaneously rendered and generated. This eliminates the potential for inconsistencies caused by fragmented data across two channels at the source. Furthermore, by extracting all key propositions to form a verification set, the reproducibility of key propositions across the two channels is quantified using an information performance consistency index. When the index falls below the information performance threshold, the corresponding node in the intermediate representation is automatically located, the cause of loss is analyzed, and the structured rendering strategy is adjusted, forming a closed-loop iteration until the target is met. This systematically improves the information performance consistency between human reading and machine processing. Finally, when injecting structured data into the RAG knowledge base, each knowledge block is associated with a governance metadata index. When responding to traceability requests, the original location, modification trajectory, and entity association information in the governance metadata layer can be retrieved, fully realizing the interpretability and audit traceability capabilities of documents throughout their entire lifecycle.
[0022] 2. Construct a semantically enhanced intermediate document representation comprising a formatting structure layer, a semantic annotation layer, and a governance metadata layer. The semantic annotation layer non-intrusively overlays entity, terminology, compliance tags, and hierarchical semantic roles onto text fragments, giving the intermediate representation rich native domain semantic information. The governance metadata layer fully records the format remediation trajectory, semantic processing trajectory, quality scores, and original mapping relationships. This three-layer architecture provides a clearly structured and comprehensive data foundation for downstream remediation decisions, dual-channel rendering, and source tracing audits, ensuring that semantic information and governance history are not lost and are traceable throughout the document's entire lifecycle.
[0023] 3. After identifying formatting defects, the system can enumerate multiple candidate repair schemes and calculate the cost of each scheme from three dimensions: structural integrity, reference stability, and semantic fidelity. The total cost is obtained through weighted summation, and the system automatically selects the globally optimal scheme for repair. This mechanism upgrades repair decision-making from experience-driven to data-driven, comprehensively balancing the multiple impacts of repair operations on document hierarchy, cross-reference effectiveness, and original semantic content. This avoids secondary problems caused by one-sided repairs and supports dynamic adjustment of the weights of each dimension based on the application scenario, demonstrating excellent scenario adaptability.
[0024] 4. Using the semantically enhanced document intermediate representation after repair as the sole data source, both a finely formatted document for human reading and a structured data document for machine reading are rendered simultaneously. This architecture fundamentally eliminates the risk of inconsistency between the two channels due to different data sources or generation paths. Furthermore, because the sole data source embeds semantic annotation information, the structured data output by the machine channel is no longer a flat, snapshot-like layout, but retains deep semantic density such as layout hierarchy, semantic roles, and terminology annotations. This allows the machine reading channel to acquire richer and more logically structured knowledge blocks.
[0025] 5. Extract all key propositions from the semantically enhanced document intermediate representation to form a verification set, and evaluate the reproducibility of each proposition for both human and machine reading channels, calculating an information efficiency consistency index. When the index fails to reach the information efficiency threshold, the system automatically locates information loss points, analyzes the causes, adjusts the rendering strategy of the structured data document, re-renders, and verifies again until the index meets the standard. This closed-loop mechanism uses key propositions as the core verification granularity and focuses on the core content of the document through a weighted extraction strategy, ensuring high-fidelity reproduction of important information at the dual-channel output level, significantly improving the information delivery efficiency of the document under different consumption modalities.
[0026] 6. When generating structured data documents, each knowledge block is associated with a corresponding governance metadata index, which is then injected into the RAG knowledge base. When users need to trace the source of the answers generated by the large language model, they can retrieve the original document location information, governance modification trajectory, and cross-document entity association information from the governance metadata layer through this index. This mechanism makes the entire chain from document governance and knowledge supply to model output results traceable, verifiable, and explainable, providing a solid technical guarantee for serious scenarios such as compliance auditing and intelligent review.
[0027] 7. The intermediate representation has been upgraded from a static snapshot to a full-link governance carrier: The three-layer DIR not only carries content but also semantics and the governance process, forming the foundation for all subsequent advanced capabilities. Format repair has been upgraded from mechanical execution to intelligent decision-making: The three-dimensional cost model can select the optimal repair solution based on the application scenario, avoiding secondary problems caused by repair operations. Dual-channel consistency has been upgraded from character identicalness to information efficiency equivalence: Through a closed-loop mechanism for key proposition verification, the information transmission quality between the machine channel and the human channel is ensured to be consistent, avoiding illusions caused by missing information in the large language model. RAG interpretability has been upgraded from document-level traceability to end-to-end traceability: It can be traced back to the original location, governance trajectory, and cross-document associations, meeting the audit requirements of enterprise knowledge governance. Processing efficiency has been improved: One governance process simultaneously produces dual-channel outputs, saving approximately 50% of computing resources and time compared to traditional two independent processes. Attached Figure Description
[0028] The present invention will be further described below with reference to the accompanying drawings and embodiments.
[0029] Figure 1 This is a flowchart of a dual-channel information performance consistency rendering method for semantically enhanced documents according to the present invention.
[0030] Figure 2 This is a flowchart illustrating a dual-channel information performance consistency rendering method for semantically enhanced documents according to the present invention.
[0031] Figure 3 This is a schematic diagram of the three-layer information architecture of the present invention.
[0032] Figure 4 This is a flowchart of the information performance consistency verification and iterative feedback of the present invention. Detailed Implementation
[0033] The overall approach of the technical solution in this application is as follows: A three-layer intermediate representation integrating typesetting structure, semantic annotation, and governance metadata serves as a unified data foundation. Repair schemes are quantitatively evaluated based on three dimensions: structural integrity, reference stability, and semantic fidelity, and the best scheme is selected for execution. The repaired intermediate representation serves as the sole source for the synchronous generation of human-formatted and machine-structured documents. All key propositions are then extracted for dual-channel reproducible verification. The rendering strategy is adjusted iteratively through a closed-loop consistency index. Simultaneously, a governance metadata index is associated with the structured data to support end-to-end traceability, ultimately achieving consistent information efficiency across both channels, controllable global repair costs, and fully explainable auditability.
[0034] Please refer to Figures 1 to 4 As shown, a preferred embodiment of the dual-channel information performance consistency rendering method for semantically enhanced documents of the present invention includes the following steps: Step S1: Obtain the original document, parse and semantically enhance it, and construct a semantically enhanced document intermediate representation (DIR). The semantically enhanced document intermediate representation includes a three-layer information architecture: a typesetting structure layer, a semantic annotation layer, and a governance metadata layer. The typesetting structure layer describes the typesetting elements and structural attributes of the original document, i.e., it describes the typesetting elements and attributes of the document, such as paragraphs, titles, lists, tables, images, and formulas, corresponding to the capabilities of traditional document abstraction sheets (ASTs), and is the foundation for rendering output. The semantic annotation layer is used to non-intrusively overlay semantic tags onto text fragments without changing the original text content. The governance metadata layer records the entire document governance process, including the repair trajectory, processing steps, quality scores, and original mapping relationships. Step S2: Based on the semantically enhanced intermediate representation of the document, identify the format defects existing in the original document, enumerate multiple candidate repair schemes, and evaluate them from the perspectives of structural integrity (assessing the degree of damage to the document's hierarchical structure caused by the repair operation. Re-numbering changes the numbering attribute of hierarchical nodes, with a moderate cost; inserting placeholder chapters does not affect the existing numbering, with a low cost) and reference stability (assessing the impact of the repair operation on internal and cross-document cross-references. By scanning the full text and external document indexes, calculate how many cross-references will become invalid due to the numbering change. The more references are damaged, the higher the cost; the calculation formula is: c_ref,k = n_broken,k / n_tot) al; where n_broken,k is the number of invalid references caused by scheme k, n_total is the total number of document references), semantic fidelity (evaluating whether the repair operation has changed the original semantics of the document. Inserting "(Reserved for this chapter)" maintains the numbering system, but introduces semantic content that does not exist in the original text, which may be unacceptable in the formal document) calculates the structural integrity cost, reference stability cost, and semantic fidelity cost of each set of candidate repair schemes from three dimensions, and sums them up to obtain the total cost of each set of candidate repair schemes; the candidate repair scheme with the lowest total cost is selected for repair, and the repair decision basis is written into the governance metadata layer; Preferably, the costs of the above three dimensions are quantified in the following manner: (1) Structural integrity cost c_struct,k: For the k-th candidate repair scheme, traverse all hierarchical nodes of the layout structure layer in the semantically enhanced document intermediate representation, and count the number of nodes modified, moved, or deleted before and after the repair operation and the influence range of their parent nodes. Specifically, the document structure is represented as an ordered tree, and node depth and sibling relationship are defined. The structural integrity cost is calculated as the tree edit distance caused by the repair operation divided by the total number of nodes, i.e., c_struct,k=edit_distance(T_before,T_after) / total_nodes, where T_before and T_after are the tree structures before and after the repair, respectively. edit_distance uses the tree edit distance algorithm to calculate the minimum cost of node addition, deletion, and modification operations, and total_nodes is the total number of nodes in the document tree structure. The higher this cost, the greater the degree of damage to the original hierarchical structure of the document caused by the repair operation.
[0035] (2) Reference stability cost c_ref,k: For the k-th candidate repair scheme, firstly, all text content in the semantically enhanced document's intermediate representation is scanned to identify all cross-reference markers. These cross-reference markers include, but are not limited to, chapter number references, figure number references, table number references, formula number references, and hyperlink references from external documents. A reference index table is then established to record the target anchor point of each reference. After the repair operation is executed, the entire text is re-scanned to identify invalid references. Invalid references refer to references that originally pointed to the target anchor point but cannot be correctly located to the corresponding target after repair. c_ref,k = number of invalid references / total number of references. When there are no cross-references in the document, c_ref,k is defined as 0.
[0036] (3) Semantic fidelity cost c_sem,k: For the k-th candidate repair scheme, extract the semantic embedding vectors of all text segments in the intermediate representation of the semantically enhanced document before and after repair. The semantic embedding vectors encode the text segments into fixed-dimensional vector representations through a pre-trained language model. Calculate the cosine distance between the corresponding text segments before and after repair, and statistically analyze the average semantic deviation of all modified text segments. Additionally, if the repair operation involves inserting placeholder text that does not exist in the original text (such as "(reserved in this chapter)") or deleting substantial content from the original text, an additional semantic penalty factor is applied to c_sem,k. When the repair operation is only a numbering format adjustment and does not involve changes to the text content, c_sem,k is defined as 0.
[0037] Step S3: Using the semantically enhanced document intermediate representation after repair as the sole data source, synchronously render and generate a finely formatted document for human reading and a structured data document for machine reading. Step S4: Extract all key propositions of the original document from the semantically enhanced document intermediate representation to form a key proposition verification set; based on the key proposition verification set, verify the reproducibility of the key propositions by the human reading channel and the machine reading channel respectively, and calculate the information efficiency consistency index; if the information efficiency consistency index is lower than the information efficiency threshold, automatically adjust the rendering strategy of the structured data document, and re-render and verify until the information efficiency consistency index reaches the information efficiency threshold.
[0038] Preferably, the automatic extraction of the key propositions is achieved in the following manner: First, all text nodes in the layout structure layer of the semantically enhanced document intermediate representation are traversed, and the importance weight of each node is determined based on the document hierarchy. The first-level heading, second-level heading, conclusion paragraph, summary paragraph and first paragraph are given the first weight level (highest weight), the first paragraph and last paragraph of each chapter are given the second weight level, and the body description paragraph is given the third weight level (lowest weight). The first weight level is higher than the second weight level, and the second weight level is higher than the third weight level.
[0039] Secondly, each text node is segmented at the sentence level to obtain a set of candidate proposition sentences.
[0040] Then, candidate propositions are screened using a combination of rule templates and machine learning classifiers to determine whether they are key propositions. The rule templates are based on syntactic pattern matching and include, but are not limited to, the following triggering patterns: "[Subject] (is / is / conforms to / includes / specifies / requirements) [Object]", "[Subject] (reaches / exceeds / falls below) [numerical value / standard]", "[Subject] (should / must / must not / prohibit) [behavior]"; the machine learning classifiers use supervised training sequence labeling models or text binary classification models, and the training data comes from a corpus of documents labeled with key propositions.
[0041] Finally, the candidate propositions are sorted by combining the above screening results and hierarchical weights. The candidate propositions in the top M positions of the sorted sequence and the candidate propositions whose weighted scores exceed the information effectiveness threshold are included in the key proposition verification set.
[0042] Preferably, the closed-loop iteration in step S4 further includes a maximum iteration limit and a convergence judgment mechanism: (a) Let the maximum number of iterations be T_max, preferably 5. After each iteration, if the information efficiency consistency index E has reached the information efficiency threshold, then the iteration is terminated and the current structured data document is output; (b) If the number of iterations reaches T_max and E still does not reach the information efficiency threshold, the iteration is terminated, the last rendered structured data document is used as the final output, and the non-compliance status, final indicator value and iteration history are recorded in the governance metadata layer. (c) During each iteration, the system compares the E value of the current iteration with the E value of the previous iteration. If the E value has not increased compared to the previous iteration (i.e. ΔE≤0), it indicates that the current adjustment direction is invalid, and the system automatically switches the adjustment strategy direction (e.g., from adjusting the table rendering method to adjusting the list hierarchy retention method) to avoid getting stuck in the local optimization dilemma. (d) When the cause of the information efficiency loss is located as insufficient semantic information in the semantically enhanced document intermediate representation itself (i.e., no matter what structured rendering method is used, the semantic information required for the key proposition cannot be extracted from the intermediate representation), the system no longer adjusts the structured rendering strategy, but triggers the intermediate representation enhancement process, and after supplementing the semantically enhanced document intermediate representation with semantic annotation, steps S3 to S4 are re-executed.
[0043] In step S1, the semantic annotation layer includes: entity annotation, terminology standardization annotation, compliance markup, and hierarchical semantic role annotation; the entity annotation includes the type, standard name, and entity ID of the named entity; the terminology standardization annotation includes the original term, standard term, domain, and confidence level; the compliance markup includes the risk level, corresponding rule ID, and remediation suggestion; the hierarchical semantic role includes the functional type of the paragraph (conclusion, argument, definition, etc.).
[0044] In step S1, the governance metadata layer includes: format repair trajectory, semantic processing trajectory, quality score, and original mapping relationship; the format repair trajectory includes pre-repair content, post-repair content, repair operation type, and basis for selecting repair scheme; the semantic processing trajectory includes term replacement records, entity alignment records, and conflict resolution records and basis; the quality score includes format standardization, semantic standardization, and compliance risk level; the original mapping relationship includes the precise mapping of each text fragment after governance to the original document page number and position.
[0045] This invention positions DIR not only as a rendering source, but also as an interpretable traceability engine for RAG.
[0046] Traceability chain construction: During the governance process, the governance metadata layer records every step of the operation from the original document to the governance result: Format Repair: Original Number → Repaired Number, Reason for Repair, Type of Repair Operation; Terminology standardization: original terminology → standard terminology, standardized confidence level, source thesaurus; Entity alignment: Original entity mention → Alignment standard entity ID → Reference position of the same entity in other documents; Conflict adjudication: Conflict value A vs B → adjudication result, adjudication basis (time / source / consistency weight).
[0047] RAG Integration Method: When the semantically augmented document intermediate representation is rendered as JSON / Markdown and injected into the RAG knowledge base, each chunk comes with its corresponding DIR metadata index. When the large language model generates an answer based on a chunk, if the user asks "What is the basis for this?", the system not only returns the chunk text, but also: The metadata index traces back to the corresponding node in the semantically enhanced document's intermediate representation; Extract the complete processing history of this paragraph from the governance metadata layer; Returning to the user: original document paragraphs (including page number positioning), any modifications made during the processing (marked with time / reason / operator), cross-document association information of relevant entities, and compliance check results.
[0048] In step S2, the structural integrity cost is used to assess the degree of damage to the document hierarchy caused by the repair operation; the reference stability cost is calculated by scanning the full text and external document indexes to determine the ratio of the number of cross-references that became invalid due to the repair operation to the total number of references; and the semantic fidelity cost is used to assess whether the repair operation introduces semantic content that does not exist in the original text.
[0049] In step S2, the total cost is calculated according to the following formula: C_k=w_struct·c_struct,k+w_ref·c_ref,k+w_sem·c_sem,k; Where C_k is the total cost of the k-th candidate repair scheme; c_struct,k is the structural integrity cost of the k-th scheme; c_ref,k is the reference stability cost of the k-th scheme; c_sem,k is the semantic fidelity cost of the k-th scheme; w_struct, w_ref, and w_sem are the weights of the corresponding dimensions, and w_struct + w_ref + w_sem = 1.
[0050] In step S2, the weights corresponding to the structural integrity cost, reference stability cost, and semantic fidelity cost are dynamically adjusted according to the application scenario.
[0051] In step S4, the key propositions are extracted based on the document hierarchy with weighted extraction. The extraction weight of the title paragraph and the conclusion paragraph is higher than that of the main text description paragraph.
[0052] In step S4, the information performance consistency index is calculated according to the following formula: E = 1 - M / N; Where E is the information efficiency consistency index; N is the total number of key propositions in the key proposition verification set; and M is the number of key propositions that the machine reading channel cannot accurately reproduce.
[0053] In practice, the evaluation process is as follows: Key proposition extraction: Automatically extract all key propositions (such as "Quality management system complies with ISO 9001:2015 standard", "Product maximum load capacity 500kg", etc., totaling N items) from the completed standard DIR. Human channel validation: Show the finely typed DOCX to a reference human reader (or simulate using a calibrated visual-language model) to confirm that all N propositions can be accurately obtained from the DOCX; Machine channel verification: Inject JSON / Markdown data into the large language model, ask the large language model questions corresponding to N propositions, and confirm whether the large language model can accurately answer all N propositions; Performance gap calculation: If the large language model cannot accurately answer M propositions, it indicates that there is "information performance loss" in the JSON output. The system analyzes the representation of the M propositions in DIR, locates the cause of the loss (such as the loss of merged cell relationships in a table during JSON flattening), and automatically adjusts the JSON rendering strategy; Closed-loop iteration: Evaluation-adjustment-re-rendering form a closed loop until the information efficiency reaches the information efficiency threshold (e.g., ≥99% of the propositions can be accurately reproduced from JSON by a large language model).
[0054] Preferably, the reproducibility verification of the human reading channel can be implemented in any of the following ways: Method 1 (Manual Verification): The formatted document is presented to at least one verifier, who is given the set of key propositions to verify. The verifier determines each key proposition to see if it can be accurately read and fully understood from the corresponding position in the formatted document, and records the verification results. When multiple verifiers give different results, the final result is determined by majority vote.
[0055] Method 2 (Simulated Verification): A calibrated visual-language multimodal model is used to simulate the human reading process. The finely formatted document is converted page by page into images and input into the multimodal model. Questions corresponding to each proposition in the key proposition verification set are posed to the multimodal model, and the number of propositions the model can accurately answer is recorded. The multimodal model can be a visual question-answering model with document image understanding capabilities or a visual-language large language model.
[0056] When using Method Two, the calibration process means: before formal verification, a calibration document set containing known propositions is selected to test the multimodal model. The model's proposition reproduction accuracy on the test set is compared with the accuracy of the human verification benchmark. When the model's accuracy reaches a set threshold (e.g., above 95%), the model is considered calibrated and can be used to replace human verification. If calibration fails, the model needs to undergo prompt word optimization, model parameter adjustment, or model architecture switching until calibration is successful.
[0057] In step S4, adjusting the rendering strategy of the structured data document specifically includes: locating the corresponding nodes of the key propositions that the machine reading channel cannot reproduce in the intermediate representation of the semantically enhanced document, analyzing the reasons for information efficiency loss, and adjusting the structured rendering method of the corresponding nodes to retain the lost semantic information.
[0058] Preferably, the specific method by which the key proposition that cannot be reproduced is located in the intermediate representation of the semantically enhanced document corresponds to the node is as follows: First, during the process of rendering and generating a structured data document from the semantically enhanced document intermediate representation, the source path of each output structured data fragment (including but not limited to JSON object fields, XML elements, and Markdown blocks) is recorded. The source path includes the node ID of the data fragment in the layout structure layer of the semantically enhanced document intermediate representation, the corresponding semantic tag range in the semantic annotation layer, and the original mapping relationship in the governance metadata layer.
[0059] When the verification process finds that a key proposition cannot be accurately reproduced by the machine reading channel, the source path associated with that proposition is traced back based on its location information in the structured data document. This source path is used to locate the corresponding layout node, semantically annotated fragment, and original document position in the semantically enhanced document's intermediate representation. The source path is implemented using a hierarchical path representation similar to XPath or a node unique identifier indexing method.
[0060] After locating the corresponding node, analyze how the data structure of that node is transformed during the structured rendering process, determine at which level information loss occurs (such as the loss of the relationship between merged cells in a table during JSON flattening, or the loss of the list hierarchy when converted to plain text), and determine the direction for adjusting the rendering strategy accordingly.
[0061] The method further includes: Step S5: When generating the structured data document, associate the corresponding governance metadata index with each knowledge block and inject the structured data document into the RAG knowledge base; Step S6: In response to the user's tracing request for the generated answer of the large language model, retrieve the corresponding record in the governance metadata layer through the governance metadata index, and return the original document location information, governance modification trajectory information, and entity cross-document association information.
[0062] The method of this invention will be fully explained using a corporate bidding document containing formatting defects as an example: Input document: A 50-page DOCX format tender document, containing 5 chapters, 12 tables, 8 images, and approximately 60 cross-references (such as "see Section 3.2.1 for details," "see section 3.2.1 for details," etc.). Figure 4As shown in the figure. The document has the following formatting defects: (1) Chapter 3 is numbered directly from "3.1" to "3.3", and section "3.2" is missing; (2) Figure 2 and Figure 3 (3) Some terms are used incorrectly (e.g., “cloud computing” and “cloud computing” are used interchangeably).
[0063] Step S1 execution: The system parses the DOCX document and constructs a semantically enhanced intermediate representation. The layout structure layer includes all chapter nodes, paragraph nodes, and table nodes. The semantic annotation layer identifies entities such as "bidder," "purchaser," and "ISO9001" through entity recognition, and marks "cloud computing" as needing to be replaced with "cloud computing" through terminology standardization annotation. The governance metadata layer is initialized, recording the original mapping relationships.
[0064] Step S2 execution: The system identifies the above three format defects and enumerates three candidate repair solutions: Option A: Renumber Chapter 3 (insert "3.2" as a placeholder section), and correct. Figure 2 and Figure 3 Numbering, standardized terminology; Option B: Mark the abnormal numbering in Chapter 3 as an exemption (do not modify the numbering), correct the figure numbering, and standardize the terminology; Option C: Do not modify any content, only log the warning in the metadata.
[0065] Assuming the current application scenario is a formal bidding scenario, the reliability of cross-references is crucial. The system sets the weights for each dimension as follows: w_struct=0.2, w_ref=0.6, and w_sem=0.2. Calculations show that Solution B has the lowest total cost (because it retains the original numbering system, avoids cross-document reference failures, and does not introduce placeholder text), and the system automatically selects Solution B for execution. The basis for the remediation decision (the reason for the numbering exemption for Solution B, the weight configuration, and the calculated costs for each dimension) is fully written into the governance metadata layer.
[0066] Step S3 execution: Using the repaired intermediate representation as the sole source, synchronously render and generate a finely formatted tender document DOCX and a structured JSON document. The JSON document includes semantic annotation information for each knowledge block.
[0067] Step S4 execution: Extract 120 key propositions from the intermediate representation (including "The project duration shall not exceed 180 calendar days", "The quality assurance period shall not be less than 24 months", "The bidder must have ISO9001 certification", etc.). Show the finely formatted DOCX to the verification personnel to confirm that all 120 propositions can be accurately read in the DOCX. Input the JSON document as context into the large language model and ask questions for each of the 120 propositions. Initial verification revealed that 4 propositions involving the joint judgment of multiple indicators within a table could not be accurately answered by the model (the logic of merging table headers was lost during JSON flattening). E=1-4 / 120≈0.967, lower than the information efficiency threshold of 0.98. The system located the table nodes corresponding to the 4 propositions and analyzed that the loss was due to the JSON rendering flattening of multi-level table headers into single-row key-value pairs, losing the two-dimensional logical relationship of "indicator dimension × test condition". The system adjusted its structured rendering strategy: a "header_hierarchy" field was added to the JSON table to preserve the header hierarchy using a nested structure. After re-rendering and validation, all 120 propositions could be accurately reproduced, with an E=1.0, meeting the output requirements.
[0068] Steps S5 and S6 are executed as follows: The final JSON document is injected into the RAG knowledge base in chunks, with each chunk associated with a governance metadata index. The user then inquires about the project's timeline requirements. After the large language model answers based on the knowledge base, the user clicks the traceability button. The system retrieves the governance metadata layer record through the metadata index and returns: the original text on page 8, paragraph 3 of the original document, "The project duration shall not exceed 180 calendar days"; this clause has not been modified in this governance path; it also returns two other instances in this tender document that mention the project duration (page 2 and page 35), with consistent wording. This completes the full-chain closed loop from document governance to dual-channel rendering, performance verification, and RAG end-to-end traceability.
[0069] While specific embodiments of the present invention have been described above, those skilled in the art should understand that the specific embodiments described are merely illustrative and not intended to limit the scope of the present invention. Equivalent modifications and variations made by those skilled in the art in accordance with the spirit of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A dual-channel information performance consistency rendering method for semantically enhanced documents, characterized in that, Includes the following steps: Step S1: Obtain the original document, parse and semantically enhance the original document, and construct a semantically enhanced intermediate representation. The semantically enhanced intermediate representation includes a three-layer information architecture: a layout structure layer, a semantic annotation layer, and a governance metadata layer. The layout structure layer describes the layout elements and structural attributes of the original document. The semantic annotation layer is used to overlay semantic tags on text fragments in a non-intrusive manner. The governance metadata layer records the entire document governance process, including the repair trajectory, processing steps, quality scores, and original mapping relationships. Step S2: Based on the semantically enhanced document intermediate representation, identify the format defects in the original document, enumerate multiple candidate repair schemes, calculate the structural integrity cost, reference stability cost, and semantic fidelity cost of each candidate repair scheme from three dimensions: structural integrity, reference stability, and semantic fidelity, and sum them up to obtain the total cost of each candidate repair scheme. The candidate repair scheme with the lowest total cost is selected for repair, and the repair decision basis is written into the governance metadata layer; Step S3: Using the semantically enhanced document intermediate representation after repair as the sole data source, synchronously render and generate a finely formatted document for human reading and a structured data document for machine reading. Step S4: Extract all key propositions of the original document from the semantically enhanced document intermediate representation to form a key proposition verification set; based on the key proposition verification set, verify the reproducibility of the key propositions by the human reading channel and the machine reading channel respectively, and calculate the information efficiency consistency index; if the information efficiency consistency index is lower than the information efficiency threshold, automatically adjust the rendering strategy of the structured data document, and re-render and verify until the information efficiency consistency index reaches the information efficiency threshold.
2. The dual-channel information performance consistency rendering method for semantically enhanced documents according to claim 1, characterized in that, In step S1, the semantic annotation layer includes: entity annotation, terminology standardization annotation, compliance markup, and hierarchical semantic role annotation; the entity annotation includes the type, standard name, and entity ID of the named entity; the terminology standardization annotation includes the original term, standard term, domain, and confidence level; the compliance markup includes the risk level, corresponding rule ID, and remediation suggestion; and the hierarchical semantic role includes the functional type of the paragraph.
3. The dual-channel information performance consistency rendering method for semantically enhanced documents according to claim 1, characterized in that, In step S1, the governance metadata layer includes: format repair trajectory, semantic processing trajectory, quality score, and original mapping relationship; the format repair trajectory includes pre-repair content, post-repair content, repair operation type, and basis for selecting repair scheme; the semantic processing trajectory includes term replacement records, entity alignment records, and conflict resolution records and basis; the quality score includes format standardization, semantic standardization, and compliance risk level; the original mapping relationship includes the precise mapping of each text fragment after governance to the original document page number and position.
4. The dual-channel information performance consistency rendering method for semantically enhanced documents according to claim 1, characterized in that, In step S2, the structural integrity cost is used to assess the degree of damage to the document hierarchy caused by the repair operation; the reference stability cost is calculated by scanning the full text and external document indexes to determine the ratio of the number of cross-references that became invalid due to the repair operation to the total number of references; and the semantic fidelity cost is used to assess whether the repair operation introduces semantic content that does not exist in the original text.
5. The dual-channel information performance consistency rendering method for semantically enhanced documents according to claim 4, characterized in that, In step S2, the total cost is calculated according to the following formula: C_k=w_struct·c_struct,k+w_ref·c_ref,k+w_sem·c_sem,k; Where C_k is the total cost of the k-th candidate repair scheme; c_struct,k is the structural integrity cost of the k-th scheme; c_ref,k is the reference stability cost of the k-th scheme; c_sem,k is the semantic fidelity cost of the k-th scheme; w_struct, w_ref, and w_sem are the weights of the corresponding dimensions, and w_struct + w_ref + w_sem = 1.
6. The dual-channel information performance consistency rendering method for semantically enhanced documents according to claim 1, characterized in that, In step S2, the weights corresponding to the structural integrity cost, reference stability cost, and semantic fidelity cost are dynamically adjusted according to the application scenario.
7. The dual-channel information performance consistency rendering method for semantically enhanced documents according to claim 1, characterized in that, In step S4, the key propositions are extracted based on the document hierarchy with weighted extraction. The extraction weight of the title paragraph and the conclusion paragraph is higher than that of the main text description paragraph.
8. The dual-channel information performance consistency rendering method for semantically enhanced documents according to claim 1, characterized in that, In step S4, the information performance consistency index is calculated according to the following formula: E = 1 - M / N; Where E is the information efficiency consistency index; N is the total number of key propositions in the key proposition verification set; and M is the number of key propositions that the machine reading channel cannot accurately reproduce.
9. The dual-channel information performance consistency rendering method for semantically enhanced documents according to claim 1, characterized in that, In step S4, adjusting the rendering strategy of the structured data document specifically includes: locating the corresponding nodes of the key propositions that the machine reading channel cannot reproduce in the intermediate representation of the semantically enhanced document, analyzing the reasons for information efficiency loss, and adjusting the structured rendering method of the corresponding nodes to retain the lost semantic information.
10. A dual-channel information performance consistency rendering method for semantically enhanced documents according to any one of claims 1 to 9, characterized in that, The method further includes: Step S5: When generating the structured data document, associate the corresponding governance metadata index with each knowledge block and inject the structured data document into the RAG knowledge base; Step S6: In response to the user's tracing request for the generated answer of the large language model, retrieve the corresponding record in the governance metadata layer through the governance metadata index, and return the original document location information, governance modification trajectory information, and entity cross-document association information.
