Prompt editing method, apparatus and device, and storage medium and program product
By configuring editable blocks in the editing interface, users can directly fill in content in the prompts, solving the problems of prompt sharing and low editing efficiency in existing technologies, and achieving more efficient prompt editing and personalized configuration of digital assistants.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- BEIJING ZITIAO NETWORK TECH CO LTD
- Filing Date
- 2025-11-10
- Publication Date
- 2026-05-15
AI Technical Summary
In existing technologies, the sharing of prompts among multiple users is inefficient and the editing process is not efficient, which affects the personalization and diversification of digital assistants.
A method and apparatus for editing prompt words are provided, in which users can fill in content, edit and confirm it as part of the prompt words for use in the output of a machine learning model by configuring editable editing blocks in the editing interface.
It improves the efficiency of prompt editing, making it easier for users to adjust the prompts of the digital assistant as needed, and enhances the efficiency of prompt sharing and editing among multiple users.
Smart Images

Figure CN2025133905_15052026_PF_FP_ABST
Abstract
Description
Methods, apparatus, equipment, storage media, and program products for editing prompt words
[0001] This application claims priority to Chinese Patent Application No. 202411607113.8, filed on November 11, 2024, entitled "Method, Apparatus, Device, Storage Medium and Program Product for Editing Prompt Words", the entire contents of which are incorporated herein by reference. Technical Field
[0002] The exemplary embodiments disclosed herein generally relate to the field of computers, and particularly to methods, apparatuses, electronic devices, computer-readable storage media, and computer program products for editing prompt words. Background Technology
[0003] With the development of information technology, various terminal devices can provide people with a variety of services in work and life. For example, terminal devices can be equipped with applications that provide different services, as well as digital assistants. Digital assistants are provided to assist users in handling various tasks in different applications and scenarios. Digital assistants typically have intelligent dialogue and task processing capabilities. Generally, digital assistants can support users to input questions in natural language and perform tasks and provide responses based on their understanding of natural language input and logical reasoning abilities. Summary of the Invention
[0004] In a first aspect of this disclosure, a method for editing prompt words is provided. The method is implemented at a client device and includes: in response to sending a task request to a server device, receiving from the server device a task execution instruction corresponding to the task request for execution; receiving from the server device prediction information for the task request, the prediction information indicating at least one predicted execution result of the task execution instruction and a prediction response corresponding to each of the at least one predicted execution result; and after the execution of the task execution instruction is completed, providing a response to the task request based on the matching between the target execution result of the task execution instruction and the at least one predicted execution result.
[0005] In a second aspect of this disclosure, an apparatus for prompt word editing is provided. The apparatus is implemented at a client device and includes: a task request sending module configured to receive, in response to sending a task request to a server device, a task execution instruction corresponding to the task request from the server device for execution; a prediction information receiving module configured to receive prediction information for the task request from the server device, the prediction information indicating at least one predicted execution result of the task execution instruction and a prediction response corresponding to each of the at least one predicted execution result; and a response providing module configured to provide a response to the task request after the execution of the task execution instruction is completed, based on the matching between the target execution result of the task execution instruction and at least one predicted execution result.
[0006] In a third aspect of this disclosure, an electronic device is provided. The device includes at least one processor; and at least one memory coupled to the at least one processor and storing instructions for execution by the at least one processor. When executed by the at least one processor, the instructions cause the electronic device to perform the method of the first aspect.
[0007] In a fourth aspect of this disclosure, a computer-readable storage medium is provided. The computer-readable storage medium stores computer-executable instructions that, when executed by a processor, implement the method of the first aspect.
[0008] In a fifth aspect of this disclosure, a computer program product is provided. The computer program product includes computer-executable instructions, wherein when executed by a processor, the computer-executable instructions implement the method according to a first aspect of this disclosure.
[0009] It should be understood that the content described in this content section is not intended to limit the key or essential features of the embodiments of this disclosure, nor is it intended to restrict the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0010] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. In the drawings, the same or similar reference numerals denote the same or similar elements, wherein:
[0011] Figure 1 shows a schematic diagram of an example environment in which embodiments of the present disclosure can be implemented;
[0012] Figures 2A and 2B illustrate example interfaces according to some embodiments of the present disclosure;
[0013] Figures 3A to 3E illustrate examples of editing interfaces for creating prompt words for a prompt word library according to some embodiments of the present disclosure;
[0014] Figures 4A and 4B show examples of configuration areas for receiving prompt words according to some embodiments of the present disclosure;
[0015] Figures 5A to 5D illustrate examples of editing interfaces for target functions according to some embodiments of the present disclosure;
[0016] Figure 6A shows an example of highlighting certain prompts in an editing interface according to some embodiments of the present disclosure;
[0017] Figures 6B to 6H show example interfaces related to the creation and application of prompt words in a prompt word library according to other embodiments of the present disclosure;
[0018] Figures 7A to 7E show schematic diagrams of example interfaces for commenting on prompt words according to some embodiments of the present disclosure;
[0019] Figure 8 shows a flowchart of a method for editing prompt words according to some embodiments of the present disclosure;
[0020] Figure 9 shows a schematic structural block diagram of an apparatus for prompt word editing according to some embodiments of the present disclosure; and
[0021] Figure 10 shows a block diagram of an electronic device in which one or more embodiments of the present disclosure may be implemented. Detailed Implementation
[0022] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0023] In the description of embodiments of this disclosure, the term "comprising" and similar terms should be understood as open-ended inclusion, i.e., "including but not limited to". The term "based on" should be understood as "at least partially based 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.
[0024] In this document, unless explicitly stated otherwise, performing a step in response to A does not mean that the step is performed immediately after A, but may include one or more intermediate steps.
[0025] It is understood 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 related provisions.
[0026] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, relevant users should be informed of the type, scope of use, and usage scenarios of the information involved in this disclosure through appropriate means in accordance with relevant laws and regulations, and authorization should be obtained from the relevant users. Among them, relevant users may include any type of rights holder, such as individuals, enterprises, and groups.
[0027] For example, in response to receiving an active request from a user, a prompt message is sent to the relevant user to clearly inform the user that the requested operation will require obtaining and using the user's information, thereby enabling the relevant user to choose whether to provide information to the software or hardware such as the electronic device, application, server, or storage medium that performs the operation of the technical solution disclosed herein based on the prompt message.
[0028] As an optional but non-restrictive implementation, in response to a user's active request, a prompt message can be sent to the user, such as a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide information to the electronic device.
[0029] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.
[0030] As used in this paper, the term "model" refers to a model that learns the relationship between inputs and outputs from training data, enabling it to generate corresponding outputs for a given input after training. Model generation can be based on machine learning techniques. Deep learning is a machine learning algorithm that processes inputs and provides corresponding outputs using multiple layers of processing units. A neural network model is an example of a deep learning-based model. In this paper, "model" may also be referred to as a "machine learning model," "learning model," "machine learning network," or "learning network," and these terms are used interchangeably.
[0031] Digital assistants can serve as effective tools for people's work, study, and daily life. Typically, the development of digital assistants is similar to that of general applications, requiring developers with programming skills to define the various capabilities of the digital assistant by writing complex code, and then deploying the digital assistant on an appropriate operating platform so that users can download, install, and use it.
[0032] With the diversification of application scenarios and the increasing availability of machine learning technology, there is a growing demand for developing more digital assistants with different capabilities to support task processing in various niche areas or to meet the personalized needs of different users. Users can create different prompts and provide them to machine learning models to determine the appropriate digital assistant. Users can also adjust the digital assistant by modifying the prompts. Traditionally, to achieve prompt sharing among multiple users, the user who created the prompt often needs to copy their own prompt and then send the copied prompt to other users. This affects the efficiency of prompt sharing among multiple users and the efficiency of other users editing the prompt.
[0033] According to embodiments of this disclosure, an improved scheme for editing prompt words is provided. According to this scheme, an editing interface for editing prompt words is presented, wherein the edited prompt words are input into a machine learning model for the model to determine its output. In response to triggering an edit block function, an edit block is configured at a selected location in the editing interface, wherein content can be filled into the edit block and the filled content is editable. In response to confirmation of the editing of the prompt words, the content filled into the edit block is determined as part of the prompt words.
[0034] Therefore, editable blocks can be configured within the prompts, allowing content to be filled in and edited. This enables users to easily fill in and modify the content within the edit blocks to obtain the desired prompts. This helps improve the efficiency of prompt editing.
[0035] Figure 1 illustrates a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented. Environment 100 relates to an assistant creation platform 110 and an assistant application platform 130.
[0036] As shown in Figure 1, the assistant creation platform 110 can provide users 105 with an environment for creating and publishing digital assistants. In some embodiments, the assistant creation platform 110 can be a low-code platform that provides a collection of tools for creating digital assistants. The assistant creation platform 110 can support visual development of digital assistants, allowing developers to skip the manual coding process and accelerate application development cycles and reduce costs. The assistant creation platform 110 can support any suitable platform for users to develop digital assistants and other types of applications, such as platforms based on Application Platform as a Service (aPaaS). Such platforms enable users to efficiently develop applications, enabling operations such as application creation and application function adjustments.
[0037] The assistant creation platform 110 can be deployed locally on the user 105's terminal device and / or supported by a remote server. For example, the user 105's terminal device can run a client of the assistant creation platform 110, which can support interaction between the user and the assistant creation platform 110. When the assistant creation platform 110 runs locally on the user's terminal device, the user 105 can directly interact with the local assistant creation platform 110 using the client. When the assistant creation platform 110 runs on a server device, the server device can provide services to the client running on the terminal device based on the communication connection with the terminal device. The assistant creation platform 110 can present a corresponding interface 122 to the user 105 based on the user 105's operations, to output and / or receive information from the user 105.
[0038] In some embodiments, the assistant creation platform 110 can be associated with a corresponding database, which stores the data or information required for the digital assistant creation process supported by the assistant creation platform 110. For example, the database can store the code and description information corresponding to the various functional modules that make up the digital assistant. The assistant creation platform 110 can also perform operations such as calling, adding, deleting, and updating the functional modules in the database. The database can also store operations that can be performed on different functional blocks. For example, in a scenario where a digital assistant needs to be created, the assistant creation platform 110 can call the corresponding functional blocks from the database to build the digital assistant. These modules may include, but are not limited to, plugins for implementing specific functions, workflows (workflows may consist of a series of workflow nodes with sequential execution order and dependencies), knowledge bases, etc.
[0039] In embodiments of this disclosure, user 105 can create and publish a digital assistant 120 on assistant creation platform 110 as needed. Digital assistant 120 can be published to any suitable assistant application platform 130, as long as the assistant application platform 130 supports the operation of digital assistant 120. After publication, digital assistant 120 can be used for conversational interaction with user 135. The client of assistant application platform 130 can present an interaction window 132 of digital assistant 120, such as a conversation window, in the client interface. Digital assistant 120, as an intelligent assistant, has intelligent dialogue and information processing capabilities. User 135 can input conversational messages in the conversation window, and digital assistant 120 can determine the reply message based on the created configuration information and present it to the user in interaction window 132. In some embodiments, depending on the configuration of digital assistant 120, interaction messages with digital assistant 120 can include multimodal messages, such as text messages (e.g., natural language text), voice messages, image messages, video messages, etc.
[0040] The assistant creation platform 110 and / or assistant application platform 130 can run on suitable electronic devices. These electronic devices can be any type of computing-capable device, including terminal devices or server devices. Terminal devices 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 system (PCS) devices, personal navigation devices, personal digital assistants (PDAs), audio / video players, digital cameras / camcorders, positioning devices, television receivers, radio receivers, e-book devices, gaming devices, or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof. Server devices can include, for example, computing systems / servers, such as mainframes, edge computing nodes, computing devices in cloud environments, and so on. In some embodiments, the assistant creation platform 110 and / or assistant application platform 130 can be implemented based on cloud services.
[0041] It should be understood that the structure and function of environment 100 are described for illustrative purposes only and do not imply any limitation on the scope of this disclosure. For example, while Figure 1 illustrates a single user interacting with assistant creation platform 110 and a single user interacting with assistant application platform 130, in practice multiple users can access assistant creation platform 110 to each create a digital assistant, and each digital assistant can be used to interact with multiple users.
[0042] The following description will detail some exemplary embodiments of this disclosure with reference to the accompanying drawings. It should be understood that the pages / interfaces shown in the drawings are merely examples, and various page designs / interfaces may actually exist. The various graphic elements in the page / interface may have different arrangements and different visual representations, one or more elements may be omitted or replaced, and one or more other elements may also be present. The embodiments of this disclosure are not limited in this respect.
[0043] The prompt editing process described in the embodiments of this disclosure can be implemented on an assistant creation platform, a terminal device with the assistant creation platform installed, and / or a server corresponding to the assistant creation platform. In the examples below, for the sake of discussion, the description is from the perspective of the assistant creation platform, such as the assistant creation platform 110 shown in FIG1. The interface presented by the assistant creation platform 110 can be presented via the terminal device of user 105, and user input can be received via the terminal device of user 105. In this document, the user 105 who creates the digital assistant is sometimes also referred to as the assistant creator, assistant developer, etc.
[0044] In some embodiments, the assistant creation platform 110 may also provide a resource library interface for the digital assistant. Example 200A, shown in Figure 2A, illustrates an example of a resource library interface. Example 200A includes a resource selection control 210, and the assistant creation platform 110 can present a resource list in response to receiving a trigger on the resource selection control 210. The resource list includes at least one option corresponding to at least one resource, the at least one resource includes at least one prompt word, and the at least one option includes at least one option corresponding to the prompt word. It is understood that the at least one resource may also include other resources, such as workflows, image streams, plugins, knowledge bases, message cards, etc. The assistant creation platform 110 can determine a resource creation request for receiving the prompt word in response to receiving a selection of the option corresponding to the prompt word, and present Example 200B, as shown in Figure 2B. Example 200B includes a prompt word editing interface 220.
[0045] Interface 220 includes a region 222 for editing the prompt name, a region 224 for editing the prompt description, and a region 226 for editing the prompt content. The prompt description may, for example, describe the scenarios in which the prompt can be used, such as whether it is suitable for a role-playing digital assistant or a productivity tool digital assistant. The prompt description may also additionally or alternatively describe the functions that the prompt can perform. For example, the description may indicate that a machine learning model can call certain plugins, workflows, databases, knowledge bases, etc., based on the prompt. However, this is merely exemplary and is not intended to limit the scope of the disclosure. The prompt content may include the full text of the prompt. Interface 220 may also include a confirmation control 228, which the assistant creation platform 110 can use to edit the prompt based on the content in regions 222, 224, and 226 in response to receiving a trigger on the confirmation control 228.
[0046] Edited prompts may include, for example, system prompts. In some examples, for a machine learning-based digital assistant interacting with user A, if the assistant receives input from user A, it can determine the prompt to be input to the machine learning model associated with the digital assistant based on user A's input and the system prompt. The machine learning model can then determine its output based on the input prompt, which will be used to determine a response to user A.
[0047] Edited prompts will be stored in the prompt library. This prompt library can be a user's personal prompt library or a prompt library created by multiple users (e.g., a team prompt library). If the prompt library is a team prompt library, the prompts in the prompt library can be created by any user in the team, and each user in the team can use prompts created by other users in the team and stored in the prompt library.
[0048] In some embodiments, permission to apply, edit, or delete at least one of the prompts in the prompt library is based on the user's role. It is understood that, depending on the user's role, prompts in the prompt library can be copied or directly used in a digital assistant or workflow node. Correspondingly, depending on the user's role, prompts in the prompt library can also be edited, deleted, etc. For example, the creator of the prompt (e.g., user 105) can edit, delete, etc., prompts in the prompt library. Other users belonging to the same organization / team / workspace as user 105 can access, apply, and copy prompts in the prompt library. In some embodiments, the creator of the prompt can configure which users have the ability to access, apply, and / or copy the prompt, or the ability of users to access, apply, and / or copy individual prompts can be configured based on a default policy. The following describes in more detail how prompts are added to the prompt library and how prompts in the prompt library are applied.
[0049] It should be noted that, in addition to the editing interface 220 described above, the assistant creation platform 110 may also provide other areas or interfaces that can be used to edit prompts. For example, the assistant creation platform 110 may also provide an editing interface / area for prompts in workflow nodes, a configuration area in the user interface for creating the digital assistant 120 for receiving prompts input in natural language, and so on. This disclosure does not limit the area or interface used for editing prompts, nor does it limit the specific way in which such area or interface is presented.
[0050] The editing interface 220 here can be viewed as an editing interface for creating prompts for the prompt word library. The configuration area for receiving prompts in the user interface for creating the digital assistant 120, as well as the editing interface / area for prompts in workflow nodes, can all be viewed as editing interfaces for the target function. The target function may include the digital assistant or workflow nodes, and the target function runs based on a machine learning model (e.g., a target machine learning model). The editing interface for the target function may, for example, include the user interface for creating the digital assistant 120.
[0051] When creating a digital assistant, the digital assistant's responses to the user are generated based on a machine learning model specified by the creator. During workflow editing, one or more workflow nodes can be selected as machine learning model-based workflow nodes, configured to utilize the machine learning model to process the workflow node's inputs to obtain the workflow node's output. It should be understood that other types of machine learning model-based functions may exist besides digital assistants or workflow nodes. The embodiments of this disclosure also apply to those functions. According to some embodiments of this disclosure, the assistant creation platform 110 can, in response to confirmation of the creation of a target function, confirm the content filled in the edit block as part of a prompt for the machine learning model.
[0052] In some embodiments, prompts may include a defined persona, describing the role or responsibilities of the digital assistant, its response style, etc., guiding the machine learning model to process the input according to the defined persona. Prompts may also include functions and workflows, such as describing the functions and workflows of the digital assistant and specifying how the digital assistant should answer user questions in different scenarios. This guides the machine learning model to process the input according to the functions and workflows. Prompts may also include constraints and limitations, restricting the scope of the digital assistant's responses, such as defining what the digital assistant should and should not answer. Additionally, prompts may include specifying a response format for the digital assistant, so that the digital assistant responds to user input according to that format.
[0053] In some embodiments, the prompt words may indicate the definition of the response style of the digital assistant to be created. By setting the response style, the responses of the created digital assistant can be differentiated and able to reveal a specific personality to the user. Alternatively or additionally, in some embodiments, the prompt words may indicate a description of the functionality supported by the digital assistant to be created. Alternatively or additionally, in some embodiments, the prompt words may indicate at least one response format of the digital assistant to be created. The response format may, for example, include Markdown (a lightweight markup language).
[0054] In some embodiments, alternatively or additionally, the prompts may also indicate at least one workflow to be executed by the digital assistant 120 to be created. Each workflow may correspond to various operations performed by the digital assistant 120 when performing a specific function. That is, the user 105 may be allowed to describe in natural language how the digital assistant 120 should perform a certain function. Understandably, functions based on machine learning models (e.g., workflow nodes in the digital assistant or workflow) can be enhanced with their inherent features. For example, the digital assistant or workflow node may have the ability to call plugins, knowledge bases, databases, triggers, workflows, etc. Accordingly, the use cases and descriptions of these functions can be explained in the prompts corresponding to the digital assistant or workflow node.
[0055] It should be understood that users can actually freely try different prompts to create a digital assistant that meets their expectations in terms of response. For example, in the prompts, users 105 can input requirements for the language of the response to the digital assistant 120, as well as constraints on the content of the response from the digital assistant 120 (e.g., the number of characters for different types of responses, the type of response content, etc.).
[0056] The machine learning model can run locally on the assistant creation platform 110 or on a remote server. In some embodiments, the machine learning model can be based on a language model (LM). Language models, by learning from large corpora, are capable of question-and-answering. The machine learning model can also be based on other suitable models. During the function creation process, a specific configuration area is provided for users to provide prompts, and the configuration of prompts can be done using natural language. This allows users to easily constrain the model's output and configure diverse digital assistants. In some embodiments, the machine learning model can also be based on any suitable model architecture, including but not limited to Transformer models, convolutional neural networks (CNNs), recurrent neural networks (RNNs), deep neural networks (DNNs), and so on.
[0057] In embodiments of this disclosure, the assistant creation platform 110 can present an editing interface for editing prompts. As mentioned above, the edited prompts are input into a machine learning model to determine the model output, and the digital assistant determines a response for the user based on this model output. The assistant creation platform 110 can configure an editing block at a selected location in the editing interface in response to a triggering of the edit block function. Content can be filled into the editing block, and the filled content is editable. Specifically, the editing block can be configured within the prompt content. One or more editing blocks can be configured within the prompt as needed. Configuring editing blocks allows the prompts to exhibit a structured characteristic, making them easier for developer users to understand and share among multiple developer users. In some embodiments, only the content within the editing blocks of the prompt can be edited, while the content outside the editing blocks is not editable. In other embodiments, both the content within the editing blocks and the content outside the editing blocks of the prompt can be edited, and the editing methods for both can be the same or different.
[0058] If a prompt contains an edit block, the user can create new prompt content within the provided edit block when the prompt is reused or edited. During the editing of a digital assistant or workflow node, the user can edit the prompt content corresponding to that digital assistant or workflow node within the edit block. In some embodiments, where an edit block exists for a prompt resource, the user 105 can edit the content contained in the prompt. Alternatively, the user can edit the content contained in the edit block within the prompt. In some examples, the content contained in the edit block can be provided to the user (e.g., a developer) using the prompt resource in the form of a form to be filled out.
[0059] The assistant creation platform 110 can detect the triggering of the edit block function in any suitable manner. In some embodiments, the assistant creation platform 110 can determine that a triggering of the edit block function has been detected in response to the detection of a selection of a predetermined control. The predetermined control here can be, for example, an add control or edit control for the edit block in the editing interface. Alternatively or additionally, in some embodiments, the assistant creation platform 110 can also determine that a triggering of the edit block function has been detected in response to the detection of input of a predetermined symbol in the editing interface. The predetermined symbol here can be any suitable symbol, and this disclosure does not limit the specific symbol. Alternatively or additionally, in some embodiments, the assistant creation platform 110 can be deployed on any suitable electronic device, which may include physical controls. The assistant creation platform 110 can determine that a triggering of the edit block function has been detected in response to receiving a trigger of an indication physical control (e.g., a shortcut key). It is understood that the assistant creation platform 110 can also detect the triggering of the edit block function in response to receiving any other means such as a right-click or hover operation, and this disclosure does not limit the specific means.
[0060] In some embodiments, to facilitate intuitive user identification of edit blocks, the assistant creation platform 110 can present edit blocks or their content, as well as non-edit block content within prompts, in different visual styles. Referring to FIG3A, FIG3A illustrates an example 300 of an editing interface for creating prompts for a prompt library according to some embodiments of the present disclosure. Example 300 includes a region 310 for editing prompt content, which can display the prompt content. It should be noted that this example description only assumes that the prompts (including edit blocks and non-edit blocks) consist only of text. In actual applications, prompts can include any appropriate type of content such as images or code. Different content can correspond to different types of edit blocks. For example, text content can correspond to a text edit block, image content can correspond to an image edit block, application programming interface (API) descriptions can correspond to an API edit block, and so on. The triggering methods, creation methods, etc., of different types of edit blocks can be the same or different.
[0061] Specifically, area 310 can display content with at least one editable block (e.g., editable blocks 311, 312, 313, 314, and 315) and non-editable blocks (e.g., the text "You will play a task role," the text "The following are detailed settings for this role; please construct your answer based on this information," the text "Basic task information," the text "Role background and context," etc., as shown in the figure). The assistant creation platform 110 can display the non-editable block content in a regular text visual style, and can display the editable blocks in visual styles such as bolding, italics, using different colors, different fonts, and / or adding borders. It is understood that the visual styles of the editable blocks shown in the figure are merely examples, and the visual styles to be used can be selected according to actual needs.
[0062] In some embodiments, the assistant creation platform 110 may, in response to detecting a trigger of the text editing block function when at least a portion of the prompt word's text is not selected, insert a text editing block (which may be referred to as a second text editing block, for example) at the input cursor position in the editing interface. Continuing to refer to FIG3A, the assistant creation platform 110 may present an input cursor 320 and an add control 301 for the text editing block in area 310. If no selection of at least a portion of the prompt word's text is received, the assistant creation platform 110 may, in response to receiving a trigger for the add control 301, determine that a trigger of the text editing block function has been detected. The assistant creation platform 110 may present the editing interface shown in FIG3B.
[0063] In Figure 3B, the assistant creation platform 110 can present the inserted text editing block 330 at the input cursor 320. In some embodiments, the assistant creation platform 110 can also display fill guide text associated with the text editing block 330 (e.g., the text "Please enter the prompt text when the editing block content is empty" shown in the figure).
[0064] In some embodiments, the assistant creation platform 110 may also present a text input interface 340 for the text editing block 330 in association with the text editing block 330. The text input interface 340 includes at least one of an input area 342 (which may be referred to, for example, as a second input area corresponding to the second text editing block) and an input area 344 (which may be referred to, for example, as a first input area corresponding to the second text editing block).
[0065] In some embodiments, the assistant creation platform 110 may also provide fill guide text in a given text editing block in response to receiving fill guide text for that text editing block in input area 342, when no fill text is provided in the given text editing block. In some embodiments, the assistant creation platform 110 may replace the fill text in a given text editing block with specified text in response to receiving specified text in input area 344. That is, if no specified text input by the user is received via input area 344, the assistant creation platform 110 may present the guide text in input area 342 in text editing block 330; if specified text input by the user is received via input area 344, the assistant creation platform 110 preferentially presents the specified text in text editing block 330.
[0066] In some embodiments, when a text input interface 340 is presented in association with the text editing block 330, it can be determined that the text editing block 330 is in a text editing state; when the text input interface 340 is not presented, it can be determined that the text editing block 330 is not in a text editing state. The assistant creation platform 110 can present the text editing block 330 in a text editing state and the text editing block 330 not in a text editing state with different visual styles. As an example, referring also to FIG3C, the assistant creation platform 110 can present the text editing block 330 with different visual styles in FIG3B and FIG3C.
[0067] In some embodiments, the assistant creation platform 110 may also, in response to detecting a triggering of the text editing block function when at least a portion of the text of the prompt word is selected, configure a text editing block (which may be referred to as a first text editing block, for example) based on at least a portion of the text at the location of the selected at least a portion of the text, wherein the text editing block may be filled with at least a portion of the text.
[0068] Referring to the editing interface shown in Figure 3D, in some embodiments, the assistant creation platform 110 may directly present a window 360 including at least one operation control in response to the selection of the text "This Role" (a non-editable block in the prompt). In other embodiments, 110 may present a window 360 including at least one operation control in response to the selection of the text "This Role" (a non-editable block in the prompt) and receiving a trigger operation (e.g., a right-click operation) for the text "This Role". The at least one control in the window 360 includes at least an editing control 362. The assistant creation platform 110 may configure a text editing block 350 based on the text "This Role" in response to the triggering of the editing control 362. The text editing block 350 is filled with the text "This Role".
[0069] In some embodiments, the assistant creation platform 110 may also present a text input interface 370 for the text editing block 350 in association with the text editing block 350. The text input interface 370 includes at least one of an input area 372 (which may be referred to, for example, as a second input area corresponding to the first text editing block) and an input area 374 (which may be referred to, for example, as a first input area corresponding to the first text editing block).
[0070] Similarly, the assistant creation platform 110 can also respond to receiving fill guide text for a given text editing block in input area 372, where the fill guide text is displayed when no text is filled in the given text editing block. The assistant creation platform 110 can also respond to receiving specified text in input area 374, replacing the already filled text in the given text editing block with the specified text. That is, the assistant creation platform 110 can respond to receiving specified text in input area 374, replacing the text "this role" in the given text editing block with the specified text.
[0071] Similarly, if no specified text is received from the user via the input area 374, the assistant creation platform 110 may present the guiding text in the input area 372 in the text editing block 350. If the specified text is received from the user via the input area 374, the assistant creation platform 110 will prioritize presenting the specified text in the text editing block 350.
[0072] Similarly, when the text input interface 370 is presented in association with the text editing block 350, it can be determined that the text editing block 350 is in a text editing state; when the text input interface 370 is not presented, it can be determined that the text editing block 350 is not in a text editing state. The assistant creation platform 110 can present the text editing block 350 in a text editing state and the text editing block 350 not in a text editing state with different visual styles. As an example, referring also to FIG3E, the assistant creation platform 110 can present the text editing block 350 with different visual styles in FIG3D and FIG3E.
[0073] The assistant creation platform 110 can, in response to confirmation of editing of the prompt word, determine that the content filled in the edit block is part of the prompt word. For example, referring to Example 300 shown in Figures 3A to 3E, Example 300 may include a confirmation control for the prompt word. The assistant creation platform 110 can, for example, determine that confirmation of editing of the prompt word has been received in response to receiving a trigger on the confirmation control, and thus determine that the content filled in the edit block is part of the prompt word.
[0074] Referring to Figures 4A and 4B, Figures 4A and 4B illustrate an example 400 of a configuration area for receiving prompt words according to some embodiments of the present disclosure. This configuration area can be a configuration area in a user interface for creating a digital assistant 120 for receiving prompt words input in natural language. The prompt words are presented in area 410 of example 400. The assistant creation platform 110 can also, in response to detecting a triggering of a text editing block function when at least a portion of the text of the prompt word is selected, configure a text editing block based on the selected at least a portion of the text, wherein the text editing block can be filled with at least a portion of the text.
[0075] Referring to the editing interface shown in Figure 4A, in some embodiments, the assistant creation platform 110 may directly present a window 420 including at least one operation control in response to the selection of the non-editable block text "XXXXXXXX" in the prompt. In other embodiments, 110 may present a window 420 including at least one operation control in response to the selection of the non-editable block text "XXXXXXXX" in the prompt and receiving a trigger operation (e.g., a right-click operation) for that text. The at least one control in the window 420 includes at least an editing control 422. The assistant creation platform 110 may configure a text editing block 412 based on the selected text, the text editing block 412 being filled with the selected text "XXXXXXXX", in response to the triggering of the editing control 422.
[0076] In some embodiments, the assistant creation platform 110 may also present a text input interface 430 associated with the text editing block 4120. In the example of FIG4A, the text input interface 430 includes at least one of an input area 432 (which may be referred to, for example, as a second input area corresponding to the text editing block 412) and an input area 434 (which may be referred to, for example, as a first input area corresponding to the text editing block 412). The input area 434 may default to displaying the text “XXXXXXXX” 412 selected from the current prompt.
[0077] Similarly, when the text input interface 430 is presented in association with the text editing block 412, it can be determined that the text editing block 412 is in a text editing state; when the text input interface 430 is not presented, it can be determined that the text editing block 412 is not in a text editing state. The assistant creation platform 110 can present the text editing block 412 in a text editing state and the text editing block 412 not in a text editing state with different visual styles. As an example, the assistant creation platform 110 can present the text editing block 412 with different visual styles in FIG4A and FIG4B.
[0078] In some embodiments, the assistant creation platform 110 may, in response to detecting a trigger on the application programming interface (API) edit block function, insert an API edit block (which may be referred to as a first API edit block) at a selected location of the prompt word. This API edit block can be filled with identification information for a predefined API. The API identification information may include any appropriate information such as the API's name, image identifier, and brief description. APIs that can be associated with a specific function may include plugins, knowledge bases, workflows, image streams, etc. During the operation of a function, one or more tasks or operations to be performed may require calling an associated API to complete the task.
[0079] Referring to Figures 5A to 5D, Figures 5A to 5D illustrate an example 500 of an editing interface for a target function according to some embodiments of the present disclosure. Referring to Figure 5A, example 500 includes at least a configuration area 510 for receiving prompts input in natural language and an area 520 for API (e.g., plugin) configuration. In example 500, assistant creation platform 110 may, for example, determine that a trigger for an API editing block function has been detected in response to receiving a predetermined symbol 530 (e.g., curly braces {}) input by the user in configuration area 510. In this case, assistant creation platform 110 may determine that a trigger for an API editing block has been detected and insert an API editing block at the predetermined symbol 530. It is understood that assistant creation platform 110 may also determine that a trigger for an API editing block function has been detected in response to any other suitable triggering method. For example, assistant creation platform 110 may determine that a trigger for an API editing block function has been detected in response to receiving a right-click operation.
[0080] The assistant creation platform 110 can display at least one populated API, which is associated with a target function. As an example, area 520 of example 500 can display at least one API associated with a target function; for instance, if plugin A is associated with the target function, area 520 can display an identifier for plugin A. The assistant creation platform 110 can also display a window 540 at a predetermined symbol 530, which can display identification information for plugin A and add controls for plugin A.
[0081] The assistant creation platform 110 can, in response to detecting a selection of a first API among at least one APIs, populate the identification information of the first API into a first API edit block. For example, the assistant creation platform 110 can, in response to receiving a trigger for adding a control for plugin A in window 540, determine that a selection of plugin A has been received, and populate the identification information of plugin A into the first API edit block. The assistant creation platform 110 can then present the example 500 shown in FIG. 5B. The example 500 shown in FIG. 5B presents an API edit block 550, which is populated with the identification information of plugin A.
[0082] In some embodiments, the prompts presented in the editing interface of the target function may be prompts determined from a prompt word library. Therefore, there are cases where the prompts include an API editing block (which may be referred to as a second API editing block) filled with the identification information of a second API, and the second API is not associated with the target function. In this case, the assistant creation platform 110 may, in response to the second API not being associated with the target function, present the identification information of the second API in a visual style corresponding to the disabled state. The visual style corresponding to the disabled state may be, for example, grayed out, but this is merely exemplary and is not limited thereto. For example, referring to FIG5C, the prompts include API editing block 560. Since the second API (i.e., plugin 123) is not associated with the target function, the assistant creation platform 110 may present the identification information of plugin 123 in a visual style corresponding to the disabled state by overlaying strikethrough on the API editing block.
[0083] The assistant creation platform 110 can, in response to a trigger on the API edit block 560, present a populateable second API, and in response to a selection of the second API, present the identification information of plugin 123 in a visual style corresponding to the enabled state. Referring again to Figure 5C, the assistant creation platform 110 can, in response to a trigger on the API edit block 560, present a window 562 containing the populateable plugin 123 and an add control for plugin 123. The assistant creation platform 110 can, in response to receiving a trigger on the add control for plugin 123, determine that a selection of plugin 123 has been received, and then present the example 500 shown in Figure 5D. At this time, the assistant creation platform 110 associates plugin 123 with the target function, and can present plugin 123 in area 520. Plugin 123, associated with the target function, is now switched to the enabled state. The assistant creation platform 110 can also present the identification information of plugin 123 in a visual style corresponding to the enabled state by de-presenting the strikethrough.
[0084] In some embodiments, the assistant creation platform 110 may also, in response to determining that a portion of the input content in the editing interface is marked as annotation content, present the annotation content in a first visual style. This annotation content will not be input into the machine learning model. The assistant creation platform 110 may determine that it has received annotation content in response to receiving specified symbols, specified text, etc. The assistant creation platform 110 may also, in response to determining that a portion of the input content in the editing interface is computer language code, present at least a portion of the predetermined symbols in the code in a second visual style. The computer language may include any suitable computer language such as Jinja, Markdown, etc. Which parts of the code should be highlighted in the second visual style can be pre-configured. The first visual style and the second visual style can be different visual styles or the same visual style.
[0085] Referring to FIG6A, FIG6A illustrates an example 600 of an editing interface according to some embodiments of the present disclosure. Example 600 includes a region 610 for receiving prompts input in natural language. In example 600, the assistant creation platform 110 may, in response to determining that content 601 is identified as annotation content, present the annotation content in region 601 with a visual style such as italic text and gray font. The assistant creation platform 110 may also, in response to determining that content 602 is code in computer language, present the symbol “%” in content 602 and the word “set” in the code with a bold visual style.
[0086] The above briefly mentions adding prompts to specific functions or newly created prompts to the prompt library. Editable blocks can be applied to prompts during the addition process. The following section will discuss in more detail how to add prompts to the prompt library and how to apply prompts from the library.
[0087] In some embodiments, the assistant creation platform 110 may present an example 600B of the project development interface shown in FIG. 6B. Example 600B includes a debug control 603 for debugging a created digital assistant. In response to receiving a trigger on the debug control 603, the assistant creation platform 110 may present an editing interface for a target function. As mentioned above, the target function may include a digital assistant, workflow nodes, etc. If the target function includes a digital assistant, the editing interface for the target function may include a creation interface for the digital assistant. For example, user 105 may initiate a creation request to the assistant creation platform 110 as needed. In response to receiving a creation request, the assistant creation platform 110 presents a user interface for creating a digital assistant.
[0088] Figure 6C shows an example of a user interface for creating a digital assistant. User 105 can configure the digital assistant to be created (assuming it is the digital assistant 120 shown in Figure 1) in example 600C. Unlike creating a digital assistant by writing code, in embodiments of this disclosure, the interface for creating a digital assistant is designed to include at least one configuration area for receiving configuration information for the digital assistant, each configuration area being defined to receive a type of configuration information required to build the digital assistant.
[0089] The user interface for creating a digital assistant includes at least a configuration area 610 for receiving prompts input in natural language, comprising an input box for receiving prompts (also referred to as prompt input) entered by the user in natural language. The prompt input is provided to a machine learning model, and the digital assistant 120's response to the user is determined based on the output of this machine learning model. In other words, the digital assistant 120 to be created will use a machine learning model to determine the user's needs corresponding to the user's input and provide responses to the user based on the output of the machine learning model.
[0090] In some embodiments, configuration area 610 may include area 612 and area 614. Area 612 may be used to display received prompt words. Area 614 may be used to display identifiers of prompt words previously created or acquired by the user. The assistant creation platform 110 may, in response to receiving a user's selection of an identifier for a prompt word in area 614, determine the prompt word corresponding to that identifier as a prompt word for the machine learning model and display that prompt word in area 612. Area 614 may include an entry point 616 for the prompt word library. The assistant creation platform 110 may, in response to receiving a user's trigger on the entry point 616 for the prompt word library, determine to display the interface corresponding to the prompt word library.
[0091] In some embodiments, the assistant creation platform 110 may also, in response to detecting that user 105 clicks on a workflow node in the workflow corresponding to the machine learning model, present a details page corresponding to that workflow node. Example 600D shown in Figure 6D illustrates an example of a details interface. Details page 600D includes an entry 604 for a prompt dictionary. The assistant creation platform 110 may, in response to receiving a trigger on entry 604, determine that a trigger for the prompt dictionary has been received, and then present the interface corresponding to the prompt dictionary.
[0092] Referring to Figure 6E, the example 600E shown in Figure 6E includes an interface 660 corresponding to the prompt word library. Interface 660 can display multiple prompt words available to the user. These prompt words can include those created by the user in the past, or those created by other users and shared with the user (e.g., prompt words within a team). The assistant creation platform 110 can also display prompt words included in the prompt word library, such as AA prompt word 664, BB prompt word, CC prompt word, etc., in interface 660. In some examples, the assistant creation platform 110 can also display the creator's identification information, creation time, etc., of at least one prompt word.
[0093] In some examples, the assistant creation platform 110 may present at least one prompt word in list form on the left side of the prompt word library presentation interface 660. However, this is merely exemplary and is not a limitation of this disclosure. Furthermore, if the assistant creation platform 110 detects that user 105 clicks on prompt word AA 664, it may present the content of prompt word AA 664 on the right side of the prompt word library presentation interface 660 for user 105 to preview.
[0094] In some embodiments, the assistant creation platform 110 may present at least one prompt if it detects a trigger on the prompt word library. Each prompt word is categorized into at least one of multiple types. In some examples, the assistant creation platform 110 may display at least one prompt word according to different types. The types of prompt words can be configured according to various criteria; for example, some prompt words may be divided into recommended prompt words and other prompt words. For example, the assistant creation platform 110 may present at least one prompt word recommended by the user, and may also present at least one prompt word created by the developer and / or the developer's team. In some examples, the assistant recommendation platform 110 may present at least one prompt word recommended by the user 105 based on information about the digital assistant / workflow node that the user 105 is currently creating (e.g., the name of the digital assistant / workflow node). In some embodiments, the types of prompt words may also be categorized based on the scenario in which the prompt word is used and / or the function it targets. For example, prompt words for the "character avatar" category may be applicable to digital assistants or workflow nodes that generate character avatars, and prompt words for efficiency tools may be applied to digital assistants or workflow nodes that are efficiency tools. In addition, different prompt word types can be categorized for the functions being created (e.g., plugins, workflows, databases, knowledge bases, etc.).
[0095] In some embodiments, the assistant creation platform 110 can display at least one prompt word included in the prompt word library according to different types. In some examples, the assistant creation platform 110 can categorize the prompt words in the prompt word library according to their source (e.g., from a recommendation or from the team to which user 105 belongs). In some examples, the assistant creation platform 110 can also divide the prompt words in the prompt word library into several categories based on their identification information. Such categorization and display methods facilitate users in quickly locating the desired prompt word.
[0096] In some embodiments, if the assistant creation platform 110 receives a request to apply a first prompt among at least one prompt words, it can insert the first prompt word into the area of the editing interface corresponding to the prompt word editing. For example, in Example 600E, the assistant creation platform 110 can insert the AA prompt word 664 into the area 666 of the interface 660 corresponding to the prompt word editing in response to detecting a user 105's selection of the AA prompt word 664 and a selection of the "Use" control 668.
[0097] Subsequently, the assistant creation platform 110 creates a first function based at least on the first prompt word or the edited first prompt word. In some examples, the assistant creation platform 110 creates a digital assistant 120 or a workflow node based at least on the AA prompt word 664. In other examples, the assistant creation platform 110 can also create a digital assistant 120 or a workflow node based at least on the edited AA prompt word 664. It is understood that after selecting to insert the AA prompt word 664, the user 105 can also write the AA prompt word 664 based on the AA prompt word 664.
[0098] In some embodiments, the first prompt word or an edited first prompt word can be input into a first machine learning model associated with a first function, and the output of the first function is determined based on the output of the first machine learning model. It is understood that the AA prompt word 664 or the edited AA prompt word 664 can be associated with a function based on the first machine learning model (e.g., digital assistant 120 or workflow node). In this way, the digital assistant 120 or workflow node can use the first machine learning model to process the input of the function and provide the output of the function based on the output of the first machine learning model. For example, for a machine learning model-based digital assistant, the first machine learning model can determine the user's needs corresponding to the user input based on the AA prompt word 664 or the edited AA prompt word 262, and output an output that will be used to determine a response to the user.
[0099] Interface 660 includes a creation control 662 for prompt words. The assistant creation platform 110 can respond to a user trigger on the creation control 662 and display Example 600F as shown in Figure 6F. Example 600F includes an editing interface 670 (also referred to as a prompt word creation interface) for creating prompt words for the prompt word library. Interface 670 includes an area 671 for editing the prompt word name, an area 672 for editing the prompt word description, and an area 673 for editing the prompt word content. The prompt word description can indicate the prompt word's function, purpose, etc., and the prompt word content can include the full text of the prompt word. Area 673 may also include an import control 674. The assistant creation platform 110 can respond to a trigger on the import control 674 and display the prompt words from area 612 of the configuration area 610 in area 673. Interface 670 may also include a confirmation control 675. The assistant creation platform 110 can respond to a trigger on the confirmation control 675 and create prompt words based on the content displayed in areas 671, 672, and 673.
[0100] Referring back to FIG6C, in some embodiments, the user interface for creating the digital assistant 120 may further include a second configuration area for receiving configurations of at least one processing component. The configuration of the processing component indicates at least one processing component that the digital assistant 120 can use when processing user requests. In some embodiments, after the configuration of the processing component is provided, when the created digital assistant 120 interacts with the user, the configuration of the processing component can be provided to a model so that the model can determine which / which processing components need to be used to process user input, thereby determining the response for the user.
[0101] Each processing component can be understood as a tool that the digital assistant 120 can invoke when processing user requests, and each processing component can perform corresponding functions or services. The types of processing components can be very diverse. Users 105 can select, configure, or modify existing processing components, or users 105 can customize one or more processing components.
[0102] In some embodiments, the second configuration area may include an area for API (e.g., plugin) configuration, as shown in area 620 of FIG6C. In this area, the user can select or customize at least one plugin used by the digital assistant 120. Each plugin is configured to perform a corresponding function. For example, a search plugin can perform data search functionality; a browser plugin can provide web browsing functionality; a music plugin can provide music search and playback functionality, and so on.
[0103] Plugins can be considered atomic capabilities of the digital assistant 110. The digital assistant 120 can invoke one or more plugins to handle user requests. In some embodiments, the assistant creation platform 110 can provide a plugin library from which the user 105 can select developed plugins. In some embodiments, alternatively or additionally, the assistant creation platform 110 can provide a plugin definition interface for the user 105 to define plugins with specific functions as needed.
[0104] Area 620 may include an add control 621 for plugins. The assistant creation platform 110 can respond to a trigger on the add control 621 by displaying the example 600G shown in Figure 6G. Example 600G includes a plugin library interface 680. Interface 680 can display all plugins in the plugin library (e.g., plugins A, B, C, D, etc.). To facilitate quick user search for desired plugins, interface 680 may also include a search box 681. The assistant creation platform 110 can receive user input via the search box 681 and search for the corresponding plugin in the plugin library based on the user input. Interface 681 may also include add controls corresponding to each plugin, such as add control 682 for plugin A, add control 683 for plugin B, add control 684 for plugin C, add control 685 for plugin D, and so on.
[0105] The assistant creation platform 110 can, in response to a trigger on adding a control, associate the plugin corresponding to that control with the digital assistant. For example, the assistant creation platform 110 can, in response to a trigger on adding control 682, associate plugin A with the digital assistant. This process can be viewed as associating an API with a target function. The assistant creation platform 110 can, for example, display example 600H as shown in Figure 6H in response to plugin A being associated with the digital assistant. An identifier corresponding to plugin A can be displayed in area 620 of example 600H to indicate that plugin A is associated with the digital assistant.
[0106] Referring back to Figure 6C, in some embodiments, the second configuration area may include an area for workflow configuration, such as area 622 shown in Figure 6C. In this area, the user can select or customize at least one workflow to be executed by the digital assistant 120. Workflows can be entered not only through prompts in natural language, but also by providing workflow entry points for the user 105 to select existing workflows or define workflows through a dedicated interface.
[0107] In some embodiments, the second configuration area may include an area for workflow configuration, such as area 624 as shown in FIG6C. In this area, the user may select at least one dataset, which the digital assistant 120 uses to determine a response to the user. Here, "dataset" may also be referred to as a "knowledge base." When determining a response to the user, the digital assistant 120 may retrieve relevant knowledge from the configured dataset for response determination. In some embodiments, the assistant creation platform 110 may allow the user 105 to configure the digital assistant 120's dataset by selecting from existing datasets, uploading a local dataset, or specifying an online dataset, etc.
[0108] It is understood that the second configuration area may also include other areas, such as areas for workflow configuration, areas for configuring persistent storage information, areas for configuring tasks, and so on. This disclosure does not limit this. Example 600C may also present control 626. The assistant creation platform 110 may, for example, respond to a trigger operation received on control 626 and present more second configuration areas.
[0109] As mentioned earlier, the digital assistant 120 can use a machine learning model to understand user requests and determine responses to the user. In some embodiments, the machine learning model used by the digital assistant 120 can be a default model, requiring no configuration from the creator. In some embodiments, during the creation of the digital assistant 120, the creator can be allowed to select the machine learning model to be used. A fourth configuration area can be provided in the user interface for creating the digital assistant to receive the selection of the machine learning model. The selected machine learning model is invoked to determine the response from the digital assistant 120 to the user. As shown in Figure 6C, Example 600C also includes an area 630 for configuring the machine learning model, in which the user 105 can select the machine learning model to use.
[0110] The above discussion covered the configurable processing components during the creation of a digital assistant. In specific applications, the assistant creation platform can provide configurations of more, fewer, or different processing components for the digital assistant creator to choose or configure as needed.
[0111] In some embodiments, to allow the user 105 who creates the digital assistant to conveniently test the operation of the created digital assistant 120 during the creation process, a debugging area for the digital assistant can also be provided in the user interface, such as the debugging area 640 shown in FIG6C. The debugging area 640 includes an input area 642 for receiving debugging requests for the digital assistant 120, and also includes a presentation area 644 for providing debugging results for the debugging requests (and providing the received debugging requests). The debugging area 640 can be configured as an interactive window, simulating the interactive interface seen by the user of the digital assistant 120.
[0112] During debugging, the debugging results presented in the debugging area 640 can be determined based on the received debugging request and the current configuration information for the digital assistant 120 in the user interface. The user 105 can use the debugging results to determine whether the actual operating results of the digital assistant 120 meet expectations, whether to continue modifying the configuration information, or whether to release the digital assistant. In some embodiments, for each debugging session, in addition to providing the debugging results, the underlying operating process through which the digital assistant 120 determined the debugging results can also be provided, such as calls to the machine learning model, the processing procedures of the machine learning model, one or more plugins used, etc. This allows the user 105 to more quickly determine whether the currently configured digital assistant meets expectations.
[0113] By leveraging machine learning models and configuration information to understand user needs and using processing components to execute those needs, the digital assistant 120 will be able to interact with users and respond to their requests. The user interface for creating the digital assistant is templated to provide various configuration areas for receiving configuration information from the digital assistant 120, allowing the user 105 to customize the digital assistant 120 through complex configuration and coding.
[0114] In some embodiments, the assistant creation platform 110 may provide an entry point for creating a digital assistant in any suitable user interface. A user can access the user interface for creating a digital assistant by triggering this entry point. Based on the user 105's input on the user interface for creating a digital assistant, configuration information received in the user interface can be obtained. The configuration information includes at least the prompts received in the configuration area 610. After configuration is complete, the user 105 is also allowed to publish the created digital assistant. In response to receiving a publishing request, the assistant creation platform 110 publishes the digital assistant 120 for interaction with the user based on the configuration information received in the user interface. As shown in FIG6C, the user interface presents a publishing control 650. In response to detecting a trigger on the publishing control 650, the assistant creation platform 110 receives the user's publishing request and publishes the digital assistant 120 based on the configuration information received in the user interface.
[0115] In some embodiments, the created digital assistant 120 can be published to a default platform for operation. In some embodiments, candidate platforms can be provided for users to choose from. In response to receiving a publication request, the assistant creation platform 110 can provide at least one candidate platform, each of the at least one candidate platform supporting the operation of the digital assistant 120. In response to receiving confirmation of a target platform among the at least one candidate platform, the digital assistant 120 is published to the target platform, such as the assistant application platform 130 in FIG1.
[0116] The foregoing describes the creation process of digital assistants and the editing process of prompt words in some embodiments of this disclosure. In the embodiments of this disclosure, the assistant creation platform provides full support for the construction of digital assistants, thereby enabling users to conveniently, quickly, flexibly, and freely create prompt words and digital assistants.
[0117] In some embodiments, for the editing interface of a prompt-based function, a commenting function for the prompt area can also be provided. For example, this commenting function can be provided in the editing interface for prompts from a prompt library, or in the editing interface for a specific function (e.g., a digital assistant or workflow node). This is because different users may develop and maintain the same function, and providing a commenting function helps these users share their opinions on the prompts, provide annotations, and help users better understand the function of the prompts. The commenting function for prompts will be discussed below with reference to Figures 7A to 7E.
[0118] Figures 7A to 7E illustrate example interfaces 700 for commenting on prompts according to some embodiments of the present disclosure. The commenting function here is sometimes also referred to as an annotation function. Figures 7A to 7E illustrate providing commenting on prompts in a prompt input area for a digital assistant. It should be understood that the commenting function can be provided during the editing of prompts for other functions (e.g., workflow nodes), during the addition of new prompts to the prompt library, or when viewing prompts in the prompt library.
[0119] In some embodiments, in response to a comment trigger on at least a portion of the prompt word, the assistant creation platform 110 presents a user interface for comment input. In some embodiments, in response to at least a portion of the prompt word being selected, a comment control is presented, and in response to a trigger on the comment control, a user interface for comment input is presented. The user interface for comment input includes input controls. The input controls for comment input may include input boxes, or may also include one or more other input controls that support voice input, image input, file import, etc. Comments on at least a portion of the selected content can be received via the input controls, such as input boxes.
[0120] As shown in Figure 7A, in the prompt input area of the digital assistant, in response to the selection of a portion 712 in the prompt, a panel of operable controls can be presented, including at least a comment control 712. In response to detecting a trigger on the comment control 710, a user interface 720 for comment input is presented, including an input box 722. The user can enter a comment on the portion 712 in the input box 722. In response to detecting confirmation of the comment, such as a trigger on the "Submit" control 724 in Figure 7A (or confirmation triggered in other ways), the received comment can be associated with the selected portion 712.
[0121] In some embodiments, the comment control used to trigger the comment function can be presented in association with the unit content of the prompt word, for example, the comment control can be presented in association with each paragraph or each line of prompt word content. As shown in Figure 7B, the comment control 710 is presented at each paragraph of the prompt word. The comment control can be fixed in presentation, or it can be presented after a hover operation on that section is detected (e.g., the mouse hovers over that section). Similar to the example in Figure 7B, by triggering the comment control, a user interface for comment input can be presented for the user to enter comment content.
[0122] In some embodiments, the commenting functionality for prompts can be determined based on the user's role. For example, a digital assistant, workflow node, or the creator of prompts in a prompt library can add comments to prompts, and the scope of users who can comment on corresponding prompts can be configured.
[0123] In some embodiments, comments associated with at least a portion of the prompt words can be presented to the user. In some embodiments, comments associated with at least a portion of the prompt words can be fixedly displayed in a specific comment display area. In some embodiments, comments associated with at least a portion of the prompt words can be collapsed and expanded to be presented to the user upon detecting a trigger to view the comments. As shown in FIG7C, a comment panel 730 can be presented by clicking the comment control 710 or by hovering over the comment control 710, where comments on the associated prompt word content are presented. In some embodiments, if there are multiple comments on at least a portion of the prompt word content, the comments can also be presented in a collapsed state and can be presented to the user upon being triggered. As shown in FIG7D, multiple comments can be presented in the comment panel 730 after triggering the comment control 710. In some embodiments, the comment panel can also provide similar comment controls or other comment input triggering methods to trigger the presentation of comment input controls. As shown in FIG7C, a comment input box 722 can also be presented while other comments are being presented, so that the current user can enter comment content.
[0124] In some embodiments, when the comment is collapsed, a summary of the comment for a portion of the prompt can be provided. The summary can indicate the number of comments, the identifier of at least some of the users who posted the comment, a portion of the comment's content, etc. This allows users to know that a comment exists for a portion of the prompt without expanding the comment details, and also to obtain at least some information about the comment. As shown in Figure 7E, a comment viewing control 740 is provided for the portion of the prompt associated with the comment. Triggering the comment viewing control 740 displays a comment panel 730 showing comments related to the associated prompt content.
[0125] In some embodiments, the presentation of comments can also be determined based on the user's role. For example, a user who can access the prompt can be configured to access comments related to the prompt. In some embodiments, editing of existing comments in the prompt can also be supported, including modifying or deleting the comment content. The comment editing functionality can also be determined based on the user's role. For example, a user who has the ability to edit the prompt can also be configured to edit comments.
[0126] In some embodiments, during the prompt editing process, the annotations and comments associated with the prompts are not used to build the prompts input into the machine learning model. In some embodiments, when creating a digital assistant or workflow, adding annotations / comments can help other developers of the digital assistant or workflow quickly understand the logic of the prompt, thereby improving development efficiency. Furthermore, after the prompts with added annotations / comments are saved in the prompt library, other developers can also quickly understand the logic of the prompt when reusing it.
[0127] It should be noted that the visual styles mentioned above can include any appropriate visual style such as highlighting, bolding, italics, and underlining. The visual styles for different content in different states can be preset. This disclosure does not limit the specific visual styles.
[0128] In summary, according to the embodiments of this disclosure, an editable block can be presented within the prompt, and this editable block can be filled with content. This allows users to easily edit the editable block to modify the prompt, thus improving the efficiency of prompt editing.
[0129] Figure 8 shows a flowchart of a prompt word editing method 800 according to some embodiments of the present disclosure. Method 800 can be implemented at the assistant creation platform 110. Method 800 is described below with reference to Figure 1.
[0130] In box 810, the assistant creation platform 110 presents an editing interface for editing prompt words, where the edited prompt words are input into the machine learning model to determine the model output.
[0131] In box 820, the assistant creation platform 110, in response to the triggering of the edit block function, configures an edit block at a selected location in the editing interface, wherein content can be filled in the edit block and the filled content is editable.
[0132] In box 830, the assistant creation platform 110, in response to confirmation of the editing of the prompt word, identifies the content filled in the edit block as part of the prompt word.
[0133] In some embodiments, the visual style of an edit block or the content within an edit block differs from the visual style of the content in a non-edit block within a prompt.
[0134] In some embodiments, configuring an edit block at a selected location of a prompt word includes: in response to detecting a triggering of a text edit block function when at least a portion of the text of the prompt word is selected, configuring a first text edit block at the location of the selected at least a portion of the text based on the at least a portion of the text, wherein the first text edit block is filled with at least a portion of the text.
[0135] In some embodiments, configuring an edit block at a selected location of a prompt word includes: in response to detecting a trigger of the text edit block function when at least a portion of the text of the prompt word is not selected, inserting a second text edit block at the input cursor of the editing interface, wherein fill guide text is displayed in association with the second text edit block.
[0136] In some embodiments, method 800 further includes: for a given text editing block in a first text editing block or a second text editing block, presenting a text input interface for the given text editing block, the text input interface including at least one of a first input area and a second input area; in response to receiving specified text in the first input area, replacing the text already filled in the given text editing block with the specified text; and receiving fill guide text for the given text editing block in the second input area, the fill guide text being displayed when there is no text filled in the given text editing block.
[0137] In some embodiments, configuring an edit block at a selected location of a prompt word includes: in response to detecting a trigger of an application programming interface (API) edit block function, inserting a first API edit block at the selected location of the prompt word, wherein the first API edit block can be filled with identification information for a predefined API.
[0138] In some embodiments, the editing interface includes an editing interface for a target function that operates based on a target machine learning model, and the method 800 further includes: in response to detecting a trigger on a first API editing block, presenting at least one populated API, wherein the at least one API is associated with the target function; and in response to detecting a selection of a first API among the at least one API, populating the first API's identification information into the first API editing block.
[0139] In some embodiments, the editing interface includes an editing interface for a target function that operates based on a target machine learning model, and wherein the prompt includes a second API editing block populated with identification information of a second API. The method 800 further includes: in response to the second API not being associated with the target function, presenting the identification information of the second API in a visual style corresponding to a disabled state; in response to detecting a trigger on the second API editing block, presenting a populated second API; and in response to detecting a selection of the second API, presenting the identification information of the second API in a visual style corresponding to an enabled state.
[0140] In some embodiments, method 800 further includes: determining that a trigger of an edit block function has been detected in response to detecting a selection of a predetermined control; or determining that a trigger of an edit block function has been detected in response to detecting input of a predetermined symbol in the editing interface.
[0141] In some embodiments, the editing interface includes an editing interface for a target function that operates based on a target machine learning model, and wherein confirming the content filled in the editing block as part of a prompt word includes: confirming the content filled in the editing block as part of a prompt word in response to confirmation of the creation of the target function.
[0142] In some embodiments, the editing interface includes an editing interface for creating prompt words for a prompt word library, and method 800 further includes: adding the edited prompt word to the prompt word library in response to confirmation of editing of the prompt word.
[0143] In some embodiments, method 800 further includes: in response to determining that a portion of the input in the editing interface is labeled as annotation content, presenting the annotation content in a first visual style, wherein the annotation content is not input into the machine learning model; and in response to determining that a portion of the input in the editing interface is code in computer language, presenting at least a portion of predetermined symbols in the code in a second visual style.
[0144] Embodiments of this disclosure also provide corresponding apparatus for implementing the methods or processes described above. Figure 9 shows a schematic structural block diagram of an apparatus 900 for prompt word editing according to some embodiments of this disclosure. The apparatus 900 may be implemented in or included in an assistant creation platform 110, for example. The various modules / components in the apparatus 900 may be implemented by hardware, software, firmware, or any combination thereof.
[0145] As shown in the figure, device 900 includes an editing interface presentation module 910, configured to present an editing interface for editing prompts, wherein the edited prompts are input into a machine learning model to determine the model output. Device 900 also includes an editing block configuration module 920, configured to configure an editing block at a selected location in the editing interface in response to triggering the editing block function, wherein content can be filled into the editing block and the filled content is editable. Device 900 also includes a prompt determination module 930, configured to determine the content filled in the editing block as part of the prompt in response to confirmation of the editing of the prompt.
[0146] In some embodiments, the visual style of an edit block or the content within an edit block differs from the visual style of the content in a non-edit block within a prompt.
[0147] In some embodiments, the edit block configuration module 920 is further configured to: in response to detecting a triggering of the text edit block function when at least a portion of the text of the prompt word is selected, configure a first text edit block based on at least a portion of the text at the location of the selected at least a portion of the text, wherein the first text edit block is filled with at least a portion of the text.
[0148] In some embodiments, the edit block configuration module 920 is further configured to: in response to detecting a trigger of the text edit block function when at least a portion of the text of the prompt word is not selected, insert a second text edit block at the input cursor position of the editing interface, wherein fill guide text is displayed in association with the second text edit block.
[0149] In some embodiments, the apparatus 900 further includes: a text input interface presentation module configured to present a text input interface for a given text editing block for a given text editing block in either a first text editing block or a second text editing block, the text input interface including at least one of a first input area and a second input area; a replacement module configured to replace the text already filled in the given text editing block with the specified text in response to receiving the specified text in the first input area; and a guide text receiving module configured to receive a fill guide text for the given text editing block in the second input area, the fill guide text being displayed when there is no fill text in the given text editing block.
[0150] In some embodiments, the edit block configuration module 920 is further configured to: in response to detecting a trigger of the application programming interface (API) edit block function, insert a first API edit block at a selected position of a prompt word, wherein the first API edit block can be filled with identification information of a predefined API.
[0151] In some embodiments, the editing interface includes an editing interface for a target function that operates based on a target machine learning model, and the apparatus 900 further includes: a first presentation module configured to present at least one populated API in response to detecting a trigger on a first API editing block, wherein the at least one API is associated with the target function; and an identification information filling module configured to fill identification information of the first API into the first API editing block in response to detecting a selection of the first API among the at least one API.
[0152] In some embodiments, the editing interface includes an editing interface for a target function, the target function running based on a target machine learning model, and wherein the prompt includes a second API editing block, the second API editing block being filled with identification information of a second API. The device 900 further includes: a first style presentation module configured to present the identification information of the second API in a visual style corresponding to a disabled state in response to the second API not being associated with the target function; a second presentation module configured to present a fillable second API in response to detecting a trigger on the second API editing block; and a second style presentation module configured to present the identification information of the second API in a visual style corresponding to an enabled state in response to detecting a selection of the second API.
[0153] In some embodiments, the apparatus 900 further includes: a first trigger detection module configured to determine that a trigger of an edit block function has been detected in response to detecting a selection of a predetermined control; or a second trigger detection module configured to determine that a trigger of an edit block function has been detected in response to detecting input of a predetermined symbol in the editing interface.
[0154] In some embodiments, the editing interface includes an editing interface for a target function that operates based on a target machine learning model, and the prompt word determination module 930 is further configured to: in response to confirmation of the creation of the target function, confirm the content filled in the editing block as part of the prompt word.
[0155] In some embodiments, the editing interface includes an editing interface for creating prompts for a prompt word library, and the device 900 further includes a prompt word adding module configured to add the edited prompt word to the prompt word library in response to confirmation of the editing of the prompt word.
[0156] In some embodiments, the apparatus 900 further includes: an annotation content presentation module configured to present the annotation content in a first visual style in response to determining that a portion of the content entered in the editing interface is marked as annotation content, wherein the annotation content is not input into the machine learning model; and a code presentation module configured to present at least a portion of the predetermined symbols in the code in a second visual style in response to determining that a portion of the content entered in the editing interface is computer language code.
[0157] The modules included in device 900 can be implemented in various ways, including software, hardware, firmware, or any combination thereof. In some embodiments, one or more modules may be implemented using software and / or firmware, such as machine-executable instructions stored on a storage medium. In addition to or as an alternative to machine-executable instructions, some or all of the modules in device 900 may be implemented at least partially 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 so on.
[0158] Figure 10 illustrates a block diagram of an electronic device 1000 in which one or more embodiments of the present disclosure may be implemented. It should be understood that the electronic device 1000 shown in Figure 10 is merely exemplary and should not constitute any limitation on the functionality and scope of the embodiments described herein. The electronic device 1000 shown in Figure 10 may include or be implemented as the assistant creation platform 110 of Figure 1, or the device 900 of Figure 9.
[0159] As shown in Figure 10, the electronic device 1000 is in the form of a general-purpose electronic device. Components of the electronic device 1000 may include, but are not limited to, one or more processing units or processors 1010, memory 1020, storage devices 1030, one or more communication units 1040, one or more input devices 1050, and one or more output devices 1060. The processor 1010 may be a physical or virtual processor and is capable of performing various processes according to programs stored in the memory 1020. In a multiprocessor system, multiple processors execute computer-executable instructions in parallel to improve the parallel processing capability of the electronic device 1000.
[0160] Electronic device 1000 typically includes multiple computer storage media. Such media can be any accessible media that is accessible to electronic device 1000, including but not limited to volatile and non-volatile media, removable and non-removable media. Memory 1020 can be volatile memory (e.g., registers, cache, random access memory (RAM)), non-volatile memory (e.g., read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. Storage device 1030 can be removable or non-removable media and may include machine-readable media, such as flash drives, disks, or any other media that can be used to store information and / or data and can be accessed within electronic device 1000.
[0161] Electronic device 1000 may further include additional removable / non-removable, volatile / non-volatile storage media. Although not shown in FIG. 10, disk drives for reading from or writing to removable, non-volatile disks (e.g., "floppy disks") and optical disk drives for reading from or writing to removable, non-volatile optical disks may be provided. In these cases, each drive may be connected to a bus (not shown) via one or more data media interfaces. Memory 1020 may include computer program product 1025 having one or more program modules configured to perform various methods or actions of various embodiments of this disclosure.
[0162] The communication unit 1040 enables communication with other electronic devices via a communication medium. Additionally, the functionality of the components of the electronic device 1000 can be implemented using a single computing cluster or multiple computing machines capable of communicating via communication connections. Therefore, the electronic device 1000 can operate in a networked environment using logical connections to one or more other servers, network personal computers (PCs), or another network node.
[0163] Input device 1050 can be one or more input devices, such as a mouse, keyboard, trackball, etc. Output device 1060 can be one or more output devices, such as a monitor, speaker, printer, etc. Electronic device 1000 can also communicate with one or more external devices (not shown) via communication unit 1040 as needed. These external devices include storage devices, display devices, etc., and can communicate with one or more devices that enable user interaction with electronic device 1000, or with any device that enables electronic device 1000 to communicate with one or more other electronic devices (e.g., network card, modem, etc.). Such communication can be performed via input / output (I / O) interface (not shown).
[0164] According to an exemplary implementation of this disclosure, a computer-readable storage medium is provided that stores computer-executable instructions thereon, wherein the computer-executable instructions are executed by a processor to implement the methods described above. According to an exemplary implementation of this disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, which are executed by a processor to implement the methods described above.
[0165] Various aspects of this disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatuses, devices, and computer program products implemented according to this disclosure. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.
[0166] 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 apparatus to produce a machine such that, when executed by the processing unit of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0167] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions that execute on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0168] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction, which contains one or more executable instructions for implementing the specified logical function. In some, as newer, implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0169] Various implementations of this disclosure have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed implementations. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described implementations. The terminology used herein is chosen to best explain the principles, practical applications, or improvements to technology in the market, or to enable others skilled in the art to understand the various implementations disclosed herein.
Claims
1. A method for editing prompt words, comprising: An editing interface is presented for editing prompts, wherein the edited prompts are input into a machine learning model to determine the model output; In response to the triggering of the edit block function, an edit block is configured at a selected location in the editing interface, wherein content can be filled into the edit block and the filled content is editable; and In response to confirmation of the editing of the prompt word, the content filled in the edit block is determined to be part of the prompt word.
2. The method according to claim 1, wherein the visual style of the edit block or the content in the edit block is different from the visual style of the content of the non-edit block in the prompt word.
3. The method according to claim 1 or 2, wherein configuring the edit block at the selected position of the prompt word includes: In response to detecting a triggering of a text editing block function when at least a portion of the text of the prompt word is selected, a first text editing block is configured at the location of the selected at least a portion of the text, wherein the first text editing block is filled with the at least a portion of the text.
4. The method according to claim 1 or 2, wherein configuring the edit block at the selected position of the prompt word includes: In response to a triggering of the text editing block function being detected when at least a portion of the text of the prompt word is not selected, a second text editing block is inserted at the input cursor position in the editing interface, wherein fill guide text is displayed in association with the second text editing block.
5. The method according to claim 3 or 4, further comprising: For a given text editing block in the first text editing block or the second text editing block A text input interface is presented for the given text editing block, the text input interface including at least one of a first input area and a second input area; In response to receiving specified text in the first input area, the text already filled in the given text editing block is replaced with the specified text; as well as The second input area receives fill guide text for the given text editing block, which is displayed when there is no fill text in the given text editing block.
6. The method according to claim 1 or 2, wherein configuring the edit block at the selected position of the prompt word includes: In response to the detection of a trigger on the application programming interface (API) edit block function, a first API edit block is inserted at the selected position of the prompt word, wherein the first API edit block can be filled with identification information for a predefined API.
7. The method of claim 6, wherein the editing interface includes an editing interface for a target function, the target function operating based on a target machine learning model, and the method further comprises: In response to detecting a trigger on the first API edit block, at least one populated API is presented, wherein the at least one API is associated with the target function; as well as In response to detecting the selection of a first API among the at least one API, the identification information of the first API is populated into the first API edit block.
8. The method according to any one of claims 1 to 7, wherein the editing interface includes an editing interface for a target function, the target function operating based on a target machine learning model, and wherein the prompt word includes a second API editing block filled with identification information of a second API, the method further comprising: In response to the second API not being associated with the target function, the identification information of the second API is presented in a visual style corresponding to the disabled state; In response to the detection of a trigger on the second API edit block, the populateable second API is presented; as well as In response to detecting a selection of the second API, the identification information of the second API is presented in a visual style corresponding to the enabled state.
9. The method according to any one of claims 1 to 8, further comprising: In response to detecting a selection of a predetermined control, it is determined that a triggering of the edit block function has been detected; or In response to the detection of input of a predetermined symbol in the editing interface, it is determined that a trigger of the editing block function has been detected.
10. The method according to any one of claims 1 to 9, wherein the editing interface includes an editing interface for a target function, the target function operating based on a target machine learning model, and wherein confirming the content filled in the editing block as part of the prompt word includes: In response to confirmation of the creation of the target function, the content filled in the edit block is confirmed as part of the prompt word.
11. The method according to any one of claims 1 to 5, wherein the editing interface includes an editing interface for creating prompt words for a prompt word library, and the method further includes: In response to confirmation of the edit of the prompt word, the edited prompt word is added to the prompt word library.
12. The method according to any one of claims 1 to 11, further comprising: In response to determining that a portion of the content entered in the editing interface is marked as annotation content, the annotation content is presented in a first visual style, wherein the annotation content is not input into the machine learning model; as well as In response to determining that a portion of the input in the editing interface is computer language code, at least a portion of the predetermined symbols in the code are presented in a second visual style.
13. An apparatus for editing prompt words, comprising: The editing interface presentation module is configured to present an editing interface for editing prompt words, wherein the edited prompt words are input into a machine learning model for the machine learning model to determine the model output; An edit block configuration module is configured to configure an edit block at a selected location in the editing interface in response to the triggering of the edit block function, wherein content can be filled into the edit block and the filled content is editable; as well as The prompt word determination module is configured to determine the content filled in the edit block as part of the prompt word in response to confirmation of editing of the prompt word.
14. An electronic device, comprising: At least one processor; as well as At least one memory coupled to the at least one processor and storing instructions for execution by the at least one processor, the instructions causing the electronic device to perform the method according to any one of claims 1 to 12 when executed by the at least one processor.
15. A computer-readable storage medium having stored thereon computer-executable instructions that can be executed by a processor to implement the method according to any one of claims 1 to 12.
16. A computer program product comprising computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, implement the method according to any one of claims 1 to 12.