Information conversion method and device for cue word engineering
By generating structured instruction information and intelligent verification, it solves the problem that the existing prompt project is difficult to help large models understand the user's intention, and achieves more accurate feedback results.
Patent Information
- Application Number
- CN202411517616.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2025-01-28
AI Technical Summary
Existing prompt word projects are difficult to help the big model fully understand user intentions, resulting in inaccurate feedback results obtained by users.
By obtaining interactive instruction information and planning conversion schemes, generate structured instruction information, and determine the preferred conversion scheme through intelligent verification and similarity comparison to send it to a large model.
The big model fully understands the user's intention, thereby improving the accuracy of the feedback results obtained by the user.
Smart Images

Figure CN119378492A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of prompt word engineering, and in particular to an information conversion method and device for prompt word engineering. 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 an information conversion method and device for prompt word engineering, 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 an information conversion method for prompt word engineering. The method comprises: Obtain interactive instruction information and plan conversion plans; 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-mentioned technical solution, the interactive instruction information sent by the user can be determined as a structured instruction that can better reflect the user's intention and is better understood by the big model based on the planned conversion solution. The determination process is intelligently verified, which is conducive to the big model to more fully understand the user's intention, thereby facilitating the user to obtain more needed feedback results from the big model.
[0006] Further, generating structured instruction information according to the planned conversion scheme and the interactive instruction information 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.
[0007] Furthermore, the determination of the preference data of the alternative conversion schemes based on the relevant memory information includes: Determine the feedback similarity data between the proposed input feedback of the structure of the alternative conversion scheme and the historical large model feedback of the relevant memory information; 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 x pieces of relevant memory information with a tendency coefficient of 1, and the feedback similarity data between the i-th piece and the proposed input feedback of the structure of the alternative conversion scheme is , the relevant memory information with a tendency coefficient of -1 has y items, and the feedback similarity data of the jth item and the structure of the proposed input feedback of the alternative conversion scheme is , the preferred degree data is b, then .
[0008] Furthermore, the method for obtaining the planning conversion scheme includes: Retrieving the memory information related to the interactive instruction information; A planning conversion scheme is generated according to the interactive instruction information and related memory 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] In a second aspect, the present application provides an information conversion device for prompt word engineering. The device includes a data acquisition module and an instruction generation module; The data acquisition module is used to acquire interaction instruction information and plan conversion solutions; The instruction generation module is used to generate structured instruction information 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.
[0011] Furthermore, the instruction generation module is further configured such 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.
[0012] Furthermore, the instruction generation module is further configured such that the determining of the preference data of the alternative conversion scheme based on the relevant memory information includes: Determine the feedback similarity data between the proposed input feedback of the structure of the alternative conversion scheme and the historical large model feedback of the relevant memory information; 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 x pieces of relevant memory information with a tendency coefficient of 1, and the feedback similarity data between the i-th piece and the proposed input feedback of the structure of the alternative conversion scheme is , the relevant memory information with a tendency coefficient of -1 has y items, and the feedback similarity data of the jth item and the structure of the proposed input feedback of the alternative conversion scheme is , the preferred degree data is b, then .
[0013] Furthermore, the data acquisition module is further configured such that the method for acquiring the planning conversion scheme includes: Retrieving the memory information related to the interactive instruction information; A planning conversion scheme is generated according to the interactive instruction information and related memory information.
[0014] Furthermore, the data acquisition module is further configured such that generating a planning conversion scheme according to the interaction 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.
[0015] In summary, this application at least has the following beneficial effects: Provided is an information conversion method and device for prompt word engineering, which can determine the interactive instruction information sent by the user as a structured instruction that can better reflect the user's intention and is better understood by the big model based on a planned conversion scheme, thereby facilitating the big model to more fully understand the user's intention.
[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 flowchart of an information conversion method for prompt word engineering in an embodiment of the present application is shown; Figure 2 A block diagram of an information conversion device for prompt word engineering 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 an information conversion method and device for prompt word engineering, which can determine the interactive instruction information sent by the user as a structured instruction that can better reflect the user's intention and is better understood by the big model based on a planned conversion scheme, thereby helping the big model to more fully understand the user's intention.
[0021] In a first aspect, the present application provides an information conversion method for prompt word engineering, which can be executed by a server.
[0022] Figure 1 A flow chart of an information conversion method for prompt word engineering in an embodiment of the present application is shown.
[0023] Reference Figure 1 , the method specifically comprises the following steps: S110: Obtaining interaction instruction information and planning conversion solutions.
[0024] In the method of this step, 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 a natural language text form for subsequent use. Of course, the instructions initially sent by the user may be in various forms such as audio, pictures, files, etc., and the instructions initially sent by the user can be converted into a natural language text form by using audio-to-text, picture-to-text or picture interpretation understanding, file content extraction and other technologies.
[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] The method for acquiring the planning conversion scheme includes: retrieving the relevant memory information of the interactive instruction information; and generating the planning conversion scheme according to the interactive instruction information and the relevant memory information.
[0027] Specifically, the retrieving relevant memory information of the interaction instruction information 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] 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] The method of generating a planning conversion plan based on the interactive instruction information and related memory information 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 fitting data of each intention interpretation path and the related memory information; determining the evaluation value data of each intention interpretation path based on the scoring standard data and the fitting 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.
[0031] The scoring standard data includes efficiency data, cost data and risk data.
[0032] 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 .
[0033] 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.
[0034] S120: Generate structured instruction information according to the planning conversion scheme and the interactive instruction information, and the structured instruction information is used to send to the large model.
[0035] The method of this step specifically 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.
[0036] In a specific example, determining the preference data of the alternative conversion scheme based on the relevant memory information includes: Determine the feedback similarity data between the proposed input feedback of the structure of the alternative conversion scheme and the historical large model feedback of the relevant memory information; 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 x pieces of relevant memory information with a tendency coefficient of 1, and the feedback similarity data between the i-th piece and the proposed input feedback of the structure of the alternative conversion scheme is , the relevant memory information with a tendency coefficient of -1 has y items, and the feedback similarity data of the jth item and the structure of the proposed input feedback of the alternative conversion scheme is , the preferred degree data is b, then .
[0037] Of course, the structured instruction information in this step method can also be provided to the user, and sent to the large model after the user confirms it.
[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 an information conversion device for prompt word engineering, which can be included in a server.
[0041] Figure 2A block diagram of an information conversion device for prompt word engineering in an embodiment of the present application is shown.
[0042] Reference Figure 2 , the device specifically includes a data acquisition module and an instruction generation module; The data acquisition module is used to acquire interaction instruction information and plan conversion solutions; The instruction generation module is used to generate structured instruction information 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.
[0043] Furthermore, the instruction generation module is further configured such 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.
[0044] Furthermore, the instruction generation module is further configured such that the determining of the preference data of the alternative conversion scheme based on the relevant memory information includes: Determine the feedback similarity data between the proposed input feedback of the structure of the alternative conversion scheme and the historical large model feedback of the relevant memory information; 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 x pieces of relevant memory information with a tendency coefficient of 1, and the feedback similarity data between the i-th piece and the proposed input feedback of the structure of the alternative conversion scheme is , the relevant memory information with a tendency coefficient of -1 has y items, and the feedback similarity data of the jth item and the structure of the proposed input feedback of the alternative conversion scheme is , the preferred degree data is b, then .
[0045] Furthermore, the data acquisition module is further configured such that the method for acquiring the planning conversion scheme includes: Retrieving the memory information related to the interactive instruction information; A planning conversion scheme is generated according to the interactive instruction information and related memory information.
[0046] Furthermore, the data acquisition module is further configured such that generating a planning conversion scheme according to the interaction 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.
[0047] 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.
[0048] In summary, this application at least has the following beneficial effects: Provided is an information conversion method and device for prompt word engineering, which can determine the interactive instruction information sent by the user as a structured instruction that can better reflect the user's intention and is better understood by the big model based on a planned conversion scheme, thereby facilitating the big model to more fully understand the user's intention.
[0049] 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. An information conversion method for prompt word engineering, characterized in that: include: Obtain interactive instruction information and plan conversion plans; 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 information conversion method for prompt word engineering 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.
3. The information conversion method for prompt word engineering according to claim 2, characterized in that: The determination of the preference data of the alternative conversion scheme based on the relevant memory information includes: Determine the feedback similarity data between the proposed input feedback of the structure of the alternative conversion scheme and the historical large model feedback of the relevant memory information; 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 x pieces of relevant memory information with a tendency coefficient of 1, and the feedback similarity data between the i-th piece and the proposed input feedback of the structure of the alternative conversion scheme is , the relevant memory information with a tendency coefficient of -1 has y items, and the feedback similarity data of the jth item and the structure of the proposed input feedback of the alternative conversion scheme is , the preferred degree data is b, then .
4. The information conversion method for prompt word engineering according to claim 1, characterized in that: The method for obtaining the planning conversion scheme includes: Retrieving the memory information related to the interactive instruction information; A planning conversion scheme is generated according to the interactive instruction information and related memory information.
5. The information conversion method for prompt word engineering according to claim 4, 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. An information conversion device for prompt word engineering, characterized in that: It includes a data acquisition module and an instruction generation module; The data acquisition module is used to acquire interaction instruction information and plan conversion solutions; The instruction generation module is used to generate structured instruction information 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.
7. The information conversion device for prompt word engineering according to claim 6, characterized in that: The instruction generation module is further configured to generate structured instruction information according to the planned conversion scheme and the interactive instruction information, including: 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.
8. The information conversion device for prompt word engineering according to claim 7, characterized in that: The instruction generation module is further configured such that the determination of the preference data of the alternative conversion scheme based on the relevant memory information includes: Determine the feedback similarity data between the proposed input feedback of the structure of the alternative conversion scheme and the historical large model feedback of the relevant memory information; 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 x pieces of relevant memory information with a tendency coefficient of 1, and the feedback similarity data between the i-th piece and the proposed input feedback of the structure of the alternative conversion scheme is , the relevant memory information with a tendency coefficient of -1 has y items, and the feedback similarity data of the jth item and the structure of the proposed input feedback of the alternative conversion scheme is , the preferred degree data is b, then .
9. The information conversion device for prompt word engineering according to claim 6, characterized in that: The data acquisition module is further configured as follows: the method for acquiring the planning conversion scheme includes: Retrieving the memory information related to the interactive instruction information; A planning conversion scheme is generated according to the interactive instruction information and related memory information.
10. The information conversion device for prompt word engineering according to claim 9, characterized in that: The data acquisition module is further configured to generate a planning conversion scheme according to the interactive instruction information and related memory information, including: 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.