Method and device for intelligently generating cue word

By converting the user's interactive instruction information into structured instruction information, the problem that the big model is difficult to understand the user's intentions is solved, and users can obtain more satisfactory feedback results.

CN119398000APending Publication Date: 2025-02-07LONGTEL INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411517611.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

The prior art is difficult for the big model to fully understand the user's intentions, resulting in the feedback results obtained by the user being unsatisfied.

Method used

By obtaining the user's interactive instruction information, retrieval of memory information, generating a planning conversion plan, and converting the interactive instruction information into structured instruction information, so that the big model can more easily understand the user's intentions.

Benefits of technology

The big model is implemented to fully understand user intentions and users can obtain more needed feedback results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119398000A_ABST
    Figure CN119398000A_ABST
Patent Text Reader

Abstract

The invention provides a method and a device for intelligently generating cue words, belongs to the technical field of cue word engineering, and is used for solving the problem that the cue word engineering in related technologies is difficult to enable a large model to fully understand user intentions. The interaction instruction information of the user can be converted into the structured instruction information which is easier to understand by the large model, and the structured instruction information is determined based on the related memory information, so that the intention of the user can be better reflected, the intention of the user can be more fully understood by the large model, and the user experience is improved. And thus, a user can obtain more required feedback results from a large model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of prompt word engineering, and in particular to a method and device for intelligently generating prompt words. Background Art

[0002] With the development and widespread application of big model technology, how to better achieve interaction with big models has become an important research topic in the field of big models, and prompt word engineering has emerged. The general purpose of prompt word engineering is to analyze the text or context information input by the user, predict and provide the most likely subsequent words or phrases to help users quickly complete input or generate high-quality text content. Of course, helping users quickly complete input and generate high-quality text content can make the text sent by users to big models higher in quality, but it is of limited help to the big model in fully understanding the user's intentions. Summary of the invention

[0003] The present application provides a method and device for intelligently generating prompt words, which is conducive to the large model to fully understand the user's intention, thereby facilitating the user to obtain more needed feedback results from the large model.

[0004] In a first aspect, the present application provides a method for intelligently generating prompt words. The method comprises: Obtaining interactive command information sent by the user; Retrieving the memory information related to the interactive instruction information; Generate a planning conversion plan according to the interactive instruction information and related memory information; Structured instruction information is generated according to the planning conversion scheme and the interactive instruction information, and the structured instruction information is used to be sent to the large model.

[0005] By adopting the above technical solution, the user's interactive command information can be converted into structured command information that is easier for the big model to understand, and the structured command information is determined based on relevant memory information and can better reflect the user's intention, which is conducive to the big model to more fully understand the user's intention, and then help the user obtain more needed feedback results from the big model.

[0006] Furthermore, the relevant memory information of the interaction instruction information is retrieved including: Based on the interaction instruction information, relevant memory information is retrieved from a pre-built memory database, wherein the memory database includes interaction memory examples, and the interaction memory examples include historical interaction instructions, historical structured instructions, historical large model feedback, and historical user feedback. The relevant memory information is interaction memory examples in which the similarity between the historical interaction instructions and the interaction instruction information is higher than a similarity threshold.

[0007] Furthermore, the method for constructing the memory database includes: Acquire historical interaction data, the historical interaction data including historical interaction instructions, historical structured instructions, historical large model feedback and historical user feedback, the historical interaction data carrying a timestamp and a user identifier; Determine the tendency data of each historical interaction data according to the historical big model feedback and the historical user feedback, wherein the tendency data represents the degree of understanding of the big model to the user intention corresponding to the historical interaction instruction; Determine that historical interaction data whose distance between the tendency data and the negative limit or the positive limit of the preset tendency range is less than a preset distance is typical historical data; For each user identifier, the typical historical data and the corresponding tendency data are substituted into a pre-constructed short-term forgetting curve model to determine the memory state data of each typical historical data, wherein the short-term forgetting curve model includes a memory state base value and a forgetting ratio curve, and the memory state base value of the historical interaction data is positively correlated to the absolute value of the difference between the corresponding tendency data and the median of the tendency range; storing the historical interaction data whose memory state data is higher than a preset memory ratio threshold as a short-term memory example in a short-term memory database, and updating the memory state data of the short-term memory example in real time; Determine that the historical interaction data whose user identification and historical structured instructions are the same and whose similarity between historical large model feedback and historical user feedback is higher than a preset similarity is the same historical interaction data; if the time proportion of the historical interaction data in the short-term memory database within a preset time length is higher than a preset time proportion threshold, store the historical interaction data as a long-term memory example in the long-term memory database, and memorize the long-term forgetting curve model to update the memory state data of the long-term memory example; The short-term memory database and the long-term memory database constitute the memory database, and the long-term memory examples and the short-term memory examples constitute the interactive memory examples as a whole.

[0008] Further, the determining of the tendency data of each historical interaction data according to the historical large model feedback and the historical user feedback includes: Analyze historical user feedback to determine whether the historical user feedback contains subsequent interaction instructions within a preset interaction interval; If not, determining the propensity data to be a preset propensity value; If so, the feedback consistency information, feedback tendency information and feedback emotion information of the first subsequent interaction instruction within the preset interaction interval are analyzed. The feedback consistency information reflects whether the historical user feedback is consistent with the historical large model feedback. The feedback tendency information reflects whether the historical user feedback is positive feedback or negative feedback to the historical large model feedback. The feedback emotion information reflects the emotional color carried by the historical user feedback. The tendency data is determined based on the feedback consistency information, feedback tendency information and feedback emotion information.

[0009] Furthermore, generating a planning conversion scheme according to the interactive instruction information and related memory information includes: Substituting the interactive instruction information into a pre-built graphical thinking chain model to obtain multiple intention interpretation paths, and determining multi-dimensional scoring standard data for each intention interpretation path; Determine the fit data of each intention interpretation path and related memory information; Determine the evaluation value data of each intention interpretation path according to the scoring standard data and the fitting degree data; Determine the intention interpretation path with the highest evaluation value data as the optimal interpretation path, The planning conversion scheme is determined according to the optimal interpretation path.

[0010] Furthermore, the scoring standard data includes efficiency data, cost data and risk data.

[0011] Further, determining the evaluation value data of each intention interpretation path according to the scoring standard data and the fitting degree data includes: for each intention interpretation path, Determine a path scoring base value according to the scoring standard data; Determining a memory influence coefficient according to the relevant memory information; Determine the evaluation value data according to the path scoring base value and the memory influence coefficient; Determining the memory influence coefficient according to the relevant memory information includes: If the distance between the tendency data of the relevant memory information and the negative limit of the preset tendency range is less than the preset distance, the tendency coefficient of the relevant memory information is -1; if the distance between the tendency data of the relevant memory information and the positive limit of the preset tendency range is less than the preset distance, the tendency coefficient of the relevant memory information is 1; Assume that there are m pieces of relevant memory information with a tendency coefficient of 1, and the fitting data of the i-th piece and the intention interpretation path is , there are n pieces of relevant memory information with a tendency coefficient of -1, and the fitting data of the jth piece and the intention interpretation path is , the memory influence coefficient of the intention interpretation path is p, then , where is the preset fit; Determining the evaluation value data according to the path scoring base value and the memory influence coefficient includes: Assume that the path score base value is , the evaluation value data is z, then .

[0012] Further, determining the planning conversion scheme according to the optimal interpretation path includes: Analyze the optimal interpretation path to obtain multiple key intent elements; Based on a pre-constructed element framework table, a formatting framework is obtained according to the key intention elements, wherein the element framework table includes a correspondence relationship between the key intention elements and the formatting framework; The planning conversion scheme includes the optimal interpretation path and the formatting framework.

[0013] Further, generating structured instruction information according to the planned conversion scheme and the interactive instruction information includes: Converting the interactive instruction information into formatted text information using the planned conversion scheme; Based on the pre-built structured conversion rules, the instruction structured scheme information is generated according to the formatted text information; Input the instruction structured scheme into the large model to obtain the structural input feedback of the large model; Directly input the interactive instruction information into the large model to obtain direct quasi-input feedback from the large model; Comparing the similarity between the structured quasi-input feedback and the direct quasi-input feedback, determining the instruction structuring scheme with a similarity higher than the quasi-input similarity threshold as an alternative conversion scheme; Determine the preference data of the alternative conversion schemes based on the relevant memory information; The candidate conversion scheme with the highest priority data is determined as the preferred conversion scheme, and the instruction structured scheme information of the preferred conversion scheme is the structured instruction information.

[0014] In a second aspect, the present application provides a device for intelligently generating prompt words, wherein the device is used to execute the method as described in any one of the above first aspects.

[0015] In summary, this application at least has the following beneficial effects: A method and device for intelligently generating prompt words are provided, which can convert the user's interactive instruction information into structured instruction information that is easier for the big model to understand, thereby facilitating the big model to more fully understand the user's intention, and further facilitating the user to obtain more needed feedback results from the big model.

[0016] It should be understood that the contents described in the Summary of the Invention are not intended to limit the key or important features of the embodiments of the present application, nor are they intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The above and other features, advantages and aspects of the embodiments of the present application will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein: Figure 1 A flow chart of a method for intelligently generating prompt words in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0019] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0020] The present application provides a method for intelligently generating prompt words, which can convert the user's interactive instruction information into structured instruction information that is easier for the big model to understand, thereby facilitating the big model to more fully understand the user's intention.

[0021] In a first aspect, the present application provides a method for intelligently generating prompt words. The method can be executed by a server.

[0022] Figure 1 A flow chart of a method for intelligently generating prompt words in an embodiment of the present application is shown.

[0023] Reference Figure 1 , the method specifically comprises the following steps: S110: Acquire interaction instruction information sent by the user.

[0024] The interactive instruction information sent by the user refers to the instruction information input by the user and desired to be sent to the big model to interact with the big model. The interactive instruction information is required to be converted into natural language text for subsequent use. Of course, the instructions initially sent by the user may be in various forms such as audio, pictures, and files. The instructions initially sent by the user can be converted into natural language text using technologies such as audio to text, picture to text, or picture interpretation and understanding, and file content extraction.

[0025] The user's interactive command information also needs to be pre-processed, and the preset emotional rules are used to filter the interactive command information for intent, personality abstraction, ethical review, simulation exclusion, etc., to ensure that the interactive command information is an instruction that can be received and answered by the big model. Of course, pre-processing also includes operations such as information trajectory, information analysis, role understanding, and goal understanding of the interactive command information to ensure that the interactive command information is clarified, that is, the interactive command information used later contains clear and complete meanings.

[0026] S120: Retrieve the memory information related to the interaction instruction information.

[0027] The method of this step specifically includes: based on the interaction instruction information, retrieving relevant memory information in a pre-built memory database, the memory database including interaction memory examples, the interaction memory examples including historical interaction instructions, historical structured instructions, historical large model feedback and historical user feedback, the relevant memory information is an interaction memory example in which the similarity between the historical interaction instructions and the interaction instruction information is higher than a similarity threshold.

[0028] In the method of this step, the method for constructing the memory database includes: Acquire historical interaction data, the historical interaction data including historical interaction instructions, historical structured instructions, historical large model feedback and historical user feedback, the historical interaction data carrying a timestamp and a user identifier; Determine the tendency data of each historical interaction data according to the historical big model feedback and the historical user feedback, wherein the tendency data represents the degree of understanding of the big model to the user intention corresponding to the historical interaction instruction; Determine that historical interaction data whose distance between the tendency data and the negative limit or the positive limit of the preset tendency range is less than a preset distance is typical historical data; For each user identifier, the typical historical data and the corresponding tendency data are substituted into a pre-constructed short-term forgetting curve model to determine the memory state data of each typical historical data, wherein the short-term forgetting curve model includes a memory state base value and a forgetting ratio curve, and the memory state base value of the historical interaction data is positively correlated to the absolute value of the difference between the corresponding tendency data and the median of the tendency range; storing the historical interaction data whose memory state data is higher than a preset memory ratio threshold as a short-term memory example in a short-term memory database, and updating the memory state data of the short-term memory example in real time; Determine that the historical interaction data whose user identification and historical structured instructions are the same and whose similarity between historical large model feedback and historical user feedback is higher than a preset similarity is the same historical interaction data; if the time proportion of the historical interaction data in the short-term memory database within a preset time length is higher than a preset time proportion threshold, store the historical interaction data as a long-term memory example in the long-term memory database, and memorize the long-term forgetting curve model to update the memory state data of the long-term memory example; The short-term memory database and the long-term memory database constitute the memory database, and the long-term memory examples and the short-term memory examples constitute the interactive memory examples as a whole.

[0029] Specifically, the determining of the tendency data of each historical interaction data according to the historical large model feedback and the historical user feedback includes: Analyze historical user feedback to determine whether the historical user feedback contains subsequent interaction instructions within a preset interaction interval; If not, determining the propensity data to be a preset propensity value; If so, the feedback consistency information, feedback tendency information and feedback emotion information of the first subsequent interaction instruction within the preset interaction interval are analyzed. The feedback consistency information reflects whether the historical user feedback is consistent with the historical large model feedback. The feedback tendency information reflects whether the historical user feedback is positive feedback or negative feedback to the historical large model feedback. The feedback emotion information reflects the emotional color carried by the historical user feedback. The tendency data is determined based on the feedback consistency information, feedback tendency information and feedback emotion information.

[0030] S130: Generate a planning conversion plan according to the interactive instruction information and related memory information.

[0031] The method of this step specifically includes: substituting the interactive instruction information into a pre-constructed graphical thinking chain model to obtain multiple intention interpretation paths, and determining multi-dimensional scoring standard data for each intention interpretation path; determining the fit data of each intention interpretation path and related memory information; determining the evaluation value data of each intention interpretation path based on the scoring standard data and the fit data; determining the intention interpretation path with the highest evaluation value data as the optimal interpretation path, and determining the planning conversion plan based on the optimal interpretation path.

[0032] The scoring standard data includes efficiency data, cost data and risk data.

[0033] In the method of this step, determining the evaluation value data of each intention interpretation path according to the scoring standard data and the fitting degree data includes: for each intention interpretation path, Determine a path scoring base value according to the scoring standard data; Determining a memory influence coefficient according to the relevant memory information; Determine the evaluation value data according to the path scoring base value and the memory influence coefficient; Determining the memory influence coefficient according to the relevant memory information includes: If the distance between the tendency data of the relevant memory information and the negative limit of the preset tendency range is less than the preset distance, the tendency coefficient of the relevant memory information is -1; if the distance between the tendency data of the relevant memory information and the positive limit of the preset tendency range is less than the preset distance, the tendency coefficient of the relevant memory information is 1; Assume that there are m pieces of relevant memory information with a tendency coefficient of 1, and the fitting data of the i-th piece and the intention interpretation path is , there are n pieces of relevant memory information with a tendency coefficient of -1, and the fitting data of the jth piece and the intention interpretation path is , the memory influence coefficient of the intention interpretation path is p, then , where is the preset fit; Determining the evaluation value data according to the path scoring base value and the memory influence coefficient includes: Assume that the path score base value is , the evaluation value data is z, then .

[0034] Determining the planning conversion scheme according to the optimal interpretation path includes: Analyze the optimal interpretation path to obtain multiple key intent elements; Based on a pre-constructed element framework table, a formatting framework is obtained according to the key intention elements, wherein the element framework table includes a correspondence relationship between the key intention elements and the formatting framework; The planning conversion scheme includes the optimal interpretation path and the formatting framework.

[0035] S140: Generate structured instruction information according to the planned conversion scheme and the interactive instruction information.

[0036] The structured instruction information is used to be sent to the large model, and can also be provided to the user for confirmation and then sent to the large model.

[0037] The method of this step includes: using the planning conversion scheme to convert the interactive instruction information into formatted text information; Based on the pre-built structured conversion rules, the instruction structured scheme information is generated according to the formatted text information; Input the instruction structured scheme into the large model to obtain the structural input feedback of the large model; Directly input the interactive instruction information into the large model to obtain direct quasi-input feedback from the large model; Comparing the similarity between the structured quasi-input feedback and the direct quasi-input feedback, determining the instruction structuring scheme with a similarity higher than the quasi-input similarity threshold as an alternative conversion scheme; Determine the preference data of the alternative conversion schemes based on the relevant memory information; The candidate conversion scheme with the highest priority data is determined as the preferred conversion scheme, and the instruction structured scheme information of the preferred conversion scheme is the structured instruction information.

[0038] To sum up, this method can fully understand and verify the intentions behind the interactive command information sent by the user, and then send the structured command information that clearly and completely expresses the user's intentions to the large model. The large model can more easily understand the structured command information and is thus more able to return the feedback results that the user needs.

[0039] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.

[0040] In a second aspect, the present application provides a device for intelligently generating prompt words, wherein the device applies any one of the methods described in the first aspect above.

[0041] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the described device can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0042] In summary, this application at least has the following beneficial effects: A method and device for intelligently generating prompt words are provided, which can convert the user's interactive instruction information into structured instruction information that is easier for the big model to understand, thereby facilitating the big model to more fully understand the user's intention, and further facilitating the user to obtain more needed feedback results from the big model.

[0043] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the aforementioned disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.

Claims

1. A method for intelligently generating prompt words, characterized in that: include: Obtaining interactive command information sent by the user; Retrieving the memory information related to the interactive instruction information; Generate a planning conversion plan according to the interactive instruction information and related memory information; Structured instruction information is generated according to the planning conversion scheme and the interactive instruction information, and the structured instruction information is used to be sent to the large model.

2. The method for intelligently generating prompt words according to claim 1, characterized in that: The memory information related to the interaction instruction information is retrieved including: Based on the interaction instruction information, relevant memory information is retrieved from a pre-built memory database, wherein the memory database includes interaction memory examples, and the interaction memory examples include historical interaction instructions, historical structured instructions, historical large model feedback, and historical user feedback. The relevant memory information is interaction memory examples in which the similarity between the historical interaction instructions and the interaction instruction information is higher than a similarity threshold.

3. The method for intelligently generating prompt words according to claim 2, characterized in that: The method for constructing the memory database includes: Acquire historical interaction data, the historical interaction data including historical interaction instructions, historical structured instructions, historical large model feedback and historical user feedback, the historical interaction data carrying a timestamp and a user identifier; Determine the tendency data of each historical interaction data according to the historical big model feedback and the historical user feedback, wherein the tendency data represents the degree of understanding of the big model to the user intention corresponding to the historical interaction instruction; Determine that historical interaction data whose distance between the tendency data and the negative limit or the positive limit of the preset tendency range is less than a preset distance is typical historical data; For each user identifier, the typical historical data and the corresponding tendency data are substituted into a pre-constructed short-term forgetting curve model to determine the memory state data of each typical historical data, wherein the short-term forgetting curve model includes a memory state base value and a forgetting ratio curve, and the memory state base value of the historical interaction data is positively correlated to the absolute value of the difference between the corresponding tendency data and the median of the tendency range; storing the historical interaction data whose memory state data is higher than a preset memory ratio threshold as a short-term memory example in a short-term memory database, and updating the memory state data of the short-term memory example in real time; Determine that the historical interaction data whose user identification and historical structured instructions are the same and whose similarity between historical large model feedback and historical user feedback is higher than a preset similarity is the same historical interaction data; if the time proportion of the historical interaction data in the short-term memory database within a preset time length is higher than a preset time proportion threshold, store the historical interaction data as a long-term memory example in the long-term memory database, and memorize the long-term forgetting curve model to update the memory state data of the long-term memory example; The short-term memory database and the long-term memory database constitute the memory database, and the long-term memory examples and the short-term memory examples constitute the interactive memory examples as a whole.

4. The method for intelligently generating prompt words according to claim 3, characterized in that: The determining of the tendency data of each historical interaction data according to the historical large model feedback and the historical user feedback includes: Analyze historical user feedback to determine whether the historical user feedback contains subsequent interaction instructions within a preset interaction interval; If not, determining the propensity data to be a preset propensity value; If so, the feedback consistency information, feedback tendency information and feedback emotion information of the first subsequent interaction instruction within the preset interaction interval are analyzed. The feedback consistency information reflects whether the historical user feedback is consistent with the historical large model feedback. The feedback tendency information reflects whether the historical user feedback is positive feedback or negative feedback to the historical large model feedback. The feedback emotion information reflects the emotional color carried by the historical user feedback. The tendency data is determined based on the feedback consistency information, feedback tendency information and feedback emotion information.

5. The method for intelligently generating prompt words according to claim 1, characterized in that: Generating a planning conversion scheme according to the interactive instruction information and related memory information includes: Substituting the interactive instruction information into a pre-built graphical thinking chain model to obtain multiple intention interpretation paths, and determining multi-dimensional scoring standard data for each intention interpretation path; Determine the fit data of each intention interpretation path and related memory information; Determine the evaluation value data of each intention interpretation path according to the scoring standard data and the fitting degree data; Determine the intention interpretation path with the highest evaluation value data as the optimal interpretation path, The planning conversion scheme is determined according to the optimal interpretation path.

6. The method for intelligently generating prompt words according to claim 5, characterized in that: The scoring standard data includes efficiency data, cost data and risk data.

7. The method for intelligently generating prompt words according to claim 5, characterized in that: The step of determining the evaluation value data of each intention interpretation path according to the scoring standard data and the fitting degree data comprises: for each intention interpretation path, Determine a path scoring base value according to the scoring standard data; Determining a memory influence coefficient according to the relevant memory information; Determine the evaluation value data according to the path scoring base value and the memory influence coefficient; Determining the memory influence coefficient according to the relevant memory information includes: If the distance between the tendency data of the relevant memory information and the negative limit of the preset tendency range is less than the preset distance, the tendency coefficient of the relevant memory information is -1; if the distance between the tendency data of the relevant memory information and the positive limit of the preset tendency range is less than the preset distance, the tendency coefficient of the relevant memory information is 1; Assume that there are m pieces of relevant memory information with a tendency coefficient of 1, and the fitting data of the i-th piece and the intention interpretation path is , there are n pieces of relevant memory information with a tendency coefficient of -1, and the fitting data of the jth piece and the intention interpretation path is , the memory influence coefficient of the intention interpretation path is p, then , where is the preset fit; Determining the evaluation value data according to the path scoring base value and the memory influence coefficient includes: Assume that the path score base value is , the evaluation value data is z, then .

8. The method for intelligently generating prompt words according to claim 5, characterized in that: Determining the planning conversion scheme according to the optimal interpretation path includes: Analyze the optimal interpretation path to obtain multiple key intent elements; Based on a pre-constructed element framework table, a formatting framework is obtained according to the key intention elements, wherein the element framework table includes a correspondence relationship between the key intention elements and the formatting framework; The planning conversion scheme includes the optimal interpretation path and the formatting framework.

9. The method for intelligently generating prompt words according to claim 1, characterized in that: The generating structured instruction information according to the planned conversion scheme and the interactive instruction information comprises: Using the planning conversion scheme to convert the interactive instruction information into formatted text information; Based on the pre-built structured conversion rules, the instruction structured scheme information is generated according to the formatted text information; Input the instruction structured scheme into the large model to obtain the structural input feedback of the large model; Directly input the interactive instruction information into the large model to obtain direct quasi-input feedback from the large model; Comparing the similarity between the structured quasi-input feedback and the direct quasi-input feedback, determining the instruction structuring scheme with a similarity higher than the quasi-input similarity threshold as an alternative conversion scheme; Determine the preference data of the alternative conversion schemes based on the relevant memory information; The candidate conversion scheme with the highest priority data is determined as the preferred conversion scheme, and the instruction structured scheme information of the preferred conversion scheme is the structured instruction information.

10. A device for intelligently generating prompt words, characterized in that: Used to perform the method according to any one of claims 1 to 9.