A method and system for embedding a light environment design intelligent agent in a knowledge graph and integrating it with simulation software

By establishing a platform function map and domain-specific knowledge services, the problems of mixed use of multiple knowledge domains and uncontrolled natural language operation in architectural lighting environment design software have been solved. This has enabled the separation of functional knowledge and evidence knowledge, and improved the traceability of the simulation process and the convenience of standard evaluation.

CN123179909APending Publication Date: 2026-11-27HARBIN INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611402348.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-10
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing architectural lighting environment design software suffers from problems such as the mixed use of multiple knowledge domains, uncontrolled natural language operation, lack of state records in continuous simulation, and difficulty in tracing standard evaluation criteria.

Method used

By establishing a platform function map, domain-specific knowledge services, natural language retrieval, and intent parsing, structured actions are generated and verified, simulations are performed, and results are archived. Evaluation is then conducted in conjunction with existing standard provisions and scientific research evidence.

Benefits of technology

It achieves the separation of functional knowledge and evidential knowledge, reduces the mixing of knowledge domains, controls natural language actions, and continuously records the actual engine and result files in a step-by-step manner for continuous tasks, thereby improving traceability and making it easy for professionals to review the standardized evaluation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179909A_ABST
    Figure CN123179909A_ABST
Patent Text Reader

Abstract

The application provides a method and system for embedding an intelligent agent of a light environment design knowledge graph and integrating it with simulation software. The method establishes an independent platform function graph, and manages the scientific research literature graph, building standard search library and platform function knowledge sub-domain. After receiving natural language questions or operation instructions, the system retrieves platform function nodes according to function words, index words, model words, sky words, grid words and engine words, supplements one-hop associated nodes, organizes the capability summary, usage constraints and available tools into the agent context; the agent classifies the request into function question and answer, interface control or simulation sequence, generates controlled structured actions, and calls the light environment simulation software after checking the control white list, numerical range, file path and task state. The project state, actual engine, input parameter, result file and evaluation basis are recorded during the simulation process, and the state is written back to the dialogue window and existing result area.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of computational design of architectural lighting environments, knowledge graphs, natural language processing, and intelligent agent software integration. In particular, it relates to a method and system for embedding a knowledge graph into an intelligent agent for lighting environment design and integrating it with simulation software. Specifically, it relates to a method and system for embedding platform functional knowledge, scientific research literature evidence, and architectural standard provisions into an intelligent agent for lighting environment design, and driving lighting environment simulation software to complete constrained operations, result archiving, and scheme evaluation. Background Technology

[0002] Architectural lighting environment design involves multiple objects, including models, sky, weather, materials, work surfaces, calculation engines, illuminance, glare, annual indicators, and standard evaluations. Existing software typically distributes these objects across different pages or tools, requiring users to memorize the meaning, prerequisites, and applicable ranges of each parameter. Even if natural language question answering can provide the steps, it often cannot guarantee that the controls, parameters, and result lists in the answer are consistent with the current software state.

[0003] The field of architectural lighting environments also encompasses software functional knowledge, scientific research literature knowledge, and architectural standards knowledge. Software functional knowledge answers "what the platform can do and how to operate it"; scientific research literature knowledge provides the research object, research conclusions, and background evidence; and architectural standards knowledge specifies the scope of application, clauses, and quantitative requirements. These three types of knowledge have different uses and strengths of evidence. If they are not stored and output separately, it is easy to mistakenly treat software functional descriptions as standard bases, miswrite scientific research conclusions as mandatory clauses, or omit the applicable conditions of clauses.

[0004] Meanwhile, continuous time-series and batch simulations often require repeatedly setting the date, time, sky, engine, and output directory. If parameters are missed, tasks are canceled, or engine errors occur during the operation, users will find it difficult to determine the correspondence between completed subtasks, the actual calculation engine, and the result files, making it difficult to verify the results.

[0005] Therefore, a technical solution is needed that can distinguish between three types of knowledge, convert natural language into constrained actions, maintain the project status during simulation, and establish correlations between results and evidence. Summary of the Invention

[0006] The purpose of this invention is to solve the problems of mixed use of multiple knowledge domains, uncontrolled natural language operation, lack of state records in continuous simulation, and difficulty in tracing standard evaluation criteria. It proposes a method and system for designing intelligent agents by embedding knowledge graphs into light environments and integrating them with simulation software.

[0007] This invention is achieved through the following technical solution: This invention proposes a method for embedding a knowledge graph into a light environment to design an intelligent agent and integrating it with simulation software, the method comprising: Step 1: Establish a platform function map; use nodes to record software capabilities, use association fields to record related capabilities, use constraint fields to record prerequisites and applicable boundaries, and use tool fields to record executable operation entry points. Step 2: Establish domain-specific knowledge services; the scientific literature map and the building standards retrieval database respectively store scientific research evidence and standard evidence, and retain the source, version, article number, applicable conditions or literature information; Step 3: Perform natural language retrieval and intent parsing; the system extracts function, metric, model, sky, grid, engine, time and evaluation information from the user request, retrieves function nodes and one-hop related nodes, and then sends the retrieval context to the agent; Step 4: Generate and validate structured actions; the agent outputs questions and answers, interface actions, or simulated sequences; check the action type, control identifier, numerical range, file path, project status, and task prerequisites. Step 5: Perform simulation and archive results; the simulation software updates the project status according to actions, performs single or multi-time tasks, saves images, HDR, CSV, evaluation reports and metadata, and updates the task status at the end of each subtask. Step 6: Perform evidence evaluation; read the actual simulation context, retrieve the current standard provisions and scientific research evidence respectively, and output the indicator verification, basis, evidence boundaries and review suggestions.

[0008] Furthermore, the platform functional map includes at least the following nodes: model and example room, sky and measured HDR, EPW and solar trajectory, calculation engine, calculation parameters, 3D view, surface-level material, calculation grid, instantaneous results, annual indicators, glare indicators, scheme standard evaluation, and model service settings. During the platform functional map retrieval process, at least one scoring method is used, including natural language terminology, title matching, keyword matching, and capability summary matching. A limited number of main nodes are selected according to the scoring results, and then a one-hop related node is added from the related fields of the main nodes.

[0009] Furthermore, the scientific literature map stores the literature title, author, journal, year, abstract, conclusion, and source information; the building standards retrieval database stores the standard name, version, clause number, specified content, applicable conditions, threshold, and source document; the two types of knowledge are identified separately in the search results, citation results, and evaluation output.

[0010] Furthermore, the context of the intelligent agent includes at least the functional node identifier, functional name, functional summary, usage boundaries, available tools, current project status, and related functional nodes; when the same request involves both knowledge retrieval and simulation operation, the context retains the software function explanation and evidence source, respectively.

[0011] Furthermore, the intelligent agent output is represented by a structured task object, which includes at least an intent, a standardized instruction, a task state, an interface action, subsequent steps, and a confidence level; the interface action is restricted to a predefined set of controls, a set of action types, and a range of values.

[0012] Furthermore, the simulation sequence includes at least two of the following: date, time sequence, sky type, computing engine, mesh settings, whether to generate fisheye HDR, whether to generate glare results, whether to perform standard evaluation of the scheme, and result storage directory. When executing the simulation sequence, the user cancellation status is checked before each time or before each subtask begins. After each subtask ends, an independent result directory is created to save images, HDR, pseudo-color images, mesh data, CSV files, as well as model, sky, material, mesh, time, and actual engine information.

[0013] Furthermore, it reads location, climate, building type, evaluation site, geometry, materials, window surfaces, working surfaces, and simulation results, matches them with current standard provisions and scientific research evidence, and outputs standard applicability, provision basis, indicator results, mandatory provision verification, uncertainties, and review suggestions.

[0014] Furthermore, when a received request is identified as a function inquiry or current status query, a description or status is returned without initiating a simulation; when a received request is identified as a task to be executed, the system supports the user issuing a stop command; the task status includes at least continue, complete, cancel, and fail.

[0015] This invention also proposes a system for designing intelligent agents by embedding knowledge graphs into optical environments and integrating them with simulation software, the system comprising: Platform Function Map Building Module: Used to build the platform function map; it records software capabilities with nodes, related capabilities with association fields, preconditions and applicable boundaries with constraint fields, and executable operation entry points with tool fields; Domain-specific knowledge service establishment module: used to establish domain-specific knowledge services; the scientific literature map and the building standard retrieval database respectively store scientific research evidence and standard evidence, and retain the source, version, article number, applicable conditions or literature information; The agent parsing module is used for natural language retrieval and intent parsing. The system extracts function, metric, model, sky, grid, engine, time and evaluation information from user requests, retrieves function nodes and one-hop related nodes, and then sends the retrieval context to the agent. Action constraint verification module: used to generate and verify structured actions; the agent outputs questions and answers, interface actions or simulated sequences; checks action type, control identifier, numerical range, file path, project status and task prerequisites; Simulation Task Module: Used to perform simulations and archive results; the simulation software updates the project status by action, executes single or multi-time tasks, saves images, HDR, CSV, evaluation reports and metadata, and updates the task status at the end of each subtask; The scheme evaluation module is used to perform evidence evaluation; it reads the actual simulation context, retrieves the current standard provisions and scientific research evidence respectively, and outputs the indicator verification, basis, evidence boundaries and review suggestions.

[0016] The present invention also proposes an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method for designing an intelligent agent by embedding a knowledge graph in a light environment and integrating it with simulation software.

[0017] The beneficial effects of this invention are: The method and system described in this invention separate functional knowledge from evidential knowledge, reducing the mixing of knowledge domains; natural language actions undergo whitelisting and range verification, reducing erroneous operations; continuous tasks progressively record the actual engine and result files, improving traceability; and standard evaluation presents clauses, scientific evidence, and simulation results separately, facilitating review by professionals. These effects do not alter the calculation results of the physics simulation engine, nor do they replace the final judgment of professionals on the standard version and engineering conditions. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0019] Figure 1 A flowchart illustrating the overall integration of knowledge graph intelligent agents with light environment simulation software.

[0020] Figure 2 This is a schematic diagram simulating the voice question and answering of an intelligent agent.

[0021] Figure 3 This is a schematic diagram illustrating the batch simulation of the intelligent agent. Detailed Implementation

[0022] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0023] This invention proposes a method for embedding a knowledge graph into a lighting environment design agent and integrating it with simulation software. The method includes: establishing a platform functional graph that is separate from a scientific literature graph and a building standard retrieval database; receiving natural language questions or operation instructions; searching the platform functional graph based on the function words, indicator words, model words, sky words, grid words, and engine words of the questions or instructions, and supplementing the one-hop related nodes of the searched nodes; organizing the retrieved capability summaries, usage constraints, and available tools into an agent context; generating question-and-answer results, interface control actions, or simulation sequence plans by the agent; executing the constraint-verified actions in the simulation software, and writing back the execution status, result files, and evaluation results to the dialogue interface and simulation result area.

[0024] Specifically, in combination Figures 1-3 This invention proposes a method for embedding a knowledge graph into a light environment to design an intelligent agent and integrating it with simulation software, the method comprising: Step 1: Establish a platform function map; use nodes to record software capabilities, use association fields to record related capabilities, use constraint fields to record prerequisites and applicable boundaries, and use tool fields to record executable operation entry points. Step 2: Establish domain-specific knowledge services; the scientific literature map and the building standards retrieval database respectively store scientific research evidence and standard evidence, and retain the source, version, article number, applicable conditions or literature information; Step 3: Perform natural language retrieval and intent parsing; the system extracts function, metric, model, sky, grid, engine, time and evaluation information from the user request, retrieves function nodes and one-hop related nodes, and then sends the retrieval context to the agent; Step 4: Generate and validate structured actions; the agent outputs questions and answers, interface actions, or simulated sequences; check the action type, control identifier, numerical range, file path, project status, and task prerequisites. Step 5: Perform simulation and archive results; the simulation software updates the project status according to actions, performs single or multi-time tasks, saves images, HDR, CSV, evaluation reports and metadata, and updates the task status at the end of each subtask. Step 6: Perform evidence evaluation; read the actual simulation context, retrieve the current standard provisions and scientific research evidence respectively, and output the indicator verification, basis, evidence boundaries and review suggestions.

[0025] In this invention, the "Platform Functional Map" is a knowledge structure describing the software's own capabilities and operational constraints, and does not assume responsibility for judging compliance with building standards; the "Scientific Literature Map" is an evidentiary structure describing research literature and research conclusions; and the "Building Standard Retrieval Database" is an evidentiary structure describing standard versions, clauses, applicable conditions, and thresholds. All three can participate in the same task within the context of the intelligent agent, but their source types, citation methods, and output tags remain distinct.

[0026] In this invention, "structured actions" are not arbitrary code directly executed by the large language model, but rather objects containing predefined action types, control identifiers, and values. For example, setting the sky, setting the date, setting the work surface height, selecting the engine, clicking run, saving the results, and calling the scheme evaluation all require validation of the allowed set and parameter range.

[0027] In this invention, the "simulation sequence" is an ordered set of tasks consisting of a date, time sequence, sky, engine, output items, and evaluation items. Each moment in the sequence uses a specific time and project status, and the results directory corresponds to the moment; if a task is canceled or fails, the completed steps retain their status and results.

[0028] Furthermore, the platform functional map includes at least the following nodes: model and example room, sky and measured HDR, EPW and solar trajectory, calculation engine, calculation parameters, 3D view, surface-level material, calculation grid, instantaneous results, annual indicators, glare indicators, scheme standard evaluation, and model service settings. During the platform functional map retrieval process, at least one scoring method is used, including natural language terminology, title matching, keyword matching, and capability summary matching. A limited number of main nodes are selected according to the scoring results, and then a one-hop related node is added from the related fields of the main nodes.

[0029] Furthermore, the scientific literature map stores the literature title, author, journal, year, abstract, conclusion, and source information; the building standards retrieval database stores the standard name, version, clause number, specified content, applicable conditions, threshold, and source document; the two types of knowledge are identified separately in the search results, citation results, and evaluation output.

[0030] Furthermore, the context of the intelligent agent includes at least the functional node identifier, functional name, functional summary, usage boundaries, available tools, current project status, and related functional nodes; when the same request involves both knowledge retrieval and simulation operation, the context retains the software function explanation and evidence source, respectively.

[0031] Furthermore, the intelligent agent output is represented by a structured task object, which includes at least an intent, a standardized instruction, a task state, an interface action, subsequent steps, and a confidence level; the interface action is restricted to a predefined set of controls, a set of action types, and a range of values.

[0032] Furthermore, the simulation sequence includes at least two of the following: date, time sequence, sky type, computing engine, mesh settings, whether to generate fisheye HDR, whether to generate glare results, whether to perform standard evaluation of the scheme, and result storage directory. When executing the simulation sequence, the user cancellation status is checked before each time or before each subtask begins. After each subtask ends, an independent result directory is created to save images, HDR, pseudo-color images, mesh data, CSV files, as well as model, sky, material, mesh, time, and actual engine information.

[0033] Furthermore, it reads location, climate, building type, evaluation site, geometry, materials, window surfaces, working surfaces, and simulation results, matches them with current standard provisions and scientific research evidence, and outputs standard applicability, provision basis, indicator results, mandatory provision verification, uncertainties, and review suggestions.

[0034] Furthermore, when a received request is identified as a function inquiry or current status query, a description or status is returned without initiating a simulation; when a received request is identified as a task to be executed, the system supports the user issuing a stop command; the task status includes at least continue, complete, cancel, and fail.

[0035] This invention also proposes a system for designing intelligent agents by embedding knowledge graphs into optical environments and integrating them with simulation software, the system comprising: Platform Function Map Building Module: Used to build the platform function map; it records software capabilities with nodes, related capabilities with association fields, preconditions and applicable boundaries with constraint fields, and executable operation entry points with tool fields; Domain-specific knowledge service establishment module: used to establish domain-specific knowledge services; the scientific literature map and the building standard retrieval database respectively store scientific research evidence and standard evidence, and retain the source, version, article number, applicable conditions or literature information; The agent parsing module is used for natural language retrieval and intent parsing. The system extracts function, metric, model, sky, grid, engine, time and evaluation information from user requests, retrieves function nodes and one-hop related nodes, and then sends the retrieval context to the agent. Action constraint verification module: used to generate and verify structured actions; the agent outputs questions and answers, interface actions or simulated sequences; checks action type, control identifier, numerical range, file path, project status and task prerequisites; Simulation Task Module: Used to perform simulations and archive results; the simulation software updates the project status by action, executes single or multi-time tasks, saves images, HDR, CSV, evaluation reports and metadata, and updates the task status at the end of each subtask; The scheme evaluation module is used to perform evidence evaluation; it reads the actual simulation context, retrieves the current standard provisions and scientific research evidence respectively, and outputs the indicator verification, basis, evidence boundaries and review suggestions.

[0036] This invention proposes a method and system for embedding a knowledge graph into a lighting environment design agent and integrating it with simulation software. The method establishes an independent platform functional graph and manages the scientific literature graph, building standard retrieval database, and platform functional knowledge separately. Upon receiving natural language questions or operation instructions, the system retrieves platform functional nodes based on functional terms, indicator terms, model terms, sky terms, grid terms, and engine terms, supplements one-hop related nodes, and organizes capability summaries, usage constraints, and available tools into the agent's context. The agent then classifies the request into functional question-and-answer, interface control, or simulation sequence, generates controlled structured actions, and calls the lighting environment simulation software after verification using a whitelist of controls, numerical ranges, file paths, and task status. During the simulation, the project status, actual engine, input parameters, result files, and evaluation criteria are recorded progressively, and the status is written back to the dialog window and existing result area. This invention solves the problems of mixed use of software functional knowledge, scientific evidence, and standard provisions, as well as the lack of traceability in natural language operations.

[0037] Example Combination Figure 1 The processing flow in this embodiment includes seven stages: knowledge retrieval, evidence retrieval, agent parsing, action verification, simulation execution, result archiving, and solution evaluation. Each stage transmits the same project identifier and task identifier, but the knowledge type and result type saved in different stages are labeled separately.

[0038] During the knowledge retrieval phase, the system receives text input by the user or text converted from speech. The system converts the input into lowercase Latin terms and Chinese terms, and matches them against titles, keywords, and capability summaries. Title matching has a higher weight than keyword matching, and keyword matching has a higher weight than general summary matching. Search results are sorted by score, and a one-hop node is added from relevant fields.

[0039] In the functional graph, the Model and Example Room nodes record OBJ, RAD, Example Room, and Rhino 7 Sync Entry; the Sky node records CIE Sky, Perez Sky, and measured HDR Sky; the EPW node records hourly weather, DNI, DHI, and solar trajectory; the Material node records surface-level materials and their physical parameters; the Mesh node records boundaries, reference surfaces, normals, lift distances, and CSV outputs; and the Results node records illuminance, HDR, pseudocolor, glare, and annual metrics.

[0040] The functional graph panel displays the platform's capabilities and node relationships. The constraint fields of functional nodes specify limitations such as the requirement for calibration information in measured HDR, the need for valid EPW in annual metrics, and the need to verify the normal and boundary of the working surface reference plane. Agents use these constraints to generate preconditions for responses or actions, without rewriting the constraints as standard clauses.

[0041] During the evidence retrieval phase, the system searches for research literature and building standards separately. Standard searches prioritize current, non-deleted standards, and if necessary, search for historical versions based on their complete serial numbers. Literature searches retain the author, title, journal, and year. Standard clauses and literature conclusions are identified by their respective sources at the bottom of the answer; missing information is output when incomplete conditions are lacking.

[0042] The knowledge-based question-answering agent can provide answers to questions about platform operation, indicator meaning, and design. For functional questions such as "How to set up the working surface," the answer comes from the functional graph; for questions such as "Which clauses should be met?", the answer needs to call the standard search; for questions such as "Combined with research discussion," the answer searches both scientific literature and standards, but does not mix the two sources.

[0043] The relationship analysis results display the objects, metrics, and related knowledge nodes involved in the question. This result helps the agent understand the question context and also helps users check whether their answers have omitted building type, location, position, metric, or source conditions.

[0044] During the intent resolution phase, the agent categorizes requests into question-and-answer, current status queries, control operations, or simulation sequences. If the request is "What engine are you currently using?" or "What is the current work surface height?", the system only reads the project status and returns it, without starting the simulation. If the request contains execution words such as "run", "calculate", "in sequence", or "batch", then a simulation task object is generated.

[0045] During the action validation phase, the system checks whether the action belongs to the allowed action set. For setting value actions, it checks whether the control exists, whether the data type is correct, and whether the value is within the restricted range; for click actions, it checks whether the item meets the preconditions; for file actions, it checks whether the directory is within the allowed local range. If the validation fails, an explicit error is returned, and the unvalidated action is not executed.

[0046] like Figure 2 As shown, voice input is first converted into dialogue text, and then the same intent parsing and action verification process is followed. Voice input does not bypass the constraints of the text mode; text responses and voice responses share the task state, making it easy for users to check the agent's actual understanding of the instructions.

[0047] like Figure 3As shown, the batch simulation task uses multiple moments as task steps. The task plan records the date, time, sky, engine, whether to output fisheye HDR, whether to output a mesh map, and whether to call the scheme evaluation. After each step, the current results are archived and the summary CSV is updated. When the user issues a stop command, the execution thread terminates at the next checkpoint, and completed steps are not deleted.

[0048] Simulation results continue to be displayed in the existing results area, without creating separate batch windows that cannot be associated with project status. Results records include the actual engine, date, time, sky, material, workface, mesh, output path, and running status. For Radiance, Mitsuba GPU experiment paths, or the annual default path, the system selects the recording engine based on the actual engine selected, and does not label results from other engines as the requested engine.

[0049] The standard evaluation of the scheme reads the current project status and existing simulation results, first determining whether the standard is applicable to the current building type and location, and then outputting the verification results of average value, minimum value, lowest point location, uniformity, glare, and annual indicators. If only instantaneous illuminance is available without annual EPW data, the evaluation should clarify that the annual indicators have not yet been calculated, rather than inferring the performance for the entire year.

[0050] The model settings allow configuration of the main dialogue model, the simulated operational agent model, a backup model, an embedding model, and an image model. When the independent operational model is not enabled, the operational agent uses the main dialogue model. Model settings only affect the agent's text understanding or image representation; they do not change the standard retrieval library, item status, or physical simulation input.

[0051] To ensure the meaning of "separation," this embodiment stores functional nodes, scientific literature nodes, and standard clause nodes in different datasets, and defines node fields, source fields, and query entry points for each. A user question can trigger searches across multiple datasets, but the source types in the returned results are not merged into the same evidence label.

[0052] Functional nodes are not simply textual descriptions of interface screenshots, but rather data records with unique identifiers, titles, capability summaries, keywords, related nodes, example questions, available tools, and constraints. Agents only use the registered capabilities and tools; unregistered functions will not become executable functions simply because they are generated by the language model.

[0053] The constraints for model and scene nodes are that a valid project model must exist first; the constraints for sky and weather nodes are that Perez hourly and annual calculations require a valid EPW or explicit irradiance input; the constraints for material nodes are that reflectivity and transmittance should be within a physically reasonable range; and the constraints for mesh nodes are that the reference surface normal, boundary, and lift distance need to be checked.

[0054] The research literature map and the standard retrieval database each store source information separately. Literature responses can provide research background and conclusions, while standard responses can provide the standard version, article number, applicable conditions, and thresholds. When both are cited in the evaluation of a proposal, the output still indicates the source of each literature and the source of the standard separately.

[0055] During the search, Chinese terms can be matched based on consecutive two-character segments, while English terms can be matched based on complete words or identifiers. Different weights are used for title matching, keyword matching, and abstract matching. After sorting, a limited number of master nodes are selected to avoid sending all functional nodes indiscriminately to the agent.

[0056] One-hop association nodes are used to interpret isolated operations as complete workflows. For example, when a user asks "how to do annual evaluation with Perez Sky", the Sky node can be retrieved and associated with the EPW node, annual indicator node, and grid node; however, association extensions only add registered relationships and do not infer algorithms or outputs not registered on the platform.

[0057] The agent context also includes whether the current project already has a model, whether EPW has been imported, the current sky, the current work surface, the current engine, and the most recent result. The project state in the context is only used as input for this request and is not modified by the language model; modifications must be written back through structured interface actions.

[0058] Action objects can include action types such as set_value, set_checked, click, open_file, download, and set_engine. The control identifiers within an action must belong to the UI action protocol, the action value must pass data type and numerical range checks, and the action sequence is executed and recorded progressively in the order of generation.

[0059] For date and time actions, the system standardizes Chinese numerals or time expressions into month, day, and hour; for engine actions, the system only accepts engine identifiers registered with the platform; for grid height and azimuth actions, the system checks whether the values ​​can be converted to floating-point numbers and are within the allowed range. Any parsing failure returns a prompt, and unconfirmed default values ​​are not used to replace user input.

[0060] A simulation sequence can contain one or more moments. Multiple moments are executed sequentially according to the planned date and time. Each step inherits the model, material, and mesh states, while also overriding the sky, time, and output parameters for that step. Task IDs and project IDs are stored between steps to prevent result confusion when multiple projects are executed in parallel.

[0061] Results archives should include at least the task plan, step status, actual engine, start time, end time, output file list, and error messages. If an image or HDR is missing, the archive status is marked as failed or partially completed; an older result is not used to replace a missing result for the current step.

[0062] After the user issues a stop command, the cancellation flag is written to the task status. The simulation process checks the cancellation flag before starting the next calculation, waiting for the project to be ready, completing result copying, and performing evaluation. Completed steps are retained, and steps that have not yet started are not falsely marked as completed.

[0063] The standard evaluation first retrieves the building type, location, and site information from the project status, and then queries the current standards. If a complete clause cannot be found, the standard version is unclear, or necessary simulation results are missing, the system lists uncertainties in the evaluation and prompts professionals to refer back to the original text.

[0064] Standard daylight factor, instantaneous illuminance, glare, and annual indicators have different physical definitions. The scheme evaluation module does not directly rewrite instantaneous illuminance into annual conclusions, nor does it rewrite general suggestions from knowledge-based questions into mandatory clauses.

[0065] In a specific operational example, the user inputs "Load example room, select CIE sunny day, set June 21st 12:00, create work surface and run instantaneous illuminance". The system first retrieves the model, sky, date, mesh and instantaneous result nodes, generates an action sequence, verifies the existence of the example room, and then executes them sequentially.

[0066] In another example, the user inputs "Generate fisheye HDR and evaluate the scheme at 9 o'clock, 12 o'clock, and 15 o'clock". The system generates three time steps and saves the fisheye HDR, glare index, and task context at each step; the standard evaluation only uses the completed steps with complete context.

[0067] In a Q&A example, a user asks, "What lighting requirements should an office meet?" The system uses building type, evaluation site, location, indicators, and expected output as search criteria. The standard library returns the relevant clauses and applicable conditions, the research map returns research evidence, and verifiable sources are listed at the end of the answer.

[0068] This embodiment does not require the language model to directly call operating system commands, nor does it require the language model to directly write physical results. The intelligent agent only generates actions and text constrained by the protocol, the simulation software is responsible for the actual calculations, and the result archiving module is responsible for saving the actual files.

[0069] When external model services are unavailable, the platform can use local function retrieval and preset answers to complete part of the function description; when the simulation engine is unavailable, the platform reports the engine status or the reason for failure. In neither case will a non-existent result be written as a success result.

[0070] During system implementation, the platform function graph creation module and the domain knowledge service creation module can be deployed on the same platform, but provide data through independent service interfaces. The action constraint verification module only reads the tools registered in the function graph and does not directly read standard clauses to generate interface actions.

[0071] The project context of an operation task is snapshotted at the start of the task, and each step in the task uses this snapshot and overwrites parameters. The final state and step states are saved after the task ends, allowing users to distinguish between parameters before start, parameters during steps, and parameters after completion.

[0072] For input files such as models, EPW, HDR, or result directories, the system saves the file path and file existence check results. If a file is moved or deleted, an input invalidation message will be displayed when the project is reopened, and no other file with the same filename will be used to replace the original file.

[0073] The subsequent steps in the agent's output include completion conditions and continuation prompts. Completion conditions can be that the result file exists, the task status is "completed," the standard evaluation has been generated, or the user has selected a save directory; if the completion conditions are not met, subsequent steps are not marked as completed.

[0074] When a request contains both "query" and "execute" semantics, the system first returns confirmation of the current state before executing the structured action. This allows users to check whether the model, EPW, engine, and mesh meet expectations before execution.

[0075] For multi-user or multi-project environments, task identifiers, project identifiers, and results directory identifiers are stored separately. Results archives are associated with these three types of identifiers to prevent file overwriting when two projects use the same data type name or the same date.

[0076] In the standard evaluation output, source labels are set for standard clauses, scientific literature, simulated values, and operating instructions. Evaluation conclusions are only based on content with sources and context; natural language suggestions lacking sources are not included in the mandatory verification items.

[0077] In the simulation results display, the platform can show the most recent results, but the results directory, results time, and the actual engine are displayed simultaneously. When a user switches projects or reruns, the old results will not be automatically treated as new results for the current project.

[0078] If the agent cannot determine the building type, evaluation location, time, grid, or metric from the problem, the system can ask supplementary questions or return missing items. This process prioritizes ensuring complete task input and avoids guessing key parameters using a language model.

[0079] In this embodiment, knowledge retrieval, action verification, and result archiving can be performed by the same server or by multiple local modules; as long as the correspondence between node source, action protocol, task status, and result context is maintained, they all fall under the implementation methods of this invention.

[0080] By placing domain-specific knowledge, action protocols, sequence archiving, and evaluation criteria in the same task chain, this embodiment forms a continuous data relationship from user questions to verifiable results.

[0081] The above embodiments illustrate that the focus of protection of this invention is the technical connection between knowledge structure, constrained actions, project status and simulation results, rather than a specific large language model, interface color or voice service.

[0082] Functional graph retrieval results can also serve as the minimum context for the agent's response. When a user's question only involves a single function, the system does not force the addition of irrelevant nodes; when the question involves consecutive tasks, necessary preceding nodes are added based on the associated fields.

[0083] When parameter names appear in the response, the system prioritizes using the current value from the platform project status, and indicates whether the value is the current status, the default value, or the target value for this user request. These three distinctions are maintained in subsequent actions and result archiving.

[0084] The validation results for an operation can include types such as pass, missing preconditions, parameter out of bounds, control not found, and execution failure. Different types are written to different status fields, allowing users to determine whether the failure was due to comprehension issues, incomplete input, or simulation engine failure.

[0085] Results are archived by writing a file list according to the task steps and returning the actual error if file copying or saving fails. File names in the results directory include the project or task identifier, avoiding using dates or model names as unique identifiers alone.

[0086] When knowledge-based Q&A only returns a description, the system does not change the model, sky, materials, mesh, or engine; when structured actions change the project state, the system records the values ​​before and after the action to facilitate verification of whether the agent has modified as expected.

[0087] The functional knowledge, evidence knowledge, action protocols, task status, and result archiving described in this embodiment can be deployed as software modules or implemented on a single-machine platform; the data fields and source tags between modules should remain consistent. Table 1 shows the correspondence between functional nodes, tool actions, and boundaries. This correspondence enables the agent to simultaneously output "why this action is needed" and "the judgment condition for action completion" when generating actions. Table 2 shows the status and archiving fields of the simulated sequence.

[0088] Table 1. Correspondence between functional knowledge nodes and executable operations

[0089] Table 2. Status and Archive Fields of Simulated Sequences

[0090] The write-back relationship in this invention includes two directions: on the one hand, the project state provides the agent with information on the current model, sky, mesh, engine, and results; on the other hand, verified actions modify the project state and trigger the simulation. Text responses that have not been verified by the simulation software are not recorded as physical results.

[0091] When performing the model import action, the system first confirms the file format and path, and then loads the model into the project state; only after the model is successfully loaded can material and mesh actions continue. If model loading fails, subsequent actions are blocked, the task status is recorded as failed, and the error reason is returned.

[0092] When performing a sky switching action, the system first determines the required input for the sky type. CIE skies require date, time, and location; Perez skies require valid EPW or irradiance data; and measured HDR skies require HDR path, orientation, and calibration fields. If any field is missing, only the error status is updated; a regular image is not used to replace the physical sky.

[0093] When performing a working face action, the system first determines whether there are selectable reference faces in the current model. If a reference face is successfully selected, a mesh is generated based on the face boundary and normal. If the user only asks for instructions on how to set up the working face, only operation instructions are returned, and the project status is not changed.

[0094] When performing material actions, the system writes the material name, reflectivity, transmittance, specular ratio, and roughness into the material state and records the surface level assignment. Interface color serves only as identification information and cannot overwrite already saved material physical parameters.

[0095] The planning and parsing of the operating agent distinguishes between "running once" and "running sequentially at multiple time steps." A single task has only one computational step; a sequence task contains multiple time steps. Both use the same result archiving format, but sequence tasks additionally generate a summary of steps and step states.

[0096] When a user requests both parameter setting and simulation execution in the same round of instructions, the sequence of actions is as follows: parameter setting, status confirmation, task execution, saving results, and evaluation analysis. If the parameter setting action fails, the simulation execution action is not performed to avoid misleading results due to the use of old states.

[0097] The dialogue history during task execution is only used to understand the current request and generate subsequent suggestions. Old models, old skies, or old results appearing in the history must be distinguished from the current project state and cannot be overwritten simply because a parameter appeared in the history of the dialogue.

[0098] After the task is completed, the system can generate subsequent steps based on the results, such as opening the results directory, calling the solution for evaluation, or comparing multiple time points. Subsequent steps still require user selection or must conform to the automatic continuation flag in the task plan; they cannot be executed automatically indefinitely.

[0099] The result context described in this invention includes at least the model identifier, scene parameters, material status, mesh status, date, time, sky type, engine identifier, quality settings, and output directory. If any of these fields are missing, the result should be marked as having incomplete context.

[0100] Images, HDR, and CSV are different types of results. Images are used for visualization, HDR preserves luminance or radiance information, and CSV preserves point-by-point values ​​and context. The system does not replace CSV values ​​with PNG pixel colors, nor does it replace fisheye HDR values ​​with CSV values.

[0101] The standard evaluation of the solution only assesses results that have already been written into the project status. If the result is still running, the file does not exist, file parsing failed, or actual engine information is missing, the solution evaluation module should list the reasons why it cannot be evaluated.

[0102] The current status, version number, and deletion marker in the standard search affect the selection of provisions. The default query prioritizes current and non-deleted standards; when the user explicitly specifies the full number, historical versions can be retrieved, but historical versions should not be used without notification for current compliance conclusions.

[0103] In a research literature infographic, the title, author, journal, and year are used for source identification, while the abstract and conclusion serve as research evidence. Research evidence can support optimization directions or discussions, but it does not automatically change the scope of application of the standard provisions.

[0104] In a batch task, if the task completes in the first step but fails in the second, the summary file records the first step as "completed" and the second step as "failed," along with the failure information. Users can rerun the failed steps without having to rewrite the completed steps as incomplete.

[0105] When a user stops a task, the main process writes a cancellation request to the task status; the execution thread reads this status at a safety checkpoint and stops without overwriting the written results. Cancellation and failure are recorded separately to avoid mistakenly recording user stoppage as an engine malfunction.

[0106] In a cross-functional operation example, the user first asks "How to select a reference plane", and then requests "Select a floor slab and generate a grid". The former message only triggers the functional Q&A, while the latter message generates control actions; the actions include the reference plane control, the lifting distance, and the grid generation action.

[0107] In a cross-evidence evaluation example, a user first requests to query the office lighting regulations, and then requests to evaluate the current solution. The system uses the source of the regulations from the previous query as a verifiable context, but still rereads the simulation parameters and results from the current project status to avoid bringing old solution data into the new evaluation.

[0108] Because only question-and-answer sessions are possible when the tool field of the functional graph is empty or nonexistent, the agent will not generate an executable action for that node. This restriction ensures that "software can interpret" is consistent with "software can execute".

[0109] When the model service configuration changes, the agent's response model and embedding model can change, but the nodes of the knowledge graph, the entries in the standard library, and the physical input of the simulation software do not change due to the model service switch.

[0110] In this embodiment, the platform functional graph is a small, deterministic capability knowledge structure designed to provide accurate product context for the operating agent, rather than replacing a scientific literature graph or a building standards database.

[0111] In summary, this embodiment provides software operation semantics through a functional graph, evidence semantics through domain-specific knowledge services, and connects the agent and simulation software through structured actions and task states. If any necessary input is missing at any stage, the system outputs a missing condition or failure status, without substituting the actual simulation result with model-generated text.

[0112] The present invention also proposes an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method for designing an intelligent agent by embedding a knowledge graph in a light environment and integrating it with simulation software.

[0113] The memory in this application embodiment can be volatile memory or non-volatile memory, or it can include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM). It should be noted that the memory used in the methods described in this invention is intended to include, but is not limited to, these and any other suitable types of memory.

[0114] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., digital video disc (DVD), or a semiconductor medium (e.g., solid-state disk (SSD), etc.).

[0115] In implementation, each step of the above method can be completed by integrated logic circuits in the processor's hardware or by instructions in software. The steps of the method disclosed in the embodiments of this application can be directly implemented by a hardware processor, or by a combination of hardware and software modules in the processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method. To avoid repetition, detailed descriptions are omitted here.

[0116] It should be noted that the processor in the embodiments of this application can be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method embodiments can be completed by the integrated logic circuitry in the processor's hardware or by instructions in software form. The processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied as execution by a hardware decoding processor, or as a combination of hardware and software modules in the decoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above methods.

[0117] The above provides a detailed description of the method and system for embedding a knowledge graph into an optical environment to design an intelligent agent and integrating it with simulation software. Specific examples have been used to illustrate the principles and implementation methods of this invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this invention. Therefore, the content of this specification should not be construed as a limitation of this invention.

Claims

1. A method for designing intelligent agents by embedding knowledge graphs into optical environments and integrating them with simulation software, characterized in that, The method includes: Step 1: Establish a platform function map; use nodes to record software capabilities, use association fields to record related capabilities, use constraint fields to record prerequisites and applicable boundaries, and use tool fields to record executable operation entry points. Step 2: Establish domain-specific knowledge services; the scientific literature map and the building standards retrieval database respectively store scientific research evidence and standard evidence, and retain the source, version, article number, applicable conditions or literature information; Step 3: Perform natural language retrieval and intent parsing; the system extracts function, metric, model, sky, grid, engine, time and evaluation information from the user request, retrieves function nodes and one-hop related nodes, and then sends the retrieval context to the agent; Step 4: Generate and validate structured actions; the agent outputs questions and answers, interface actions, or simulated sequences; check the action type, control identifier, numerical range, file path, project status, and task prerequisites. Step 5: Perform simulation and archive results; the simulation software updates the project status according to actions, performs single or multi-time tasks, saves images, HDR, CSV, evaluation reports and metadata, and updates the task status at the end of each subtask. Step 6: Perform evidence evaluation; read the actual simulation context, retrieve the current standard provisions and scientific research evidence respectively, and output the indicator verification, basis, evidence boundaries and review suggestions.

2. The method according to claim 1, characterized in that, The platform functional map includes at least the following nodes: model and example room, sky and measured HDR, EPW and solar trajectory, calculation engine, calculation parameters, 3D view, surface-level material, calculation grid, instantaneous results, annual indicators, glare indicators, scheme standard evaluation, and model service settings. The platform functional map retrieval process employs at least one scoring method among natural language terminology, title matching, keyword matching, and capability summary matching. A limited number of main nodes are selected based on the scoring results, and then a one-hop related node is added from the associated fields of the main nodes.

3. The method according to claim 1, characterized in that, The scientific literature map stores the title, author, journal, year, abstract, conclusion, and source information of the literature; the building standards retrieval database stores the standard name, version, clause number, specified content, applicable conditions, threshold, and source document; the two types of knowledge are identified separately in the search results, citation results, and evaluation output.

4. The method according to claim 1, characterized in that, The context of the agent includes at least the functional node identifier, functional name, functional summary, usage boundaries, available tools, current project status, and related functional nodes; when the same request involves both knowledge retrieval and simulation operation, the context retains the software function explanation and evidence source, respectively.

5. The method according to claim 4, characterized in that, The intelligent agent output is represented by a structured task object, which includes at least an intent, a standardized instruction, a task state, an interface action, subsequent steps, and a confidence level; the interface action is restricted to a predefined set of controls, a set of action types, and a range of values.

6. The method according to claim 1, characterized in that, The simulation sequence includes at least two of the following: date, time sequence, sky type, computing engine, mesh settings, whether to generate fisheye HDR, whether to generate glare results, whether to perform standard evaluation of the scheme, and result storage directory. When executing the simulation sequence, the user cancellation status is checked before each time or before each subtask begins. After each subtask ends, an independent result directory is created to save images, HDR, pseudo-color images, mesh data, CSV files, as well as model, sky, material, mesh, time, and actual engine information.

7. The method according to claim 1, characterized in that, It reads location, climate, building type, evaluation site, geometry, materials, window surfaces, work surfaces, and simulation results, matches them with current standard provisions and scientific research evidence, and outputs standard applicability, provision basis, indicator results, mandatory provision verification, uncertainties, and review suggestions.

8. The method according to claim 1, characterized in that, When a received request is identified as a function inquiry or current status query, a description or status is returned without starting the simulation; when a received request is identified as a task to be executed, the system supports the user issuing a stop command; the task status includes at least continue, complete, cancel, and fail.

9. A system for designing intelligent agents by embedding knowledge graphs into optical environments and integrating them with simulation software, characterized in that, The system includes: Platform Function Map Building Module: Used to build the platform function map; it records software capabilities with nodes, related capabilities with association fields, preconditions and applicable boundaries with constraint fields, and executable operation entry points with tool fields; Domain-specific knowledge service establishment module: used to establish domain-specific knowledge services; the scientific literature map and the building standard retrieval database respectively store scientific research evidence and standard evidence, and retain the source, version, article number, applicable conditions or literature information; The agent parsing module is used for natural language retrieval and intent parsing. The system extracts function, metric, model, sky, grid, engine, time and evaluation information from user requests, retrieves function nodes and one-hop related nodes, and then sends the retrieval context to the agent. Action constraint verification module: used to generate and verify structured actions; the agent outputs questions and answers, interface actions or simulated sequences; checks action type, control identifier, numerical range, file path, project status and task prerequisites; Simulation Task Module: Used to perform simulations and archive results; the simulation software updates the project status by action, executes single or multi-time tasks, saves images, HDR, CSV, evaluation reports and metadata, and updates the task status at the end of each subtask; The scheme evaluation module is used to perform evidence evaluation; it reads the actual simulation context, retrieves the current standard provisions and scientific research evidence respectively, and outputs the indicator verification, basis, evidence boundaries and review suggestions.

10. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1-8.