[go: up one dir, main page]

WO2025026189A1 - Method and apparatus for prompt word management, device, and storage medium - Google Patents

Method and apparatus for prompt word management, device, and storage medium Download PDF

Info

Publication number
WO2025026189A1
WO2025026189A1 PCT/CN2024/107673 CN2024107673W WO2025026189A1 WO 2025026189 A1 WO2025026189 A1 WO 2025026189A1 CN 2024107673 W CN2024107673 W CN 2024107673W WO 2025026189 A1 WO2025026189 A1 WO 2025026189A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
prompt word
task
prompt
model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
PCT/CN2024/107673
Other languages
French (fr)
Chinese (zh)
Inventor
朱文焕
马式超
范星光
边超
李想
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Publication of WO2025026189A1 publication Critical patent/WO2025026189A1/en
Pending legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation

Definitions

  • Example embodiments of the present disclosure generally relate to the field of computers, and more particularly, to methods, devices, apparatuses, and computer-readable storage media for prompt word management.
  • Model as a Service has gradually become a feasible solution. Users can input prompt words into the model in the cloud to obtain the model output for this prompt word. Therefore, the accuracy of the prompt word will affect the output of the model. How to manage the prompt word conveniently and quickly is a technical problem to be explored at present.
  • a method for prompt word management comprises: in response to receiving a prompt word editing request, presenting an editing interface, wherein the editing interface at least comprises an input area for receiving a target prompt word; and in response to receiving a prompt word publishing request, encapsulating the target prompt word into a callable target task based at least on user input in the editing interface, wherein the call of the target task triggers the target prompt word to be input into a model.
  • a device for prompt word management includes: an interface presentation module, configured to present an editing interface in response to receiving a prompt word editing request, wherein the editing interface at least includes an input area for receiving a target prompt word; and a publishing module, configured to encapsulate the target prompt word into a callable target task in response to receiving a prompt word publishing request, at least based on user input in the editing interface, wherein the call of the target task will trigger the target prompt word to be input into the model.
  • an electronic device in a third aspect of the present disclosure, includes at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit. When the instructions are executed by the at least one processing unit, the electronic device executes the method of the first aspect.
  • a computer-readable storage medium wherein a computer program is stored on the medium, and the computer program can be executed by a processor to implement the method of the first aspect.
  • FIG1 is a schematic diagram showing an example environment in which embodiments of the present disclosure can be implemented.
  • FIGS. 2A to 2J are schematic diagrams showing example interfaces of a prompt word management system according to some embodiments of the present disclosure
  • FIG3 is a schematic diagram showing a process of prompt word management according to some embodiments of the present disclosure.
  • FIG4 shows a flowchart of a process for prompt word management according to some embodiments of the present disclosure
  • FIG5 shows a schematic structural block diagram of an apparatus for prompt word management according to certain embodiments of the present disclosure.
  • FIG. 6 illustrates an electronic device in which one or more embodiments of the present disclosure may be implemented.
  • executing a step “in response to A” does not mean executing the step immediately after “A” but may include one or more intermediate steps.
  • the types, scopes of use, usage scenarios, etc. of the information involved in the present disclosure should be informed to relevant users and their authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
  • the relevant users may include any type of right holders, such as individuals, enterprises, and groups.
  • a prompt message is sent to the relevant user to clearly prompt the relevant user that the operation requested to be performed will require obtaining and using the information of the relevant user, so that the relevant user can independently choose whether to provide information to software or hardware such as an electronic device, application, server or storage medium that executes the operation of the technical solution of the present disclosure based on the prompt message.
  • a prompt message is sent to the relevant user, for example, in the form of a pop-up window, in which the prompt message may be presented in text form.
  • the pop-up window may also carry a selection control for the user to select "agree” or “disagree” to provide information to the electronic device.
  • FIG1 shows a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented.
  • a prompt word management system 120 is running in an electronic device 110.
  • a user 140 can interact with the prompt word management system 120 via the electronic device 110 and/or an attached device of the electronic device 110.
  • the prompt word management system 120 can provide integration of various types of functions or components to facilitate people to create, modify, adjust, and other activities of prompt words.
  • the prompt word management system 120 can be downloaded and installed as an application on the electronic device 110. In some embodiments, the prompt word management system 120 can also be accessed through other methods, such as through a web page.
  • the electronic device 110 may present an interface 150 of the prompt word management system 120.
  • the interface 150 may include various user interfaces that the prompt word management system 120 may provide.
  • the interface 150 is sometimes also referred to as a client interface.
  • the prompt word management system 120 can realize the generation, verification, evaluation, etc. of prompt words with the help of the model 130.
  • the prompt word is the input of the model or the input template, which can be natural language and/or other modal data, used to guide or stimulate the model to complete specific processing to obtain the desired model output.
  • the prompt word management system 120 can interact with the model 130 to provide model input to the model 130 and obtain the corresponding model output from the model 130.
  • the model 130 can run locally on the electronic device 110 or on a remote server.
  • the model 130 can be a machine learning model, a deep learning model, a learning model, a neural network, etc.
  • the model 130 can be based on a language model (LM).
  • the language model can have question-answering capabilities by learning from a large amount of corpus.
  • the model 130 can also be based on other appropriate models.
  • the electronic device 110 can be any type of device with computing capabilities, including terminal devices and/or server devices.
  • the terminal device can be any type of mobile terminal, fixed terminal or portable terminal, including mobile phones, desktop computers, laptop computers, notebook computers, netbook computers, tablet computers, media computers, multimedia tablets, personal communication systems (PCS) devices, personal navigation devices, personal digital assistants (PDAs), audio/video players, digital cameras/camcorders, positioning devices, television receivers, radio broadcast receivers, e-book devices, gaming devices, or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof.
  • the server device can include, for example, a computing system/server, such as a mainframe, an edge computing node, a computing device in a cloud environment, and the like.
  • the prompt word management system 120 can be implemented based on a cloud service.
  • Model as a Service The core concept of Model as a Service is to deploy models, especially excellent head models, in the cloud. Users can call models through APIs or SDKs to implement various functions. R&D costs can be reduced, and advanced AI technologies can be quickly deployed and applied. Compared with the traditional method of training different models for tasks, the advantages of Model as a Service include lower cost, more flexibility (users can choose appropriate models and services according to their needs and adjust usage plans at any time), easy integration (Model as a Service can be easily integrated with existing systems through APIs or SDKs, etc., without large-scale transformation), continuous updates (cloud models are regularly updated and optimized to ensure that users can enjoy the latest technological achievements), cross-platform compatibility (support for multiple platforms and devices, facilitating users to carry out cross-platform development), security and privacy protection, etc.
  • an improved scheme for prompt word management is proposed.
  • an editing interface that at least includes an input area for receiving a target prompt word is presented.
  • the target prompt word is encapsulated into a callable target task based at least on user input in the editing interface.
  • the call to the target task will trigger the target prompt word to be input into the model.
  • the prompt words can be flexibly designed and managed, and the prompt words can be encapsulated into a callable task, which makes the call of the model very simple, and helps to improve the stability, reliability, convenience and efficiency of prompt word management and model call in practical applications.
  • the prompt word management system 120 when the prompt word management system 120 is in operation, the prompt word management system 120 presents an editing interface including at least an input area for receiving a target prompt word in response to receiving a prompt word editing request.
  • the prompt word editing request here may include, for example, but is not limited to, a task creation request for a new prompt word and a task modification request for an existing prompt word.
  • the target prompt word is the new prompt word to be created, and the prompt word management system 120 may present an editing interface including an input area for receiving the new prompt word.
  • the prompt word management system 120 obtains the callable target task based on the target prompt word at least based on the user input in the editing interface.
  • the target prompt word can be encapsulated into a section of code corresponding to the callable task, and by triggering the call to this section of code, the corresponding target prompt word can be input to the model.
  • the target prompt word indicates the prompt word associated with the article translation
  • the target task indicating the translation of an article can be generated based on the call parameters of the target prompt word and the model, and the model then performs the target task.
  • the target prompt word is input to the model.
  • the model can perform the operation indicated by the target task based on the target prompt word. For example, based on the target prompt word, the translation of an article is performed.
  • Figures 2A to 2J are schematic diagrams of examples of editing interfaces according to some embodiments of the present disclosure.
  • the editing interfaces shown in Figures 2A to 2J may correspond to the prompt word management system 120, which integrates multiple different types of components. It should be understood that the editing interfaces shown in Figures 2A to 2J are only example interfaces, and various interface designs may actually exist.
  • the various graphical elements in the interface may have different arrangements and different The same visual representation may be used, one or more elements may be omitted or replaced, and one or more other elements may also exist.
  • the embodiments of the present disclosure are not limited in this respect.
  • the prompt word management system 120 may present an editing interface 200A for receiving a prompt word editing request as shown in FIG2A.
  • the prompt word management system 120 since the prompt word management system 120 supports multi-environment applications, before using the prompt word management system to perform tasks such as creating tasks for new prompt words, it is necessary to first determine the target environment for the task application.
  • a plurality of candidate environments to be selected are presented (area A online, area B online, and area C online as shown in FIG2A).
  • the target environment for the task application may be determined in response to the selection operation on the candidate environment. For example, in response to receiving a click operation on the candidate environment on the area A line, it is determined as the target environment for the task application.
  • a target environment that meets the regional requirements may be selected based on user needs and the actual application environment.
  • a task list including at least one created task can also be presented on the prompt word management system 120.
  • two task lists, "My Task List” and "Public Task List” are presented in the editing interface 200A.
  • "My Task List” can be, for example, a task list including at least one task created by the current user corresponding to the prompt word management system 120
  • "Public Task List” can be, for example, a task list including at least one task created by other users other than the current user and disclosed so that the current user can obtain it. It can be understood that other task lists can also be presented, or only one task list containing all tasks can be presented, and the present disclosure does not limit this.
  • the task list includes a task ID and a task name that can be used to identify the task, a task keyword for indicating important task information (such as a required model, task purpose, etc.), the creation time, update time, and creator of the task.
  • the creation time of the task is the time when the task was initially created, and the update time of the task is the time when the task was last updated.
  • at least one operation control can be presented in association with at least one task included in the task list.
  • the editing interface 200A includes at least one delete control 205 indicating the deletion of the task, and the at least one delete control 205 corresponds to at least one task in the task list. In response to detecting a trigger operation on the delete control 205, it can be determined that a task deletion request for the corresponding task has been received. In response to the task deletion request, the corresponding task will be removed from the editing interface 200A.
  • the editing interface 200A may further include at least one modification control 204 associated with at least one task included in the task list, and the at least one modification control 204 corresponds to at least one task in the task list.
  • the editing interface 200A also includes a creation control 203. It is understood that the editing interface 200A may also include other operation controls, which are not limited by the present disclosure.
  • in response to detecting a trigger operation to the creation control 203 it may be determined that a task creation request for a new prompt word is received.
  • detecting a trigger operation to the modification control 204 it may be determined that a task modification request for an existing prompt word is received.
  • the task creation request and/or task modification request for the task can be understood as a creation request and/or modification request for the prompt word.
  • a creation request and modification request are both prompt word editing requests for the prompt word. That is, in response to detecting the creation control 203 and/or modification request, The triggering operation of the control 204 can receive a prompt word editing request (creation request and/or modification request) for the prompt word.
  • the prompt word editing request can also be received in other ways.
  • it can be determined that the prompt word editing request is received in response to detecting a voice or gesture corresponding to the prompt word editing request, or detecting a click operation on a corresponding physical control.
  • the voice and gesture here can be pre-set, or include pre-set keywords/key actions. For example, in response to detecting a voice "create task” or "modify task A", etc., it is determined that the prompt word editing request is received.
  • the prompt word management system 120 can also determine the authority of the current user. Specifically, a task can be created by the current user (at least one task included in the "My Task List” as shown in FIG. 2A), or it can be created by other users and then made public so that the current user can obtain it (at least one task included in the "Public Task List” as shown in FIG. 2A). For tasks created by the user himself, it can be understood that the user has the highest authority to edit it, and the user can modify it.
  • the prompt word management system 120 needs to determine the authority of the current user to determine whether the current user has the qualifications to edit it. It can be understood that different users may have different authorities for the same task, for example, user A has editing authority, while user B only has use authority but not editing authority. For created tasks, the prompt word management system 120 can present the editing interface only when it is determined that the user has editing authority for the created task. It is understood that, in the case of creating a new task, the prompt word management system 120 can directly present an editing interface without verifying the editing authority. Thus, different users can have different permissions for the same task, which helps different users in the team to share tasks, achieve rapid collaboration and effective communication, and help improve the efficiency of prompt word management.
  • the editing interface 200A may further include a help control 202.
  • the interface 200A may switch to a document presentation interface (not shown in the figure), which may include text information and/or image information for prompting the user about the interaction method of the prompt word management system 120, the prompt word creation operation steps, the prompt word modification operation steps, etc.
  • the trigger operation here includes but is not limited to a click operation, a long press operation, a slide operation, a double-click operation, etc.
  • an editing interface 200B as shown in Figure 2B can be presented.
  • the editing interface 200B may include a task definition area 210.
  • the task definition area 210 is used to receive a task identifier of a target task, and the task identifier may be used for subsequent calls to the target task. Specifically, when the target task needs to be called, the call to the target task may be performed based on the task identifier of the target task, which helps to improve the efficiency of task calls.
  • the task identifier here includes at least one of a task name and a task description. It is understandable that the task identifiers of different tasks are different (that is, at least one of a task name and a task description is different).
  • the editing interface 200B includes an input area 215.
  • the input area 215 can be used to receive a template of a target prompt word, and the template can be used to define the structure of the target prompt word, including one or more variables contained in the target prompt word.
  • a template can be designed to allow the values of corresponding variables to be filled into the template in a specific application to obtain the input to the target prompt word.
  • the prompt word management system 120 detects the user input in the input area 215 and determines the user input as the template of the received target prompt word.
  • the input area 215 can also present the template of the received target prompt word to the user.
  • the template of the target prompt word received in the input area 215 is, for example, "It is necessary to implement the echo function according to the message, and the original text must be returned without adding any other content.
  • the editing interface 200B may also include a variable definition area 220.
  • the variable definition area 220 is used to receive the definition of at least one variable involved in the target prompt word, including but not limited to the name of the variable (i.e., the variable name), the description of the variable, the variable default value, etc.
  • the definition of the variable may indicate that the variable name is "msg", the variable description is "message returned by echo", and if the user input is received in the "variable default value" column, the received user input may be determined as the default assignment of the variable.
  • an assignment prompt information for prompting the user to assign a value to at least one variable may be presented.
  • the presentation method includes but is not limited to voice, vibration, message box, pop-up window, etc.
  • the user can manually assign a value to at least one variable based on the assignment prompt information, or instruct the prompt word management system 120 to assign a value based on the associated database.
  • the editing interface 200B also includes a model configuration area 230.
  • the model configuration area 230 can be used to receive a selection of a target model. When the target task is subsequently called, the target keyword will be input into the target model selected in the model configuration area 230.
  • the model configuration area 230 may include a model selection entry 231. In response to detecting a click operation on the model selection entry 231, multiple models can be presented, and then in response to a selection operation on a certain model (such as model A), it is determined as the target model to which the corresponding prompt word will be input.
  • the model selection entry 231 can also present a pre-set default model, which is the target model.
  • the model configuration area 230 is also used to receive the definition of processing parameters for the target model.
  • the model configuration area 230 can include setting entries for parameters such as degree, maximum length, stop sequence, top, existence penalty, frequency penalty, etc.
  • the parameters that can be configured in the model configuration area 230 may include a temperature parameter.
  • the temperature can be used to control the diversity and creativity of the generated text. Its value range is usually between 0.1 and 1, indicating the size of randomness when generating text. When the value is low, the generated text will be more conservative and predictable, and vice versa, it will be more bold and unpredictable. For example, if the value of the temperature is set to 0.5, the generated text will have certain creativity and changes, but still maintain certain coherence and readability. And if the value of the temperature is set to 1, the generated text will be more random and unpredictable, and may contain some strange sentences and meaningless content. Therefore, it is necessary to adjust the value of the temperature according to specific needs and application scenarios to achieve the best effect.
  • the parameters that can be configured in the model configuration area 230 may also include a maximum length parameter.
  • the maximum length refers to the maximum length of the generated text.
  • the maximum length of the generated text can be set to control the length of the generated text. If the maximum length is set to 100, the generated text will not exceed 100 characters.
  • This parameter can help control the length of the generated text to adapt to different application scenarios. For example, if you need to generate some short text, you can set the maximum length to 50, and if you need to generate some long text, you can set the maximum length to 500 or higher.
  • the parameters that can be configured in the model configuration area 230 may also include a stop sequence parameter.
  • the stop sequence is used to specify a sign to stop when generating text. When any of the signs specified in the stop sequence appears in the generated text, the API stops generating text and returns the result.
  • This parameter can be used to control the length and content of the generated text, as well as to avoid generating meaningless or incoherent text. For example, if the stop sequence is set to common period signs such as ".”, "?", "!, the API will stop after generating a complete sentence to avoid generating too long or incomplete text.
  • the parameters that can be configured in the model configuration area 230 may also include a Top P parameter.
  • Top is used to control the diversity and predictability of the generated text.
  • Top is a decimal between 0 and 1, indicating that only the top P words with the highest probability are considered when generating text. For example, if Top is set to 0.5, only 50% of the words with the highest probability are considered when generating text, while words with lower probabilities are ignored. This can make the generated text more predictable, but it may also cause the text to be too monotonous and lack creativity. Therefore, according to the specific application scenarios and requirements, the value of Top can be appropriately adjusted to balance the diversity and predictability of the text.
  • the parameters that can be configured in the model configuration area 230 may also include a presence penalty parameter.
  • the presence penalty is used to control whether specific words or phrases are included in the generated text. The higher the value of the presence penalty, the less likely it is that these words or phrases will be included in the generated text.
  • This parameter can be used to control the style and content of the generated text to make it more in line with specific needs. For example, if you need to generate text about healthy eating, you can set a presence penalty to ensure that unhealthy food or drinks do not appear in the generated text.
  • the parameters that can be configured in the model configuration area 230 may also include a frequency penalty parameter.
  • the frequency penalty is used to control the frequency of repeated words in the generated text. If a higher frequency penalty value is set, the generated text will try to avoid repeating the same words, making the generated text more diverse and rich. On the contrary, if a lower frequency penalty value is set, a large number of repeated words may appear in the generated text, making the generated text simpler and more repetitive. Therefore, by adjusting the frequency penalty parameter, the diversity and complexity of the generated text can be controlled.
  • the processing parameters of target model can be in response to the setting operation received at least one setting entrance, determine the processing parameters of target model about degree, maximum length, stop sequence, top, existence penalty, frequency penalty etc.
  • default parameter can be provided, and the user can modify the default parameter to determine the processing parameters of target model.It can be understood that for different models, the processing parameters that can be configured can be different.
  • the target model when the target task is subsequently called, the target model will process the target prompt word to perform the target task according to the defined processing parameters.
  • the target model determined in the model configuration area 230 model configuration area 230 can also be used for the subsequent verification, evaluation etc. of the template of the target prompt word.
  • the editing interface 200B may also include an editing control presentation area 240.
  • a save control 241 may be presented in the editing control presentation area 240.
  • it may be determined that a save request to the target prompt word is received.
  • Information such as the template of the target prompt word determined in the editing interface 200B, the definition of the variables, the processing parameters of the model, etc. may be saved. In some embodiments, this information will be saved in a draft box so that editing can be continued next time.
  • the editing interface 200B will stop presenting the verification area 250.
  • the verification of the target prompt word can be started, and the assignment of the variable presented in the variable presentation area 251 is assigned to the template shown in the template presentation area 252 to obtain the target prompt word, and this target prompt word will be input into the model.
  • the model output for the target prompt word can be received from the model and presented in the output presentation area 253.
  • the user can determine whether the template of the target prompt word needs to be adjusted based on the model output presented in the output presentation area 253, and by repeating such verification operations for many times, a template of the prompt word that meets the user's needs can be obtained, which can improve the accuracy of the prompt word finally generated.
  • an evaluation control 243 may also be presented in the editing control presentation area 240.
  • an evaluation input area may be presented. The evaluation input area may be used to receive evaluation data for the target prompt word, where the evaluation data indicates multiple values of at least one variable involved in the template of the target prompt word. Further, the evaluation result of the target prompt word is generated based on the evaluation data.
  • an evaluation prompt information 260 may be presented in the editing interface 200B.
  • the evaluation prompt information 260 may prompt the user that an evaluation set template for evaluation is being generated by presenting a text such as "generating an evaluation set template".
  • the presentation of the evaluation prompt information 260 may be cancelled.
  • an evaluation input area 270 as shown in FIG. 2E may be presented.
  • the editing interface 200B can present an evaluation input area 270.
  • the evaluation input area 270 of the model configuration area 230 can, for example, at least include an evaluation set input entrance 271, an evaluation set upload control 272, and an evaluation control 273.
  • the evaluation set input entrance 271 can be used to receive evaluation data (also referred to as an evaluation set) for the target prompt word.
  • the evaluation data here can indicate multiple values of at least one variable involved in the template of the target prompt word. For example, the evaluation data can indicate that the three values for variable A are a, b, and c respectively.
  • the evaluation data required for the evaluation can be manually input by the user in the evaluation set input entry 271.
  • a selection page for existing evaluation data can be presented, and then in response to the user's selection of a certain evaluation data, the target evaluation data required for the evaluation can be determined.
  • the evaluation set input entry 271 can also be used to present The evaluation data input by the user or the target evaluation data selected by the user through the evaluation set upload control 272. As shown in FIG2F, the evaluation set input entry 271 may present the evaluation data to be used for evaluation: evaluation set A.
  • the evaluation for the target prompt word can be performed in response to detecting a trigger operation on the evaluation control 273.
  • the editing interface 200B in response to detecting a trigger operation on the evaluation control 273, can present an evaluation prompt area 280 as shown in FIG. 2G, and the evaluation prompt area 180 is used to prompt the user that the evaluation for the target prompt word is currently being performed.
  • the evaluation prompt area 280 may include a cancel control 281. In response to detecting a trigger operation on the cancel control 281, the presentation of the evaluation prompt area 280 is canceled. In some embodiments, while canceling the presentation of the evaluation prompt area 280, the template of the target prompt word is also stopped from being evaluated.
  • the editing interface 200B can present the evaluation prompt information in the evaluation input area 270.
  • information such as "evaluation is running” can be presented at the evaluation set input entrance 271 to prompt the user that the evaluation for the target prompt word is currently being performed.
  • the evaluation termination control 274 can also be presented in the evaluation input area 270.
  • stop evaluating the template of the target prompt word it can be understood that after the evaluation stops, the information such as "evaluation is running" presented at the evaluation set input entrance 271 will also be stopped from being presented.
  • the evaluation result can be generated based on the evaluation data for the target prompt word. Specifically, by using the multiple values of at least one variable in the evaluation data to assign at least one variable, multiple test prompt words are generated. For example, assigning the variable A in the template to a, b, and c can obtain three different test prompt words. These multiple test prompt words will be input into the model respectively so that the model generates model outputs for the test prompt words based on these multiple test words. Multiple model outputs for the test prompt words are obtained from the model, and the evaluation result is generated based on the multiple model outputs.
  • an access entry for the evaluation result can also be provided in the editing interface 200B.
  • the prompt word management system 120 can be integrated with other tools and applications to realize an automated workflow, that is, it can automatically perform verification and/or evaluation of the target prompt words in response to the user's triggering operation on the corresponding control, which can reduce the required manpower and help improve the efficiency of verification and/or evaluation.
  • the editing interface 200B can still include the task definition area 210 and the model configuration area 230, and the same is true for the subsequent figures.
  • the editing interface 200B also includes a slide control 206. In response to detecting a pull-up operation or a slide-down operation on the slide control 206, Other content is presented in the editing interface 200B. It is understood that other content may be presented in the editing interface 200B in response to detecting a trigger operation on a corresponding physical control and/or in response to detecting a sliding operation in the editing interface 200B (for example, in response to detecting a sliding operation, presenting the task definition area 210).
  • the target prompt word of completing verification and/or completing evaluation in response to receiving prompt word publishing request, the target prompt word is packaged into a callable target task.
  • editing interface 200B will present publishing control.
  • the publishing control can only be presented in the editing interface 200B when completing verification and/or completing evaluation.
  • the publishing control can also be presented in the editing interface 200B all the time, even if the target prompt word does not complete verification and/or complete evaluation, it can still be determined in response to detecting the triggering operation to publishing control, and the prompt word publishing request is received, and then the target prompt word is packaged into a callable target task.
  • a publishing control 244 may also be presented in the editing control presentation area 240 of the editing interface 200B.
  • the evaluation input area 270 may be presented in the editing interface 200B in response to receiving a pull-down operation on the sliding control 206, in response to detecting a trigger operation on the corresponding physical control, and/or in response to detecting a slide-up operation in the editing interface 200B.
  • it may be determined that a prompt word publishing request has been received.
  • the user can also select the version number of the target task to be packaged before triggering the release control.
  • the editing interface 200B can also present a version selection entry 207.
  • at least one version number can be presented, for example, the four version numbers "$DEV, 3, 2, 1" are presented.
  • DEV development mark
  • the version number selection entry 207 corresponds to the development mark DEV, it means that it is currently in the development state, that is, it is in the state of editing and unpublishing the target prompt word. In this case, the target prompt word cannot be called for a task, and only operations such as editing, verification, and evaluation can be performed on the target prompt word.
  • the version number selection entry 207 corresponds to a version number other than DEV, for example, it corresponds to 1, which means that the target task is associated with version number 1.
  • the editing interface 200B may also present a version disable identifier 208. In response to detecting a trigger operation on the version disable identifier 208, the currently selected version number is disabled. In some embodiments, the editing interface 200B also presents a status identifier control 209, which is used to indicate the current version status. Exemplarily, the status identifier control 209 may present three states: DEV, Activated, and Disabled.
  • the target task when the prompt word edit request is a task creation request, in response to the prompt word release request, the target task is associated with the first version number.
  • the first version number here can be any version number.
  • the prompt word edit request is a modification request for a created task
  • the target task in response to the prompt word release request, is associated with the second version number.
  • the second version number here is different from the version number of the created task.
  • the version number associated with the target task can be 1
  • the version number associated with the modified target task can be 2, 3, 4, etc.
  • target tasks at different stages can be associated with different version numbers, which helps users to search for target tasks later. For example, if a user expects to find the target task after the second modification, the user can directly find the target task after the second modification from multiple target tasks based on the version number associated with the target task after the second modification.
  • target tasks at different stages are associated with different version numbers (e.g., target tasks at the creation stage and target tasks at the first modification stage)
  • the target task can also be called based on the version number of the target task.
  • the target task to be called can be determined from multiple target tasks conveniently and quickly, and target tasks of different historical versions can be called, which helps to improve the efficiency of target task calling.
  • Fig. 3 shows a schematic diagram of a process 300 of prompt word management according to some embodiments of the present disclosure.
  • the process 300 may be implemented at the prompt word management system 120.
  • the process 300 will be described with reference to the environment 100 of Fig. 1 .
  • the cue word management system 120 creates a target task on the cue word management system 120 in response to the received user input.
  • the prompt word management system 120 defines a prompt word template in response to the user input in the prompt word management system 120 .
  • the prompt word template here is a template of the target prompt word.
  • the prompt word management system 120 performs an evaluation operation on the prompt word to evaluate the actual effect of the prompt word.
  • the prompt word it is determined whether the prompt word has reached the online standard. In some embodiments, it is possible to determine whether the prompt word meets the user's expectations based on the actual effect of the evaluation prompt word, and if it is determined to meet the expectations, it is determined that the online standard has been reached. Further, in block 350, the prompt word that has reached the online standard can be released.
  • the prompt word management system 120 can prompt the user to modify the prompt word template. That is, return to the step shown in the execution box 320.
  • the evaluation shown in the box 330 and the judgment step shown in the box 340 can be continued for the modified prompt word template until the modified prompt word template meets the online standard and can be released.
  • verification may also be performed on it to determine its actual effect.
  • prompt words can be flexibly designed and managed, and prompt words can be encapsulated into callable tasks, which makes the calling of the model very simple and can improve the stability, reliability, convenience and efficiency of prompt word management and model calling in practical applications.
  • FIG4 shows a flow chart of a process 400 for prompt word management according to some embodiments of the present disclosure.
  • the process 400 may be implemented at the prompt word management system 120.
  • the process 400 is described below with reference to FIG1.
  • the prompt word management system 120 in response to receiving a prompt word editing request, presents an editing interface, wherein the editing interface at least includes an input area for receiving a target prompt word.
  • the prompt word management system 120 in response to receiving the prompt word publishing request, encapsulates the target prompt word into a callable target task based at least on the user input in the editing interface, wherein calling the target task will trigger the target prompt word to be input into the model.
  • the editing interface also includes a variable definition area for receiving a definition of at least one variable involved in the target prompt word, and wherein a call to the target task will trigger at least one variable to be assigned a value and the target prompt word with at least one assigned variable to be input into the model.
  • the editing interface further comprises a model definition area for receiving a selection of a target model, and wherein the invocation of the target task triggers the target prompt word to be input into the selected target model.
  • the model definition area is further used to receive a definition of processing parameters of the target model, and wherein the call to the target task will trigger the target model to process the target prompt word according to the defined processing parameters.
  • the editing interface further comprises a task definition area for receiving a task identifier of the target task, and wherein the calling of the target task comprises calling the target task according to the task identifier of the target task.
  • the input area is used to receive a template of a target prompt word, and the template defines the structure of the target prompt word.
  • process 400 also includes: before receiving a prompt word release request, in response to receiving a verification request for a target prompt word, inputting the target prompt word into the model based at least on user input in the editing interface; receiving a model output for the target prompt word from the model; and presenting the received model output.
  • process 400 also includes: in the case where the prompt word edit request is a task creation request, in response to the prompt word publish request, associating the target task to a first version number; and in the case where the prompt word edit request is a modification request for an already created task, in response to the prompt word publish request, associating the target task to a second version number, the second version number being different from the version number of the already created task.
  • calling the target task includes calling the target task according to a version number of the target task.
  • process 400 also includes: in response to receiving an evaluation request for a target prompt word, presenting an evaluation input area; receiving evaluation data for the target prompt word in the evaluation input area, the evaluation data indicating multiple values of at least one variable involved in the target prompt word; generating an evaluation result for the target prompt word based on the evaluation data; and providing access to the evaluation result.
  • generating an evaluation result includes: generating multiple test prompt words by assigning at least one variable using multiple values for at least one variable in the evaluation data respectively; inputting the multiple test prompt words into the model respectively; receiving multiple model outputs for the test prompt words from the model; and generating an evaluation result based on the multiple model outputs.
  • presenting the editing interface includes: determining the authority of the user who initiated the prompt word editing request if the prompt word editing request is a modification request for an already created task; and presenting the editing interface if the user has an editing request for the already created task.
  • the process 400 further includes: presenting a task list on the prompt word management system, the task list including at least one created task.
  • FIG. 5 shows a schematic structural block diagram of an apparatus 500 for prompt word management according to some embodiments of the present disclosure.
  • the apparatus 500 may be implemented as or included in the prompt word management system 120.
  • Each module/component in the apparatus 500 may be implemented by hardware, software, firmware or any combination thereof.
  • the device 500 includes an interface presentation module 510, which is configured to present an editing interface in response to receiving a prompt word editing request, wherein the editing interface at least includes an input area for receiving a target prompt word.
  • the device 700 also includes a publishing module 520, which is configured to encapsulate the target prompt word into a callable target task in response to receiving a prompt word publishing request, at least based on user input in the editing interface, wherein the call of the target task will trigger the target prompt word to be input into the model.
  • the editing interface also includes a variable definition area for receiving a definition of at least one variable involved in the target prompt word, and wherein a call to the target task will trigger at least one variable to be assigned a value and the target prompt word with at least one assigned variable to be input into the model.
  • the editing interface further comprises a model definition area for receiving a selection of a target model, and wherein the invocation of the target task triggers the target prompt word to be input into the selected target model.
  • the model definition area is further used to receive a definition of processing parameters of the target model, and wherein the call to the target task will trigger the target model to process the target prompt word according to the defined processing parameters.
  • the editing interface further comprises a task definition area for receiving a task identifier of the target task, and wherein the calling of the target task comprises calling the target task according to the task identifier of the target task.
  • the input area is used to receive a template of a target prompt word, and the template defines the structure of the target prompt word.
  • the device 500 also includes: a prompt word input module, which is configured to input the target prompt word into the model in response to receiving a verification request for the target prompt word before receiving the prompt word release request, at least based on the user input in the editing interface; an output receiving module, which is configured to receive the model output for the target prompt word from the model; and an output presentation module, which is configured to present the received model output.
  • a prompt word input module which is configured to input the target prompt word into the model in response to receiving a verification request for the target prompt word before receiving the prompt word release request, at least based on the user input in the editing interface
  • an output receiving module which is configured to receive the model output for the target prompt word from the model
  • an output presentation module which is configured to present the received model output.
  • the device 500 also includes: a first association module, configured to associate the target task with a first version number in response to a prompt word publication request when the prompt word editing request is a task creation request; and a second association module, configured to associate the target task with a second version number in response to the prompt word publication request when the prompt word editing request is a modification request for an already created task, the second version number being different from the version number of the already created task.
  • a first association module configured to associate the target task with a first version number in response to a prompt word publication request when the prompt word editing request is a task creation request
  • a second association module configured to associate the target task with a second version number in response to the prompt word publication request when the prompt word editing request is a modification request for an already created task, the second version number being different from the version number of the already created task.
  • calling the target task includes calling the target task according to a version number of the target task.
  • the device 500 also includes: an evaluation area presentation module, configured to present an evaluation input area in response to receiving an evaluation request for a target prompt word; an evaluation data receiving module, configured to receive evaluation data for the target prompt word in the evaluation input area, the evaluation data indicating multiple values of at least one variable involved in the target prompt word; an evaluation result generation module, configured to generate an evaluation result for the target prompt word based on the evaluation data; and an access entry providing module, configured to provide an access entry for the evaluation result.
  • an evaluation area presentation module configured to present an evaluation input area in response to receiving an evaluation request for a target prompt word
  • an evaluation data receiving module configured to receive evaluation data for the target prompt word in the evaluation input area, the evaluation data indicating multiple values of at least one variable involved in the target prompt word
  • an evaluation result generation module configured to generate an evaluation result for the target prompt word based on the evaluation data
  • an access entry providing module configured to provide an access entry for the evaluation result.
  • the evaluation result generation module includes: a test prompt word generation module, configured to generate multiple test prompt words by assigning at least one variable by respectively using multiple values for at least one variable in the evaluation data; an input module, configured to input the multiple test prompt words into the model respectively; a receiving module, configured to receive multiple model outputs for the test prompt words from the model; and a generation module, configured to generate evaluation results based on the multiple model outputs.
  • the interface presentation module 510 includes: an authority determination module, configured to determine the authority of the user who initiates the prompt word editing request when the prompt word editing request is a modification request for an already created task; and a presentation module, configured to present an editing interface if the user has an editing request for an already created task.
  • the apparatus 500 further includes: a task list presenting module configured to present a task list on the prompt word management system, wherein the task list includes at least one created task.
  • the modules and/or units included in the apparatus 500 may be implemented in various ways, including software, hardware, firmware, or any combination thereof.
  • one or more modules and/or units may be implemented using software and/or firmware, such as machine executable instructions stored on a storage medium.
  • some or all of the modules and/or units in the device 500 may be at least partially implemented by one or more hardware logic components.
  • exemplary types of hardware logic components include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
  • one or more steps in the above method may be performed by an appropriate electronic device or combination of electronic devices, which may include, for example, the electronic device 110 in FIG. 1 and/or a combination with other electronic devices.
  • FIG6 shows a block diagram of an electronic device 600 in which one or more embodiments of the present disclosure may be implemented. It should be understood that the electronic device 600 shown in FIG6 is merely exemplary and should not constitute any limitation on the functionality and scope of the embodiments described herein. The electronic device 600 shown in FIG6 may be used to implement the electronic device 110 of FIG1 .
  • the electronic device 600 is in the form of a general electronic device.
  • the components of the electronic device 600 may include, but are not limited to, one or more processors or processing units 610, a memory 620, a storage device 630, one or more communication units 640, one or more input devices 650, and one or more output devices 660.
  • the processing unit 610 may be an actual or virtual processor and is capable of performing various processes according to a program stored in the memory 620. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capability of the electronic device 600.
  • the electronic device 600 typically includes a plurality of computer storage media. Such media can be any available media accessible to the electronic device 600, including but not limited to volatile and non-volatile media, removable and non-removable media.
  • the memory 620 can be a volatile memory (e.g., registers, caches, random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory) or some combination thereof.
  • the storage device 630 can be a removable or non-removable medium, and can include a machine-readable medium, such as a flash drive, a disk, or any other medium, which can be used to store information and/or data and can be accessed within the electronic device 600.
  • a machine-readable medium such as a flash drive, a disk, or any other medium, which can be used to store information and/or data and can be accessed within the electronic device 600.
  • the electronic device 600 may further include additional removable/non-removable, volatile/non-volatile storage media.
  • a disk drive for reading or writing from a removable, non-volatile disk e.g., a “floppy disk”
  • an optical drive for reading or writing from a removable, non-volatile optical disk may be provided.
  • each drive may be connected to a bus (not shown) by one or more data media interfaces.
  • the memory 620 may include a computer program product 625 having one or more program modules configured to perform various methods or actions of various embodiments of the present disclosure.
  • the communication unit 640 implements communication with other electronic devices through a communication medium. Additionally, the functions of the components of the electronic device 600 can be implemented with a single computing cluster or multiple computing machines that can communicate through a communication connection. Therefore, the electronic device 600 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.
  • PC network personal computer
  • the input device 650 may be one or more input devices, such as a mouse, a keyboard, a tracking ball, etc.
  • the output device 660 may be one or more output devices, such as a display, a speaker, a printer, etc.
  • the electronic device 600 may also communicate with one or more external devices (not shown) through the communication unit 640 as needed, such as a storage device, a display device, etc., communicate with one or more devices that allow a user to interact with the electronic device 600, or communicate with any device that allows the electronic device 600 to communicate with one or more other electronic devices (e.g., Such communication can be performed via an input/output (I/O) interface (not shown).
  • I/O input/output
  • a computer-readable storage medium on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above.
  • a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.
  • These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions/actions specified in one or more boxes in the flowchart and/or block diagram is generated.
  • These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and/or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions/actions specified in one or more boxes in the flowchart and/or block diagram.
  • Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions/actions specified in one or more boxes in the flowchart and/or block diagram.
  • each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification.
  • the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved.
  • each square box in the block diagram and/or flow chart, and the combination of the square boxes in the block diagram and/or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Artificial Intelligence (AREA)
  • Machine Translation (AREA)

Abstract

Embodiments of the present disclosure provide a method and apparatus for prompt word management, a device, and a storage medium. The method comprises: in response to receiving a prompt word editing request, presenting an editing interface, wherein the editing interface at least comprises an input area for receiving a target prompt word; and in response to receiving a prompt word publishing request, encapsulating the target prompt word into a callable target task at least on the basis of a user input in the editing interface, wherein the calling of the target task triggers the target prompt word to be inputted to a model. Thus, prompt words can be flexibly designed and managed, and the stability, reliability, convenience and high efficiency of prompt word management and model calling in practical application can be improved.

Description

用于提示词管理的方法、装置、设备和存储介质Method, device, equipment and storage medium for prompt word management

本申请要求2023年07月28日递交的,标题为“用于提示词管理的方法、装置、设备和存储介质”、申请号为202310945515.8的中国发明专利申请的优先权,该申请的全部内容通过引用结合在本申请中。This application claims priority to the Chinese invention patent application entitled “Methods, devices, equipment and storage media for prompt word management” and application number 202310945515.8, filed on July 28, 2023. The entire contents of this application are incorporated by reference into this application.

技术领域Technical Field

本公开的示例实施例总体涉及计算机领域,特别地涉及用于提示词管理的方法、装置、设备和计算机可读存储介质。Example embodiments of the present disclosure generally relate to the field of computers, and more particularly, to methods, devices, apparatuses, and computer-readable storage media for prompt word management.

背景技术Background Art

随着机器学习技术的发展,已经可以利用机器学习模型来执行多种应用环境中的任务。由于高性能的模型的开发和维护需要大量的技术和资金投入,包括庞大的数据集、高性能计算资源以及专业的研究团队等,因此,模型即服务(Model as a Service,MaaS)逐渐成为一种可行的解决方案。用户可以通过将提示词输入到云端中的模型以获取模型输出的针对这个提示词的模型输出,因此,提示词的准确性将影响模型的输出结果。如何能够方便快捷地实现对提示词的管理,是当前要探索的技术问题。With the development of machine learning technology, machine learning models can be used to perform tasks in a variety of application environments. Since the development and maintenance of high-performance models requires a lot of technical and financial investment, including huge data sets, high-performance computing resources, and professional research teams, Model as a Service (MaaS) has gradually become a feasible solution. Users can input prompt words into the model in the cloud to obtain the model output for this prompt word. Therefore, the accuracy of the prompt word will affect the output of the model. How to manage the prompt word conveniently and quickly is a technical problem to be explored at present.

发明内容Summary of the invention

在本公开的第一方面,提供了一种用于提示词管理的方法。该方法包括:响应于接收到提示词编辑请求,呈现编辑界面,其中编辑界面至少包括用于接收目标提示词的输入区域;以及响应于接收到提示词发布请求,至少基于在编辑界面中的用户输入,将目标提示词封装成可调用的目标任务,其中对目标任务的调用将触发目标提示词被输入到模型。In a first aspect of the present disclosure, a method for prompt word management is provided. The method comprises: in response to receiving a prompt word editing request, presenting an editing interface, wherein the editing interface at least comprises an input area for receiving a target prompt word; and in response to receiving a prompt word publishing request, encapsulating the target prompt word into a callable target task based at least on user input in the editing interface, wherein the call of the target task triggers the target prompt word to be input into a model.

在本公开的第二方面,提供了一种用于提示词管理的装置。该装置包括:界面呈现模块,被配置为响应于接收到提示词编辑请求,呈现编辑界面,其中编辑界面至少包括用于接收目标提示词的输入区域;以及发布模块,被配置为响应于接收到提示词发布请求,至少基于在编辑界面中的用户输入,将目标提示词封装成可调用的目标任务,其中对目标任务的调用将触发目标提示词被输入到模型。In a second aspect of the present disclosure, a device for prompt word management is provided. The device includes: an interface presentation module, configured to present an editing interface in response to receiving a prompt word editing request, wherein the editing interface at least includes an input area for receiving a target prompt word; and a publishing module, configured to encapsulate the target prompt word into a callable target task in response to receiving a prompt word publishing request, at least based on user input in the editing interface, wherein the call of the target task will trigger the target prompt word to be input into the model.

在本公开的第三方面,提供了一种电子设备。该设备包括至少一个处理单元;以及至少一个存储器,至少一个存储器被耦合到至少一个处理单元并且存储用于由至少一个处理单元执行的指令。指令在由至少一个处理单元执行时使电子设备执行第一方面的方法。In a third aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit. When the instructions are executed by the at least one processing unit, the electronic device executes the method of the first aspect.

在本公开的第四方面,提供了一种计算机可读存储介质。介质上存储有计算机程序,计算机程序可由处理器执行以实现第一方面的方法。 In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the medium, and the computer program can be executed by a processor to implement the method of the first aspect.

应当理解,该部分中所描述的内容并非旨在限定本公开的实施例的关键特征或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的描述而变得容易理解。It should be understood that the content described in this section is not intended to limit the key features or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

结合附图并参考以下详细说明,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。在附图中,相同或相似的附图标记表示相同或相似的元素,其中:The above and other features, advantages and aspects of the embodiments of the present disclosure 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:

图1示出了本公开的实施例能够在其中实现的示例环境的示意图;FIG1 is a schematic diagram showing an example environment in which embodiments of the present disclosure can be implemented;

图2A至图2J示出了根据本公开的一些实施例的提示词管理系统的示例界面的示意图;2A to 2J are schematic diagrams showing example interfaces of a prompt word management system according to some embodiments of the present disclosure;

图3示出了根据本公开的一些实施例的提示词管理的流程的示意图;FIG3 is a schematic diagram showing a process of prompt word management according to some embodiments of the present disclosure;

图4示出了根据本公开的一些实施例的用于提示词管理的过程的流程图;FIG4 shows a flowchart of a process for prompt word management according to some embodiments of the present disclosure;

图5示出了根据本公开的某些实施例的用于提示词管理的装置的示意性结构框图;以及FIG5 shows a schematic structural block diagram of an apparatus for prompt word management according to certain embodiments of the present disclosure; and

图6示出了其中可以实施本公开的一个或多个实施例的电子设备。FIG. 6 illustrates an electronic device in which one or more embodiments of the present disclosure may be implemented.

具体实施方式DETAILED DESCRIPTION

下面将参照附图更详细地描述本公开的实施例。虽然附图中示出了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反,提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

在本公开的实施例的描述中,术语“包括”及其类似用语应当理解为开放性包含,即“包括但不限于”。术语“基于”应当理解为“至少部分地基于”。术语“一个实施例”或“该实施例”应当理解为“至少一个实施例”。术语“一些实施例”应当理解为“至少一些实施例”。下文还可能包括其他明确的和隐含的定义。In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below.

在本文中,除非明确说明,“响应于A”执行一个步骤并不意味着在“A”之后立即执行该步骤,而是可以包括一个或多个中间步骤。Herein, unless explicitly stated, executing a step “in response to A” does not mean executing the step immediately after “A” but may include one or more intermediate steps.

可以理解的是,本技术方案所涉及的数据(包括但不限于数据本身、数据的获得、使用、存储或删除)应当遵循相应法律法规及相关规定的要求。It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition, use, storage or deletion of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

可以理解的是,在使用本公开各实施例公开的技术方案之前,均应当根据相关法律法规通过适当的方式对本公开所涉及信息的类型、使用范围、使用场景等告知相关用户并获得相关用户的授权,其中,相关用户可以包括任何类型的权利主体,例如个人、企业、团体。It is understandable that before using the technical solutions disclosed in the various embodiments of the present disclosure, the types, scopes of use, usage scenarios, etc. of the information involved in the present disclosure should be informed to relevant users and their authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations. The relevant users may include any type of right holders, such as individuals, enterprises, and groups.

例如,在响应于接收到用户的主动请求时,向相关用户发送提示信息,以明确地提示相关用户,其请求执行的操作将需要获得和使用到相关用户的信息,从而使得相关用户可以根据提示信息来自主地选择是否向执行本公开技术方案的操作的电子设备、应用程序、服务器或存储介质等软件或硬件提供信息。 For example, in response to receiving an active request from a user, a prompt message is sent to the relevant user to clearly prompt the relevant user that the operation requested to be performed will require obtaining and using the information of the relevant user, so that the relevant user can independently choose whether to provide information to software or hardware such as an electronic device, application, server or storage medium that executes the operation of the technical solution of the present disclosure based on the prompt message.

作为一种可选的但非限制性的实现方式,响应于接收到相关用户的主动请求,向相关用户发送提示信息的方式,例如可以是弹窗的方式,弹窗中可以以文字的方式呈现提示信息。此外,弹窗中还可以承载供用户选择“同意”或“不同意”向电子设备提供信息的选择控件。As an optional but non-limiting implementation, in response to receiving an active request from a relevant user, a prompt message is sent to the relevant user, for example, in the form of a pop-up window, in which the prompt message may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to select "agree" or "disagree" to provide information to the electronic device.

可以理解的是,上述通知和获得用户授权过程仅是示意性的,不对本公开的实现方式构成限定,其他满足相关法律法规的方式也可应用于本公开的实现方式中。It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.

图1示出了本公开的实施例能够在其中实现的示例环境100的示意图。在该示例环境100中,电子设备110中运行有提示词管理系统120。用户140可以经由电子设备110和/或电子设备110的附接设备来与提示词管理系统120进行交互。提示词管理系统120,能够提供多种类型的功能或组件的集成,以方便人们进行提示词的创建、修改、调整等活动。FIG1 shows a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented. In the example environment 100, a prompt word management system 120 is running in an electronic device 110. A user 140 can interact with the prompt word management system 120 via the electronic device 110 and/or an attached device of the electronic device 110. The prompt word management system 120 can provide integration of various types of functions or components to facilitate people to create, modify, adjust, and other activities of prompt words.

在一些实施例中,提示词管理系统120可以作为应用被下载、安装在电子设备110。在一些实施例中,提示词管理系统120也可以通过其他方式访问,例如通过网页访问等。In some embodiments, the prompt word management system 120 can be downloaded and installed as an application on the electronic device 110. In some embodiments, the prompt word management system 120 can also be accessed through other methods, such as through a web page.

在图1的环境100中,如果提示词管理系统120被启动,电子设备110可以呈现提示词管理系统120的界面150。界面150可以包括提示词管理系统120所能提供的各类用户界面。界面150有时也称为客户端界面。In the environment 100 of FIG1 , if the prompt word management system 120 is started, the electronic device 110 may present an interface 150 of the prompt word management system 120. The interface 150 may include various user interfaces that the prompt word management system 120 may provide. The interface 150 is sometimes also referred to as a client interface.

在一些实施例中,提示词管理系统120可以借助模型130来实现对提示词的生成、验证、评测等。在本文中,提示词(prompt)是模型的输入或输入的模板,其可以是自然语言和/或其他模态的数据,用于指导或激发模型完成特定处理,以得到期望的模型输出。提示词管理系统120可以与模型130进行交互,以向模型130提供模型输入,并从模型130获得对应的模型输出。模型130可以运行在电子设备110的本地或者在远端服务器。在一些实施例中,模型130可以是机器学习模型、深度学习模型、学习模型、神经网络等。在一些实施例中,模型130可以基于语言模型(LM)。语言模型通过从大量语料中学习,能够具备问答能力。模型130也可以基于其他适当的模型。In some embodiments, the prompt word management system 120 can realize the generation, verification, evaluation, etc. of prompt words with the help of the model 130. In this article, the prompt word (prompt) is the input of the model or the input template, which can be natural language and/or other modal data, used to guide or stimulate the model to complete specific processing to obtain the desired model output. The prompt word management system 120 can interact with the model 130 to provide model input to the model 130 and obtain the corresponding model output from the model 130. The model 130 can run locally on the electronic device 110 or on a remote server. In some embodiments, the model 130 can be a machine learning model, a deep learning model, a learning model, a neural network, etc. In some embodiments, the model 130 can be based on a language model (LM). The language model can have question-answering capabilities by learning from a large amount of corpus. The model 130 can also be based on other appropriate models.

电子设备110可以是任何类型的具有计算能力的设备,包括终端设备和/或服务端设备。终端设备可以是任何类型的移动终端、固定终端或便携式终端,包括移动手机、台式计算机、膝上型计算机、笔记本计算机、上网本计算机、平板计算机、媒体计算机、多媒体平板、个人通信系统(PCS)设备、个人导航设备、个人数字助理(PDA)、音频/视频播放器、数码相机/摄像机、定位设备、电视接收器、无线电广播接收器、电子书设备、游戏设备或者前述各项的任何组合,包括这些设备的配件和外设或者其任何组合。服务端设备例如可以包括计算系统/服务器,诸如大型机、边缘计算节点、云环境中的计算设备,等等。在一些实施例中,提示词管理系统120可以基于云服务来实现。The electronic device 110 can be any type of device with computing capabilities, including terminal devices and/or server devices. The terminal device can be any type of mobile terminal, fixed terminal or portable terminal, including mobile phones, desktop computers, laptop computers, notebook computers, netbook computers, tablet computers, media computers, multimedia tablets, personal communication systems (PCS) devices, personal navigation devices, personal digital assistants (PDAs), audio/video players, digital cameras/camcorders, positioning devices, television receivers, radio broadcast receivers, e-book devices, gaming devices, or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof. The server device can include, for example, a computing system/server, such as a mainframe, an edge computing node, a computing device in a cloud environment, and the like. In some embodiments, the prompt word management system 120 can be implemented based on a cloud service.

应当理解,仅出于示例性的目的描述环境100中各个元素的结构和功能,而不暗示对于本公开的范围的任何限制。It should be understood that the structure and function of the various elements in the environment 100 are described for exemplary purposes only and do not imply any limitation on the scope of the present disclosure.

模型即服务的核心理念是将模型,尤其是优秀的头部模型部署在云端,用户可以通过API或SDK等方式调用模型以实现各种功能。模型即服务可以无需承担昂贵的 研发成本,也能快速地部署和应用先进的AI技术。相较于传统的针对任务训练不同模型的方式,模型即服务的优势包括成本较低、较为灵活(用户可以根据自己的需求选择合适的模型和服务,随时调整使用计划)、易于集成(模型即服务可以通过API或SDK等方式轻松地与现有系统集成,无需大规模改造)、持续更新(云端模型定期更新和优化,保证用户可以享受最新的技术成果)、跨平台兼容(支持多种平台和设备,方便用户进行跨平台开发)以及安全性和隐私保护等等。The core concept of Model as a Service is to deploy models, especially excellent head models, in the cloud. Users can call models through APIs or SDKs to implement various functions. R&D costs can be reduced, and advanced AI technologies can be quickly deployed and applied. Compared with the traditional method of training different models for tasks, the advantages of Model as a Service include lower cost, more flexibility (users can choose appropriate models and services according to their needs and adjust usage plans at any time), easy integration (Model as a Service can be easily integrated with existing systems through APIs or SDKs, etc., without large-scale transformation), continuous updates (cloud models are regularly updated and optimized to ensure that users can enjoy the latest technological achievements), cross-platform compatibility (support for multiple platforms and devices, facilitating users to carry out cross-platform development), security and privacy protection, etc.

此外,通过平台和/或系统等的使用,模型的调用变成一种非常简单的方式。目前,模型的使用方式多是基于指令和问答式的交互,对于用户来说只需要设计一个提示词,用于提供给模型来生成答案。然而,由于提示词的设计需要充分考虑很多信息,比如上下文信息、领域知识以及模型的内在限制等,并且,提示词的设计需要不断地迭代和优化。因此,在实际应用中,设计一个高质量的提示词以引导模型生成更准确和相关的回答是一项相当具有挑战性的任务。In addition, through the use of platforms and/or systems, the call of the model becomes a very simple way. At present, the use of models is mostly based on instructions and question-and-answer interactions. For users, they only need to design a prompt word to provide to the model to generate answers. However, since the design of prompt words needs to fully consider a lot of information, such as contextual information, domain knowledge, and the inherent limitations of the model, and the design of prompt words needs to be continuously iterated and optimized. Therefore, in practical applications, designing a high-quality prompt word to guide the model to generate more accurate and relevant answers is a very challenging task.

根据本公开的实施例,提出了用于提示词管理的改进方案。在本公开的实施例中,响应于接收到提示词编辑请求,呈现至少包括用于接收目标提示词的输入区域的编辑界面。响应于接收到提示词发布请求,至少基于在编辑界面中的用户输入,将目标提示词封装成可调用的目标任务。对目标任务的调用将触发目标提示词被输入到模型。由此,可以实现对提示词进行灵活地设计与管理,并可以将提示词封装成可调用的任务,这会使得模型的调用变得非常简单,有助于提高提示词管理以及模型调用在实际应用中的稳定性、可靠性、便捷性以及高效性。According to an embodiment of the present disclosure, an improved scheme for prompt word management is proposed. In the embodiment of the present disclosure, in response to receiving a prompt word editing request, an editing interface that at least includes an input area for receiving a target prompt word is presented. In response to receiving a prompt word publishing request, the target prompt word is encapsulated into a callable target task based at least on user input in the editing interface. The call to the target task will trigger the target prompt word to be input into the model. Thus, the prompt words can be flexibly designed and managed, and the prompt words can be encapsulated into a callable task, which makes the call of the model very simple, and helps to improve the stability, reliability, convenience and efficiency of prompt word management and model call in practical applications.

以下将参考附图的示例来详细描述本公开的一些示例实施例。Some example embodiments of the present disclosure will be described in detail below with reference to examples of the accompanying drawings.

在本公开的实施例中,提示词管理系统120处于运行状态的情况下,提示词管理系统120响应于接收到提示词编辑请求,呈现至少包括用于接收目标提示词的输入区域的编辑界面。这里的提示词编辑请求例如可以包括但不限于针对新提示词的任务创建请求和针对已有提示词的任务修改请求。以提示词编辑请求为针对新提示词的创建请求为例,目标提示词即为待创建的新提示词,提示词管理系统120可以呈现包括用于接收针对新提示词的输入区域的编辑界面。In an embodiment of the present disclosure, when the prompt word management system 120 is in operation, the prompt word management system 120 presents an editing interface including at least an input area for receiving a target prompt word in response to receiving a prompt word editing request. The prompt word editing request here may include, for example, but is not limited to, a task creation request for a new prompt word and a task modification request for an existing prompt word. Taking the prompt word editing request as a creation request for a new prompt word as an example, the target prompt word is the new prompt word to be created, and the prompt word management system 120 may present an editing interface including an input area for receiving the new prompt word.

进一步地,响应于接收到提示词发布请求,提示词管理系统120至少基于在编辑界面中的用户输入,基于目标提示词得到可调用的目标任务。示例性的,可以将目标提示词封装成可调用任务对应的一段代码,通过触发对这段代码的调用,即可将对应的目标提示词输入到模型。示例性的,若目标提示词指示与文章翻译相关联的提示词,可以基于目标提示词与模型的调用参数生成指示翻译一篇文章的目标任务,模型进而执行该目标任务。关于模型执行目标任务的具体方式,响应于调用目标任务,目标提示词被输入到模型。模型可以基于目标提示词来执行目标任务所指示的操作。例如,基于目标提示词,执行对一篇文章的翻译。Further, in response to receiving the prompt word publishing request, the prompt word management system 120 obtains the callable target task based on the target prompt word at least based on the user input in the editing interface. Exemplarily, the target prompt word can be encapsulated into a section of code corresponding to the callable task, and by triggering the call to this section of code, the corresponding target prompt word can be input to the model. Exemplarily, if the target prompt word indicates the prompt word associated with the article translation, the target task indicating the translation of an article can be generated based on the call parameters of the target prompt word and the model, and the model then performs the target task. About the specific mode of the model to perform the target task, in response to calling the target task, the target prompt word is input to the model. The model can perform the operation indicated by the target task based on the target prompt word. For example, based on the target prompt word, the translation of an article is performed.

以下将结合图2A至图2J来描述本公开的一些实施例的提示词管理系统的示例界面。图2A至图2J分别示出了根据本公开的一些实施例的编辑界面的示例的示意图。图2A至图2J示出的编辑界面可以对应于提示词管理系统120,提示词管理系统120集成多个不同类型的组件。应当理解,图2A至图2J所示的编辑界面仅仅是示例界面,实际可以存在各种界面设计。界面中的各个图形元素可以具有不同的布置和不 同的视觉表示,其中的一个或多个元素可以省略或被替换,并且还可以存在一个或多个其他元素。本公开的实施例在此方面不受限制。The following will describe example interfaces of the prompt word management system of some embodiments of the present disclosure in conjunction with Figures 2A to 2J. Figures 2A to 2J are schematic diagrams of examples of editing interfaces according to some embodiments of the present disclosure. The editing interfaces shown in Figures 2A to 2J may correspond to the prompt word management system 120, which integrates multiple different types of components. It should be understood that the editing interfaces shown in Figures 2A to 2J are only example interfaces, and various interface designs may actually exist. The various graphical elements in the interface may have different arrangements and different The same visual representation may be used, one or more elements may be omitted or replaced, and one or more other elements may also exist. The embodiments of the present disclosure are not limited in this respect.

在一些实施例中,在提示词管理系统120处于运行状态的情况下,提示词管理系统120可以呈现如图2A所示的用于接收提示词编辑请求的编辑界面200A。在一些实施例中,由于提示词管理系统120支持多环境的应用,因此,在利用提示词管理系统执行针对新提示词的创建任务等任务之前,需要先确定任务应用的目标环境。在一些实施例中,响应于检测到对环境选择控件201的触发操作,呈现多个待选择的候选环境(如图2A所示的地区A线上、地区B线上、地区C线上)。可以响应于对候选环境的选择操作,确定任务应用的目标环境。例如,响应于接收到对地区A线上这一候选环境的点击操作,将其确定为任务应用的目标环境。由此,可以基于用户需求以及实际的应用环境,选择符合地区要求的目标环境。In some embodiments, when the prompt word management system 120 is in operation, the prompt word management system 120 may present an editing interface 200A for receiving a prompt word editing request as shown in FIG2A. In some embodiments, since the prompt word management system 120 supports multi-environment applications, before using the prompt word management system to perform tasks such as creating tasks for new prompt words, it is necessary to first determine the target environment for the task application. In some embodiments, in response to detecting a trigger operation on the environment selection control 201, a plurality of candidate environments to be selected are presented (area A online, area B online, and area C online as shown in FIG2A). The target environment for the task application may be determined in response to the selection operation on the candidate environment. For example, in response to receiving a click operation on the candidate environment on the area A line, it is determined as the target environment for the task application. Thus, a target environment that meets the regional requirements may be selected based on user needs and the actual application environment.

在一些实施例中,在提示词管理系统120上还可以呈现包括已创建的至少一个任务的任务列表。如图2A所示,编辑界面200A中呈现有“我的任务列表”以及“公开的任务列表”两个任务列表。在一个示例中,“我的任务列表”例如可以为包括提示词管理系统120对应的当前用户所创建的至少一个任务的任务列表,“公开的任务列表”例如可以为包括当前用户之外的其他用户所创建的、公开以使得当前用户可以获取到的至少一个任务的任务列表。可以理解,还可以呈现其他任务列表,或者仅呈现一个包含所有任务的任务列表,本公开对此不作限制。响应于检测到对“我的任务列表”或对“公开的任务列表”的触发操作,可以切换至呈现相应任务列表内的至少一个任务。图2A中示出了呈现“我的任务列表”所包括的至少一个任务的示例,“我的任务列表”包括任务A、任务B、任务C以及任务D。In some embodiments, a task list including at least one created task can also be presented on the prompt word management system 120. As shown in FIG. 2A, two task lists, "My Task List" and "Public Task List", are presented in the editing interface 200A. In one example, "My Task List" can be, for example, a task list including at least one task created by the current user corresponding to the prompt word management system 120, and "Public Task List" can be, for example, a task list including at least one task created by other users other than the current user and disclosed so that the current user can obtain it. It can be understood that other task lists can also be presented, or only one task list containing all tasks can be presented, and the present disclosure does not limit this. In response to detecting a trigger operation on "My Task List" or on "Public Task List", it can be switched to present at least one task in the corresponding task list. An example of presenting at least one task included in "My Task List" is shown in FIG. 2A, and "My Task List" includes Task A, Task B, Task C and Task D.

任务列表中包括可以用于标识任务的任务ID以及任务名称、用于指示任务重要信息(例如所需模型、任务目的等)的任务关键字、任务的创建时间、更新时间以及创建人等。任务的创建时间即为任务初始创建的时间,任务的更新时间即为任务最后一次进行更新的时间。在一些实施例中,可以与任务列表所包括的至少一个任务相关联地呈现至少一个操作控件。在一些实施例中,编辑界面200A包括指示删除任务的至少一个删除控件205,至少一个删除控件205分别对应于任务列表中的至少一个任务。响应于检测到对删除控件205的触发操作,可以确定接收到对相应的任务的任务删除请求。响应于该任务删除请求,对应的任务将被移除编辑界面200A。The task list includes a task ID and a task name that can be used to identify the task, a task keyword for indicating important task information (such as a required model, task purpose, etc.), the creation time, update time, and creator of the task. The creation time of the task is the time when the task was initially created, and the update time of the task is the time when the task was last updated. In some embodiments, at least one operation control can be presented in association with at least one task included in the task list. In some embodiments, the editing interface 200A includes at least one delete control 205 indicating the deletion of the task, and the at least one delete control 205 corresponds to at least one task in the task list. In response to detecting a trigger operation on the delete control 205, it can be determined that a task deletion request for the corresponding task has been received. In response to the task deletion request, the corresponding task will be removed from the editing interface 200A.

在一些实施例中,编辑界面200A还可以包括与任务列表所包括的至少一个任务相关联的至少一个修改控件204,至少一个修改控件204分别对应于任务列表中的至少一个任务。在一些实施例中,编辑界面200A还包括创建控件203。可以理解,编辑界面200A还可以包括其他操作控件,本公开对此不作限制。在一些实施例中,响应于检测到对创建控件203的触发操作,可以确定接收到针对新提示词的任务创建请求。响应于检测到对修改控件204的触发操作,可以确定接收到针对已有提示词的任务修改请求。In some embodiments, the editing interface 200A may further include at least one modification control 204 associated with at least one task included in the task list, and the at least one modification control 204 corresponds to at least one task in the task list. In some embodiments, the editing interface 200A also includes a creation control 203. It is understood that the editing interface 200A may also include other operation controls, which are not limited by the present disclosure. In some embodiments, in response to detecting a trigger operation to the creation control 203, it may be determined that a task creation request for a new prompt word is received. In response to detecting a trigger operation to the modification control 204, it may be determined that a task modification request for an existing prompt word is received.

在一些实施例中,由于任务与提示词相关联,可以将对任务的任务创建请求和/或任务修改请求理解为对提示词的创建请求和/或修改请求。这样的创建请求和修改请求均属于对提示词的提示词编辑请求。也即,响应于检测到对创建控件203和/或修改 控件204的触发操作,可以接收到针对提示词的提示词编辑请求(创建请求和/或修改请求)。In some embodiments, since the task is associated with the prompt word, the task creation request and/or task modification request for the task can be understood as a creation request and/or modification request for the prompt word. Such a creation request and modification request are both prompt word editing requests for the prompt word. That is, in response to detecting the creation control 203 and/or modification request, The triggering operation of the control 204 can receive a prompt word editing request (creation request and/or modification request) for the prompt word.

在一些实施例中,还可以通过其他方式接收提示词编辑请求。示例性的,可以响应于检测到与提示词编辑请求相对应的语音、姿态,或检测到对相应物理控件的点击操作,确定接收到提示词编辑请求。这里的语音、姿态可以是预先设置好的,或者,包括预先设置好的关键词/关键动作。例如,响应于检测到语音“创建任务”或者“修改任务A”等,确定接收到提示词编辑请求。In some embodiments, the prompt word editing request can also be received in other ways. Exemplarily, it can be determined that the prompt word editing request is received in response to detecting a voice or gesture corresponding to the prompt word editing request, or detecting a click operation on a corresponding physical control. The voice and gesture here can be pre-set, or include pre-set keywords/key actions. For example, in response to detecting a voice "create task" or "modify task A", etc., it is determined that the prompt word editing request is received.

需要注意的是,在提示词编辑请求是对已创建任务的修改请求(例如为响应于检测到对修改控件204的触发操作所接收到的任务修改请求)的情况下,提示词管理系统120还可以确定当前用户的权限。具体地,一个任务可以是当前用户自行创建的(如图2A所示的“我的任务列表”中所包括的至少一个任务),也可以是其他用户创建好后公开以使得当前用户可以获取的(如图2A所示的“公开的任务列表”中所包括的至少一个任务)。对于用户自己所创建的任务,可以理解为用户拥有对其进行编辑的最高权限,用户可以对其进行修改等编辑。然而,对于其他用户创建好后公开以使得当前用户可以获取的任务,提示词管理系统120需要确定当前用户的权限以确定当前用户是否具有对其进行编辑的资格。可以理解,不同用户对同一任务的权限可以是不同的,例如,用户A具有编辑权限,而用户B仅具有使用权限而不具有编辑权限。对于已创建的任务,提示词管理系统120可以仅在确定用户具有对已创建任务的编辑权限的情况下,呈现编辑界面。可以理解,对于创建新任务的情况,提示词管理系统120可以直接呈现编辑界面而无需验证编辑权限。由此,不同用户对同一任务可以具有不同的权限,有助于团队中不同用户之间可以共享任务,实现快速协作和有效沟通,有助于提高提示词管理的效率。It should be noted that, in the case where the prompt word editing request is a modification request for a created task (for example, a task modification request received in response to detecting a trigger operation on the modification control 204), the prompt word management system 120 can also determine the authority of the current user. Specifically, a task can be created by the current user (at least one task included in the "My Task List" as shown in FIG. 2A), or it can be created by other users and then made public so that the current user can obtain it (at least one task included in the "Public Task List" as shown in FIG. 2A). For tasks created by the user himself, it can be understood that the user has the highest authority to edit it, and the user can modify it. However, for tasks created by other users and made public so that the current user can obtain it, the prompt word management system 120 needs to determine the authority of the current user to determine whether the current user has the qualifications to edit it. It can be understood that different users may have different authorities for the same task, for example, user A has editing authority, while user B only has use authority but not editing authority. For created tasks, the prompt word management system 120 can present the editing interface only when it is determined that the user has editing authority for the created task. It is understood that, in the case of creating a new task, the prompt word management system 120 can directly present an editing interface without verifying the editing authority. Thus, different users can have different permissions for the same task, which helps different users in the team to share tasks, achieve rapid collaboration and effective communication, and help improve the efficiency of prompt word management.

在一些实施例中,编辑界面200A还可以包括帮助控件202。响应于检测到对帮助文档帮助控件202的触发操作,可以切换至呈现文档界面(图中未示出),文档界面中例如可以包括用于提示用户关于提示词管理系统120的交互方法、提示词创建操作步骤、提示词修改操作步骤等等的文本信息和/或图像信息。这里的触发操作包括但不限于点击操作、长按操作、滑动操作、双击操作等等。In some embodiments, the editing interface 200A may further include a help control 202. In response to detecting a trigger operation on the help document help control 202, the interface 200A may switch to a document presentation interface (not shown in the figure), which may include text information and/or image information for prompting the user about the interaction method of the prompt word management system 120, the prompt word creation operation steps, the prompt word modification operation steps, etc. The trigger operation here includes but is not limited to a click operation, a long press operation, a slide operation, a double-click operation, etc.

在一些实施例中,接收到提示词编辑请求之后,响应于该提示词编辑请求,可以呈现如图2B所示的编辑界面200B。示例性的,响应于检测到针对创建控件203和/或修改控件204的触发操作,可以呈现如图2B所示的编辑界面200B。编辑界面200B可以包括任务定义区域210。在一些实施例中,任务定义区域210用于接收目标任务的任务标识符,任务标识符可以被用于后续对目标任务的调用。具体地,在需要调用目标任务时,可以基于目标任务的任务标识符来执行对目标任务的调用,这有助于提升任务调用的效率。这里的任务标识符包括任务名称以及任务描述中的至少一项。可以理解,不同任务的任务标识符不同(也即,任务名称与任务描述中的至少一项不同)。In some embodiments, after receiving the prompt word edit request, in response to the prompt word edit request, an editing interface 200B as shown in Figure 2B can be presented. Exemplary, in response to detecting a trigger operation for creating a control 203 and/or modifying a control 204, an editing interface 200B as shown in Figure 2B can be presented. The editing interface 200B may include a task definition area 210. In some embodiments, the task definition area 210 is used to receive a task identifier of a target task, and the task identifier may be used for subsequent calls to the target task. Specifically, when the target task needs to be called, the call to the target task may be performed based on the task identifier of the target task, which helps to improve the efficiency of task calls. The task identifier here includes at least one of a task name and a task description. It is understandable that the task identifiers of different tasks are different (that is, at least one of a task name and a task description is different).

编辑界面200B中包括输入区域215。在一些实施例中,输入区域215可以用于接收目标提示词的模板,这个模板可以用于定义目标提示词的结构,包括目标提示词中所包含的一个或多个变量。这样,相对于定义一次性的、完整的提示词内容,可以通过设计模板的形式,允许在具体应用中向模板中填充对应变量的值,来得到输入给 模型的完整提示词。提示词管理系统120响应于在输入区域215检测到用户输入,将用户输入确定为接收到的目标提示词的模板。输入区域215还可以将接收到的目标提示词的模板呈现给用户。如图2B所示,输入区域215接收到的目标提示词的模板例如为“需要是根据message实现echo功能,一定要原文返回,不要增加其他任何内容。message:{{msg}}echo:”。The editing interface 200B includes an input area 215. In some embodiments, the input area 215 can be used to receive a template of a target prompt word, and the template can be used to define the structure of the target prompt word, including one or more variables contained in the target prompt word. In this way, compared with defining a one-time, complete prompt word content, a template can be designed to allow the values of corresponding variables to be filled into the template in a specific application to obtain the input to the target prompt word. The prompt word management system 120 detects the user input in the input area 215 and determines the user input as the template of the received target prompt word. The input area 215 can also present the template of the received target prompt word to the user. As shown in FIG2B , the template of the target prompt word received in the input area 215 is, for example, "It is necessary to implement the echo function according to the message, and the original text must be returned without adding any other content. Message: {{msg}}echo:".

由于目标提示词中可能会包含至少一个变量(如图2B所示的message),为对变量做出限定以使得后续对变量的赋值更加准确,编辑界面200B还可以包括变量定义区域220。在一些实施例中,变量定义区域220用于接收对目标提示词中涉及的至少一个变量的定义,包括但不限于变量的名称(即变量名)、变量的描述、变量默认值等等。如图2B所示,变量的定义可以指示变量名为“msg”,变量描述为“echo返回的message”,若在“变量默认值”这一栏中接收到用户输入,可以将接收到的用户输入确定为对变量的默认赋值。若在“变量默认值”中未接收到用户输入,可以在提示词被发布后,响应于检测到对目标任务的调用,呈现用于提示用户对至少一个变量进行赋值的赋值提示信息。这里的呈现方式包括但不限于语音、震动、消息框、弹窗等等。用户可以基于赋值提示信息对至少一个变量进行手动赋值,或者,指示提示词管理系统120基于相关联的数据库自行赋值。Since the target prompt word may contain at least one variable (message as shown in FIG. 2B), in order to define the variable so that the subsequent assignment of the variable is more accurate, the editing interface 200B may also include a variable definition area 220. In some embodiments, the variable definition area 220 is used to receive the definition of at least one variable involved in the target prompt word, including but not limited to the name of the variable (i.e., the variable name), the description of the variable, the variable default value, etc. As shown in FIG. 2B, the definition of the variable may indicate that the variable name is "msg", the variable description is "message returned by echo", and if the user input is received in the "variable default value" column, the received user input may be determined as the default assignment of the variable. If the user input is not received in the "variable default value", after the prompt word is released, in response to detecting the call to the target task, an assignment prompt information for prompting the user to assign a value to at least one variable may be presented. The presentation method here includes but is not limited to voice, vibration, message box, pop-up window, etc. The user can manually assign a value to at least one variable based on the assignment prompt information, or instruct the prompt word management system 120 to assign a value based on the associated database.

编辑界面200B还包括模型配置区域230。在一些实施例中,模型配置区域230可以用于接收对目标模型的选择。在后续对目标任务进行调用时,目标关键词将被输入到模型配置区域230中所选择的目标模型。如图2B所示,模型配置区域230可以包括模型选择入口231。响应于检测到对模型选择入口231的点击操作,可以呈现多个模型,进而响应于对某一个模型(例如模型A)的选择操作,将其确定为对应的提示词将被输入至的目标模型。在一些实施例中,模型选择入口231还可以呈现预先设置好的默认模型,该模型即为目标模型。The editing interface 200B also includes a model configuration area 230. In some embodiments, the model configuration area 230 can be used to receive a selection of a target model. When the target task is subsequently called, the target keyword will be input into the target model selected in the model configuration area 230. As shown in Figure 2B, the model configuration area 230 may include a model selection entry 231. In response to detecting a click operation on the model selection entry 231, multiple models can be presented, and then in response to a selection operation on a certain model (such as model A), it is determined as the target model to which the corresponding prompt word will be input. In some embodiments, the model selection entry 231 can also present a pre-set default model, which is the target model.

在一些实施例中,为了保证后续任务调用以及任务执行的准确性,模型配置区域230还用于接收对目标模型的处理参数的定义。如图2B所示,模型配置区域230可以包括程度、最大长度、停止序列、顶部、存在惩罚、频率惩罚等参数的设置入口。In some embodiments, in order to ensure the accuracy of subsequent task calls and task execution, the model configuration area 230 is also used to receive the definition of processing parameters for the target model. As shown in Figure 2B, the model configuration area 230 can include setting entries for parameters such as degree, maximum length, stop sequence, top, existence penalty, frequency penalty, etc.

示例性地,模型配置区域230可以配置的参数可以包括程度(temperature)参数。程度可以用于控制生成的文本的多样性和创意程度。它的取值范围通常在0.1到1之间,表示在生成文本时随机性的大小。当取值较低时,生成的文本会更加保守和可预测,反之则更加大胆和不可预测。例如,如果程度的取值设置为0.5,那么生成的文本将会有一定的创意和变化,但仍然保持着一定的连贯性和可读性。而如果将程度的取值设置为1,生成的文本会更加随机和不可预测,可能会包含一些奇怪的语句和无意义的内容。因此,需要根据具体的需求和应用场景来调整程度的值,以达到最佳的效果。Exemplarily, the parameters that can be configured in the model configuration area 230 may include a temperature parameter. The temperature can be used to control the diversity and creativity of the generated text. Its value range is usually between 0.1 and 1, indicating the size of randomness when generating text. When the value is low, the generated text will be more conservative and predictable, and vice versa, it will be more bold and unpredictable. For example, if the value of the temperature is set to 0.5, the generated text will have certain creativity and changes, but still maintain certain coherence and readability. And if the value of the temperature is set to 1, the generated text will be more random and unpredictable, and may contain some strange sentences and meaningless content. Therefore, it is necessary to adjust the value of the temperature according to specific needs and application scenarios to achieve the best effect.

示例性地,模型配置区域230可以配置的参数还可以包括最大长度(Maximum length)参数。最大长度是指生成的文本的最大长度。可以通过设置生成文本的最大长度,以控制生成文本的长度。如果设置的最大长度是100,那么生成的文本将不会超过100个字符。这个参数可以帮助控制生成文本的长度,以适应不同的应用场景。例 如,如果需要生成一些简短的文本,可以将最大长度设置为50,而如果需要生成一些长篇大论的文本,可以将最大长度设置为500或更高。For example, the parameters that can be configured in the model configuration area 230 may also include a maximum length parameter. The maximum length refers to the maximum length of the generated text. The maximum length of the generated text can be set to control the length of the generated text. If the maximum length is set to 100, the generated text will not exceed 100 characters. This parameter can help control the length of the generated text to adapt to different application scenarios. For example, if you need to generate some short text, you can set the maximum length to 50, and if you need to generate some long text, you can set the maximum length to 500 or higher.

示例性地,模型配置区域230可以配置的参数还可以包括停止序列(Stop sequences)参数。停止序列用于指定在生成文本时停止的标志。当生成的文本中出现了停止序列中指定的任何一个标志时,API就会停止生成文本并返回结果。这个参数可以用来控制生成文本的长度和内容,以及避免生成无意义或不合话的文本。例如,如果将停止序列设置为“。”、“?”、“!”等常见的句号标志,API就会在生成一个完整的句子后停止以避免生成过长或不完整的文本。Exemplarily, the parameters that can be configured in the model configuration area 230 may also include a stop sequence parameter. The stop sequence is used to specify a sign to stop when generating text. When any of the signs specified in the stop sequence appears in the generated text, the API stops generating text and returns the result. This parameter can be used to control the length and content of the generated text, as well as to avoid generating meaningless or incoherent text. For example, if the stop sequence is set to common period signs such as ".", "?", "!", the API will stop after generating a complete sentence to avoid generating too long or incomplete text.

示例性地,模型配置区域230可以配置的参数还可以包括顶部(Top P)参数。顶部用于控制生成文本的多样性和可预测性。具体来说,顶部是一个结余0和1之间的小数,表示生成文本时只考虑概率最高的前P个单词。例如,如果顶部设置为0.5,则生成文本时只考虑概率最高的50%的单词,而忽略概率较低的单词。这样可以使生成的文本更加可预测,但也可能导致文本过于单调和缺乏创意。因此,根据具体的应用场景和需求,可以适当调整顶部的值来平衡文本的多样性和可预测性。Exemplarily, the parameters that can be configured in the model configuration area 230 may also include a Top P parameter. Top is used to control the diversity and predictability of the generated text. Specifically, Top is a decimal between 0 and 1, indicating that only the top P words with the highest probability are considered when generating text. For example, if Top is set to 0.5, only 50% of the words with the highest probability are considered when generating text, while words with lower probabilities are ignored. This can make the generated text more predictable, but it may also cause the text to be too monotonous and lack creativity. Therefore, according to the specific application scenarios and requirements, the value of Top can be appropriately adjusted to balance the diversity and predictability of the text.

示例性地,模型配置区域230可以配置的参数还可以包括存在惩罚(Presence penalty)参数。存在惩罚用于控制生成的文本中是否包含特定的单词或短语。如果存在惩罚的值越高,生成的文本中就越不可能包含这些单词或短语。这个参数可以用来控制生成的文本的风格和内容,使其更符合特定的需求。例如,如果需要生成关于健康饮食的文本,可以设置存在惩罚来确保生成的文本中不会出现不健康的食物或饮料。Exemplarily, the parameters that can be configured in the model configuration area 230 may also include a presence penalty parameter. The presence penalty is used to control whether specific words or phrases are included in the generated text. The higher the value of the presence penalty, the less likely it is that these words or phrases will be included in the generated text. This parameter can be used to control the style and content of the generated text to make it more in line with specific needs. For example, if you need to generate text about healthy eating, you can set a presence penalty to ensure that unhealthy food or drinks do not appear in the generated text.

示例性地,模型配置区域230可以配置的参数还可以包括频率惩罚(Frequency penalty)参数。频率惩罚用于控制生成文本中重复单词的频率。如果设置了较高的频率惩罚值,生成的文本中就会尽量避免重复使用相同的单词,从而使生成的文本更加多样化和丰富。相反,如果设置了较低的频率惩罚值,生成的文本中就可能会出现大量重复的单词,从而使生成的文本更加简单和重复。因此,通过调整频率惩罚参数,可以控制生成文本的多样性和复杂度。Exemplarily, the parameters that can be configured in the model configuration area 230 may also include a frequency penalty parameter. The frequency penalty is used to control the frequency of repeated words in the generated text. If a higher frequency penalty value is set, the generated text will try to avoid repeating the same words, making the generated text more diverse and rich. On the contrary, if a lower frequency penalty value is set, a large number of repeated words may appear in the generated text, making the generated text simpler and more repetitive. Therefore, by adjusting the frequency penalty parameter, the diversity and complexity of the generated text can be controlled.

可以响应于在至少一个设置入口处接收到的设置操作,确定目标模型关于程度、最大长度、停止序列、顶部、存在惩罚、频率惩罚等的处理参数。在一些实施例中,可以提供默认的参数,用户可以对默认的参数进行修改以确定目标模型的处理参数。可以理解,对于不同的模型,其可以配置的处理参数可以是不同的。在一些实施例中,后续调用目标任务时,目标模型将根据所定义的处理参数来处理目标提示词以执行目标任务。在一些实施例中,模型配置区域230模型配置区域230中所确定的目标模型还可以用于后续对目标提示词的模板的验证、评测等等。Can be in response to the setting operation received at least one setting entrance, determine the processing parameters of target model about degree, maximum length, stop sequence, top, existence penalty, frequency penalty etc.In certain embodiments, default parameter can be provided, and the user can modify the default parameter to determine the processing parameters of target model.It can be understood that for different models, the processing parameters that can be configured can be different.In certain embodiments, when the target task is subsequently called, the target model will process the target prompt word to perform the target task according to the defined processing parameters.In certain embodiments, the target model determined in the model configuration area 230 model configuration area 230 can also be used for the subsequent verification, evaluation etc. of the template of the target prompt word.

如图2B所示,在一些实施例中,编辑界面200B中还可以包括编辑控件呈现区域240。编辑控件呈现区域240中可以呈现有保存控件241。在一些实施例中,响应于检测到对保存控件241的触发操作,可以确定接收到对目标提示词的保存请求。可以保存在编辑界面200B中所确定的目标提示词的模板、变量的定义、模型的处理参数等信息。在一些实施例中,这些信息将被保存至草稿箱中以便下次继续进行编辑。As shown in Fig. 2B, in some embodiments, the editing interface 200B may also include an editing control presentation area 240. A save control 241 may be presented in the editing control presentation area 240. In some embodiments, in response to detecting a trigger operation to the save control 241, it may be determined that a save request to the target prompt word is received. Information such as the template of the target prompt word determined in the editing interface 200B, the definition of the variables, the processing parameters of the model, etc. may be saved. In some embodiments, this information will be saved in a draft box so that editing can be continued next time.

编辑控件呈现区域240中还可以呈现有验证控件242。在一些实施例中,在目标提示词被发布之前,也即在接收提示词发布请求之前,响应于检测到对验证控件242 的触发操作,可以确定接收到对目标提示词的验证请求。响应于接收到针对目标提示词的验证请求,至少基于在编辑界面中的用户输入,将目标提示词输入到模型,并从模型接收到针对目标提示词的模型输出。进一步的,还可以将接收到的模型输出呈现在编辑界面200B中。如图2C所示,可以响应于接收到对验证控件242的触发操作,确定接收到针对目标提示词的验证请求。进一步地,响应于针对目标提示词的验证请求,在编辑界面200B呈现验证区域250。验证区域250包括变量呈现区域251,变量呈现区域251可以基于用户的输入,呈现对于目标提示词的模板中的变量的赋值(这个赋值即为用户的输入)。验证区域250还包括用于呈现目标提示词的模板的模板呈现区域252以及用于呈现从模型接收到的针对目标提示词的模型输出的输出呈现区域253。在一些实施例中,验证区域250还呈现有取消控件254以及开始调试控件255。响应于检测到对取消控件254的触发操作,可以结束对目标提示词的验证。可以理解,验证取消后,编辑界面200B将停止呈现验证区域250。响应于检测到对开始调试控件255的触发操作,可以开始对目标提示词的验证,将变量呈现区域251所呈现的变量的赋值赋予模板呈现区域252所示的模板以得到目标提示词,这个目标提示词将被输入到模型。可以从模型接收到针对目标提示词的模型输出并将其呈现在输出呈现区域253中。由此,用户可以基于输出呈现区域253中所呈现的模型输出确定是否需要调整目标提示词的模板,并通过多次重复这样的验证操作,来得到满足用户需求的提示词的模板,可以提升最终生成的提示词的准确性。A validation control 242 may also be presented in the edit control presentation area 240. In some embodiments, before the target prompt word is published, that is, before receiving the prompt word publishing request, in response to detecting the validation control 242 In response to the trigger operation of the verification control 242, it can be determined that a verification request for the target prompt word is received. In response to receiving the verification request for the target prompt word, at least based on the user input in the editing interface, the target prompt word is input into the model, and the model output for the target prompt word is received from the model. Further, the received model output can also be presented in the editing interface 200B. As shown in Figure 2C, in response to receiving the trigger operation of the verification control 242, it can be determined that a verification request for the target prompt word is received. Further, in response to the verification request for the target prompt word, a verification area 250 is presented in the editing interface 200B. The verification area 250 includes a variable presentation area 251, and the variable presentation area 251 can present the assignment of the variables in the template of the target prompt word based on the user's input (this assignment is the user's input). The verification area 250 also includes a template presentation area 252 for presenting the template of the target prompt word and an output presentation area 253 for presenting the model output for the target prompt word received from the model. In some embodiments, the verification area 250 also presents a cancel control 254 and a start debugging control 255. In response to detecting the trigger operation of cancel control 254, the verification of the target prompt word can be ended. It can be understood that after the verification is canceled, the editing interface 200B will stop presenting the verification area 250. In response to detecting the trigger operation of the start debugging control 255, the verification of the target prompt word can be started, and the assignment of the variable presented in the variable presentation area 251 is assigned to the template shown in the template presentation area 252 to obtain the target prompt word, and this target prompt word will be input into the model. The model output for the target prompt word can be received from the model and presented in the output presentation area 253. Thus, the user can determine whether the template of the target prompt word needs to be adjusted based on the model output presented in the output presentation area 253, and by repeating such verification operations for many times, a template of the prompt word that meets the user's needs can be obtained, which can improve the accuracy of the prompt word finally generated.

如图2D所示,编辑控件呈现区域240中还可以呈现有评测控件243。在一些实施例中,响应于检测到对评测控件243的触发操作,可以确定接收到对目标提示词的评测请求。响应于接收到针对目标提示词的评测请求,可以呈现评测输入区域。评测输入区域可以用于接收针对目标提示词的评测数据,这里的评测数据指示目标提示词的模板中涉及的至少一个变量的多个取值。进一步地,将基于评测数据来生成目标提示词的评测结果。如图2D所示,可以响应于接收到对评测控件243的触发操作,确定接收到针对目标提示词的评测请求。响应于接收到评测请求,可以在编辑界面200B呈现评测提示信息260。评测提示信息260可以通过呈现例如“评测集模板生成中”的文本来提示用户正在生成用于评测的评测集模板。响应于评测集模板生成完成,可以取消呈现评测提示信息260。进一步的,可以呈现如图2E所示的评测输入区域270。As shown in FIG2D , an evaluation control 243 may also be presented in the editing control presentation area 240. In some embodiments, in response to detecting a trigger operation on the evaluation control 243, it may be determined that an evaluation request for the target prompt word is received. In response to receiving an evaluation request for the target prompt word, an evaluation input area may be presented. The evaluation input area may be used to receive evaluation data for the target prompt word, where the evaluation data indicates multiple values of at least one variable involved in the template of the target prompt word. Further, the evaluation result of the target prompt word is generated based on the evaluation data. As shown in FIG2D , in response to receiving a trigger operation on the evaluation control 243, it may be determined that an evaluation request for the target prompt word is received. In response to receiving the evaluation request, an evaluation prompt information 260 may be presented in the editing interface 200B. The evaluation prompt information 260 may prompt the user that an evaluation set template for evaluation is being generated by presenting a text such as "generating an evaluation set template". In response to the completion of the generation of the evaluation set template, the presentation of the evaluation prompt information 260 may be cancelled. Furthermore, an evaluation input area 270 as shown in FIG. 2E may be presented.

如图2E所示,响应于接收到针对图2D所示的评测控件的触发操作,确定接收到对目标提示词的评测请求。编辑界面200B响应于接收到评测请求,可以呈现评测输入区域270。模型配置区域230评测输入区域270例如至少可以包括评测集输入入口271、评测集上传控件272以及评测控件273。评测集输入入口271可以用于接收针对目标提示词的评测数据(也可以被称之为评测集)。这里的评测数据可以指示目标提示词的模板中涉及的至少一个变量的多个取值。例如,评测数据可以指示针对变量A的3个取值分别为a、b、c。As shown in Figure 2E, in response to receiving a trigger operation for the evaluation control shown in Figure 2D, it is determined that an evaluation request for the target prompt word is received. In response to receiving the evaluation request, the editing interface 200B can present an evaluation input area 270. The evaluation input area 270 of the model configuration area 230 can, for example, at least include an evaluation set input entrance 271, an evaluation set upload control 272, and an evaluation control 273. The evaluation set input entrance 271 can be used to receive evaluation data (also referred to as an evaluation set) for the target prompt word. The evaluation data here can indicate multiple values of at least one variable involved in the template of the target prompt word. For example, the evaluation data can indicate that the three values for variable A are a, b, and c respectively.

在一些实施例中,评测所需要的评测数据可以由用户在评测集输入入口271中进行手动输入。在一些实施例中,还可以响应于检测到对评测集上传控件272的触发操作,呈现已有评测数据的选择页面,进而响应于用户对某一评测数据的选择,确定评测所需要的目标评测数据。在一些实施例中,评测集输入入口271还可以用于呈现 用户输入的评测数据或用户通过评测集上传控件272所选择的目标评测数据。如图2F所示,评测集输入入口271处可以呈现将用于评测的评测数据:评测集A。In some embodiments, the evaluation data required for the evaluation can be manually input by the user in the evaluation set input entry 271. In some embodiments, in response to detecting a trigger operation on the evaluation set upload control 272, a selection page for existing evaluation data can be presented, and then in response to the user's selection of a certain evaluation data, the target evaluation data required for the evaluation can be determined. In some embodiments, the evaluation set input entry 271 can also be used to present The evaluation data input by the user or the target evaluation data selected by the user through the evaluation set upload control 272. As shown in FIG2F, the evaluation set input entry 271 may present the evaluation data to be used for evaluation: evaluation set A.

在一些实施例中,评测所需要的评测数据确定后,可以响应于检测到对评测控件273的触发操作,执行针对目标提示词的评测。在一些实施例中,响应于检测到对评测控件273的触发操作,编辑界面200B可以呈现如图2G所示的评测提示区域280,评测提示区域180用于提示用户当前正在执行针对目标提示词的评测。在一些实施例中,评测提示区域280可以包括取消控件281。响应于检测到对取消控件281的触发操作,取消呈现评测提示区域280。在一些实施例中,取消呈现评测提示区域280的同时,还会停止对目标提示词的模板进行评测。In some embodiments, after the evaluation data required for the evaluation is determined, the evaluation for the target prompt word can be performed in response to detecting a trigger operation on the evaluation control 273. In some embodiments, in response to detecting a trigger operation on the evaluation control 273, the editing interface 200B can present an evaluation prompt area 280 as shown in FIG. 2G, and the evaluation prompt area 180 is used to prompt the user that the evaluation for the target prompt word is currently being performed. In some embodiments, the evaluation prompt area 280 may include a cancel control 281. In response to detecting a trigger operation on the cancel control 281, the presentation of the evaluation prompt area 280 is canceled. In some embodiments, while canceling the presentation of the evaluation prompt area 280, the template of the target prompt word is also stopped from being evaluated.

在一些实施例中,响应于检测到对取消控件281的触发操作,仅取消呈现评测提示区域280,并不会影响评测的执行。在这种情况下,评测提示区域280被取消呈现后,编辑界面200B可以在评测输入区域270呈现评测提示信息。如图2H所示,可以在评测集输入入口271处呈现例如“评测运行中”这样的信息以提示用户当前正在执行针对目标提示词的评测。此外,还可以在评测输入区域270呈现评测终止控件274。响应于检测到对评测终止控件274的触发操作,停止对目标提示词的模板进行评测。可以理解,评测停止后,评测集输入入口271处呈现例如“评测运行中”这样的信息也会被停止呈现。In some embodiments, in response to detecting a trigger operation on the cancel control 281, only canceling the presentation of the evaluation prompt area 280 will not affect the execution of the evaluation. In this case, after the evaluation prompt area 280 is canceled, the editing interface 200B can present the evaluation prompt information in the evaluation input area 270. As shown in Figure 2H, information such as "evaluation is running" can be presented at the evaluation set input entrance 271 to prompt the user that the evaluation for the target prompt word is currently being performed. In addition, the evaluation termination control 274 can also be presented in the evaluation input area 270. In response to detecting a trigger operation on the evaluation termination control 274, stop evaluating the template of the target prompt word. It can be understood that after the evaluation stops, the information such as "evaluation is running" presented at the evaluation set input entrance 271 will also be stopped from being presented.

关于评测的执行的具体方式,在一些实施例中,可以基于针对目标提示词的评测数据来生成评测结果。具体地,通过分别利用评测数据中针对至少一个变量的多个取值来赋值至少一个变量,生成多个测试提示词。例如,对模板中的变量A分别赋值为a、b、c可以得到不同的3个测试提示词。这多个测试提示词将被分别输入到模型以便模型基于这多个测试词分别生成针对测试提示词的模型输出。针对测试提示词的多个模型输出被从模型处获取,并基于多个模型输出来生成评测结果。在一些实施例中,还可以在编辑界面200B中提供针对评测结果的访问入口。如图2I所示,响应于从模型处接收到多个输出结果,可以基于多个模型输出来生成评测结果。响应于评测结果被生成,编辑界面200B可以在评测输入区域270中呈现针对评测结果的访问入口275。访问入口275可以被用于呈现生成的评测结果。可以响应于接收到对访问入口275中所呈现的评测结果的触发操作,呈现评测结果的详细内容。此外,还可以在访问入口275处呈现例如“评测结果已更新在本文档中”这样的提示信息以提示用户评测结果已经生成,可以对其进行查看。至此,可以视为完成对目标提示词的一次评测。由此,可以利用包含大量数据集的评测集对待发布的提示词进行评测以确定提示词的质量是否满足预期,有助于提升提示词的质量,进而提升后续执行任务的质量。Regarding the specific way of executing the evaluation, in some embodiments, the evaluation result can be generated based on the evaluation data for the target prompt word. Specifically, by using the multiple values of at least one variable in the evaluation data to assign at least one variable, multiple test prompt words are generated. For example, assigning the variable A in the template to a, b, and c can obtain three different test prompt words. These multiple test prompt words will be input into the model respectively so that the model generates model outputs for the test prompt words based on these multiple test words. Multiple model outputs for the test prompt words are obtained from the model, and the evaluation result is generated based on the multiple model outputs. In some embodiments, an access entry for the evaluation result can also be provided in the editing interface 200B. As shown in Figure 2I, in response to receiving multiple output results from the model, the evaluation result can be generated based on multiple model outputs. In response to the evaluation result being generated, the editing interface 200B can present an access entry 275 for the evaluation result in the evaluation input area 270. The access entry 275 can be used to present the generated evaluation result. In response to receiving a trigger operation on the evaluation result presented in the access entry 275, the detailed content of the evaluation result can be presented. In addition, a prompt message such as "the evaluation result has been updated in this document" can be presented at the access entry 275 to prompt the user that the evaluation result has been generated and can be viewed. At this point, it can be regarded as completing an evaluation of the target prompt word. Therefore, the prompt word to be released can be evaluated using an evaluation set containing a large number of data sets to determine whether the quality of the prompt word meets expectations, which helps to improve the quality of the prompt word and then improve the quality of subsequent execution tasks.

需要注意的是,上述对目标提示词进行验证和/或评测中,提示词管理系统120可以与其他工具和应用程序集成,已实现自动化的工作流程,即可以响应于用户对相应控件的触发操作,自动执行对目标提示词的验证和/或评测,能够减少所需人力,有助于提高验证和/或评测的效率。It should be noted that in the above-mentioned verification and/or evaluation of the target prompt words, the prompt word management system 120 can be integrated with other tools and applications to realize an automated workflow, that is, it can automatically perform verification and/or evaluation of the target prompt words in response to the user's triggering operation on the corresponding control, which can reduce the required manpower and help improve the efficiency of verification and/or evaluation.

需要注意的是,虽然图2E并未示出,但编辑界面200B依旧可以包括任务定义区域210以及模型配置区域230,后续附图同样如此。在一些实施例中,编辑界面200B还包括滑动控件206。响应于检测到对滑动控件206的上拉操作或下滑操作,可以在 编辑界面200B中呈现其他内容。可以理解,还可以响应于检测到对相应物理控件的触发操作,和/或,响应于在编辑界面200B中检测到滑动操作,在编辑界面200B中呈现其他内容(例如,响应于检测到下滑操作,呈现任务定义区域210)。It should be noted that, although not shown in FIG. 2E , the editing interface 200B can still include the task definition area 210 and the model configuration area 230, and the same is true for the subsequent figures. In some embodiments, the editing interface 200B also includes a slide control 206. In response to detecting a pull-up operation or a slide-down operation on the slide control 206, Other content is presented in the editing interface 200B. It is understood that other content may be presented in the editing interface 200B in response to detecting a trigger operation on a corresponding physical control and/or in response to detecting a sliding operation in the editing interface 200B (for example, in response to detecting a sliding operation, presenting the task definition area 210).

对于完成验证和/或完成评测的目标提示词,响应于接收到提示词发布请求,将目标提示词封装成可调用的目标任务。在一些实施例中,响应于验证和/或评测的完成,编辑界面200B将呈现发布控件。响应于检测到对发布控件的触发操作,确定接收到提示词发布请求。在一些实施例中,该发布控件可以仅在完成验证和/或完成评测的情况下才被呈现在编辑界面200B中。备选地或附加地,在一些实施例中,该发布控件还可以始终呈现在编辑界面200B中,即使目标提示词未完成验证和/或完成评测,依旧可以响应于检测到对发布控件的触发操作,确定接收到提示词发布请求,进而将目标提示词封装成可调用的目标任务。For the target prompt word of completing verification and/or completing evaluation, in response to receiving prompt word publishing request, the target prompt word is packaged into a callable target task. In certain embodiments, in response to the completion of verification and/or evaluation, editing interface 200B will present publishing control. In response to detecting the triggering operation to publishing control, it is determined that the prompt word publishing request is received. In certain embodiments, the publishing control can only be presented in the editing interface 200B when completing verification and/or completing evaluation. Alternatively or additionally, in certain embodiments, the publishing control can also be presented in the editing interface 200B all the time, even if the target prompt word does not complete verification and/or complete evaluation, it can still be determined in response to detecting the triggering operation to publishing control, and the prompt word publishing request is received, and then the target prompt word is packaged into a callable target task.

如图2J所示,编辑界面200B的编辑控件呈现区域240中还可以呈现有发布控件244。需要注意的是,尽管图2J中并未示出评测输入区域270,但在完成评测的情况下,可以响应于接收到对滑动控件206的下拉操作、响应于检测到对相应物理控件的触发操作,和/或,响应于在编辑界面200B中检测到上滑操作,在编辑界面200B中呈现评测输入区域270。可以响应于检测到对发布控件244的触发操作,确定接收到提示词发布请求。As shown in FIG2J , a publishing control 244 may also be presented in the editing control presentation area 240 of the editing interface 200B. It should be noted that, although the evaluation input area 270 is not shown in FIG2J , when the evaluation is completed, the evaluation input area 270 may be presented in the editing interface 200B in response to receiving a pull-down operation on the sliding control 206, in response to detecting a trigger operation on the corresponding physical control, and/or in response to detecting a slide-up operation in the editing interface 200B. In response to detecting a trigger operation on the publishing control 244, it may be determined that a prompt word publishing request has been received.

在一些实施例中,用户在触发发布控件之前,还可以选择待封装的目标任务的版本号。如图2I所示,编辑界面200B还可以呈现版本选择入口207。响应于检测到对版本选择入口207的触发操作,可以呈现至少一个版本号,例如呈现“$DEV、3、2、1”这4个版本号。需要注意的是,在版本号选择入口207处对应DEV这一开发标识时,表示当前处于开发状态,即处于对目标提示词的编辑且未发布的状态。在这种情况下,无法对目标提示词进行任务调用,仅可以对目标提示词进行编辑、验证、评测等操作。在版本号选择入口207处对应DEV以外的版本号时,例如,对应1,即表示将目标任务关联到版本号1。In some embodiments, the user can also select the version number of the target task to be packaged before triggering the release control. As shown in Figure 2I, the editing interface 200B can also present a version selection entry 207. In response to detecting the trigger operation of the version selection entry 207, at least one version number can be presented, for example, the four version numbers "$DEV, 3, 2, 1" are presented. It should be noted that when the version number selection entry 207 corresponds to the development mark DEV, it means that it is currently in the development state, that is, it is in the state of editing and unpublishing the target prompt word. In this case, the target prompt word cannot be called for a task, and only operations such as editing, verification, and evaluation can be performed on the target prompt word. When the version number selection entry 207 corresponds to a version number other than DEV, for example, it corresponds to 1, which means that the target task is associated with version number 1.

在一些实施例中,在确定目标任务关联到具体的、非开发标识的版本号的情况下,编辑界面200B还可以呈现版本禁用标识208。响应于检测到对版本禁用标识208的触发操作,禁用当前被选择的版本号。在一些实施例中,编辑界面200B还呈现有状态标识控件209,状态标识控件209用于表示当前版本状态。示例性的,状态标识控件209可以呈现DEV、激活以及禁用三种状态。In some embodiments, when it is determined that the target task is associated with a specific version number that is not a development identifier, the editing interface 200B may also present a version disable identifier 208. In response to detecting a trigger operation on the version disable identifier 208, the currently selected version number is disabled. In some embodiments, the editing interface 200B also presents a status identifier control 209, which is used to indicate the current version status. Exemplarily, the status identifier control 209 may present three states: DEV, Activated, and Disabled.

需要注意的是,关于与目标任务相关联的版本号,在提示词编辑请求是任务创建请求的情况下,响应于提示词发布请求,将目标任务关联到第一版本号。这里的第一版本号可以是任意版本号。在提示词编辑请求是对已创建任务的修改请求的情况下,响应于提示词发布请求,将目标任务关联到第二版本号。这里的第二版本号不同于已创建任务的版本号。示例性的,在目标任务的创建阶段,目标任务关联的版本号可以为1,在目标任务的修改阶段,修改后的目标任务关联的版本号可以为2、3、4等等。由此,可以将不同阶段的目标任务关联与不同的版本号,有助于用户后期对目标任务进行查找。例如,若用户期望查找第2次修改后的目标任务,用户可以直接基于第2次修改后目标任务关联的版本号,从多个目标任务中查找到第2次修改后的目标任务。 It should be noted that, regarding the version number associated with the target task, when the prompt word edit request is a task creation request, in response to the prompt word release request, the target task is associated with the first version number. The first version number here can be any version number. When the prompt word edit request is a modification request for a created task, in response to the prompt word release request, the target task is associated with the second version number. The second version number here is different from the version number of the created task. Exemplarily, in the creation stage of the target task, the version number associated with the target task can be 1, and in the modification stage of the target task, the version number associated with the modified target task can be 2, 3, 4, etc. Thus, target tasks at different stages can be associated with different version numbers, which helps users to search for target tasks later. For example, if a user expects to find the target task after the second modification, the user can directly find the target task after the second modification from multiple target tasks based on the version number associated with the target task after the second modification.

在一些实施例中,由于不同阶段的目标任务关联的版本号不同(例如创建阶段的目标任务和第一次修改阶段的目标任务),还可以基于目标任务的版本号来实现对目标任务的调用。由此,可以方便快捷的从多个目标任务中确定要调用的目标任务,可以实现对历史不同版本的目标任务的调用,还有助于提高目标任务调用的效率。In some embodiments, since target tasks at different stages are associated with different version numbers (e.g., target tasks at the creation stage and target tasks at the first modification stage), the target task can also be called based on the version number of the target task. Thus, the target task to be called can be determined from multiple target tasks conveniently and quickly, and target tasks of different historical versions can be called, which helps to improve the efficiency of target task calling.

参考图3,图3示出了根据本公开的一些实施例的提示词管理的流程300的示意图。流程300可以被实现在提示词管理系统120处。为便于讨论,将参考图1的环境100来描述流程300。Referring to Fig. 3, Fig. 3 shows a schematic diagram of a process 300 of prompt word management according to some embodiments of the present disclosure. The process 300 may be implemented at the prompt word management system 120. For ease of discussion, the process 300 will be described with reference to the environment 100 of Fig. 1 .

在框310,提示词管理系统120响应于接收到的用户输入在提示词管理系统120上创建目标任务。At block 310 , the cue word management system 120 creates a target task on the cue word management system 120 in response to the received user input.

在框320,提示词管理系统120响应于在提示词管理系统120中的用户输入,定义提示词模板,这里的提示词模板即为目标提示词的模板。In block 320 , the prompt word management system 120 defines a prompt word template in response to the user input in the prompt word management system 120 . The prompt word template here is a template of the target prompt word.

在框330,响应于接收到针对提示词的评测请求,提示词管理系统120执行对提示词的评测操作以评测提示词的实际效果。In block 330 , in response to receiving the evaluation request for the prompt word, the prompt word management system 120 performs an evaluation operation on the prompt word to evaluate the actual effect of the prompt word.

在框340,判断提示词是否达到上线标准。在一些实施例中,可以基于评测提示词的实际效果,确定其是否符合用户预期,并在确定符合预期的情况下,确定达到上线标准。进一步的,在框350,可以发布达到上线标准的提示词。In block 340, it is determined whether the prompt word has reached the online standard. In some embodiments, it is possible to determine whether the prompt word meets the user's expectations based on the actual effect of the evaluation prompt word, and if it is determined to meet the expectations, it is determined that the online standard has been reached. Further, in block 350, the prompt word that has reached the online standard can be released.

在一些实施例中,若评测得到的实际效果不符合预期,即可以确定未达到上线标准。提示词管理系统120可以提示用户对提示词模板进行修改。即返回执行框320所示步骤。在一些实施例中,可以对修改后的提示词模板继续执行框330所示的评测、框340所示的判断步骤,直至修改后的提示词模板达到上线标准,可以进行发布为止。In some embodiments, if the actual effect obtained by the evaluation does not meet expectations, it can be determined that the online standard is not met. The prompt word management system 120 can prompt the user to modify the prompt word template. That is, return to the step shown in the execution box 320. In some embodiments, the evaluation shown in the box 330 and the judgment step shown in the box 340 can be continued for the modified prompt word template until the modified prompt word template meets the online standard and can be released.

在一些实施例中,除了对提示词执行如框33所示的评测方法之外,还可以对其执行验证,以确定其实际效果。In some embodiments, in addition to executing the evaluation method shown in block 33 on the prompt word, verification may also be performed on it to determine its actual effect.

综上所述,根据本公开的实施例,可以实现对提示词进行灵活地设计与管理,并可以将提示词封装成可调用的任务,这会使得模型的调用变得非常简单,可以提高提示词管理以及模型调用在实际应用中的稳定性、可靠性、便捷性以及高效性。In summary, according to the embodiments of the present disclosure, prompt words can be flexibly designed and managed, and prompt words can be encapsulated into callable tasks, which makes the calling of the model very simple and can improve the stability, reliability, convenience and efficiency of prompt word management and model calling in practical applications.

应当理解,在上文中结合附图中的具体示例来描述本公开的一些实施例,但这些具体示例并不是对本公开的实施例的范围进行限制。所描述的实施例还可以以各种其他变形来实现。It should be understood that some embodiments of the present disclosure are described above in conjunction with the specific examples in the drawings, but these specific examples do not limit the scope of the embodiments of the present disclosure. The described embodiments can also be implemented in various other variations.

图4示出了根据本公开的一些实施例的用于提示词管理的过程400的流程图。过程400可以被实现在提示词管理系统120处。下面参考图1描述过程400。FIG4 shows a flow chart of a process 400 for prompt word management according to some embodiments of the present disclosure. The process 400 may be implemented at the prompt word management system 120. The process 400 is described below with reference to FIG1.

在框410,提示词管理系统120响应于接收到提示词编辑请求,呈现编辑界面,其中编辑界面至少包括用于接收目标提示词的输入区域。In block 410 , in response to receiving a prompt word editing request, the prompt word management system 120 presents an editing interface, wherein the editing interface at least includes an input area for receiving a target prompt word.

在框420,提示词管理系统120响应于接收到提示词发布请求,至少基于在编辑界面中的用户输入,将目标提示词封装成可调用的目标任务,其中对目标任务的调用将触发目标提示词被输入到模型。In block 420 , in response to receiving the prompt word publishing request, the prompt word management system 120 encapsulates the target prompt word into a callable target task based at least on the user input in the editing interface, wherein calling the target task will trigger the target prompt word to be input into the model.

在一些实施例中,编辑界面还包括变量定义区域,用于接收对目标提示词中涉及的至少一个变量的定义,并且其中对目标任务的调用将触发至少一个变量被赋值以及具有赋值后的至少一个变量的目标提示词被输入到模型。 In some embodiments, the editing interface also includes a variable definition area for receiving a definition of at least one variable involved in the target prompt word, and wherein a call to the target task will trigger at least one variable to be assigned a value and the target prompt word with at least one assigned variable to be input into the model.

在一些实施例中,编辑界面还包括模型定义区域,用于接收对目标模型的选择,并且其中对目标任务的调用将触发目标提示词被输入到所选择的目标模型。In some embodiments, the editing interface further comprises a model definition area for receiving a selection of a target model, and wherein the invocation of the target task triggers the target prompt word to be input into the selected target model.

在一些实施例中,模型定义区域还用于接收对目标模型的处理参数的定义,并且其中对目标任务的调用将触发目标模型根据所定义的处理参数来处理目标提示词。In some embodiments, the model definition area is further used to receive a definition of processing parameters of the target model, and wherein the call to the target task will trigger the target model to process the target prompt word according to the defined processing parameters.

在一些实施例中,编辑界面还包括任务定义区域,用于接收目标任务的任务标识符,并且其中对目标任务的调用包括根据目标任务的任务标识符来调用目标任务。In some embodiments, the editing interface further comprises a task definition area for receiving a task identifier of the target task, and wherein the calling of the target task comprises calling the target task according to the task identifier of the target task.

在一些实施例中,输入区域用于接收目标提示词的模板,模板定义目标提示词的结构。In some embodiments, the input area is used to receive a template of a target prompt word, and the template defines the structure of the target prompt word.

在一些实施例中,过程400还包括:在接收提示词发布请求之前,响应于接收到针对目标提示词的验证请求,至少基于在编辑界面中的用户输入,将目标提示词输入到模型;从模型接收到针对目标提示词的模型输出;以及呈现接收到的模型输出。In some embodiments, process 400 also includes: before receiving a prompt word release request, in response to receiving a verification request for a target prompt word, inputting the target prompt word into the model based at least on user input in the editing interface; receiving a model output for the target prompt word from the model; and presenting the received model output.

在一些实施例中,过程400还包括:在提示词编辑请求是任务创建请求的情况下,响应于提示词发布请求,将目标任务关联到第一版本号;以及在提示词编辑请求是对已创建任务的修改请求的情况下,响应于提示词发布请求,将目标任务关联到第二版本号,第二版本号不同于已创建任务的版本号。In some embodiments, process 400 also includes: in the case where the prompt word edit request is a task creation request, in response to the prompt word publish request, associating the target task to a first version number; and in the case where the prompt word edit request is a modification request for an already created task, in response to the prompt word publish request, associating the target task to a second version number, the second version number being different from the version number of the already created task.

在一些实施例中,对目标任务的调用包括根据目标任务的版本号来调用目标任务。In some embodiments, calling the target task includes calling the target task according to a version number of the target task.

在一些实施例中,过程400还包括:响应于接收到针对目标提示词的评测请求,呈现评测输入区域;在评测输入区域中接收针对目标提示词的评测数据,评测数据指示目标提示词中涉及的至少一个变量的多个取值;基于评测数据来生成针对目标提示词的评测结果;以及提供针对评测结果的访问入口。In some embodiments, process 400 also includes: in response to receiving an evaluation request for a target prompt word, presenting an evaluation input area; receiving evaluation data for the target prompt word in the evaluation input area, the evaluation data indicating multiple values of at least one variable involved in the target prompt word; generating an evaluation result for the target prompt word based on the evaluation data; and providing access to the evaluation result.

在一些实施例中,生成评测结果包括:通过分别利用评测数据中针对至少一个变量的多个取值来赋值至少一个变量,生成多个测试提示词;将多个测试提示词分别输入到模型;从模型接收针对测试提示词的多个模型输出;以及基于多个模型输出来生成评测结果。In some embodiments, generating an evaluation result includes: generating multiple test prompt words by assigning at least one variable using multiple values for at least one variable in the evaluation data respectively; inputting the multiple test prompt words into the model respectively; receiving multiple model outputs for the test prompt words from the model; and generating an evaluation result based on the multiple model outputs.

在一些实施例中,呈现编辑界面包括:在提示词编辑请求是对已创建任务的修改请求的情况下,确定发起提示词编辑请求的用户的权限;以及如果用户具有对已创建任务的编辑请求,呈现编辑界面。In some embodiments, presenting the editing interface includes: determining the authority of the user who initiated the prompt word editing request if the prompt word editing request is a modification request for an already created task; and presenting the editing interface if the user has an editing request for the already created task.

在一些实施例中,过程400还包括:在提示词管理系统上,呈现任务列表,任务列表包括已创建的至少一个任务。In some embodiments, the process 400 further includes: presenting a task list on the prompt word management system, the task list including at least one created task.

图5示出了根据本公开的某些实施例的用于提示词管理的装置500的示意性结构框图。装置500可以被实现为或者被包括在提示词管理系统120中。装置500中的各个模块/组件可以由硬件、软件、固件或者它们的任意组合来实现。5 shows a schematic structural block diagram of an apparatus 500 for prompt word management according to some embodiments of the present disclosure. The apparatus 500 may be implemented as or included in the prompt word management system 120. Each module/component in the apparatus 500 may be implemented by hardware, software, firmware or any combination thereof.

如图所示,装置500包括界面呈现模块510,被配置为响应于接收到提示词编辑请求,呈现编辑界面,其中编辑界面至少包括用于接收目标提示词的输入区域。装置700还包括发布模块520,被配置为响应于接收到提示词发布请求,至少基于在编辑界面中的用户输入,将目标提示词封装成可调用的目标任务,其中对目标任务的调用将触发目标提示词被输入到模型。 As shown in the figure, the device 500 includes an interface presentation module 510, which is configured to present an editing interface in response to receiving a prompt word editing request, wherein the editing interface at least includes an input area for receiving a target prompt word. The device 700 also includes a publishing module 520, which is configured to encapsulate the target prompt word into a callable target task in response to receiving a prompt word publishing request, at least based on user input in the editing interface, wherein the call of the target task will trigger the target prompt word to be input into the model.

在一些实施例中,编辑界面还包括变量定义区域,用于接收对目标提示词中涉及的至少一个变量的定义,并且其中对目标任务的调用将触发至少一个变量被赋值以及具有赋值后的至少一个变量的目标提示词被输入到模型。In some embodiments, the editing interface also includes a variable definition area for receiving a definition of at least one variable involved in the target prompt word, and wherein a call to the target task will trigger at least one variable to be assigned a value and the target prompt word with at least one assigned variable to be input into the model.

在一些实施例中,编辑界面还包括模型定义区域,用于接收对目标模型的选择,并且其中对目标任务的调用将触发目标提示词被输入到所选择的目标模型。In some embodiments, the editing interface further comprises a model definition area for receiving a selection of a target model, and wherein the invocation of the target task triggers the target prompt word to be input into the selected target model.

在一些实施例中,模型定义区域还用于接收对目标模型的处理参数的定义,并且其中对目标任务的调用将触发目标模型根据所定义的处理参数来处理目标提示词。In some embodiments, the model definition area is further used to receive a definition of processing parameters of the target model, and wherein the call to the target task will trigger the target model to process the target prompt word according to the defined processing parameters.

在一些实施例中,编辑界面还包括任务定义区域,用于接收目标任务的任务标识符,并且其中对目标任务的调用包括根据目标任务的任务标识符来调用目标任务。In some embodiments, the editing interface further comprises a task definition area for receiving a task identifier of the target task, and wherein the calling of the target task comprises calling the target task according to the task identifier of the target task.

在一些实施例中,输入区域用于接收目标提示词的模板,模板定义目标提示词的结构。In some embodiments, the input area is used to receive a template of a target prompt word, and the template defines the structure of the target prompt word.

在一些实施例中,装置500还包括:提示词输入模块,被配置为在接收提示词发布请求之前,响应于接收到针对目标提示词的验证请求,至少基于在编辑界面中的用户输入,将目标提示词输入到模型;输出接收模块,被配置为从模型接收到针对目标提示词的模型输出;以及输出呈现模块,被配置为呈现接收到的模型输出。In some embodiments, the device 500 also includes: a prompt word input module, which is configured to input the target prompt word into the model in response to receiving a verification request for the target prompt word before receiving the prompt word release request, at least based on the user input in the editing interface; an output receiving module, which is configured to receive the model output for the target prompt word from the model; and an output presentation module, which is configured to present the received model output.

在一些实施例中,装置500还包括:第一关联模块,被配置为在提示词编辑请求是任务创建请求的情况下,响应于提示词发布请求,将目标任务关联到第一版本号;以及第二关联模块,被配置为在提示词编辑请求是对已创建任务的修改请求的情况下,响应于提示词发布请求,将目标任务关联到第二版本号,第二版本号不同于已创建任务的版本号。In some embodiments, the device 500 also includes: a first association module, configured to associate the target task with a first version number in response to a prompt word publication request when the prompt word editing request is a task creation request; and a second association module, configured to associate the target task with a second version number in response to the prompt word publication request when the prompt word editing request is a modification request for an already created task, the second version number being different from the version number of the already created task.

在一些实施例中,对目标任务的调用包括根据目标任务的版本号来调用目标任务。In some embodiments, calling the target task includes calling the target task according to a version number of the target task.

在一些实施例中,装置500还包括:评测区域呈现模块,被配置为响应于接收到针对目标提示词的评测请求,呈现评测输入区域;评测数据接收模块,被配置为在评测输入区域中接收针对目标提示词的评测数据,评测数据指示目标提示词中涉及的至少一个变量的多个取值;评测结果生成模块,被配置为基于评测数据来生成针对目标提示词的评测结果;以及访问入口提供模块,被配置为提供针对评测结果的访问入口。In some embodiments, the device 500 also includes: an evaluation area presentation module, configured to present an evaluation input area in response to receiving an evaluation request for a target prompt word; an evaluation data receiving module, configured to receive evaluation data for the target prompt word in the evaluation input area, the evaluation data indicating multiple values of at least one variable involved in the target prompt word; an evaluation result generation module, configured to generate an evaluation result for the target prompt word based on the evaluation data; and an access entry providing module, configured to provide an access entry for the evaluation result.

在一些实施例中,评测结果生成模块包括:测试提示词生成模块,被配置为通过分别利用评测数据中针对至少一个变量的多个取值来赋值至少一个变量,生成多个测试提示词;输入模块,被配置为将多个测试提示词分别输入到模型;接收模块,被配置为从模型接收针对测试提示词的多个模型输出;以及生成模块,被配置为基于多个模型输出来生成评测结果。In some embodiments, the evaluation result generation module includes: a test prompt word generation module, configured to generate multiple test prompt words by assigning at least one variable by respectively using multiple values for at least one variable in the evaluation data; an input module, configured to input the multiple test prompt words into the model respectively; a receiving module, configured to receive multiple model outputs for the test prompt words from the model; and a generation module, configured to generate evaluation results based on the multiple model outputs.

在一些实施例中,界面呈现模块510包括:权限确定模块,被配置为在提示词编辑请求是对已创建任务的修改请求的情况下,确定发起提示词编辑请求的用户的权限;以及呈现模块,被配置为如果用户具有对已创建任务的编辑请求,呈现编辑界面。In some embodiments, the interface presentation module 510 includes: an authority determination module, configured to determine the authority of the user who initiates the prompt word editing request when the prompt word editing request is a modification request for an already created task; and a presentation module, configured to present an editing interface if the user has an editing request for an already created task.

在一些实施例中,装置500还包括:任务列表呈现模块,被配置为在提示词管理系统上,呈现任务列表,任务列表包括已创建的至少一个任务。In some embodiments, the apparatus 500 further includes: a task list presenting module configured to present a task list on the prompt word management system, wherein the task list includes at least one created task.

装置500中所包括的模块和/或单元可以利用各种方式来实现,包括软件、硬件、固件或其任意组合。在一些实施例中,一个或多个模块和/或单元可以使用软件和/或固件来实现,例如存储在存储介质上的机器可执行指令。除了机器可执行指令之外或 者作为替代,装置500中的部分或者全部模块和/或单元可以至少部分地由一个或多个硬件逻辑组件来实现。作为示例而非限制,可以使用的示范类型的硬件逻辑组件包括现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准品(ASSP)、片上系统(SOC)、复杂可编程逻辑器件(CPLD),等等。The modules and/or units included in the apparatus 500 may be implemented in various ways, including software, hardware, firmware, or any combination thereof. In some embodiments, one or more modules and/or units may be implemented using software and/or firmware, such as machine executable instructions stored on a storage medium. Alternatively, some or all of the modules and/or units in the device 500 may be at least partially implemented by one or more hardware logic components. By way of example and not limitation, exemplary types of hardware logic components that may be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

应当理解,以上方法中的一个或多个步骤可以由适当的电子设备或电子设备的组合来执行。这样的电子设备或电子设备的组合例如可以包括图1中的电子设备110和/或与其他电子设备的组合。It should be understood that one or more steps in the above method may be performed by an appropriate electronic device or combination of electronic devices, which may include, for example, the electronic device 110 in FIG. 1 and/or a combination with other electronic devices.

图6示出了其中可以实施本公开的一个或多个实施例的电子设备600的框图。应当理解,图6所示出的电子设备600仅仅是示例性的,而不应当构成对本文所描述的实施例的功能和范围的任何限制。图6所示出的电子设备600可以用于实现图1的电子设备110。FIG6 shows a block diagram of an electronic device 600 in which one or more embodiments of the present disclosure may be implemented. It should be understood that the electronic device 600 shown in FIG6 is merely exemplary and should not constitute any limitation on the functionality and scope of the embodiments described herein. The electronic device 600 shown in FIG6 may be used to implement the electronic device 110 of FIG1 .

如图6所示,电子设备600是通用电子设备的形式。电子设备600的组件可以包括但不限于一个或多个处理器或处理单元610、存储器620、存储设备630、一个或多个通信单元640、一个或多个输入设备650以及一个或多个输出设备660。处理单元610可以是实际或虚拟处理器并且能够根据存储器620中存储的程序来执行各种处理。在多处理器系统中,多个处理单元并行执行计算机可执行指令,以提高电子设备600的并行处理能力。As shown in FIG6 , the electronic device 600 is in the form of a general electronic device. The components of the electronic device 600 may include, but are not limited to, one or more processors or processing units 610, a memory 620, a storage device 630, one or more communication units 640, one or more input devices 650, and one or more output devices 660. The processing unit 610 may be an actual or virtual processor and is capable of performing various processes according to a program stored in the memory 620. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capability of the electronic device 600.

电子设备600通常包括多个计算机存储介质。这样的介质可以是电子设备600可访问的任何可以获得的介质,包括但不限于易失性和非易失性介质、可拆卸和不可拆卸介质。存储器620可以是易失性存储器(例如寄存器、高速缓存、随机访问存储器(RAM))、非易失性存储器(例如,只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、闪存)或它们的某种组合。存储设备630可以是可拆卸或不可拆卸的介质,并且可以包括机器可读介质,诸如闪存驱动、磁盘或者任何其他介质,其可以能够用于存储信息和/或数据并且可以在电子设备600内被访问。The electronic device 600 typically includes a plurality of computer storage media. Such media can be any available media accessible to the electronic device 600, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 620 can be a volatile memory (e.g., registers, caches, random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory) or some combination thereof. The storage device 630 can be a removable or non-removable medium, and can include a machine-readable medium, such as a flash drive, a disk, or any other medium, which can be used to store information and/or data and can be accessed within the electronic device 600.

电子设备600可以进一步包括另外的可拆卸/不可拆卸、易失性/非易失性存储介质。尽管未在图6中示出,可以提供用于从可拆卸、非易失性磁盘(例如“软盘”)进行读取或写入的磁盘驱动和用于从可拆卸、非易失性光盘进行读取或写入的光盘驱动。在这些情况中,每个驱动可以由一个或多个数据介质接口被连接至总线(未示出)。存储器620可以包括计算机程序产品625,其具有一个或多个程序模块,这些程序模块被配置为执行本公开的各种实施例的各种方法或动作。The electronic device 600 may further include additional removable/non-removable, volatile/non-volatile storage media. Although not shown in FIG. 6 , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a “floppy disk”) and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to a bus (not shown) by one or more data media interfaces. The memory 620 may include a computer program product 625 having one or more program modules configured to perform various methods or actions of various embodiments of the present disclosure.

通信单元640实现通过通信介质与其他电子设备进行通信。附加地,电子设备600的组件的功能可以以单个计算集群或多个计算机器来实现,这些计算机器能够通过通信连接进行通信。因此,电子设备600可以使用与一个或多个其他服务器、网络个人计算机(PC)或者另一个网络节点的逻辑连接来在联网环境中进行操作。The communication unit 640 implements communication with other electronic devices through a communication medium. Additionally, the functions of the components of the electronic device 600 can be implemented with a single computing cluster or multiple computing machines that can communicate through a communication connection. Therefore, the electronic device 600 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.

输入设备650可以是一个或多个输入设备,例如鼠标、键盘、追踪球等。输出设备660可以是一个或多个输出设备,例如显示器、扬声器、打印机等。电子设备600还可以根据需要通过通信单元640与一个或多个外部设备(未示出)进行通信,外部设备诸如存储设备、显示设备等,与一个或多个使得用户与电子设备600交互的设备进行通信,或者与使得电子设备600与一个或多个其他电子设备通信的任何设备(例 如,网卡、调制解调器等)进行通信。这样的通信可以经由输入/输出(I/O)接口(未示出)来执行。The input device 650 may be one or more input devices, such as a mouse, a keyboard, a tracking ball, etc. The output device 660 may be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 600 may also communicate with one or more external devices (not shown) through the communication unit 640 as needed, such as a storage device, a display device, etc., communicate with one or more devices that allow a user to interact with the electronic device 600, or communicate with any device that allows the electronic device 600 to communicate with one or more other electronic devices (e.g., Such communication can be performed via an input/output (I/O) interface (not shown).

根据本公开的示例性实现方式,提供了一种计算机可读存储介质,其上存储有计算机可执行指令,其中计算机可执行指令被处理器执行以实现上文描述的方法。根据本公开的示例性实现方式,还提供了一种计算机程序产品,计算机程序产品被有形地存储在非瞬态计算机可读介质上并且包括计算机可执行指令,而计算机可执行指令被处理器执行以实现上文描述的方法。According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.

这里参照根据本公开实现的方法、装置、设备和计算机程序产品的流程图和/或框图描述了本公开的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。Various aspects of the present disclosure are described herein with reference to the flowcharts and/or block diagrams of the methods, devices, equipment, and computer program products implemented according to the present disclosure. It should be understood that each box in the flowchart and/or block diagram and the combination of each box in the flowchart and/or block diagram can be implemented by computer-readable program instructions.

这些计算机可读程序指令可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理单元,从而生产出一种机器,使得这些指令在通过计算机或其他可编程数据处理装置的处理单元执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions/actions specified in one or more boxes in the flowchart and/or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and/or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions/actions specified in one or more boxes in the flowchart and/or block diagram.

可以把计算机可读程序指令加载到计算机、其他可编程数据处理装置、或其他设备上,使得在计算机、其他可编程数据处理装置或其他设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其他可编程数据处理装置、或其他设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions/actions specified in one or more boxes in the flowchart and/or block diagram.

附图中的流程图和框图显示了根据本公开的多个实现的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some implementations as replacements, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and/or flow chart, and the combination of the square boxes in the block diagram and/or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.

以上已经描述了本公开的各实现,上述说明是示例性的,并非穷尽性的,并且也不限于所公开的各实现。在不偏离所说明的各实现的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实现的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其他普通技术人员能理解本文公开的各个实现方式。 The above descriptions of various implementations of the present disclosure are exemplary, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the various implementations disclosed herein.

Claims (16)

一种用于提示词管理的方法,由提示词管理系统执行,所述方法包括:A method for prompt word management, executed by a prompt word management system, the method comprising: 响应于接收到提示词编辑请求,呈现编辑界面,其中所述编辑界面至少包括用于接收目标提示词的输入区域;以及In response to receiving a prompt word editing request, presenting an editing interface, wherein the editing interface at least includes an input area for receiving a target prompt word; and 响应于接收到提示词发布请求,至少基于在所述编辑界面中的用户输入,将所述目标提示词封装成可调用的目标任务,其中对所述目标任务的调用将触发所述目标提示词被输入到模型。In response to receiving a prompt word publishing request, the target prompt word is encapsulated into a callable target task based at least on user input in the editing interface, wherein calling the target task will trigger the target prompt word to be input into the model. 根据权利要求1所述的方法,其中所述编辑界面还包括变量定义区域,用于接收对所述目标提示词中涉及的至少一个变量的定义,并且The method according to claim 1, wherein the editing interface further comprises a variable definition area for receiving a definition of at least one variable involved in the target prompt word, and 其中对所述目标任务的调用将触发所述至少一个变量被赋值以及具有赋值后的所述至少一个变量的所述目标提示词被输入到所述模型。The call to the target task will trigger the at least one variable to be assigned a value and the target prompt word with the at least one assigned variable to be input into the model. 根据权利要求1所述的方法,其中所述编辑界面还包括模型定义区域,用于接收对目标模型的选择,并且The method according to claim 1, wherein the editing interface further comprises a model definition area for receiving a selection of a target model, and 其中对所述目标任务的调用将触发所述目标提示词被输入到所选择的所述目标模型。The call to the target task will trigger the target prompt word to be input into the selected target model. 根据权利要求3所述的方法,其中所述模型定义区域还用于接收对所述目标模型的处理参数的定义,并且The method according to claim 3, wherein the model definition area is further used to receive a definition of processing parameters of the target model, and 其中对所述目标任务的调用将触发所述目标模型根据所定义的所述处理参数来处理所述目标提示词。The call to the target task will trigger the target model to process the target prompt word according to the defined processing parameters. 根据权利要求1所述的方法,其中所述编辑界面还包括任务定义区域,用于接收所述目标任务的任务标识符,并且The method according to claim 1, wherein the editing interface further comprises a task definition area for receiving a task identifier of the target task, and 其中对所述目标任务的调用包括根据所述目标任务的任务标识符来调用所述目标任务。The calling of the target task includes calling the target task according to a task identifier of the target task. 根据权利要求1所述的方法,其中所述输入区域用于接收所述目标提示词的模板,所述模板定义所述目标提示词的结构。The method according to claim 1, wherein the input area is used to receive a template of the target prompt word, and the template defines the structure of the target prompt word. 根据权利要求1所述的方法,还包括:The method according to claim 1, further comprising: 在接收所述提示词发布请求之前,响应于接收到针对所述目标提示词的验证请求,至少基于在所述编辑界面中的用户输入,将所述目标提示词输入到所述模型;Before receiving the prompt word publishing request, in response to receiving a verification request for the target prompt word, inputting the target prompt word into the model based at least on a user input in the editing interface; 从所述模型接收到针对所述目标提示词的模型输出;以及receiving a model output for the target cue word from the model; and 呈现接收到的所述模型输出。The received model output is presented. 根据权利要求1所述的方法,还包括:The method according to claim 1, further comprising: 在所述提示词编辑请求是任务创建请求的情况下,响应于所述提示词发布请求,将所述目标任务关联到第一版本号;以及In the case where the prompt word editing request is a task creation request, in response to the prompt word publishing request, associating the target task with a first version number; and 在所述提示词编辑请求是对已创建任务的修改请求的情况下,响应于所述提示词发布请求,将所述目标任务关联到第二版本号,所述第二版本号不同于所述已创建任务的版本号。In the case that the prompt word editing request is a modification request for a created task, in response to the prompt word publishing request, the target task is associated with a second version number that is different from the version number of the created task. 根据权利要求8所述的方法,其中对所述目标任务的调用包括根据所述目标任务的版本号来调用所述目标任务。 The method according to claim 8, wherein calling the target task comprises calling the target task according to a version number of the target task. 根据权利要求1所述的方法,还包括:The method according to claim 1, further comprising: 响应于接收到针对所述目标提示词的评测请求,呈现评测输入区域;In response to receiving an evaluation request for the target prompt word, presenting an evaluation input area; 在所述评测输入区域中接收针对所述目标提示词的评测数据,所述评测数据指示所述目标提示词中涉及的至少一个变量的多个取值;receiving evaluation data for the target prompt word in the evaluation input area, the evaluation data indicating multiple values of at least one variable involved in the target prompt word; 基于所述评测数据来生成针对所述目标提示词的评测结果;以及generating an evaluation result for the target prompt word based on the evaluation data; and 提供针对所述评测结果的访问入口。Providing access to the evaluation results. 根据权利要求10所述的方法,其中生成所述评测结果包括:The method according to claim 10, wherein generating the evaluation result comprises: 通过分别利用所述评测数据中针对所述至少一个变量的多个取值来赋值所述至少一个变量,生成多个测试提示词;Generating a plurality of test prompt words by respectively assigning a value to the at least one variable using a plurality of values for the at least one variable in the evaluation data; 将所述多个测试提示词分别输入到所述模型;Inputting the plurality of test prompt words into the model respectively; 从所述模型接收针对所述测试提示词的多个模型输出;以及receiving a plurality of model outputs from the model for the test cue word; and 基于所述多个模型输出来生成所述评测结果。The evaluation result is generated based on the plurality of model outputs. 根据权利要求1所述的方法,其中呈现所述编辑界面包括:The method according to claim 1, wherein presenting the editing interface comprises: 在所述提示词编辑请求是对已创建任务的修改请求的情况下,确定发起所述提示词编辑请求的用户的权限;以及In the case where the prompt word editing request is a request to modify a created task, determining the authority of the user who initiated the prompt word editing request; and 如果所述用户具有对所述已创建任务的编辑请求,呈现所述编辑界面。If the user has an editing request for the created task, the editing interface is presented. 根据权利要求1所述的方法,还包括:The method according to claim 1, further comprising: 在所述提示词管理系统上呈现任务列表,所述任务列表包括已创建的至少一个任务。A task list is presented on the prompt word management system, wherein the task list includes at least one created task. 一种用于提示词管理的装置,包括:A device for prompt word management, comprising: 界面呈现模块,被配置为响应于接收到提示词编辑请求,呈现编辑界面,其中所述编辑界面至少包括用于接收目标提示词的输入区域;以及an interface presenting module, configured to present an editing interface in response to receiving a prompt word editing request, wherein the editing interface at least includes an input area for receiving a target prompt word; and 发布模块,被配置为响应于接收到提示词发布请求,至少基于在所述编辑界面中的用户输入,将所述目标提示词封装成可调用的目标任务,其中对所述目标任务的调用将触发所述目标提示词被输入到模型。The publishing module is configured to encapsulate the target prompt word into a callable target task in response to receiving a prompt word publishing request, at least based on user input in the editing interface, wherein the call to the target task will trigger the target prompt word to be input into the model. 一种电子设备,包括:An electronic device, comprising: 至少一个处理单元;以及at least one processing unit; and 至少一个存储器,所述至少一个存储器被耦合到所述至少一个处理单元并且存储用于由所述至少一个处理单元执行的指令,所述指令在由所述至少一个处理单元执行时使所述电子设备执行根据权利要求1至13中任一项所述的方法。At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions causing the electronic device to perform the method according to any one of claims 1 to 13 when executed by the at least one processing unit. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序可由处理器执行以实现根据权利要求1至13中任一项所述的方法。 A computer-readable storage medium having a computer program stored thereon, wherein the computer program can be executed by a processor to implement the method according to any one of claims 1 to 13.
PCT/CN2024/107673 2023-07-28 2024-07-25 Method and apparatus for prompt word management, device, and storage medium Pending WO2025026189A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202310945515.8A CN119002881A (en) 2023-07-28 2023-07-28 Method, apparatus, device and storage medium for managing prompt words
CN202310945515.8 2023-07-28

Publications (1)

Publication Number Publication Date
WO2025026189A1 true WO2025026189A1 (en) 2025-02-06

Family

ID=93486301

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/107673 Pending WO2025026189A1 (en) 2023-07-28 2024-07-25 Method and apparatus for prompt word management, device, and storage medium

Country Status (2)

Country Link
CN (1) CN119002881A (en)
WO (1) WO2025026189A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120336492A (en) * 2025-06-17 2025-07-18 杭州海康威视数字技术股份有限公司 Data compliance security detection method and device based on adaptive prompt word optimization

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109325178A (en) * 2018-09-14 2019-02-12 北京字节跳动网络技术有限公司 Method and apparatus for handling information
CN116186200A (en) * 2023-01-19 2023-05-30 北京百度网讯科技有限公司 Model training method, device, electronic equipment and storage medium
CN116483980A (en) * 2023-05-30 2023-07-25 科大讯飞股份有限公司 Man-machine interaction method, device and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9171542B2 (en) * 2013-03-11 2015-10-27 Nuance Communications, Inc. Anaphora resolution using linguisitic cues, dialogue context, and general knowledge
CN110597505A (en) * 2019-08-30 2019-12-20 深圳壹账通智能科技有限公司 A data processing method, device, terminal and storage medium
CN114879946A (en) * 2022-05-24 2022-08-09 来也科技(北京)有限公司 Code generation method and device for project rule combining RPA and AI and electronic equipment
CN115062617A (en) * 2022-07-01 2022-09-16 中国工商银行股份有限公司 Task processing method, device, equipment and medium based on prompt learning
CN115630640B (en) * 2022-12-23 2023-03-10 苏州浪潮智能科技有限公司 Intelligent writing method, device, equipment and medium
CN116484879A (en) * 2023-04-04 2023-07-25 上海墨百意信息科技有限公司 Prompt message generation method and device, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109325178A (en) * 2018-09-14 2019-02-12 北京字节跳动网络技术有限公司 Method and apparatus for handling information
CN116186200A (en) * 2023-01-19 2023-05-30 北京百度网讯科技有限公司 Model training method, device, electronic equipment and storage medium
CN116483980A (en) * 2023-05-30 2023-07-25 科大讯飞股份有限公司 Man-machine interaction method, device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HENDRIK STROBELT ET AL.: "Interactive and Visual Prompt Engineering for Ad-hoc Task Adaptation with Large Language Models", IEEE TRANSACTIONS ON VISUALIZATION AND COMPUTER GRAPHICS, vol. 29, no. 1, 31 January 2023 (2023-01-31), pages 1146 - 1156, XP011930319, DOI: 10.1109/TVCG.2022.3209479 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120336492A (en) * 2025-06-17 2025-07-18 杭州海康威视数字技术股份有限公司 Data compliance security detection method and device based on adaptive prompt word optimization

Also Published As

Publication number Publication date
CN119002881A (en) 2024-11-22

Similar Documents

Publication Publication Date Title
US12411662B2 (en) Digital assistant creation
US12333341B2 (en) Managing a digital assistant workflow
WO2025026189A1 (en) Method and apparatus for prompt word management, device, and storage medium
WO2025086567A1 (en) Method and apparatus for creating digital assistant, device, and storage medium
WO2024240105A1 (en) Method and apparatus for information processing, and device and storage medium
CN118520954A (en) Method, apparatus, device and storage medium for information interaction
US12242742B1 (en) Storing data in a digital assistant
US20250310282A1 (en) Creating a digital assistant
US20250307040A1 (en) Managing data output of a workflow
WO2025107890A1 (en) Application creation method and apparatus, device, and storage medium
WO2024240149A1 (en) Method and apparatus for application processing, and device and storage medium
WO2025091733A1 (en) Method for interaction with digital assistant, apparatus, device and storage medium
WO2024240145A1 (en) Method and apparatus for application processing, and device and storage medium
WO2025086563A1 (en) Method and apparatus for debugging digital assistant, device, and storage medium
CN120631216A (en) Interface interaction method, device, equipment and storage medium
CN120162410A (en) Method, device, equipment and storage medium for conversation content integration
CN120030070A (en) Method, device, equipment and storage medium for managing data
WO2025108115A1 (en) Data processing method and apparatus, device, and storage medium
WO2025091788A1 (en) Method and apparatus for configuring message card, device, and storage medium
CN119443276A (en) Document generation method, device, equipment and storage medium
CN119173867A (en) Method, device, equipment and storage medium for querying
CN118839768A (en) Information processing method, apparatus, device and storage medium
CN119088435A (en) Information processing method, device, equipment, storage medium and program product
CN119003558A (en) Information processing method, apparatus, device and storage medium
CN117196035A (en) Reply content processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 24848146

Country of ref document: EP

Kind code of ref document: A1