Large model and multi-agent based dangerous engineering special construction scheme generation method and system

By employing a large-scale model and multi-agent approach, the problem of low efficiency in the preparation of special construction plans for critical and major projects was solved, enabling personalized plan generation and multi-dimensional review, thereby improving the reliability and compliance of the plans.

CN123159286APending Publication Date: 2026-11-24HUNAN UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611674105.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-28
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies are inefficient in the preparation of special construction plans for critical and major projects, relying on manual operation, and intelligent generation methods cannot meet the problems of unstable factual references and difficulty in forming a closed loop between professional calculations and standard review.

Method used

The approach employs a large model and multi-agent method. The fact extraction agent extracts and verifies project facts from engineering data, the task planning agent generates task execution diagrams, the solution generation agent generates text fragments by combining a large language model, and the solution review agent conducts multi-dimensional review, forming a closed-loop process of planning, generation, and review.

Benefits of technology

It enables the personalized and automatic generation of special construction plans for critical and major projects, improving the reliability and compliance of the plans and ensuring the reliability and standardization of project implementation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123159286A_ABST
    Figure CN123159286A_ABST
Patent Text Reader

Abstract

The application relates to the field of building construction informatization and artificial intelligence technology, and discloses a dangerous project special construction scheme generation method and system based on a large model and multiple intelligent agents. The method is as follows: a fact extraction intelligent agent extracts project facts from engineering data according to a preset fact field table, verifies the project facts, and writes the project facts passing the verification into a fact blackboard; a task planning intelligent agent reads the project facts in the fact blackboard to generate a task execution graph; a scheme generation intelligent agent generates scheme candidate texts by executing node tasks based on the task execution graph; and a scheme review intelligent agent reviews the scheme candidate texts, and if the review is passed, outputs a special construction scheme text, otherwise, feeds back correction tasks through a writing blackboard. The application can improve the fact consistency, calculation traceability, chapter availability and review closed-loop of the special construction scheme generation, and provides technical support for the compilation of the special construction scheme of the dangerous project.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of interdisciplinary technology of building construction informatization and artificial intelligence, specifically to a method and system for generating special construction plans for critical and major engineering projects based on large models and multiple intelligent agents. Background Technology

[0002] Specialized construction plans for critical and hazardous engineering projects are crucial for the organization and approval of high-risk engineering construction. Currently, plan development primarily relies on manual extraction of information from scattered data, combined with technological processes, calculations, and standards. This approach suffers from low efficiency, inconsistent factual citations, insufficient calculation coherence, and omissions in standard verification. While some research has utilized knowledge graphs, case-based reasoning, and large language models to assist in plan generation, improving case reuse and text standardization, it remains difficult to reorganize the generation process based on current realities for critical and hazardous projects with significant variations in engineering conditions and complex calculations, resulting in insufficient relevance of the content.

[0003] In the field of long text generation technology based on large language models, existing methods have improved the quality of structured text generation by either extending the model's long text output capabilities or introducing document planning mechanisms. However, these methods focus on improving text length and coherence, and do not fully address core issues in critical engineering projects such as factual credibility, traceability of professional calculations, task feasibility, and closed-loop review and feedback. When applied to specific critical engineering projects, existing technologies cannot simultaneously meet the comprehensive requirements for fact management, task planning, calculation execution, and standard review in the generation of multiple types of solutions, and their level of intelligence remains limited.

[0004] In summary, there is an urgent need for a method for generating special construction plans for critical and major engineering projects based on large models and multi-agent systems to solve the problems existing in the current technology. Summary of the Invention

[0005] The purpose of this invention is to provide a method for generating specialized construction plans for critical and large-scale engineering projects based on large models and multi-agent systems. This method aims to address the technical problems of existing technologies, such as reliance on manual labor and low efficiency in the preparation of specialized construction plans for critical and large-scale engineering projects, as well as the instability of existing intelligent generation methods in referencing engineering facts, the disconnect between professional calculations and the main text, and the difficulty in forming a closed loop for standard review. The specific technical solution is as follows: A method for generating specialized construction plans for critical and major engineering projects based on large-scale models and multi-agent systems includes: S1. The fact extraction agent extracts project facts from the engineering data based on the preset fact field table, verifies the project facts, and writes the verified project facts into the fact blackboard. S2. The task planning agent reads the project facts in the fact blackboard and generates a task execution graph. The task execution graph includes the solution writing node task and the engineering calculation node task, as well as the execution order and dependency relationship between each node task. S3. The solution generation agent executes the tasks at each node based on the task execution graph: For engineering calculation node tasks, read project facts from the fact blackboard and call the calculation tool library to perform calculations, then write the engineering calculation results back to the fact blackboard; For the task of writing the solution, the project facts and engineering calculation results are read from the fact blackboard. Based on the reference fragments recalled from the case knowledge base and the read project facts and engineering calculation results, the main text fragments are generated through the large language model and written into the writing blackboard. After all node tasks are completed, the text fragments will be spliced ​​together in chapter order to form the candidate solution text; S4. The scheme review agent reviews the candidate scheme text. If the review is successful, the main text of the special construction scheme is output. Otherwise, the correction task is fed back through the writing blackboard.

[0006] Preferably, S1 includes: A1. Preprocess the acquired engineering data, read the content of various formats of data and record metadata, organize the content of the read data into structured blocks according to chapters, establish keyword indexes and semantic vector indexes for each data segment after block, and complete the construction of the index library; A2. Based on the preset fact field table, generate the first batch recall task for all fields to be extracted corresponding to the current project type, targeting the first... The fields to be extracted are used to construct field query items. The candidate retrieval set is filtered from the index through metadata filtering. The data fragments in the candidate retrieval set are spliced ​​with context prefixes to form context-enhanced fragments. A3. The fact extraction agent uses the field query item as the retrieval basis, performs keyword recall and vector semantic recall from the context-enhanced fragments corresponding to the candidate retrieval set, merges the two recall results to form a candidate evidence fragment set, and performs deduplication and reordering on the candidate evidence fragment set. A4. If there are candidate evidence fragments for the field to be extracted that do not meet the standards, then the retrieval strategy for the field to be extracted is adjusted and field-level supplementary recall is performed. The field-level supplementary recall includes reconstructing the field query item for the field to be extracted and performing metadata filtering, dual-path recall, deduplication and re-sorting; if there are no such fragments, proceed to the next step. A5. The fact extraction agent reads the recalled candidate evidence fragments, extracts the fact value, unit, and source information to generate candidate item facts, and writes them to the candidate blackboard. It performs field integrity verification, data type verification, value range verification, unit verification, and evidence association verification on the candidate item facts in the candidate blackboard. Candidate item facts that pass all verifications are written to the fact blackboard and the evidence record is transferred to the fact evidence layer. If any verification of a candidate item fact fails, it selects supplementary recall or secondary extraction according to the reason for the failure. After reaching the preset maximum number of processing times, candidate item facts that still fail all verifications are marked as fields to be manually confirmed.

[0007] Preferably, A3 specifically refers to: In keyword recall, the top K context-enhanced fragments with the highest BM25 scores were selected as the keyword recall results; In vector semantic recall, the top K context-enhanced segments with the highest cosine similarity are selected as the vector semantic recall results; The union of keyword recall results and vector semantic recall results is used as the candidate evidence fragment set; The comprehensive score for each candidate evidence fragment is calculated by weighting and summing the keyword hit score, semantic similarity score, unit matching score, object relationship integrity score, context integrity score, and numerical inclusion score. The candidate evidence fragment set is deduplicated: each candidate evidence fragment in the candidate evidence fragment set is compared pairwise. If any two candidate evidence fragments come from the same chapter of the same document and the text content overlaps with the threshold, only the one with the higher comprehensive score is retained. If the comprehensive scores are the same, the first recalled candidate evidence fragment is retained. The candidate evidence fragments after deduplication are reordered in descending order of comprehensive score.

[0008] Preferably, the BM25 score is expressed as: in, Indicates the first Field query items for each field to be extracted With the Context-enhanced fragments Correlation score between them For field query items Keywords in Keywords In context-enhanced fragments Frequency of occurrence in Keywords Inverse document frequency, , The total number of context-enhanced fragments in the candidate retrieval set. For keywords The number of context-enhanced fragments, Enhance the context of fragments The length of the text. The average length of all context-enhanced fragments, and All are preset adjustment parameters; Preferably, the cosine similarity calculation formula is: in, Represents field query item The corresponding field query vector, This indicates a context-enhanced fragment. The corresponding fragment semantic vector, Indicates the first Field query items for each field to be extracted With the Context-enhanced fragments Vector semantic similarity between express and The inner product, Represents field query vector The length of the mold, Represents the semantic vector of a fragment The length of the module.

[0009] Preferably, S2 includes: B1. Read the project facts in the fact blackboard, calculate the required fact coverage and prerequisite fact coverage based on the task planning requirements table, and determine whether the current project facts can support the requirements of the scheme chapter division and engineering calculation node tasks; generate a list of missing facts for the fact items that are not determined to be insufficient and write them to the writing blackboard, trigger the fact extraction agent to perform supplementary recall or secondary extraction, and recalculate the required fact coverage and prerequisite fact coverage after the fact blackboard is updated. B2. Based on the project type, construction target, and construction stage, the sub-drawing material library... Metadata filtering is performed to obtain a set of candidate large subgraphs. The fitness of each candidate large subgraph is calculated, and the subgraph with a fitness score reaching a preset threshold is selected. Large subgraph; B3. For each selected large subgraph, retrieve the raw material from the subgraph library. Candidate subgraphs are selected from the pool, and the fitness of each candidate subgraph is calculated. The subgraph with a fitness score that reaches a preset threshold is then selected. neutron diagram; B4. For each selected subgraph, retrieve the raw material from the subgraph library. Candidate subgraphs are selected from the pool, and the fitness of each candidate subgraph is calculated. The subgraph with a fitness score that reaches a preset threshold is then selected. The little boy's picture; Instantiate the component nodes in the selected subgraph and calculate the fact readiness. Include the component nodes that have reached the preset node readiness threshold into the candidate node set of the task execution graph. B5. Based on the fact reading and writing relationships, construction sequence relationships, and contextual inheritance relationships among candidate nodes in the task execution graph, directed dependency edges are established to form a candidate task execution graph. After topology verification and integrity verification, the final task execution graph is output.

[0010] Preferably, the adaptation calculation specifically involves: in, This represents a candidate subgraph, which can be any one of the large, medium, or small subgraphs. Task planning requirements table; Candidate subgraph Adaptability; , and Both represent candidate subgraphs Weighting coefficients; Representing candidate subgraphs The degree of coverage of the planning requirements for the corresponding tasks at its planning level; Representing candidate subgraphs The proportion of fact items already present on the current fact board in the required fact items; Representing candidate subgraphs With case cell library Chinese historical cases Match score; This is the set of field IDs corresponding to existing fact items in the factboard. Candidate subgraph The set of field IDs for the fact items required for execution; This indicates that the current project is targeting candidate subgraphs. Constructing the key parameter vector, Representing candidate subgraphs The key parameter vector of the selected historical cases, express and cosine similarity, Representation of case cell library Middle and candidate subgraphs A collection of historical cases of the same type, Indicates from the set of historical cases The selected candidate subgraph The historical case with the highest percentage of overlapping nodes. Representing historical cases The corresponding node overlap ratio, This represents any historical case in the set of historical cases for the candidate subgraph. Representing historical cases With candidate subgraph The percentage of nodes overlapping.

[0011] Preferably, S3 includes: When executing the engineering calculation node task, the project facts are read from the fact blackboard, the project facts are bound as calling parameters, the deterministic calculation function is called from the calculation tool library according to the calling parameters to obtain the engineering calculation results, and the obtained engineering calculation results are written back to the fact blackboard; When executing the solution writing node task, the project facts and engineering calculation results are read from the fact blackboard, the context summary written by the previous solution writing node task is read from the writing blackboard, the case knowledge base is called to perform RAG semantic retrieval to recall reference fragments, and based on the project facts, engineering calculation results, the context summary and the reference fragments, the main text fragments are generated through the large language model and written to the writing blackboard. After all node tasks are completed, a chapter assembly list is generated based on the execution order and chapter number of each solution writing node task in the task execution diagram. The text fragments in the writing blackboard are sorted and spliced ​​to form the solution candidate text, which is then provided to the solution review agent after being checked by the output access control.

[0012] Preferably, the execution of the engineering computation node task specifically includes: Task type determination: Extract calculation task keywords from the node names of engineering calculation node tasks to determine the calculation task type; Semantic parsing: Input the node name and execution requirement text into the large language model, and output a list of structured parameters; Parameter binding: Bind each parameter in the structured parameter list to the item facts in the factboard as a calling parameter; Computation execution: Deterministic computation is performed by invoking a deterministic computation function from the computation tool library according to the invocation parameters; Write back the results: Write the deterministic calculation results into the fact blackboard according to the corresponding calculation result fields in the fact field table.

[0013] Preferably, the review in S4 includes a review of the consistency between numerical values ​​and conclusions, a review of the completeness of procedures, a review of text quality, a review of chapter consistency, and a review of standard compliance. If any review issues exist, a structured review issue is generated and written into the writing blackboard, and the correction task is fed back through the writing blackboard. If all reviews are passed, the main text of the special construction plan and the review report are output.

[0014] This invention also provides a system for generating specialized construction plans for critical and major engineering projects based on large models and multi-agent systems, comprising: The fact extraction agent is used to extract project facts from engineering data based on a preset fact field table, verify the project facts, and write the verified project facts into the fact blackboard. A task planning agent is used to read the project facts in the fact blackboard and generate a task execution graph that includes solution writing node tasks and engineering calculation node tasks. The solution generation agent is used to execute node tasks according to the task execution graph. When the node task is an engineering calculation node task, it calls the calculation tool library to perform calculations and writes the engineering calculation results back to the fact blackboard. When the node task is a solution writing node task, it calls the case knowledge base to recall reference fragments and generates text fragments through the large language model. The generated text fragments are then written to the writing blackboard. After all node tasks are completed, the text fragments are spliced ​​together in chapter order to form the solution candidate text. The scheme review agent is used to review the candidate scheme texts. When the review is passed, it outputs the main text of the special construction scheme. When the review is not passed, it provides feedback on the correction task through the writing blackboard.

[0015] The application of the technical solution of the present invention has the following beneficial effects: This invention, through the cooperation of a fact extraction agent and a fact field table, combined with RAG (Retrieval Enhanced Generation) technology for multi-round recall and verification, ensures that the project facts input into the model have clear sources of evidence (evidence layer), effectively avoids the illusion problem in the large model generation process, and improves the reliability of specific construction plans as the basis for project implementation.

[0016] This invention enables a task planning agent to autonomously select sub-graph materials and generate task execution graphs based on the current project facts, thus breaking away from the limitations of traditional fixed templates. It can dynamically plan the generation path according to the specific conditions (such as structural form and environmental differences) of different high-risk engineering projects, realizing personalized automatic generation of one solution for one project.

[0017] This invention designs a scheme review agent that can automatically review candidate scheme texts from multiple dimensions such as numerical consistency, process completeness, and standard compliance. Once a problem is found, it can generate a structured correction task and feed it back to the corresponding agent for replanning or correction, forming a closed-loop process of planning, generation, review, and feedback, which significantly improves the compliance rate and usability of the generated schemes.

[0018] In addition to the objectives, features, and advantages described above, the present invention has other objectives, features, and advantages. The invention will now be described in further detail with reference to the figures. Attached Figure Description

[0019] The accompanying drawings, which form part of this application, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an undue limitation of the invention. In the drawings: Figure 1 This is a flowchart illustrating the overall process of a method for generating special construction plans for critical and major engineering projects based on a large model and multiple agents, as provided in an embodiment of the present invention. Figure 2 This is a flowchart illustrating the generation of the main text of a specific construction plan by the intelligent agent in this embodiment of the invention. Figure 3 This is a flowchart of the intelligent agent reviewing a specific construction plan in an embodiment of the present invention. Detailed Implementation

[0020] To facilitate understanding of the present invention, a more complete description is provided below, along with preferred embodiments. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided to provide a thorough and complete understanding of the disclosure of the present invention.

[0021] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.

[0022] Example 1: See Figures 1-3 This embodiment provides a method for generating special construction plans for critical and major engineering projects based on large models and multi-agent systems, specifically including: S1. The fact extraction agent extracts project facts from the engineering data based on the preset fact field table, verifies the project facts, and writes the verified project facts into the fact blackboard. S2. The task planning agent reads the project facts in the fact blackboard and generates a task execution graph. The task execution graph includes the solution writing node task and the engineering calculation node task, as well as the execution order and dependency relationship between each node task. S3. The solution generation agent executes the tasks at each node based on the task execution graph: For engineering calculation node tasks, read project facts from the fact blackboard and call the calculation tool library to perform calculations, then write the engineering calculation results back to the fact blackboard; For the task of writing the solution, the project facts and engineering calculation results are read from the fact blackboard. Based on the reference fragments recalled from the case knowledge base and the read project facts and engineering calculation results, the main text fragments are generated through the large language model and written into the writing blackboard. After all node tasks are completed, the text fragments will be spliced ​​together in chapter order to form the candidate solution text; S4. The scheme review agent reviews the candidate scheme text. If the review is successful, the main text of the special construction scheme is output. Otherwise, the correction task is fed back through the writing blackboard.

[0023] The writing blackboard provides feedback on the reasons for failure to pass the review, including issues such as missing chapters triggering the task planning agent to adjust the task execution graph, issues such as conflicting standard parameters triggering the fact extraction agent to supplement and recall, and other issues triggering the solution generation agent to perform corresponding corrections.

[0024] The generation method of this embodiment will be described in detail below: Preferably, S1 specifically includes the following steps: A1. Preprocess the acquired engineering data, read the content of various formats of data and record metadata, organize the content of the read data into structured blocks according to chapters, establish keyword indexes and semantic vector indexes for each data segment after block, and complete the construction of the index library; A2. Based on the preset fact field table, generate the first batch recall task for all fields to be extracted corresponding to the current project type, targeting the first... The fields to be extracted are used to construct field query items. The candidate retrieval set is filtered from the index through metadata filtering. The data fragments in the candidate retrieval set are spliced ​​with context prefixes to form context-enhanced fragments. A3. The fact extraction agent uses the field query item as the retrieval basis, performs keyword recall and vector semantic recall (i.e. dual-path recall) from the context-enhanced fragments corresponding to the candidate retrieval set, merges the two recall results to form a candidate evidence fragment set, and performs deduplication and re-sorting on the candidate evidence fragment set. A4. If there are candidate evidence fragments for the field to be extracted that do not meet the standards, then the retrieval strategy for the field to be extracted is adjusted and field-level supplementary recall is performed. The field-level supplementary recall includes reconstructing the field query item for the field to be extracted and performing metadata filtering, dual-path recall, deduplication and re-sorting; if there are no such fragments, proceed to the next step. A5. The fact extraction agent reads the recalled candidate evidence fragments, extracts the fact value, unit, and source information to generate candidate item facts, and writes them to the candidate blackboard. It performs field integrity verification, data type verification, value range verification, unit verification, and evidence association verification on the candidate item facts in the candidate blackboard. Candidate item facts that pass all verifications are written to the fact blackboard and the evidence record is transferred to the fact evidence layer. If any verification of a candidate item fact fails, it selects supplementary recall or secondary extraction according to the reason for the failure. After reaching the preset maximum number of processing times, candidate item facts that still fail all verifications are marked as fields to be manually confirmed.

[0025] The following is a detailed explanation of each step in S1: Step A1: Preprocessing of engineering data.

[0026] Obtain the engineering data for the project to be compiled. The engineering data includes, but is not limited to, survey documents, design drawings, and project condition information, in formats such as PDF, Word, Excel spreadsheets, CAD drawings, and scanned images.

[0027] Preprocessing is performed on materials of different formats: For PDF documents, a PDF text extraction engine (such as the PyPDF2 open-source library) is used to read the text content; for scanned pages and unstructured documents such as drawings, OCR technology is used for text recognition, with the OCR recognition confidence level below a preset threshold. (like The area marked as "to be manually reviewed" is used; for tabular data, the row and column structure and header information are read and preserved; for formula content, it is uniformly converted to LaTeX format for storage, keeping all symbols, subscripts, superscripts and subscripts and operation relationships of the original formula unchanged; among them, the formula objects in Word documents are converted by parsing their OMML (Office Math Markup Language) format.

[0028] During the reading process, metadata for each piece of content is recorded synchronously, including document name, document type, chapter title, chapter number, page number, figure number, table number, and paragraph position. All metadata fields are indexed inverted to support fast filtering and retrieval.

[0029] The read text content is structurally segmented according to chapter organization, using heading levels as segmentation nodes. All paragraphs, tables, and figure captions under the same lowest-level heading are grouped into the same data segment. Missing levels are automatically filled when heading numbers are discontinuous. Paragraphs without explicit chapter headings are assigned to the block containing the previous identified heading. Non-text objects such as figures, tables, and formulas are embedded in the block containing their respective paragraphs, and their relative positions within the block are recorded. The smallest granularity of segmentation is the paragraph; in this embodiment, the first, second, third, and fourth-level headings are used as segmentation nodes.

[0030] Each segmented data fragment undergoes two indexing processes: First, keyword indexing, where stop words are removed from the segmented text, and the words and their positions are recorded in an inverted index table; second, semantic vector indexing, where a text vectorization model (e.g., BGE-large-v1.5 model) is used to encode the text into fixed-dimensional semantic vectors, which are then stored in a vector index table. In this embodiment, the index repository uses a distributed retrieval engine and a vector retrieval engine to carry the two types of indexes respectively, and the two are linked through a unified data fragment ID.

[0031] Step A2: Generate the first batch recall task.

[0032] The fact field table is stored in a relational table structure and includes the following field columns: field ID, applicable major and critical engineering category, field name, field description, field keywords, synonyms, standard unit of measurement, data type, upper and lower limits of value range, whether it is a required field, evidence source type, and suggested chapter range.

[0033] During the initial batch recall, the fields to be extracted corresponding to the current project type are grouped into batches of 10 fields each, and RAG (Retrieval-Augmented Generation) recall is performed batch by batch. Each record in the fact field table corresponds to one field to be extracted. The field to be extracted, i.e., the first field in the fact field table. The fields corresponding to the record. For the first record... For each field to be extracted, construct a field query item based on all words in the three columns: "Field Name", "Field Keywords", and "Synonyms". For example, the field query item for the "foundation pit depth" field is {"foundation pit depth", "excavation depth", "pit depth", "foundation pit excavation depth", "dig depth", "foundation trench depth"}.

[0034] Regarding the first For each field to be extracted, metadata filtering conditions are generated based on attributes such as data type, chapter range, figure number, and table number. A candidate retrieval set is then obtained from the index. Contextual prefixes are appended to the data fragments in the candidate set to generate context-enhanced fragments, which serve as the retrieval objects for dual-path recall.

[0035] The context prefix is ​​constructed as follows: take the title of the previous chapter to which the data fragment belongs, the first two complete sentences of the previous chapter, the data name, the data type, and the name of the project object, and concatenate them into a context prefix string in a uniform format (system-set arrangement template), and then concatenate it before the text content of the data fragment.

[0036] Step A3: Perform dual-path recall and reordering.

[0037] Both keyword recall and vector semantic recall use the field query items of the field to be extracted. This serves as the basis for the search.

[0038] Keyword recall uses the BM25 algorithm, and the score of the BM25 algorithm is expressed as follows: in, Indicates the first Field query items for each field to be extracted With the Context-enhanced fragments Correlation score between them For field query items Keywords in Keywords In context-enhanced fragments Frequency of occurrence in Keywords Inverse document frequency, Used to characterize keywords Rarity in the candidate retrieval set , The total number of context-enhanced fragments in the candidate retrieval set. For keywords The number of context-enhanced fragments, Enhance the context of fragments The text length (in words). The average length of all context-enhanced fragments, and All parameters are preset adjustment parameters. In this embodiment... , The fact extraction agent selects the top K context-enhanced fragments with the highest BM25 scores (K=20 in this embodiment) as the keyword recall results.

[0039] Vector semantic recall is used to recall candidate evidence fragments that are semantically similar to the field to be extracted but whose textual expressions are not entirely consistent. The field query terms and each context-enhanced fragment are input into the same text vectorization model to obtain the field query vector. and fragment semantic vector The semantic similarity between the field query item and the context-enhanced fragment is calculated using cosine similarity. The cosine similarity calculation formula is as follows: in, Indicates the first Field query items for each field to be extracted With the Context-enhanced fragments Vector semantic similarity between This represents the dot product of two vectors. and Let represent the magnitudes of the two vectors. A higher cosine similarity indicates that the candidate evidence fragment is semantically closer to the field to be extracted. The top K context-enhanced fragments are selected as the vector semantic recall results based on the cosine similarity from high to low. The two recall results are then merged into a single set of candidate evidence fragments, with only one record retained for each data fragment.

[0040] The comprehensive score of the candidate evidence fragment is obtained by weighted summation of six dimensions: ① Keyword hit score, which is the number of different keywords belonging to the field query item appearing in the candidate evidence fragment divided by the total number of keywords in the field query item; ② Semantic similarity score, which is the above... The calculated values ​​are normalized to [0,1]; ③ Unit matching score: 1 if the candidate evidence fragment contains a standard unit of measurement or its synonym, otherwise 0; ④ Object relationship integrity score: 1 if the candidate evidence fragment contains both the name of the engineering object and the description of the part, otherwise 0; ⑤ Context integrity score: the smaller of the number of sentences in the candidate evidence fragment divided by 10 and 1; ⑥ Numerical inclusion score: 1 if the candidate evidence fragment contains at least one numerical value without a unit or a numerical value with a unit, otherwise 0. The weighting coefficients for the six dimensions are 0.25, 0.20, 0.15, 0.15, 0.10 and 0.15, respectively, and are sorted in descending order of comprehensive score.

[0041] Deduplication rules: Each fragment in the candidate evidence fragment set is compared pairwise. If any two candidate evidence fragments come from the same chapter of the same document and the text content overlaps by more than 90%, only the one with the higher comprehensive score is retained. If the comprehensive scores are the same, the one that was recalled first is retained.

[0042] The candidate evidence fragments after deduplication are reordered in descending order of comprehensive score.

[0043] By performing the deduplication and reordering processes described above, we can reduce duplicate and low-relevance candidate evidence, and prioritize candidate evidence fragments that are highly relevant to the field to be extracted, have clear engineering objects, and contain relatively complete numerical values, units, and contextual information to enter the subsequent fact extraction process.

[0044] Step A4: Field-level supplementary recall.

[0045] Specifically, the failure of candidate evidence fragments for the field to be extracted to meet the standards refers to situations where the field to be extracted has empty recall results, numerical conflicts, unclear units, or unclear object attribution.

[0046] For fields to be extracted that were not hit in the initial batch recall (i.e., both recall results are empty sets), have numerical conflicts (the difference in factual values ​​of the same field exceeds 15%), have unclear units (the numerical value does not have a unit or the unit cannot correspond to the standard unit), or have unclear object affiliation (the numerical value cannot point to the specific construction object of the current project), a supplementary recall task will be generated separately.

[0047] Supplementary recall adjusts the retrieval strategy based on the cause: When the candidate set is empty, remove the data type and chapter range filtering restrictions and expand synonyms to higher-level terms; when there is a numerical conflict, increase the K value from 20 to 50 and expand the context prefix to the next two levels of chapters; when the unit is unclear, add standard unit synonyms to the field query item and remove the data type restrictions in the metadata filter, retaining only the chapter range filter; when the object's ownership is unclear, force the current project's engineering object name into the query conditions, and after adjustment, re-execute metadata filtering, dual-path recall, deduplication, and re-sorting. Where expanding the context prefix range is involved, regenerate the context prefix for the affected data fragments. Supplementary recall is executed no more than 3 times cumulatively; fields that still do not obtain qualified evidence after exceeding this number are marked as requiring manual confirmation.

[0048] Step A5: Fact extraction and multidimensional verification.

[0049] The fact extraction agent reads candidate evidence fragments one by one according to the comprehensive score ranking, extracts fact values, units and source information to generate candidate item facts and writes them into the candidate blackboard, and records the corresponding evidence information (document name, page number or paragraph position, original evidence fragment text, recall method and confidence score).

[0050] Perform five multidimensional checks on the candidate items in the candidate blackboard: (1) Field integrity check: Compare the set of required fields with the set of extracted fields. If there are any required fields that have not been extracted or the fact value is empty, the check will fail. (2) Data type validation: Check whether the data type of the fact value is consistent with the data type column in the fact field table. If they are consistent, the validation passes. (3) Value range verification: Check whether the fact value is within the value range specified in the fact field table. If it is within the value range, the verification passes. (4) Unit verification: Check whether the unit of the actual value is consistent with the standard unit of measurement or is a synonymous unit. If so, the verification is passed. (5) Evidence correlation verification: The evidence correlation between the candidate fact and the source evidence fragment is greater than or equal to the preset threshold. The time verification passed; Specifically, calculating the relevance of evidence. Its formula is: in, For candidate facts, For the source evidence fragment, The entity matching score is calculated as follows: 1 if the evidence fragment contains at least one entity word of the candidate fact, and 0 otherwise. The semantic relevance score is calculated as follows: 1 if the cosine similarity between the candidate fact description text and the evidence fragment is ≥0.65, otherwise 0. The information coverage score is calculated as follows: 1 if the evidence fragment simultaneously contains a factual value or ±5% approximation, standard units or synonyms, and the name of an engineering object; otherwise, 0. In this embodiment, the weighting coefficient... , , The preset thresholds for evidence relevance are 0.3, 0.3, and 0.4, respectively. ,when At that time, the evidence association verification passed.

[0051] After passing all five verifications, the candidate item facts are written to the fact blackboard (including fact value, unit, field ID and update timestamp), and the corresponding evidence record is transferred to the fact evidence layer (including field ID, full text of evidence fragment, metadata and confidence score). The two are linked by the field ID.

[0052] For fields that fail validation, either supplementary recall (missing field or insufficient evidence) or secondary extraction (incorrect type, out of range, or abnormal unit) will be selected based on the problem type. During secondary extraction, targeted constraints will be added to the extraction command, and the context window will be expanded from 100 characters before and after the field to 300 characters before and after the field. The total number of supplementary recalls and secondary extractions will not exceed three. Fields that still fail after exceeding this limit will be marked as requiring manual confirmation.

[0053] Preferably, S2 specifically includes the following steps: B1. The task planning agent reads the project facts in the fact blackboard, calculates the required fact coverage and prerequisite fact coverage based on the task planning requirements table, and determines whether the current project facts can support the requirements of the scheme chapter division and engineering calculation node tasks; for the fact items that are not determined to be insufficient, a list of missing facts is generated and written to the writing blackboard, triggering the fact extraction agent to perform supplementary recall or secondary extraction, and recalculates the required fact coverage and prerequisite fact coverage after the fact blackboard is updated. B2. Based on the project type, construction target, and construction stage, the sub-drawing material library... Metadata filtering is performed to obtain a set of candidate large subgraphs. The fitness of each candidate large subgraph is calculated, and the subgraph with a fitness score reaching a preset threshold is selected. Large subgraph; B3. For each selected large subgraph, retrieve the raw material from the subgraph library. The process involves selecting candidate subgraphs, calculating the fitness of each candidate subgraph, and selecting those with a fitness score reaching a preset threshold. neutron diagram; B4. For each selected subgraph, retrieve the raw material from the subgraph library. Candidate subgraphs are selected, and the fitness of each candidate subgraph is calculated. Subgraphs with fitness values ​​reaching a preset threshold are selected. The selected subgraph; instantiate the constituent nodes in the selected subgraph and calculate the fact readiness, and include the constituent nodes that reach the preset node readiness threshold (0.80 in this embodiment) into the task execution graph candidate node set; B5. Based on the fact reading and writing relationships between nodes, the sequence of construction procedures, and the contextual inheritance relationships, directed dependency edges are established to form a candidate task execution graph. After topology verification and integrity verification, the final task execution graph is output. The final task execution graph includes the selected scheme writing node tasks and engineering calculation node tasks, as well as the execution order and dependency relationships between each node task.

[0054] The following is a detailed explanation of each step in S2: Step B1: Completeness check of project facts.

[0055] The task planning requirements table It uses a relational table structure for storage, including: requirement ID, applicable critical and major project category, construction object name, construction procedure name, list of required field IDs, list of optional field IDs, list of calculation prerequisite fact field IDs, list of procedure requirements, list of node setting requirements, standard sub-diagram ID, and scheme chapter number.

[0056] The task planning agent determines candidate solution types based on the project type, construction object, and key component information in the factboard, and then selects the solution from the task planning requirements table. Read the corresponding set of necessary facts. and the set of prior facts The set of facts already present on the factboard Compare and calculate the required fact coverage. and prior fact coverage The formula is as follows: in, This indicates the number of necessary fact items already present on the fact board. This indicates the total number of required fact items corresponding to this candidate solution type. This indicates the number of prerequisite facts already present on the fact board. This indicates the total number of preceding fact items.

[0057] The preset chapter planning threshold is The preset calculation planning threshold is In this embodiment, take ,when Furthermore, if all key fact items already have corresponding values ​​in the fact blackboard, then the section division of the solution can be determined to be supportive; ,when Furthermore, if all input parameters required for the engineering calculation node task have factual values, units, and sources of evidence, it can be determined that the engineering calculation node task can be supported.

[0058] For facts deemed insufficient, a list of missing facts is generated and written to the missing facts list area of ​​the writing blackboard, triggering the fact extraction agent to perform supplementary recall or secondary extraction. This supplementary recall is counted independently of the supplementary recall in step A5, and the total number of times does not exceed 3. If no facts are obtained after exceeding this limit, they are written to the list of facts to be confirmed, and a manual supplementation prompt is output. Users can supplement facts through the interactive interface (written to the fact blackboard after five checks), or confirm to continue execution in the missing state. In this case, the corresponding fact is marked as a field to be manually confirmed, the engineering calculation node task that depends on the fact is paused, and the corresponding section of the solution candidate text is marked as to be supplemented.

[0059] Step B2: Large subgraph selection.

[0060] The sub-graph raw material library It is a pre-built task template library, stored using a directed acyclic graph structure, organized in three levels: large subgraphs correspond to the overall chapter structure of the solution, medium subgraphs correspond to specific construction procedures or technical measures, and small subgraphs correspond to atomic-level executable tasks. Each subgraph stores node ID, node type, node name, a list of required fact items, a list of output items, execution type, and reference chapter number.

[0061] Subgraph raw material library The construction method is as follows: collect historical special construction plan texts for major and critical engineering projects, classify them according to project type, and then standardize and decompose them according to predefined major and critical engineering task decomposition specifications. 1. The main sub-diagram corresponds to the first and second level chapters (such as "Project Overview", "Construction Technology" and "Safety Assurance Measures"), with the construction stage or management module as the dividing boundary; 2. The sub-diagram corresponds to the specific construction procedures or technical measures under the major chapter (such as "earthwork excavation procedure" or "support system installation"), with the construction action or sub-project as the dividing boundary; 3. Subgraphs correspond to atomic-level executable tasks (such as "calculating earth pressure" or "writing concrete pouring parameters"), with a single calculation task or a single writing paragraph as the dividing boundary.

[0062] Case Unit Library The pre-built historical task execution diagram template library is constructed as follows: At least 500 historical major and critical engineering special construction plans that have passed expert review are collected, and their task execution diagram structures are extracted. Each case unit record includes a case ID, project type, construction object name, task execution diagram structure, key parameter vector, plan chapter number list, construction procedure list, and plan quality score. An inverted index is established according to project type, construction object name, and construction stage. The criteria for determining similar cases are that the project type is the same and the construction object belongs to the same category. Node overlap is defined as the cardinality of the intersection of the candidate subgraph node set and the case node set divided by the cardinality of the union.

[0063] For candidate large subgraphs Calculate its fitness : in, Candidate large subgraph Degree of factual match This is the set of field IDs corresponding to existing fact items in the factboard. Candidate large subgraph The set of field IDs for the fact items required for execution. Represents candidate large subgraphs Among the required fact items, the current fact blackboard The proportion of existing factual items; Candidate large subgraph The degree of case matching is used to calculate the final case matching score. This indicates that the current project is targeting candidate large subgraphs. Constructing the key parameter vector, Represents candidate large subgraphs Key parameter vector of selected historical cases express and cosine similarity, This represents a collection of historical cases similar to the current project. Selection of candidate large subgraphs The historical case with the highest percentage of overlapping nodes. This represents any historical case in the set of historical cases of a large subgraph. This represents the candidate large subgraph in the case cell library H. A collection of historical cases of the same type, Representing historical cases With candidate large subgraph The node overlap ratio, in determining At the same time, the maximum overlap ratio of the nodes corresponding to this historical case is recorded as . ; For the task planning requirements table, To cover the extent of chapters, This indicates that, based on the current project's major and hazardous engineering categories, construction targets, and construction procedures, the requirements are determined from the task planning table. The set of scheme chapter numbers that should be set for the current project as determined in the document; Represents candidate large subgraphs The set of chapter numbers for the included schemes; Represents candidate large subgraphs The degree to which the corresponding task planning requirements are covered in the relevant chapter of the solution is required.

[0064] The key parameter vector is composed of numerical fact fields shared by the current project and historical cases. After being processed by unifying and normalizing the units to the [0,1] interval, the data are arranged in ascending order by field ID. This forms key parameter vectors for the current project and key parameter vectors for historical cases with the same dimensions. The cosine similarity between the two is calculated. When there are fewer than 3 shared fields, the cosine similarity in this component is set to 0. This setting aims to avoid inflated matching due to insufficient dimensions when there are too few shared fields, thus ensuring the reliability of the case matching results.

[0065] The three components of the fitness score mentioned above are dimensionless scores normalized to the [0,1] interval, where: and All values ​​are calculated based on the cardinality of the set and are taken from [0,1]. In this context, node overlap is calculated as the ratio of the cardinality of the intersection to the cardinality of the union of sets, taking values ​​in the range [0,1]. The key parameter vectors are normalized so that each dimension is non-negative, and the cosine similarity also takes values ​​in the range [0,1]. The product of these two similarities also takes values ​​in the range [0,1]. If there are fewer than three fields in total, this component takes a value of 0, falling within the aforementioned range. Since the three components have the same dimensions and the same value range, a weighted sum can be performed; the weight coefficients satisfy... The resulting fit It is also a dimensionless score with a value in the range [0,1]. The fitness thresholds for each level below are set based on this range.

[0066] In this embodiment, the weighting coefficient , , The values ​​are 0.30, 0.30, and 0.40 respectively, and their sum is 1. Select the fit. Candidate large subgraphs with a value ≥0.60 form a set of large subgraphs.

[0067] Step B3: Neutron graph selection.

[0068] For each selected large subgraph From the sub-graph raw material library Screening candidate subgraphs with parent-child relationships And calculate its fit: in, Indicates the selected large subgraph Based on candidate neutron graph Adaptability Candidate neutron graph Degree of factual match Candidate neutron graph The set of fact field IDs required for execution Representing candidate neutron graphs Among the required fact items, the current fact blackboard The proportion of existing factual items; Candidate neutron graph The degree of case matching is used to calculate the final case matching score. This indicates that the current project targets candidate neutron graphs. Constructing the key parameter vector, Representing candidate neutron graphs Key parameter vector of selected historical cases express and cosine similarity, This represents a collection of historical cases similar to the current project. Selection and candidate neutron maps The historical case with the highest percentage of overlapping nodes. This represents any historical case in the set of historical cases for a neutron graph. Representation of case cell library In and candidate neutron diagrams A collection of historical cases of the same type, Representing candidate neutron graphs Historical Cases The overlap ratio of nodes between them is determined. At the same time, the maximum overlap ratio of the nodes corresponding to this historical case is recorded as . ; For the task planning requirements table, To meet the required coverage level for the process, Indicates based on candidate neutron graphs The corresponding construction procedures are based on the task planning requirements table. The set of requirements for this construction procedure in the current project as determined in the document; Representing candidate neutron graphs The set of process requirements covered; Representing candidate neutron graphs The degree to which the construction process corresponds to the task planning requirements.

[0069] In this embodiment, each weighting coefficient , , The values ​​are 0.30, 0.30, and 0.40 respectively, and the sum of the three is 1. Select the fit. Neutron graphs with a strength of ≥0.65 form a set of neutron graphs.

[0070] Step B4: Subgraph selection and node instantiation.

[0071] For each selected subgraph From the sub-graph raw material library Filtering candidate child graphs with parent-child relationships And calculate its fit: in, Indicates the selected subgraph Based on candidate subgraphs Adaptability For the degree of fact matching, Candidate subgraph The set of fact field IDs required for execution Representing candidate subgraphs Among the required fact items, the current fact blackboard The proportion of existing factual items; Candidate subgraph The degree of case matching is used to calculate the final case matching score. This indicates that the current project is targeting candidate subgraphs. Constructing the key parameter vector, Representing candidate subgraphs Key parameter vector of selected historical cases express and cosine similarity, This represents a collection of historical cases similar to the current project. Selection of candidate subgraphs The historical case with the highest percentage of overlapping nodes. Represents any historical case in the set of historical cases of a subgraph. Represents the candidate subgraph in the case cell library H. A collection of historical cases of the same type, Representing candidate subgraphs Historical Cases The overlap ratio of nodes between them is determined. At the same time, the maximum overlap ratio of the nodes corresponding to this historical case is recorded as . ; For the task planning requirements table, Set the required coverage level for the nodes. Indicates based on candidate subgraphs The specific tasks are derived from the task planning requirements table. The set of node setting requirements determined in the middle; Representing candidate subgraphs The actual set of node setting requirements that are met; Representing candidate subgraphs The requirements for the nodes they belong to should cover the corresponding task planning requirements.

[0072] In this embodiment, each weighting coefficient , , The values ​​are 0.30, 0.30, and 0.40 respectively, and the sum of the three is 1. Select the fit. Candidate subgraphs with a value ≥0.70 are used to form a set of subgraphs.

[0073] Instantiate the component nodes in the selected subgraph, including determining the node identifier, node type, read fact items, write fact items, text output items, and execution requirements. For each component node... Calculate fact readiness : in, For nodes The required set of fact items, where D is the set of facts already present in the factboard. When When missing fact items are added to the missing fact list; when The node will be included in the candidate node set of the task execution graph.

[0074] Step B5: Dependency edge establishment and verification.

[0075] Directed dependency edges are established according to three rules: when a write fact item of a component node is referenced by a read fact item of another component node, a dependency edge is established pointing from the former to the latter; task planning requirement table. If there is a pre-defined sequence of steps, dependency edges are established according to the sequence of steps; if the text output by two component nodes has a chapter-to-chapter relationship, dependency edges are established from the preceding chapter node to the following chapter node. This forms the candidate task execution graph.

[0076] Topology verification uses the Kahn algorithm to determine the existence of circular dependencies. If there are adjustable context-dependent edges in the cycle, the edge with the lowest dependency strength is selected for deletion or adjustment. If there are no deletable dependency edges in the cycle, the fact read / write dependency or forced process sequence dependency is not directly deleted. Instead, the affected nodes are replanned (dependency strength is prioritized in the order of fact read-write relationship > process sequence relationship > context-dependent relationship, decreasing in priority; when the priorities are the same, the edge with the fewest fact read / write dependencies between the nodes at both ends is deleted). If the cycle still exists, the subgraph selection threshold is increased for reselection. If the problem still cannot be eliminated, it is recorded in the problem log area to notify manual intervention.

[0077] Integrity checks include: deleting isolated nodes with no incoming or outgoing edges; checking the fact-readiness of each engineering calculation node task, marking fields with a value below 0.80 as requiring manual confirmation; and checking the main output items of each solution writing node task, removing empty items from the task planning requirements table. The system automatically completes chapter numbers and associated titles; it checks the parent-child relationship path chain (four-level mapping of large subgraph → medium subgraph → small subgraph → node) of each node to ensure its integrity, and removes any missing nodes. After successful verification, the final task execution graph is output.

[0078] Preferably, S3 specifically includes the following steps: C1. When executing the engineering calculation node task, read the project facts from the fact blackboard, bind the project facts as calling parameters, call the deterministic calculation function from the calculation tool library according to the calling parameters to obtain the engineering calculation results, and write the obtained engineering calculation results back to the fact blackboard; C2. When executing the solution writing node task, read the project facts and engineering calculation results from the fact blackboard, read the context summary written by the previous solution writing node task from the writing blackboard, call the case knowledge base to perform RAG semantic retrieval to recall reference fragments, and generate the main text fragment through the large language model based on the project facts, engineering calculation results, the context summary and the reference fragments, and write the generated main text fragment into the writing blackboard. C3. After all node tasks are completed, the document assembly program is automatically triggered. Based on the execution order and chapter number of each solution writing node task in the task execution diagram, a chapter assembly list is generated. The text fragments in the writing blackboard are sorted and spliced ​​to form the solution candidate text. After being checked by the output gate (including format check, chapter structure check, variable residue check, debugging information check, review information check, text length check and truncation content check), it is provided to the solution review agent.

[0079] The following provides a detailed explanation of each step in S3. (See also...) Figure 2 : The writing blackboard is a shared storage area for storing intermediate states during the writing process, including a context summary area, a modification record area, a list of completed chapters, a list of missing facts, a list of facts to be confirmed, a problem record area, a manual confirmation area, and an area for information to be supplemented.

[0080] Step C1: Execution of engineering calculation node tasks.

[0081] Task type determination: Extract the computing task keywords from the node name field of the node metadata of the engineering computing node task, and match them with the predefined computing task type mapping table to determine the computing task type.

[0082] Semantic parsing: Input the node name and execution requirement text into the large language model, and output a structured parameter list (JSON array, including parameter name, symbol, data type and unit).

[0083] The Large Language Model (LLM) is a neural network model trained on large-scale text data that is capable of natural language understanding, information extraction, semantic reasoning, and text generation.

[0084] Parameter Binding: Read project facts from the factboard and bind each parameter in the structured parameter list to the project fact value in the factboard as a call parameter. Predeterministic binding is prioritized based on the field ID of the read fact item recorded in the engineering calculation node task. If the field ID is not recorded, auxiliary matching is performed based on the semantic similarity between the parameter name and the field name column of the fact field table (similarity ≥ 0.70 is considered a successful match), while also ensuring consistent or convertible units, consistent engineering objects, and consistent data types. If the similarity is between 0.5 and 0.7, the node is paused, and the candidate field is written to the manual confirmation area of ​​the writing board for user confirmation. If the similarity is below 0.5, the match is considered a failure, the node is paused, and a supplementary recall is triggered. If multiple candidate fields meet the conditions, disambiguation is performed in three priority levels: exact matching by field ID, highest semantic similarity, and consistent engineering object. If a unique field still cannot be determined, the node is paused for manual confirmation. If a parameter in the structured parameter list does not have a corresponding fact value, the node is paused, and a supplementary recall is triggered. For calculation functions involving equipment, equipment performance parameters are provided by the equipment reference library as supplementary input during the parameter binding stage; the equipment reference library is a pre-organized structured database containing the name, model, key technical parameters and applicable working conditions of construction equipment.

[0085] Computation Execution: Based on the calling parameters, the corresponding deterministic computation function is invoked from the computation tool library to perform the corresponding deterministic computation. The computation tool library is a collection of pre-written deterministic computation functions, each with a unified JSON format input / output interface.

[0086] Write back the results: Write the deterministic calculation results (including the calculation result values, units, calculation process summary and timestamp) into the fact blackboard according to the corresponding calculation result fact fields in the fact field table, so that they can be read by subsequent engineering calculation node tasks and scheme writing node tasks.

[0087] Step C2: Execution of the solution writing node task.

[0088] When executing a solution writing node task, a readiness check is performed first: if there are calculation result fields in the fact items read by the node that have not yet been written to the fact board, the node is paused and its status is set to waiting. The solution generation agent has a scheduler that uses the observer pattern to listen for write events of calculation result fields in the fact board. After capturing the write operation of the corresponding field ID, the solution writing node task that depends on that field is switched from waiting to ready and re-added to the task queue for execution.

[0089] For ready solution writing node tasks, the solution generation agent reads all project facts and engineering calculation results required for that node from the fact blackboard. Since each solution writing node task writes a text fragment to the writing blackboard upon completion, if the writing blackboard already contains a context summary written by a previous writing node, it is included in the writing input to maintain consistency between adjacent chapters. If the current solution writing node task is re-executed based on S4 review feedback, the modification records in the writing blackboard are also included in the writing input. Using node name, chapter title, and execution requirement text as query terms, the case knowledge base is used for RAG semantic retrieval. The top three historical high-quality solution fragments with the highest similarity are used as references, and combined with the current project fact values, the text fragments are generated using a large language model. Generation constraints are: specific numerical values ​​from project facts must be cited; fabrication is not allowed; the writing style should refer to the reference cases; chapters relying on calculation results should directly cite the calculation results values ​​on the fact blackboard; template variables or placeholders are not allowed under normal circumstances; and user-confirmed skipped supplementary items are marked as the only allowed placeholder format.

[0090] The case knowledge base is a pre-built historical scheme text fragment library. The construction method is as follows: from no less than 500 historical major and critical engineering special construction schemes that have passed expert review, the schemes are divided into scheme fragments at the chapter level. Each fragment records the project type, construction object, chapter number, quality score and semantic vector index. Only fragments with quality scores higher than a preset threshold are retained in the library, and an inverted index is built according to project type and chapter number.

[0091] The generated text fragments are written to the writing blackboard, while the context summary is updated and the chapter number, timestamp, and list of cited fact field IDs are recorded for subsequent solution writing node tasks and chapter consistency review in step D4.

[0092] Step C3: Assembly and output of candidate solution texts and access control checks.

[0093] The solution generation agent has an internal document assembly program that is automatically triggered after all solution writing node tasks have entered the terminated state (execution completed, user confirmed skipped, or pending supplementation). The document assembly program automatically generates a chapter assembly list based on the execution order and chapter number of each solution writing node task in the task execution graph, sorts and splices each text fragment in the writing blackboard, and generates a chapter index to form the solution candidate text.

[0094] The candidate text undergoes output gate checks, including: format checks (checking whether heading levels, numbering continuity, and paragraph formatting conform to preset templates); chapter structure checks (checking for empty chapters or skipped chapter numbers); variable residue checks (checking for unreplaced template variables or illegal placeholders, excluding those skipped by the user); debugging information checks (checking for debug output modes); review information checks (comparing reference values ​​to the current value on the factboard, identifying values ​​exceeding allowable errors or without source citations); text length checks (marking chapters exceeding preset word limits as abnormal); and truncation checks (checking for incomplete sentences at the end of chapters). Once the checks pass, the text is provided to the solution review agent.

[0095] Preferred, such as Figure 3 As shown, S4 includes consistency review of numerical values ​​and conclusions, completeness review of procedures, text quality review, chapter consistency review, and standard compliance review. If any review issue exists, a structured review question is generated and written to the writing blackboard, and the correction task is fed back through the writing blackboard. If all reviews pass, the main text of the special construction plan and the review report are output. Specifically: Step D1: Verification of consistency between numerical values ​​and conclusions.

[0096] The solution review agent extracts all numerical values ​​and their chapter positions from the candidate solution text. Values ​​with citation markers are compared with the current values ​​of the corresponding fields in the factboard; values ​​exceeding the allowable error are marked as inconsistent (fields without an allowable error are only allowed rounding errors). Values ​​without citation markers are matched against related fields retrieved from the factboard based on their chapter and contextual semantics; those failing to match are marked as missing factual references.

[0097] The conclusive statements of the engineering computation node tasks are recalculated and verified. The scheme review agent has the authority to call the computation tool library. Based on the input parameters recorded in the factboard, the corresponding computation function is re-executed, and the recalculated results are compared with the conclusive values ​​in the main text. Inconsistencies are marked as inconsistent calculation results. Any remaining fields requiring supplementation are recorded as fields awaiting manual confirmation and included in the review report.

[0098] Step D2: Process integrity review.

[0099] Read the main text output items of all writing node tasks in the task execution graph and calculate the chapter coverage. : in, This is the set of generated chapter numbers for the candidate texts. To produce a set of chapter numbers, if If so, the review is directly deemed passed; if If so, it will be marked as a missing chapter.

[0100] Step D3: Text quality review.

[0101] The first item is a node task completion check, which compares the main text of the chapter with the execution requirements of the corresponding solution writing node task using a large language model. Missing key points are marked as incomplete content. The second item is a duplicate content check, where the vocabulary overlap between the current chapter and previous chapters is greater than 0.60, indicating duplicate content. The third item is a standardization check of engineering terminology, which uses a professional terminology dictionary to detect non-standard terms; if present, it is marked as non-standard expression.

[0102] Step D4: Chapter consistency review.

[0103] The first item is a chapter continuity break check. A chapter continuity break is indicated when the semantic similarity between the last sentence of the previous chapter and the first sentence of the next chapter, and the context summary, is less than 0.50. The second item is a contradiction check. A contradiction is indicated when the relative error between the reference values ​​of the same field ID in different chapters exceeds 1%.

[0104] Step D5: Compliance review.

[0105] The scheme review agent generates the first type of standard retrieval keywords based on the construction procedures, node execution requirements and safety control objects of the current chapter. It extracts the restrictive statements containing "should", "must", "must not", "strictly prohibited" from the text to generate the second type of standard retrieval keywords. Using the two types of keywords, it retrieves the top 3 standard provisions with the highest similarity to the current chapter from the standard knowledge base through RAG vector semantic retrieval (the similarity is not lower than 0.60 and is not retrieved).

[0106] The aforementioned standard knowledge base is a pre-built structured database. The data sources include clauses related to the construction of critical and major engineering projects in currently effective national standards, industry standards, and local standards. Each record includes the standard number, name, chapter number, clause number, clause text, keyword tags, mandatory level, and source of the superior standard. An inverted index is established according to the standard number and keyword tags.

[0107] The verification process employs structured matching: First, mandatory numerical parameters and mandatory action words are extracted from the standard provisions; second, the corresponding numerical ranges and semantically matching construction measure descriptions are retrieved from the text (based on a pre-set standard verb-measure verb mapping table, such as "strictly prohibited" corresponding to "prohibited / must not / cancel", and "must / should" corresponding to "set / adopt / configure / install / implement"); third, logical judgment is made: those required by the standard but not reflected in the text are marked as not implemented in the standard provisions, and those with no overlap between the text values ​​and the mandatory standard values ​​or values ​​below the lower limit are marked as standard parameter conflicts.

[0108] Step D6: Review results output and feedback correction.

[0109] The solution review agent generates structured review questions. Each question includes a question ID, location, type, reason, related evidence, correction suggestions, target, and correction direction. The mapping between question types and target is as follows: For questions such as "inconsistent numerical values," "missing factual references," "inconsistent calculation results," "incomplete content," "repetitive content," "non-standard expression," "broken chapter connections," "contradictions," and "failure to implement standard provisions," the target is the solution generation agent, and the correction direction is "rewriting the main text." For questions such as "missing chapters," the target is the task planning agent, and the correction direction is "adjusting the task graph." For questions such as "conflicting standard parameters," the target is either the solution generation agent or the fact extraction agent, and the correction direction is "rewriting the main text" or "supplementing and recalling."

[0110] Structured review questions are written to the question record area on the writing blackboard. The corresponding agent reads and corrects these questions: For the fact extraction agent, supplementary recall or secondary extraction is performed; for the task planning agent, the affected part of S2 is re-executed and the task execution graph is updated. After the task execution graph is updated, step S3 is re-triggered for newly added or changed nodes; nodes that have already been completed and are unaffected are not repeated; for the solution generation agent, the corresponding text segment is rewritten. After correction, all review steps D1 to D5 are re-executed. From the initial review, the review and correction cycle is executed a maximum of 3 times (i.e., initial review plus a maximum of 2 corrections followed by a re-review). If the review still fails after exceeding this limit, the remaining questions are marked as requiring manual intervention.

[0111] After all reviews are completed, the main text of the special construction plan and the review report (including review conclusions, a list of issues and suggestions for correction) will be output. Items awaiting manual confirmation will be included in the appendix.

[0112] The preset thresholds involved in this embodiment are all derived from statistical analysis of no less than 500 historical critical engineering project sample data and regression fitting of actual engineering acceptance data. The goal is to maximize the accuracy rate while ensuring a recall rate of no less than 95%. Those skilled in the art can make adjustments to the same extent according to the specific engineering category and safety redundancy requirements.

[0113] Example 2: This embodiment provides a system for generating special construction plans for critical and major engineering projects based on large models and multiple agents, including a memory and a processor. The memory stores a computer program, and when the processor runs the computer program, it executes the method for generating special construction plans for critical and major engineering projects based on large models and multiple agents described in Embodiment 1.

[0114] Example 3: This embodiment provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the method for generating special construction plans for critical and major engineering projects based on large models and multiple agents as described in Embodiment 1.

[0115] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for generating specialized construction plans for critical and major engineering projects based on large models and multi-agent systems, characterized in that, include: S1. The fact extraction agent extracts project facts from the engineering data based on the preset fact field table, verifies the project facts, and writes the verified project facts into the fact blackboard. S2. The task planning agent reads the project facts in the fact blackboard and generates a task execution graph. The task execution graph includes the solution writing node task and the engineering calculation node task, as well as the execution order and dependency relationship between each node task. S3. The solution generation agent executes the tasks at each node based on the task execution graph: For engineering calculation node tasks, read project facts from the fact blackboard and call the calculation tool library to perform calculations, then write the engineering calculation results back to the fact blackboard; For the task of writing the solution, the project facts and engineering calculation results are read from the fact blackboard. Based on the reference fragments recalled from the case knowledge base and the read project facts and engineering calculation results, the main text fragments are generated through the large language model and written into the writing blackboard. After all node tasks are completed, the text fragments will be spliced ​​together in chapter order to form the candidate solution text; S4. The scheme review agent reviews the candidate scheme text. If the review is successful, the main text of the special construction scheme is output. Otherwise, the correction task is fed back through the writing blackboard.

2. The method for generating special construction plans for critical and major engineering projects based on large models and multi-agent systems according to claim 1, characterized in that, S1 includes: A1. Preprocess the acquired engineering data, read the content of various formats of data and record metadata, organize the content of the read data into structured blocks according to chapters, establish keyword indexes and semantic vector indexes for each data segment after block, and complete the construction of the index library; A2. Based on the preset fact field table, generate the first batch recall task for all fields to be extracted corresponding to the current project type, targeting the first... The fields to be extracted are used to construct field query items. The candidate retrieval set is filtered from the index through metadata filtering. The data fragments in the candidate retrieval set are spliced ​​with context prefixes to form context-enhanced fragments. A3. The fact extraction agent uses the field query item as the retrieval basis, performs keyword recall and vector semantic recall from the context-enhanced fragments corresponding to the candidate retrieval set, merges the two recall results to form a candidate evidence fragment set, and performs deduplication and reordering on the candidate evidence fragment set. A4. If there are candidate evidence fragments for the field to be extracted that do not meet the standards, then the retrieval strategy for the field to be extracted is adjusted and field-level supplementary recall is performed. The field-level supplementary recall includes reconstructing the field query item for the field to be extracted and performing metadata filtering, dual-path recall, deduplication and re-sorting; if there are no such fragments, proceed to the next step. A5. The fact extraction agent reads the recalled candidate evidence fragments, extracts the fact value, unit, and source information to generate candidate item facts, and writes them to the candidate blackboard. It performs field integrity verification, data type verification, value range verification, unit verification, and evidence association verification on the candidate item facts in the candidate blackboard. Candidate item facts that pass all verifications are written to the fact blackboard and the evidence record is transferred to the fact evidence layer. If any verification of a candidate item fact fails, it selects supplementary recall or secondary extraction according to the reason for the failure. After reaching the preset maximum number of processing times, candidate item facts that still fail all verifications are marked as fields to be manually confirmed.

3. The method for generating special construction plans for critical and major engineering projects based on large models and multi-agent systems according to claim 2, characterized in that, Specifically, A3 refers to: In keyword recall, the top K context-enhanced fragments with the highest BM25 scores were selected as the keyword recall results; In vector semantic recall, the top K context-enhanced segments with the highest cosine similarity are selected as the vector semantic recall results; The union of keyword recall results and vector semantic recall results is used as the candidate evidence fragment set; The comprehensive score for each candidate evidence fragment is calculated by weighting and summing the keyword hit score, semantic similarity score, unit matching score, object relationship integrity score, context integrity score, and numerical inclusion score. The candidate evidence fragment set is deduplicated: each candidate evidence fragment in the candidate evidence fragment set is compared pairwise. If any two candidate evidence fragments come from the same chapter of the same document and the text content overlaps with the threshold, only the one with the higher comprehensive score is retained. If the comprehensive scores are the same, the first recalled candidate evidence fragment is retained. The candidate evidence fragments after deduplication are reordered in descending order of comprehensive score.

4. The method for generating special construction plans for critical and major engineering projects based on large models and multi-agent systems according to claim 3, characterized in that, The BM25 score is expressed as follows: in, Indicates the first Field query items for each field to be extracted With the Context-enhanced fragments Correlation score between them For field query items Keywords in Keywords In context-enhanced fragments Frequency of occurrence in Keywords Inverse document frequency, , The total number of context-enhanced fragments in the candidate retrieval set. For keywords The number of context-enhanced fragments, Enhance the context of fragments The length of the text. The average length of all context-enhanced fragments, and All are preset adjustment parameters; The formula for calculating cosine similarity is as follows: in, Represents field query item The corresponding field query vector, This indicates a context-enhanced fragment. The corresponding fragment semantic vector, Indicates the first Field query items for each field to be extracted With the Context-enhanced fragments Vector semantic similarity between express and The inner product, Represents field query vector The length of the mold, Represents the semantic vector of a fragment The length of the module.

5. The method for generating special construction plans for critical and major engineering projects based on large models and multi-agent systems according to claim 1, characterized in that, S2 includes: B1. Read the project facts in the fact blackboard, calculate the required fact coverage and prerequisite fact coverage based on the task planning requirements table, and determine whether the current project facts can support the requirements of the scheme chapter division and engineering calculation node tasks; generate a list of missing facts for the fact items that are not determined to be insufficient and write them to the writing blackboard, trigger the fact extraction agent to perform supplementary recall or secondary extraction, and recalculate the required fact coverage and prerequisite fact coverage after the fact blackboard is updated. B2. Based on the project type, construction target, and construction stage, the sub-drawing material library... Metadata filtering is performed to obtain a set of candidate large subgraphs. The fitness of each candidate large subgraph is calculated, and the subgraph with a fitness score reaching a preset threshold is selected. Large subgraph; B3. For each selected large subgraph, retrieve the raw material from the subgraph library. Candidate subgraphs are selected from the pool, and the fitness of each candidate subgraph is calculated. The subgraph with a fitness score that reaches a preset threshold is then selected. neutron diagram; B4. For each selected subgraph, retrieve the raw material from the subgraph library. Candidate subgraphs are selected from the pool, and the fitness of each candidate subgraph is calculated. The subgraph with a fitness score that reaches a preset threshold is then selected. The little boy's picture; Instantiate the component nodes in the selected subgraph and calculate the fact readiness. Include the component nodes that have reached the preset node readiness threshold into the candidate node set of the task execution graph. B5. Based on the fact reading and writing relationships, construction sequence relationships, and contextual inheritance relationships among candidate nodes in the task execution graph, directed dependency edges are established to form a candidate task execution graph. After topology verification and integrity verification, the final task execution graph is output.

6. The method for generating special construction plans for critical and major engineering projects based on large models and multi-agent systems according to claim 5, characterized in that, The fitness calculation specifically involves: in, This represents a candidate subgraph, which can be any one of the large, medium, or small subgraphs. Task planning requirements table; Candidate subgraph Adaptability; , and Both represent candidate subgraphs Weighting coefficients; Representing candidate subgraphs The degree of coverage of the planning requirements for the corresponding tasks at its planning level; Representing candidate subgraphs The proportion of fact items already present on the current fact board in the required fact items; Representing candidate subgraphs With case cell library Chinese historical cases Match score; This is the set of field IDs corresponding to existing fact items in the factboard. Candidate subgraph The set of field IDs for the fact items required for execution; This indicates that the current project is targeting candidate subgraphs. Constructing the key parameter vector, Representing candidate subgraphs The key parameter vector of the selected historical cases, express and cosine similarity, Representation of case cell library Middle and candidate subgraphs A collection of historical cases of the same type, Indicates from the set of historical cases The selected candidate subgraph The historical case with the highest percentage of overlapping nodes. Representing historical cases The corresponding node overlap ratio, This represents any historical case in the set of historical cases for the candidate subgraph. Representing historical cases With candidate subgraph The percentage of nodes overlapping.

7. The method for generating special construction plans for critical and major engineering projects based on large models and multi-agent systems according to claim 1, characterized in that, S3 includes: When executing the engineering calculation node task, the project facts are read from the fact blackboard, the project facts are bound as calling parameters, the deterministic calculation function is called from the calculation tool library according to the calling parameters to obtain the engineering calculation results, and the obtained engineering calculation results are written back to the fact blackboard; When executing the solution writing node task, the project facts and engineering calculation results are read from the fact blackboard, the context summary written by the previous solution writing node task is read from the writing blackboard, the case knowledge base is called to perform RAG semantic retrieval to recall reference fragments, and based on the project facts, engineering calculation results, context summary and reference fragments, the main text fragments are generated through the large language model and written to the writing blackboard. After all node tasks are completed, a chapter assembly list is generated based on the execution order and chapter number of each scheme writing node task in the task execution diagram. The text fragments in the writing blackboard are sorted and spliced ​​to form the scheme candidate text, which is then provided to the scheme review agent after being checked by the output access control.

8. The method for generating special construction plans for critical and major engineering projects based on large models and multi-agent systems according to claim 7, characterized in that, The execution of the engineering computation node task specifically includes: Task type determination: Extract calculation task keywords from the node names of engineering calculation node tasks to determine the calculation task type; Semantic parsing: Input the node name and execution requirement text into the large language model, and output a list of structured parameters; Parameter binding: Bind each parameter in the structured parameter list to the item facts in the factboard as a calling parameter; Computation execution: Deterministic computation is performed by invoking a deterministic computation function from the computation tool library according to the invocation parameters; Write back the results: Write the deterministic calculation results into the fact blackboard according to the corresponding calculation result fields in the fact field table.

9. The method for generating special construction plans for critical and major engineering projects based on large models and multi-agent systems according to claim 1, characterized in that, The S4 review includes a review of the consistency between numerical values ​​and conclusions, a review of the completeness of procedures, a review of text quality, a review of chapter consistency, and a review of standard compliance. If any review issues exist, structured review issues are generated and written into the writing blackboard, and the writing blackboard provides feedback on the correction task. If all reviews are passed, the main text of the special construction plan and the review report are output.

10. A system for generating specialized construction plans for critical and major engineering projects based on large models and multi-agent systems, characterized in that, include: The fact extraction agent is used to extract project facts from engineering data based on a preset fact field table, verify the project facts, and write the verified project facts into the fact blackboard. A task planning agent is used to read the project facts in the fact blackboard and generate a task execution graph that includes solution writing node tasks and engineering calculation node tasks. The solution generation agent is used to execute node tasks according to the task execution graph. When the node task is an engineering calculation node task, it calls the calculation tool library to perform calculations and writes the engineering calculation results back to the fact blackboard. When the node task is a solution writing node task, it calls the case knowledge base to recall reference fragments and generates text fragments through the large language model. The generated text fragments are then written to the writing blackboard. After all node tasks are completed, the text fragments are spliced ​​together in chapter order to form the solution candidate text. The scheme review agent is used to review the candidate scheme texts. When the review is passed, it outputs the main text of the special construction scheme. When the review is not passed, it provides feedback on the correction task through the writing blackboard.