Intelligent application generation method and system based on knowledge graph and intention driving
By using a knowledge graph-based and intent-driven intelligent application generation method, and leveraging an AI application planner for reverse chain derivation and multimodal correction, the problem of insufficient intent understanding capability in existing technologies is solved, thereby improving the determinism and reliability of the generated results.
Patent Information
- Application Number
- CN202511078501.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-01
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2045-08-01
AI Technical Summary
Existing technologies lack the ability to understand intent, deep process planning, and reliability. They cannot autonomously plan the logically optimal execution path, and the generated results lack determinism and reliability.
By using a knowledge graph-based and intent-driven intelligent application generation method, the system obtains the user's natural language intent, utilizes an AI application planner for reverse chain deduction and multimodal correction, generates an execution plan and corrects the application graph, ensuring logical verification and reliability.
It enhances the ability to understand intent, improves the certainty and reliability of generated results, reduces the risk of errors in generated results, and ensures the logical completeness and reliability of output results.
Smart Images

Figure CN120848856A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of artificial intelligence technology, specifically relating to a method and system for generating intelligent applications based on knowledge graphs and intent-driven approaches. Background Technology
[0002] In recent years, with the continuous development of artificial intelligence technology, how to automatically generate complex intelligent applications based on the user's advanced intent has become one of the core goals pursued by the industry. In existing technologies, the following approaches are mainly explored: (1) Visual Workflow Systems with manual orchestration: represented by AWS Step Functions, n8n, or Zapier, where developers manually design a Directed Acyclic Graph (DAG) consisting of multiple tasks through a graphical interface; (2) Simple task generation based on large language models: represented by various AI programming assistants, which understand the user's natural language instructions and call one or more tools to complete a relatively simple task; (3) Declarative query engines: represented by SQL, where the user "declares" what they want to do, and the system plans "how to do it"; (4) "Process-driven" framework based on multi-agent collaboration: represented by Microsoft AutoGen, CrewAI, and LangChain. LangGraph, representing an explicit state graph control flow technique, is a typical example. Developers predefine a set of agents with different roles (such as planners, coders, and testers) and manually design the collaboration process between different roles. When a user makes an intention, the system runs through this fixed collaboration process, and multiple agents complete the task step by step through multiple rounds of interaction.
[0003] However, the above methods all have corresponding shortcomings, such as: (1) relying entirely on manual design and lacking the ability to understand intent: the system cannot understand high-level business objectives and autonomously plan the technical steps required to achieve the objectives based on the business objectives; (2) lacking in-depth process planning capabilities and reliability: it cannot solve the complex process planning problem of "how the whole system should go", and is prone to illusion when facing complex instructions, and the generated results lack certainty; (3) strong limitations: it deals with structured and unambiguous language, and the intent is limited to data query; (4) lacking deterministic logical verification and unable to guarantee reliability: the behavior of the entire system is dominated by the preset dialogue process or state diagram, and cannot start from the final goal declared by the user, dynamically and autonomously plan a new and logically optimal execution path, and the logic and code generated in the collaboration process lack a mandatory verification link, and cannot guarantee the reliability and logical completeness of the output results, which poses corresponding risks.
[0004] Therefore, given the aforementioned shortcomings, how to provide an effective technical solution to address the problems of lack of intent understanding, deep process planning capabilities and reliability, deterministic logic verification, inability to guarantee reliability, and strong limitations in existing technologies has become an urgent problem to be solved in existing technologies. Summary of the Invention
[0005] The purpose of this invention is to provide a method and system for generating intelligent applications based on knowledge graphs and intent-driven approaches, in order to solve the aforementioned problems existing in the prior art.
[0006] In order to achieve the above object, the present invention adopts the following technical solutions: In a first aspect, the present invention provides a method for generating intelligent applications based on knowledge graphs and intent-driven approaches, comprising the following steps: Step 1: Obtain the user's natural language intent, identify and extract entities from the natural language intent to obtain the initial intent and initial entities; Step 2: Anchor the initial intent and initial entity based on the pre-built domain knowledge graph to obtain a declarative question, which includes an initial state and a target state; Step 3: Using a pre-built AI application planner, the domain knowledge graph is searched based on the target state to obtain operators. Based on the operators and the initial state, the target state is deduced in a reverse chain to obtain an execution plan, which includes an operator execution sequence. Step 4: Transform the execution plan to obtain a task dependency graph, embed the task dependency graph into the pre-built complete application graph, and perform application correction on the complete application graph based on the multimodal correction method to obtain the initial application graph; Step 5: Obtain the user's modification instructions, and execute steps 3 and 4 based on the modification instructions to obtain the optimal execution plan and update the application graph.
[0007] In one possible design, natural language intent is identified and entity extraction is performed to obtain initial intent and initial entities, including: The natural language intent is cleaned based on the preset cleaning rules to obtain the cleaned natural language intent. The cleaned natural language intent is denoised to obtain the denoised natural language intent, and the denoised natural language intent is standardized to obtain the preprocessed natural language intent. The preprocessed natural language intent is segmented to obtain natural language words; LLM is used to perform intent recognition and entity extraction on natural language words to obtain the initial intent and initial entities.
[0008] In one possible design, the initial intent and initial entities are anchored based on a pre-built domain knowledge graph, resulting in declarative questions, including: Acquire knowledge graph data within the domain, the knowledge graph data including a capability operator library, operator reduction, and entity and logical constraints, identify the capability operator library, operator reduction, and entity and logical constraints, and obtain graph entities and connection relationships; Constructing domain knowledge graphs based on graph entities and connections; The initial intent and initial entities are matched with the domain knowledge graph to obtain declarative questions.
[0009] In one possible design, the multimodal correction method includes natural language processing, graphical operations, and / or code editing operations; the application correction of the complete application graph based on the multimodal correction method to obtain the initial application graph includes at least one of the following steps: The complete application graph is modified based on natural language processing to obtain the first initial application graph. The complete application graph is modified based on graphical operations to obtain the second initial application graph; The complete application graph is modified based on code editing operations to obtain the third initial application graph.
[0010] In one possible design, steps three and four are executed based on the modified instructions, including: The modification instructions are cleaned and denoised to obtain denoised modification instructions. The denoised modification instructions are standardized to obtain standardized modification instructions. The standardized modification instructions are segmented and grammatically corrected to obtain preprocessed modification instructions. The preprocessed modification instructions are translated using a unified translator to obtain change data, which includes changes to the target state and changes to formal constraints. Perform steps three and four based on the changed data.
[0011] In one possible design, the AI application planner is built based on an AI planning algorithm.
[0012] In one possible design, the execution plan is obtained by performing a reverse chain derivation of the target state based on the operator and the initial state, including: By reverse-engineering the target state, the first operator is obtained; The domain knowledge graph is searched based on the preconditions of the first operator to obtain new sub-targets; By reverse-engineering the new sub-objective, the second operator is obtained; Based on the preconditions of the second operator, the domain knowledge graph is searched to obtain a new sub-target; Repeat the above steps until the iteration termination condition is reached to obtain the execution plan. The iteration termination condition is the prerequisite condition that the conditions in the initial state satisfy the target state.
[0013] Secondly, the present invention provides an intelligent application generation system based on knowledge graphs and intent-driven approaches, comprising: The intent understanding module is used to obtain the user's natural language intent, identify the natural language intent and extract entities to obtain the initial intent and initial entities; The knowledge graph anchoring module is used to anchor the initial intent and initial entity based on the pre-built domain knowledge graph to obtain a declarative question, which includes an initial state and a target state. The AI application planning module is used to use a pre-built AI application planner to search the domain knowledge graph based on the target state to obtain operators, and to perform a reverse chain derivation of the target state based on the operators and the initial state to obtain an execution plan, wherein the execution plan includes an operator execution sequence. The application graph generation module is used to transform the execution plan to obtain a task dependency graph, embed the task dependency graph into a pre-built complete application graph, and perform application correction on the complete application graph based on a multimodal correction method to obtain an initial application graph. The replanning correction module is used to obtain the user's modification instructions. Based on the understanding of the execution intent of the modification instructions, knowledge graph anchoring, AI application planning and application graph generation steps, the optimal execution plan and updated application graph are obtained.
[0014] Thirdly, the present invention provides a computer device comprising a memory, a processor, and a transceiver that are sequentially and communicatively connected, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program and execute the intelligent application generation method based on knowledge graph and intent-driven as described in any of the above.
[0015] Fourthly, the present invention provides a computer program product containing instructions that, when the instructions are executed on a computer, cause the computer to perform the intelligent application generation method based on knowledge graphs and intent-driven methods as described in any of the preceding claims.
[0016] The beneficial effects of the present invention are as follows: (1) This invention discloses a method and system for generating intelligent applications based on knowledge graphs and intent-driven approaches. By performing preliminary identification and entity extraction of the user's natural language intent and using an AI application planner to obtain an execution plan, the intent understanding ability is improved, and the application can be generated without manual design. (2) This invention processes declarative problems through an AI application planner and performs application correction through a multimodal correction method, thereby improving the certainty of the generated results and avoiding errors caused by illusions. (3) The natural language intent obtained in this invention is unstructured and ambiguous natural language, and there are no limitations on the type of natural language intent obtained. (4) In this invention, a domain knowledge graph is used to perform mandatory verification on the generated declarative questions, ensuring the logical verification and reliability of the output results, reducing the probability of risk occurrence, and facilitating application and promotion. Attached Figure Description
[0017] Figure 1 A flowchart of the intelligent application generation method provided in the first aspect of the present invention; Figure 2 A block diagram of the intelligent application generation system provided in the second aspect of the present invention. Detailed Implementation
[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in conjunction with the accompanying drawings and descriptions of the embodiments or the prior art. Obviously, the following description of the structure of the accompanying drawings is only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. It should be noted that the description of these embodiments is for the purpose of helping to understand the present invention, but does not constitute a limitation of the present invention.
[0019] It should be understood that although the terms first, second, etc., may be used herein to describe various units, these units should not be limited by these terms. These terms are only used to distinguish one unit from another. For example, a first unit may be referred to as a second unit, and similarly, a second unit may be referred to as a first unit, without departing from the scope of the exemplary embodiments of the invention.
[0020] It should be understood that the term "and / or" that may appear in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, B exists alone, and A and B exist simultaneously. The term " / and" that may appear in this document describes another relationship between related objects, indicating that two relationships can exist. For example, A / and B can mean: A exists alone, and A and B exist alone. In addition, the character " / " that may appear in this document generally indicates that the related objects before and after it are in an "or" relationship.
[0021] Example: like Figure 1 As shown, the first aspect of this embodiment provides a method for generating intelligent applications based on knowledge graphs and intent-driven approaches. This method can be executed, but is not limited to, by a computer device or virtual machine with certain computing resources, such as a personal computer or smartphone, or by a virtual machine. The intelligent application generation method includes, but is not limited to, the following steps: S1. Obtain the user's natural language intent, identify and extract entities from the natural language intent to obtain the initial intent and initial entities; For example, if a user's natural language intent is "Analyze this meeting recording, summarize Zhang San's points, and give me a Word document of the minutes," then the initial intents are "analyze the recording," "summarize the points," and "generate minutes"; the initial entities are "Zhang San" and "Word." Specifically, in step S1, the natural language intent is identified and entities are extracted to obtain the initial intent and initial entities, including: S11. Perform data cleaning on the natural language intent based on preset cleaning rules to obtain the cleaned natural language intent; The preset cleaning rules are manually set cleaning rules, including but not limited to handling missing data and handling abnormal data.
[0022] S12. Denoise the cleaned natural language intent to obtain the denoised natural language intent, and standardize the denoised natural language intent to obtain the preprocessed natural language intent. The denoising process includes preprocessing the natural language intent to remove irrelevant punctuation and modal particles, and standardizing the denoised natural language intent to reduce the impact of large discrepancies on the processing results in subsequent processing.
[0023] S13. Perform word segmentation on the preprocessed natural language intent to obtain natural language words; S14. Use LLM (Large Language Model) to perform intent recognition and entity extraction on natural language words to obtain initial intent and initial entities.
[0024] S2. Anchor the initial intent and initial entity based on the pre-built domain knowledge graph to obtain a declarative question, which includes an initial state and a target state; In this embodiment, the process of anchoring the initial intent and initial entity based on the pre-built domain knowledge graph includes, for example, matching operators such as ASR (speech-to-text) and SpeakerDiarization in the domain knowledge graph based on "analyzing the recording"; matching the TopicSummary operator in the domain knowledge graph based on "summarizing the viewpoint"; and matching the FormatConversion operator in the domain knowledge graph based on "generating the minutes", with the target format being docx.
[0025] The initial state of the resulting declarative problem is: { has(file: "meeting.wav")}; the target state is: { has(file: "*.docx"), contains(file, content_from(TopicSummary)),summary_target("Zhang San")}.
[0026] Specifically, in step S2, the initial intent and initial entities are anchored based on the pre-built domain knowledge graph to obtain declarative questions, including: S21. Obtain knowledge graph data within the domain, wherein the knowledge graph data includes a capability operator library, operator reduction and entity and logical constraints, identify the capability operator library, operator reduction and entity and logical constraints, and obtain graph entities and connection relationships; S22. Construct a domain knowledge graph based on graph entities and connections; S23. Match the initial intent and initial entities with the domain knowledge graph to obtain the declarative question.
[0027] It should be noted that each capability operator in the knowledge graph data of this embodiment has a formalized operator specification. This operator specification strictly defines the preconditions and effects of the target, providing a strict "physical law" for each step of the subsequent AI application planner's deduction, namely the operator specification. Furthermore, in this embodiment, the process of anchoring the initial intent and the initial entity is not a simple semantic matching, but rather uses the deterministic rules of the domain knowledge graph to perform mandatory verification on the fuzzy and potentially illusory preliminary results generated by intent recognition and entity extraction. When a mismatch or logical contradiction is found, it will be corrected or refined to ensure the logical completeness and accuracy of the declarative question.
[0028] S3. Using a pre-built AI application planner, the domain knowledge graph is searched based on the target state to obtain operators. Based on the operators and the initial state, the target state is deduced in a reverse chain to obtain an execution plan, which includes an operator execution sequence. Furthermore, the AI application planner is built on AI planning algorithms, and the AI application planners used include, but are not limited to, planners based on Planning Domain Definition Language (PDDL) or Hierarchical Task Network (HTN) planners.
[0029] In step S3, the target state is derived by a reverse chain derivation based on the operator and the initial state to obtain the execution plan, which includes the following steps: S31. The first operator is obtained by reverse derivation of the target state; S32. Based on the preconditions of the first operator, search the domain knowledge graph to obtain new sub-targets; S33. The second operator is obtained by reverse derivation of the new sub-objective; S34. Based on the preconditions of the second operator, search the domain knowledge graph to obtain a new sub-target; S35. Repeat the above steps until the iteration termination condition is reached to obtain the execution plan. The iteration termination condition is the prerequisite condition that the conditions in the initial state satisfy the target state.
[0030] For example, if the target state is has("*.docx"), performing a reverse chain of reasoning on the target state yields the first operator, FormatConversion. The precondition for FormatConversion is input in Text format, which is a new sub-target. Then, based on this new sub-target, we find the operator TopicSummary. TopicSummary generates input in Text format, and its precondition is that it requires text labeled with the speaker's name (LabeledText), thus creating a new sub-target. Based on this new sub-target, we find the operator SpeakerDiarization. SpeakerDiarization generates LabeledText, and its precondition is that it requires input in Audio format and the complete text (FullText).
[0031] At this point, the initial state includes Audio, and FullText can be generated by the ASR operator. The prerequisite for the ASR operator is Audio, which satisfies the iteration termination condition. The execution plan is [ASR, SpeakerDiarization, TopicSummary, FormatConversion].
[0032] It should be noted that by continuously analyzing the preconditions of the target and searching for operators in the domain knowledge graph that satisfy these conditions, the AI application planner makes the logical foundation of "reverse chain deduction" more solid, and at the same time makes the core position of the domain knowledge graph as a "world rule manual" more prominent.
[0033] S4. Transform the execution plan to obtain a task dependency graph, embed the task dependency graph into the pre-built complete application graph, and perform application correction on the complete application graph based on the multimodal correction method to obtain the initial application graph; The task dependency graph is an executable DAG graph, and the executable DAG graph is serialized into a JSON file; the multimodal correction method includes at least one of natural language processing, graphical operation and / or code editing operation; Specifically, in step S4, the complete application graph is modified based on the multimodal modification method to obtain the initial application graph, which includes at least one of the following steps: S41. Apply natural language processing to the complete application graph to obtain the first initial application graph; S42. Apply the graphical operation to the complete application graph to obtain the second initial application graph; S43. Based on the code editing operation, the complete application graph is modified to obtain the third initial application graph.
[0034] S5. Obtain the user's modification instructions, and execute steps S3 to S4 based on the modification instructions to obtain the optimal execution plan and update the application graph.
[0035] In this embodiment, the modification instructions include, but are not limited to, natural language instructions, graphical interface operation instructions, or code editing instructions. For example, the modification instruction is "before summarizing, perform spelling and grammar correction on the text."
[0036] Specifically, in step S5, steps S3 to S4 are executed based on the modification instruction, including: S51. Perform data cleaning and noise reduction on the modification instructions to obtain the noise-reduced modification instructions; S52. Standardize the noise-reduced modification instructions to obtain standardized modification instructions; S53. Perform word segmentation and syntax correction on the standardized modification instructions to obtain preprocessed modification instructions; S54. Use a unified translator to translate the preprocessed modification instructions to obtain change data, which includes changes to the target state and changes to formal constraints; For example, the formal constraint changes to {execute(TextCorrection) after execute(SpeakerDiarization), execute(TextCorrection) before execute(TopicSummary)}.
[0037] S55. Perform steps three to four based on the changed data.
[0038] In this embodiment, after receiving the changed data, the AI application planner re-plans the path. The knowledge graph contains the `TextCorrection` operator, whose precondition is `Text` and whose effect is also `Text`. It inserts this operator into the plan, generating a new optimal execution plan: [ASR, SpeakerDiarization, TextCorrection, TopicSummary, FormatConversion], and generates an updated application graph based on the new optimal execution plan.
[0039] It should be noted that the correction method proposed in this embodiment is "replanning," which is not a manual or "patching" modification of the already generated application graph. Manual and "patching" modifications are prone to disrupting the overall logical consistency and optimality of the application. In this embodiment, a unified translator is used to translate the modification instructions to obtain changes to the target state or formal constraints, and trigger a completely new end-to-end planning process. This ensures that the modified application graph has complete, self-consistent, and overall optimal logic, which greatly improves the maintainability and reliability of the application throughout its entire lifecycle.
[0040] Based on the above disclosure, the domain knowledge graph in this invention is not a passive data source, but actively and forcibly anchors the identified intents and entities, and provides strict operator specifications for the deduction of the AI application planner, improving robustness, while ensuring the logical reliability of the final output application. This invention enables the capability to leap from orchestration to planning, and its essence is "Planning & Reasoning" to achieve a qualitative change from passive construction to active planning.
[0041] like Figure 2 As shown, the second aspect of this embodiment provides an intelligent application generation system based on knowledge graphs and intent-driven methods, including: The intent understanding module is used to obtain the user's natural language intent, identify the natural language intent and extract entities to obtain the initial intent and initial entities; The knowledge graph anchoring module is used to anchor the initial intent and initial entity based on the pre-built domain knowledge graph to obtain a declarative question, which includes an initial state and a target state. The AI application planning module is used to use a pre-built AI application planner to search the domain knowledge graph based on the target state to obtain operators, and to perform a reverse chain derivation of the target state based on the operators and the initial state to obtain an execution plan, wherein the execution plan includes an operator execution sequence. The application graph generation module is used to transform the execution plan to obtain a task dependency graph, embed the task dependency graph into a pre-built complete application graph, and perform application correction on the complete application graph based on a multimodal correction method to obtain an initial application graph. The replanning correction module is used to obtain the user's modification instructions. Based on the understanding of the execution intent of the modification instructions, knowledge graph anchoring, AI application planning and application graph generation steps, the optimal execution plan and updated application graph are obtained.
[0042] The working process, working details, and technical effects of the intelligent application generation system provided in the second aspect of this embodiment can be found in the intelligent application generation method described in the first aspect, and will not be repeated here.
[0043] This third aspect of the embodiment provides a computer device, including a memory, a processor, and a transceiver sequentially and communicatively connected. The memory stores a computer program, the transceiver sends and receives messages, and the processor reads the computer program and executes the intelligent application generation method as described in the first aspect. Specifically, the memory may include, but is not limited to, random-access memory (RAM), read-only memory (ROM), flash memory, first-in-first-out (FIFO) memory, and / or first-in-last-out (FILO) memory, etc.; the processor may include, but is not limited to, a microprocessor of the STM32F105 series. Furthermore, the computer device may also include, but is not limited to, a power supply module, a display screen, and other necessary components.
[0044] The working process, working details and technical effects of the aforementioned computer device provided in the third aspect of this embodiment can be found in the intelligent application generation method described in the first aspect, and will not be repeated here.
[0045] The fourth aspect of this embodiment provides a computer program product, including a computer program or instructions, which, when executed by a computer, are used to implement the intelligent application generation method as described in the first aspect.
[0046] The working process, working details, and technical effects of the aforementioned computer program product provided in this embodiment can be found in the intelligent application generation method described in the first aspect, and will not be repeated here.
[0047] Finally, it should be noted that the above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. 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 intelligent applications based on knowledge graphs and intent-driven approaches, characterized in that, The steps include: Step 1: Obtain the user's natural language intent, identify and extract entities from the natural language intent to obtain the initial intent and initial entities; Step 2: Anchor the initial intent and initial entity based on the pre-built domain knowledge graph to obtain a declarative question, which includes an initial state and a target state; Step 3: Using a pre-built AI application planner, the domain knowledge graph is searched based on the target state to obtain operators. Based on the operators and the initial state, the target state is deduced in a reverse chain to obtain an execution plan, which includes an operator execution sequence. Step 4: Transform the execution plan to obtain a task dependency graph, embed the task dependency graph into the pre-built complete application graph, and perform application correction on the complete application graph based on the multimodal correction method to obtain the initial application graph; Step 5: Obtain the user's modification instructions, and execute steps 3 and 4 based on the modification instructions to obtain the optimal execution plan and update the application graph.
2. The method for generating intelligent applications based on knowledge graphs and intent-driven approaches according to claim 1, characterized in that, Natural language intent is identified and entities are extracted to obtain initial intent and initial entities, including: The natural language intent is cleaned based on the preset cleaning rules to obtain the cleaned natural language intent. The cleaned natural language intent is denoised to obtain the denoised natural language intent, and the denoised natural language intent is standardized to obtain the preprocessed natural language intent. The preprocessed natural language intent is segmented to obtain natural language words; LLM is used to perform intent recognition and entity extraction on natural language words to obtain the initial intent and initial entities.
3. The method for generating intelligent applications based on knowledge graphs and intent-driven approaches according to claim 1, characterized in that, Anchoring initial intents and entities based on pre-built domain knowledge graphs yields declarative questions, including: Acquire knowledge graph data within the domain, the knowledge graph data including a capability operator library, operator reduction, and entity and logical constraints, identify the capability operator library, operator reduction, and entity and logical constraints, and obtain graph entities and connection relationships; Constructing domain knowledge graphs based on graph entities and connections; The initial intent and initial entities are matched with the domain knowledge graph to obtain declarative questions.
4. The method for generating intelligent applications based on knowledge graphs and intent-driven approaches according to claim 1, characterized in that, The multimodal correction method includes natural language processing, graphical operations, and / or code editing operations; the application correction of the complete application graph based on the multimodal correction method to obtain the initial application graph includes at least one of the following steps: The complete application graph is modified based on natural language processing to obtain the first initial application graph. The complete application graph is modified based on graphical operations to obtain the second initial application graph; The complete application graph is modified based on code editing operations to obtain the third initial application graph.
5. The method for generating intelligent applications based on knowledge graphs and intent-driven approaches according to claim 1, characterized in that, Based on the modified instructions, steps three and four are executed, including: The modification instructions are cleaned and denoised to obtain denoised modification instructions. The denoised modification instructions are standardized to obtain standardized modification instructions. The standardized modification instructions are segmented and grammatically corrected to obtain preprocessed modification instructions. The preprocessed modification instructions are translated using a unified translator to obtain change data, which includes changes to the target state and changes to formal constraints. Perform steps three and four based on the changed data.
6. The method for generating intelligent applications based on knowledge graphs and intent-driven approaches according to claim 1, characterized in that, The AI application planner is built based on AI planning algorithms.
7. The method for generating intelligent applications based on knowledge graphs and intent-driven approaches according to claim 1, characterized in that, The execution plan is obtained by performing a reverse chain derivation of the target state based on the operators and the initial state, including: By reverse-engineering the target state, the first operator is obtained; The domain knowledge graph is searched based on the preconditions of the first operator to obtain new sub-targets; By reverse-engineering the new sub-objective, the second operator is obtained; Based on the preconditions of the second operator, the domain knowledge graph is searched to obtain a new sub-target; Repeat the above steps until the iteration termination condition is reached to obtain the execution plan. The iteration termination condition is the prerequisite condition that the conditions in the initial state satisfy the target state.
8. A knowledge graph-based and intent-driven intelligent application generation system, used to implement the method of any one of claims 1 to 7, characterized in that, include: The intent understanding module is used to obtain the user's natural language intent, identify the natural language intent and extract entities to obtain the initial intent and initial entities; The knowledge graph anchoring module is used to anchor the initial intent and initial entity based on the pre-built domain knowledge graph to obtain a declarative question, which includes an initial state and a target state. The AI application planning module is used to use a pre-built AI application planner to search the domain knowledge graph based on the target state to obtain operators, and to perform a reverse chain derivation of the target state based on the operators and the initial state to obtain an execution plan, wherein the execution plan includes an operator execution sequence. The application graph generation module is used to transform the execution plan to obtain a task dependency graph, embed the task dependency graph into a pre-built complete application graph, and perform application correction on the complete application graph based on a multimodal correction method to obtain an initial application graph. The replanning correction module is used to obtain the user's modification instructions. Based on the understanding of the execution intent of the modification instructions, knowledge graph anchoring, AI application planning and application graph generation steps, the optimal execution plan and updated application graph are obtained.
9. A computer device, characterized in that, The device includes a memory, a processor, and a transceiver that are sequentially and communicatively connected. The memory is used to store computer programs, the transceiver is used to send and receive messages, and the processor is used to read the computer programs and execute the intelligent application generation method based on knowledge graphs and intent-driven methods as described in any one of claims 1 to 7.
10. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or the instructions are executed by the computer, they implement the intelligent application generation method based on knowledge graph and intent-driven as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Query method integrating AI large model and knowledge graph
CN118916499A
Knotarization intelligent question and answer customer service method and system based on knowledge graph
CN119938816A
Dynamically evolving cognitive architecture system based on a natural language intent interpreter
US20140380285A1
Natural language interaction based data analytics
US20210209168A1
Natural language processing systems and methods for intent classification of speech transcription
US20250191581A1
Cited By
Industrial APP generation method and system
CN121116242A