Workflow construction method and device, electronic equipment and storage medium

By displaying workflow components and LLM components on the client interface and configuring metadata to generate workflow files, it solves the problem of high difficulty in using LLM in the workflow, and realizes user-friendly workflow construction and LLM integration.

CN119105751APending Publication Date: 2024-12-10BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411100826.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

When using large language model (LLM) in workflows, users need to have strong professional programming techniques, which makes it difficult to use, especially for users with weak programming capabilities.

Method used

By displaying multiple workflow components on the client interface, including multiple LLM components and connectable components, obtaining connection instructions and sequence information, configuring metadata, and generating workflow files, users can generate by selecting components and setting parameters Workflow files without manual programming.

Benefits of technology

It reduces the difficulty of users using LLM in workflows, reduces the complexity of integrating LLM components, and allows non-professional programming users to easily build and use workflows.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119105751A_ABST
    Figure CN119105751A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a workflow construction method and device, electronic equipment and a storage medium. The workflow construction method comprises the steps that connection instructions and set sequence information of a first workflow component and a first LLM component, first parameter information corresponding to the first workflow component and second parameter information corresponding to the first LLM component are obtained; respectively configuring first metadata of the first workflow component and second metadata of the first LLM component according to the first parameter information and the second parameter information, and generating a workflow file comprising the first workflow component and the first LLM component according to the identification information of the first workflow component and the configured first metadata, the identification information of the first LLM component and the configured second metadata, and the sequence information of the first workflow component and the first LLM component. In this way, the workflow file is generated by selecting the workflow component, and the difficulty of using LLM in the workflow by a user can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a workflow construction method, device, electronic device and storage medium. Background Art

[0002] With the development and popularization of computer technology, network technology and database technology, various types of enterprise and personal information applications emerge in an endless stream, and workflow comes into being. Workflow refers to a type of business process that can be fully automatically executed. According to a series of process rules, documents, information or tasks are transferred and executed between different executors. Through workflow, the management efficiency of the enterprise can be improved.

[0003] With the rapid development of AIGC (Artificial Intelligence Generated Content), LLM (Large Language Model) has been widely used in various scenarios. For example, LLM can be used in workflows to further improve the work efficiency of enterprises and thus improve the management efficiency of enterprises.

[0004] However, the applicant found that when using LLM in a workflow, the user needs to have strong professional programming skills. If the user does not have programming skills or has weak programming skills, it is difficult to use the LLM in the workflow. It can be seen that it is very difficult for users to use LLM in a workflow in the prior art. Summary of the invention

[0005] The purpose of the embodiments of the present invention is to provide a workflow construction method, device, electronic device and storage medium to reduce the difficulty of users using LLM in workflow. The specific technical solution is as follows:

[0006] In a first aspect of the implementation of the present invention, a workflow construction method is first provided, which is applied to a client, and a plurality of workflow components are displayed on the client interface, and the plurality of workflow components include: a plurality of large language model (LLM) components and a connectable component corresponding to each LLM component; the method includes:

[0007] Acquire a connection instruction for a first workflow component and a first LLM component, sequence information set for the first workflow component and the first LLM component, input first parameter information, and second parameter information; wherein the first LLM component is at least one component among a plurality of LLM components, and the first workflow component is at least one component among connectable components; the first parameter information is identification information of a workflow component that outputs data to the first workflow component and / or identification information of a workflow component that receives data output by the first workflow component; the second parameter information is identification information of a workflow component that outputs data to the first LLM component and / or identification information of a workflow component that receives data output by the first LLM component;

[0008] The first metadata of the first workflow component is configured with the first parameter information to obtain the first metadata after the parameters are configured, and the second metadata of the first LLM component is configured with the second parameter information to obtain the second metadata after the parameters are configured;

[0009] A workflow file including the first workflow component and the first LLM component is generated by taking the first metadata after the identification information and configuration parameters of the first workflow component as the node of the first workflow component, taking the second metadata after the identification information and configuration parameters of the first LLM component as the node of the first LLM component, and taking the sequence information of the first workflow component and the first LLM component as the edge.

[0010] In a second aspect of the present invention, a workflow construction device is provided, which is applied to a client, and a plurality of workflow components are displayed on the client interface, and the plurality of workflow components at least include: a plurality of large language model LLM components and a connectable component corresponding to each LLM component; the device includes:

[0011] An acquisition module, used for acquiring a connection instruction for a first workflow component and a first LLM component, sequence information set for the first workflow component and the first LLM component, input first parameter information, and second parameter information; wherein the first LLM component is at least one component among a plurality of LLM components, and the first workflow component is at least one component among connectable components; the first parameter information is identification information of a workflow component that outputs data to the first workflow component and / or identification information of a workflow component that receives data output by the first workflow component; the second parameter information is identification information of a workflow component that outputs data to the first LLM component and / or identification information of a workflow component that receives data output by the first LLM component;

[0012] The metadata configuration module is used to configure the first metadata of the first workflow component with the first parameter information to obtain the first metadata after the parameters are configured, and to configure the second metadata of the first LLM component with the second parameter information to obtain the second metadata after the parameters are configured;

[0013] A workflow file construction module is used to generate a workflow file including a first workflow component and a first LLM component by taking the first metadata after the identification information and configuration parameters of the first workflow component as the node of the first workflow component, taking the second metadata after the identification information and configuration parameters of the first LLM component as the node of the first LLM component, and taking the sequence information of the first workflow component and the first LLM component as the edge.

[0014] In another aspect of the present invention, there is provided an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0015] Memory, used to store computer programs;

[0016] The processor is used to implement any of the workflow construction methods shown above when executing the program stored in the memory.

[0017] In another aspect of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, any of the workflow construction methods shown above is implemented.

[0018] In yet another aspect of the present invention, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute any of the workflow construction methods shown above.

[0019] A workflow construction method, device, electronic device and storage medium provided by an embodiment of the present invention can first obtain a connection instruction for a first workflow component and a first LLM component, sequence information set for the first workflow component and the first LLM component, input first parameter information corresponding to the first workflow component and second parameter information corresponding to the first LLM component; wherein the first parameter information is identification information of a workflow component that outputs data to the first workflow component and / or identification information of a workflow component that receives data output by the first workflow component; the second parameter information is identification information of a workflow component that outputs data to the first LLM component and / or identification information of a workflow component that receives data output by the first workflow component; The identification information of the workflow component of the data output by the LM component; then the first metadata of the first workflow component is configured with the first parameter information to obtain the first metadata after the configuration parameters, and the second metadata of the first LLM component is configured with the second parameter information to obtain the second metadata after the configuration parameters; finally, the identification information of the first workflow component and the first metadata after the configuration parameters are used as the nodes of the first workflow component, the identification information of the first LLM component and the second metadata after the configuration parameters are used as the nodes of the first LLM component, and the sequence information of the first workflow component and the first LLM component are used as the edges to generate a workflow file including the first workflow component and the first LLM component. In this way, a workflow file can be conveniently generated by selecting a workflow component without requiring the user to have strong professional programming skills, thereby reducing the difficulty of the user using LLM in the workflow. In addition, the complexity of integrating LLM components in the workflow can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.

[0021] Figure 1 This is a flowchart of a first implementation method of a workflow construction method in an embodiment of the present invention;

[0022] Figure 2a A schematic diagram of a first component connection of a workflow construction method according to an embodiment of the present invention;

[0023] Figure 2b A schematic diagram of a second component connection of a workflow construction method according to an embodiment of the present invention;

[0024] Figure 3 This is a flowchart of a second implementation of a workflow construction method in an embodiment of the present invention;

[0025] Figure 4 This is a flowchart of a third implementation of a workflow construction method in an embodiment of the present invention;

[0026] Figure 5 This is a flowchart of a fourth implementation of a workflow construction method in an embodiment of the present invention;

[0027] Figure 6 This is a flowchart of a fifth implementation of a workflow construction method in an embodiment of the present invention;

[0028] Figure 7 This is a flowchart of a sixth implementation of a workflow construction method in an embodiment of the present invention;

[0029] Figure 8 A schematic diagram of a workflow file constructed in an embodiment of the present invention;

[0030] Fig. 9 A schematic diagram of the structure of a workflow construction device in an embodiment of the present invention;

[0031] Fig.10 The figure is a schematic diagram of the structure of a client in an embodiment of the present invention. DETAILED DESCRIPTION

[0032] The technical solutions in the embodiments of the present invention will be described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0033] In some examples, in the prior art, when a user uses LLM in a workflow, he needs to have strong professional programming skills. If the user does not have programming skills or has weak programming skills, it is difficult to use the LLM in the workflow. It can be seen that it is very difficult for users to use LLM in the workflow in the prior art.

[0034] In order to solve the problems existing in the prior art, the embodiments of the present invention provide a workflow construction method, device, electronic device and storage medium, so as to reduce the difficulty of users using LLM in the workflow.

[0035] Next, a workflow construction method according to an embodiment of the present invention is first introduced. Figure 1 FIG. 1 is a flowchart of a first implementation of a workflow construction method in an embodiment of the present invention. The method may include:

[0036] S110, obtaining a connection instruction for the first workflow component and the first LLM component, sequence information set for the first workflow component and the first LLM component, input first parameter information, and second parameter information; wherein the first LLM component is at least one component among the multiple LLM components, and the first workflow component is at least one component among the connectable components; the first parameter information is identification information of a workflow component that outputs data to the first workflow component and / or identification information of a workflow component that receives data output by the first workflow component; the second parameter information is identification information of a workflow component that outputs data to the first LLM component or identification information of a workflow component that receives data output by the first LLM component;

[0037] S120, configuring first metadata of the first workflow component with the first parameter information to obtain the first metadata after the parameters are configured, and configuring second metadata of the first LLM component with the second parameter information to obtain the second metadata after the parameters are configured;

[0038] S130, using the first metadata after the identification information and configuration parameters of the first workflow component as the node of the first workflow component, using the second metadata after the identification information and configuration parameters of the first LLM component as the node of the first LLM component, and using the sequence information of the first workflow component and the first LLM component as the edge, to generate a workflow file including the first workflow component and the first LLM component.

[0039] In some examples, a workflow construction method of an embodiment of the present invention can be applied to a client, wherein a plurality of workflow components are pre-displayed on the client interface, and the plurality of workflow components may include: a plurality of large language model LLM components and a connectable component corresponding to each LLM component. Therefore, the user can select an LLM component and a corresponding connectable component on the client interface for connection.

[0040] In some examples, the connectable component may be a component directly connected to the LLM component, or may be a component indirectly connected to the LLM component through other components.

[0041] In some other examples, the user may select multiple connectable components to connect with the LLM component in sequence, or may select multiple connectable components to connect with the LLM component in parallel. Figure 2a As shown, assuming that the connectable components include: connectable component 1, connectable component 2, ..., connectable component 10; then the connectable components 1 to 10 can be connected to the LLM component in sequence;

[0042] It is understandable that the LLM component can also be connected between connectable components 1 to 10.

[0043] like Figure 2b As shown, the connectable components 1 to 5 are sequentially connected to the LLM component. Meanwhile, the connectable components 6 to 10 can also be sequentially connected to the LLM component, thereby forming a plurality of connectable components connected in parallel to the LLM component. This is all possible.

[0044] In some other examples, the LLM component can also be connected between connectable components 1 to 5, or between connectable components 6 to 10. Then other connectable components can be connected to connectable component 1 and connectable component 6 at the same time. The connection method between the LLM component and the connectable component in this application is not limited here.

[0045] After the user selects the first workflow component and the first LLM component on the client, they can be connected, and when connecting, the sequence can be set. Therefore, the client can obtain the connection instructions of the first workflow component and the first LLM component, as well as the sequence information set for the first workflow component and the first LLM component.

[0046] In some examples, when the user selects the first workflow component and the first LLM component, the above-mentioned client can also display respective parameter input interfaces for the first workflow component and the first LLM component, so that the user can enter the first parameter information in the parameter input interface corresponding to the first workflow component and enter the second parameter information in the parameter input interface corresponding to the first LLM component.

[0047] In some examples, a workflow component may be connected before the first workflow component, and a workflow component may be connected after the first workflow component. The workflow component may be the first LLM component or another workflow component.

[0048] When the first workflow component is previously connected to a workflow component, first parameter information may be input to the first workflow component so that when the workflow component can output data to the first workflow component, the first workflow component receives the data output by the workflow component.

[0049] When a workflow component is also connected to the first workflow component, first parameter information may also be input to the first workflow component so that the first workflow component can output data to the workflow component connected thereto.

[0050] In some examples, the workflow component that outputs data to the first workflow component may be a workflow component directly connected to the first workflow component, or may be a workflow component indirectly connected through other workflow components. In this case, although the workflow component that outputs data to the first workflow component is indirectly connected to the first workflow component through other workflow components, the output data may also be passed to the first workflow component through the other workflow components.

[0051] In some other examples, the workflow component that receives data output by the first workflow component may be a workflow component directly connected to the first workflow component, or may be a workflow component indirectly connected through other workflow components. In this case, although the workflow component that receives data output by the first workflow component is indirectly connected to the first workflow component through other workflow components, the first workflow component may also pass the output data to the workflow component that receives data output by the first workflow component through the other workflow components.

[0052] For example, Figure 2a As shown, assuming that the first workflow component is "connectable component 6", the workflow component that outputs data to the first workflow component can be an LLM component, or other workflow components before the first workflow component. The workflow component that receives the data output by the first workflow component can be "connectable component 9" or other workflow components after the first workflow component.

[0053] In some examples, a workflow component may be connected before the first LLM component, and a workflow component may be connected after the first LLM component. The workflow component may be an LLM component or another workflow component.

[0054] The first LLM component and the first workflow component can be connected in a manner that the user connects according to actual needs.

[0055] When the first LLM component is previously connected to a workflow component, second parameter information may be input to the first LLM component so that when the workflow component can output data to the first LLM component, the first LLM component receives the data output by the workflow component.

[0056] When the first LLM component is also connected to a workflow component, second parameter information may also be input to the first LLM component so that the first LLM component can output data to the workflow component connected thereto.

[0057] In some examples, the workflow component that outputs data to the first LLM component may be a workflow component directly connected to the first LLM component, or may be a workflow component indirectly connected through other workflow components. In this case, although the workflow component that outputs data to the first LLM component is indirectly connected to the first LLM component through other workflow components, the output data can also be passed to the first LLM component through the other workflow components.

[0058] In some other examples, the workflow component that receives data output by the first LLM component may be a workflow component directly connected to the first LLM component, or may be a workflow component indirectly connected through other workflow components. In this case, although the workflow component that receives data output by the first LLM component is indirectly connected to the first LLM component through other workflow components, the first LLM component may also pass the output data to the workflow component that receives data output by the first LLM component through the other workflow components.

[0059] Then, the client can configure the first metadata of the first workflow component with the first parameter information to obtain the first metadata after the parameters are configured, and configure the second metadata of the first LLM component with the second parameter information to obtain the second metadata after the parameters are configured;

[0060] For example, in the metadata of the first LLM component, the following content is set: "text":"{{#1720962925919.input#}}", where "1720962925919" represents the identification information of the first workflow component, and input represents input. That is to say, the content indicates that the first workflow component with identification information "1720962925919" inputs the output result to the first LLM component. Assuming that the identification information of the first LLM component is "1720962928109", the following content can be set in the metadata of the first workflow component: "text":"{{#1720962928109.output#}}", which indicates that the output result is output to the first LLM component with identification information 1720962928109.

[0061] In this way, the configuration of the first metadata of the first workflow component and the second metadata of the first LLM component can be achieved, so that the configured first metadata and the configured second metadata can be obtained.

[0062] After obtaining the configured first metadata and the configured second metadata, a workflow file including the first workflow component and the first LLM component can be generated by taking the identification information of the first workflow component and the first metadata after the configuration parameters as the node of the first workflow component, taking the identification information of the first LLM component and the second metadata after the configuration parameters as the node of the first LLM component, and taking the sequence information of the first workflow component and the first LLM component as the edge.

[0063] A workflow construction method according to an embodiment of the present invention can first obtain a connection instruction for a first workflow component and a first LLM component, sequence information set for the first workflow component and the first LLM component, input first parameter information corresponding to the first workflow component, and second parameter information corresponding to the first LLM component; wherein the first parameter information is identification information of a workflow component that outputs data to the first workflow component and / or identification information of a workflow component that receives data output by the first workflow component; the second parameter information is identification information of a workflow component that outputs data to the first LLM component and / or identification information of a workflow component that receives data output by the first LLM component; then, the first metadata of the first workflow component is configured with the first parameter information to obtain the first metadata after the configuration parameters are obtained, and the second metadata of the first LLM component is configured with the second parameter information to obtain the second metadata after the configuration parameters are obtained; finally, the identification information of the first workflow component and the first metadata after the configuration parameters are used as nodes of the first workflow component, the identification information of the first LLM component and the second metadata after the configuration parameters are used as nodes of the first LLM component, and the sequence information of the first workflow component and the first LLM component are used as edges to generate a workflow file including the first workflow component and the first LLM component. In this way, workflow files can be easily generated by selecting workflow components without requiring users to have strong professional programming skills, thereby reducing the difficulty of using LLM in workflows and reducing the complexity of integrating LLM components in workflows.

[0064] exist Figure 1 Based on the workflow construction method shown in FIG. 1 , the embodiment of the present invention also provides a possible implementation method, such as Figure 3 FIG. 1 is a flowchart of a second implementation of a workflow construction method in an embodiment of the present invention. The method may include:

[0065] S310, obtaining category identification information of the workflow component; and displaying multiple workflow components by category according to the category identification information of the workflow component;

[0066] S320, after obtaining the selection instruction for the first workflow component, displaying the LLM component that can be connected to the first workflow component;

[0067] S330, obtaining a connection instruction for the first workflow component and the first LLM component, sequence information set for the first workflow component and the first LLM component, input first parameter information, and second parameter information; wherein the first LLM component is at least one component selected from a plurality of LLM components, and the first workflow component is at least one component among the connectable components; the first parameter information is identification information of a workflow component that outputs data to the first workflow component and / or identification information of a workflow component that receives data output by the first workflow component; the second parameter information is identification information of a workflow component that outputs data to the first LLM component and / or identification information of a workflow component that receives data output by the first LLM component;

[0068] S340, configuring the first metadata of the first workflow component with the first parameter information to obtain the first metadata after the parameters are configured, and configuring the second metadata of the first LLM component with the second parameter information to obtain the second metadata after the parameters are configured;

[0069] S350, using the first metadata after the identification information and configuration parameters of the first workflow component as the node of the first workflow component, using the second metadata after the identification information and configuration parameters of the first LLM component as the node of the first LLM component, and using the sequence information of the first workflow component and the first LLM component as the edge, to generate a workflow file including the first workflow component and the first LLM component.

[0070] In some examples, when the client displays multiple workflows, since the workflow includes multiple categories, multiple workflow components can be displayed according to the categories of the workflow components. Each category can include at least one workflow component. In this way, the user can select a workflow component in each category according to the category.

[0071] In some other examples, category identification information may be set in advance for each workflow component, and then when displaying, the category identification information of each workflow component may be obtained first, and then the multiple workflow components may be classified and displayed according to the category identification information of each workflow component.

[0072] In some examples, when the user selects a workflow component, the first workflow component may be before the first LLM component or after the first LLM component.

[0073] In this regard, when the user first selects the first workflow component from the connectable components, the client can obtain the selection instruction for the first workflow component, and then can display the same type of LLM components that can be connected to the first workflow component, so that the user can select the first LLM component from such LLM components. Among them, such LLM components that can be connected to the first workflow component can be pre-set.

[0074] In this way, by actively displaying the LLM components that can be connected to the first workflow component, it is more convenient for the user to select the first LLM component for connection.

[0075] It can be understood that steps S330 to S350 in the embodiment of the present invention are the same as or similar to steps S110 to S130 in the first embodiment, and are not described in detail here.

[0076] exist Figure 1 Based on the workflow construction method shown in FIG. 1 , the embodiment of the present invention also provides a possible implementation method, such as Figure 4 FIG. 1 is a flowchart of a third implementation of a workflow construction method in an embodiment of the present invention. The method may include:

[0077] S410, obtaining category identification information of the workflow component; and displaying multiple workflow components by category according to the category identification information of the workflow component;

[0078] S420, after obtaining the selection instruction for the first LLM component, displaying connectable components that can be connected to the first LLM component;

[0079] S430, obtaining a connection instruction for the first workflow component and the first LLM component, sequence information set for the first workflow component and the first LLM component, input first parameter information, and second parameter information; wherein the first LLM component is at least one component among the multiple LLM components, and the first workflow component is at least one component among the connectable components; the first parameter information is identification information of a workflow component that outputs data to the first workflow component and / or identification information of a workflow component that receives data output by the first workflow component; the second parameter information is identification information of a workflow component that outputs data to the first LLM component and / or identification information of a workflow component that receives data output by the first LLM component;

[0080] S440, configuring first metadata of the first workflow component with the first parameter information to obtain the first metadata after the parameters are configured, and configuring second metadata of the first LLM component with the second parameter information to obtain the second metadata after the parameters are configured;

[0081] S450, using the first metadata after the identification information and configuration parameters of the first workflow component as the node of the first workflow component, using the second metadata after the identification information and configuration parameters of the first LLM component as the node of the first LLM component, and using the sequence information of the first workflow component and the first LLM component as the edge, to generate a workflow file including the first workflow component and the first LLM component.

[0082] In some examples, when the user selects a workflow component, the first workflow component may be before the first LLM component or after the first LLM component.

[0083] In this regard, when the user first selects the first LLM component from the connectable components, the client can obtain the selection instruction for the first LLM component, and then can display the connectable components of the same type that can be connected to the first LLM component, so that the user can select the first workflow component from such connectable components. The connectable components that can be connected to the first LLM component can be pre-set.

[0084] In this way, by actively displaying the connectable components that can be connected to the first LLM component, it is more convenient for the user to select the first workflow component for connection.

[0085] It can be understood that steps S410, S430-S450 in the embodiment of the present invention are the same as or similar to steps S310, S330-S350 in the second embodiment, and are not described in detail here.

[0086] exist Figure 3 Based on the workflow construction method shown in FIG. 1 , the embodiment of the present invention also provides a possible implementation method, such as Figure 5 FIG. 1 is a flowchart of a fourth implementation of a workflow construction method in an embodiment of the present invention. The method may include:

[0087] S510, obtaining category identification information of the workflow component; and displaying multiple workflow components by category according to the category identification information of the workflow component;

[0088] S520, when it is detected that the first workflow component is located at the first target location, generating a selection instruction for the first workflow component;

[0089] S530, based on the selection instruction of the first workflow component, displaying the LLM component that can be connected to the first workflow component;

[0090] S540, when it is detected that the first LLM component is located at the second target position, a connection instruction for the first workflow component and the first LLM component, and sequence information set for the first workflow component and the first LLM component are generated; wherein the first LLM component is at least one component among the multiple LLM components, and the first workflow component is at least one component among the connectable components; the first target position and the second target position are pre-set with a sequence.

[0091] S550, obtaining input first parameter information and second parameter information, configuring first metadata of the first workflow component with the first parameter information to obtain first metadata after parameter configuration, configuring second metadata of the first LLM component with the second parameter information to obtain second metadata after parameter configuration;

[0092] S560, using the first metadata after the identification information and configuration parameters of the first workflow component as the node of the first workflow component, using the second metadata after the identification information and configuration parameters of the first LLM component as the node of the first LLM component, and using the sequence information of the first workflow component and the first LLM component as the edge, to generate a workflow file including the first workflow component and the first LLM component.

[0093] In some examples, the client interface of the embodiments of the present invention may pre-set different positions, and the user may select different workflow components and then drag the selected workflow components to the pre-set positions.

[0094] In this regard, the client can monitor the user. When it is detected that the first workflow component is located at the first target position, it can be considered that the user has selected the workflow component, and the first workflow component can be dragged to the first target position. At this time, it can be confirmed that the user has selected the first workflow component, and a selection instruction for the first workflow component can be generated; then, based on the selection instruction of the first workflow component, the LLM component that can be connected to the first workflow component can be displayed, so that the user selects the first LLM component.

[0095] After the user selects the first LLM component, monitoring can begin. When it is detected that the first LLM component is located at the second target position, it can be considered that the user drags the first LLM component to the second target position. Therefore, it can be confirmed that the user has selected the first LLM component, and a connection instruction for the first workflow component and the first LLM component can be automatically generated.

[0096] In some examples, the preset position is preset with a sequence. Therefore, after confirming that the user has selected the first workflow component and the first LLM component, the sequence of the first workflow component and the first LLM component can be confirmed, and thus, the sequence information set for the first workflow component and the first LLM component can be generated; wherein the first LLM component is at least one component selected by the user from multiple LLM components, and the first workflow component is at least one component selected by the user from connectable components; the first target position and the second target position are preset with a sequence.

[0097] By setting different positions and setting the order of priority for different positions, users can automatically connect the selected workflow components and generate the order of priority for the selected workflow components simply by dragging and dropping, without the need for users to set them manually, thus saving time in building workflows and improving the convenience of building workflow components.

[0098] It can be understood that steps S510 and S550 to S560 in the embodiment of the present invention are the same as or similar to steps S310 and S340 to S350 in the first embodiment, and are not described in detail here.

[0099] exist Figure 4 Based on the workflow construction method shown in FIG. 1 , the embodiment of the present invention also provides a possible implementation method, such as Figure 6 FIG. 1 is a flowchart of a fifth implementation of a workflow construction method in an embodiment of the present invention. The method may include:

[0100] S610, obtaining category identification information of the workflow component; and displaying multiple workflow components by category according to the category identification information of the workflow component;

[0101] S620, when it is detected that the first LLM component is located at the third target position, generating a selection instruction for the first LLM component;

[0102] S630, based on the selection instruction of the first LLM component, displaying connectable components that can be connected to the first LLM component;

[0103] S640, when it is detected that the first workflow component is located at the fourth target position, a connection instruction for the first workflow component and the first LLM component, and sequence information set for the first workflow component and the first LLM component are generated; wherein the first LLM component is at least one component among the multiple LLM components, and the first workflow component is at least one component among the connectable components; and the third target position and the fourth target position are pre-set with a sequence.

[0104] S650, obtaining input first parameter information and second parameter information; configuring first metadata of the first workflow component with the first parameter information to obtain first metadata after parameter configuration, configuring second metadata of the first LLM component with the second parameter information to obtain second metadata after parameter configuration;

[0105] S660, using the first metadata after the identification information and configuration parameters of the first workflow component as the node of the first workflow component, using the second metadata after the identification information and configuration parameters of the first LLM component as the node of the first LLM component, and using the sequence information of the first workflow component and the first LLM component as the edge, to generate a workflow file including the first workflow component and the first LLM component.

[0106] In some examples, the client interface of the embodiments of the present invention may pre-set different positions, and the user may select different workflow components and then drag the selected workflow components to the pre-set positions.

[0107] In some other examples, when the user selects a workflow component, the first workflow component may be before the first LLM component or after the first LLM component.

[0108] In this regard, when the user first selects the first LLM component from the connectable components, the client starts to monitor, and when it is detected that the first LLM component is located at the third position, it can be considered that the user has selected the first LLM component, and the first LLM component is dragged to the third target position, at which time it can be confirmed that the user has selected the first LLM component, and therefore, a selection instruction for the first LLM component can be generated; then, based on the selection instruction of the first LLM component, the connectable components that can be connected to the first LLM component can be displayed, so that the user selects the first workflow component;

[0109] After the user selects the first workflow component, monitoring can be started. When it is monitored that the first workflow component is located at the fourth position, it can be considered that the user drags the first workflow component to the fourth target position. Therefore, it can be confirmed that the user has selected the first workflow component. At this time, a connection instruction for the first workflow component and the first LLM component can be automatically generated.

[0110] In some examples, the pre-set position is pre-set with a sequence. Therefore, after confirming that the user has selected the first workflow component and the first LLM component, the sequence of the first workflow component and the first LLM component can be confirmed, and thus, the sequence information set for the first workflow component and the first LLM component can be generated; wherein the first LLM component is at least one component selected by the user from multiple LLM components, and the first workflow component is at least one component selected by the user from connectable components; the third target position and the fourth target position are pre-set with a sequence.

[0111] It can be understood that the first target position and the third target position can be the same position, and the second target position and the fourth target position can also be the same position.

[0112] By setting different positions and setting the order of priority for different positions, users can automatically connect the selected workflow components and generate the order of priority for the selected workflow components simply by dragging and dropping, without the need for users to set them manually, thus saving time in building workflows and improving the convenience of building workflow components.

[0113] It can be understood that steps S610 and S650 to S660 in the embodiment of the present invention are the same as or similar to steps S410 and S440 to S450 in the first embodiment, and are not described in detail here.

[0114] exist Figure 1 Based on the workflow construction method shown in FIG. 1 , the embodiment of the present invention also provides a possible implementation method, such as Figure 7 FIG. 1 is a flowchart of a sixth implementation of a workflow construction method in an embodiment of the present invention. The method may include:

[0115] S710, obtaining identification information of an account for logging into a client;

[0116] S720, determining the authority information of the account according to the identification information;

[0117] S730, displaying LLM components and connectable components corresponding to the account's permission information;

[0118] S740, obtaining a connection instruction for the first workflow component and the first LLM component, sequence information set for the first workflow component and the first LLM component, input first parameter information, and second parameter information; wherein the first LLM component is at least one component among the multiple LLM components, and the first workflow component is at least one component among the connectable components; the first parameter information is identification information of a workflow component that outputs data to the first workflow component and / or identification information of a workflow component that receives data output by the first workflow component; the second parameter information is identification information of a workflow component that outputs data to the first LLM component and / or identification information of a workflow component that receives data output by the first LLM component;

[0119] S750, configuring first metadata of the first workflow component with the first parameter information to obtain the first metadata after the parameters are configured, and configuring second metadata of the first LLM component with the second parameter information to obtain the second metadata after the parameters are configured;

[0120] S760, using the first metadata after the identification information and configuration parameters of the first workflow component as the node of the first workflow component, using the second metadata after the identification information and configuration parameters of the first LLM component as the node of the first LLM component, and using the sequence information of the first workflow component and the first LLM component as the edge, to generate a workflow file including the first workflow component and the first LLM component.

[0121] In some examples, in order to improve the security of the workflow construction method of the embodiment of the present invention, different account permissions can be set for different user accounts. Specifically, the corresponding relationship between the identification information of the user's account and the permission information of the account can be set, and different permission information corresponds to different workflow components. Therefore, when a user logs in to the client using an account, the client can obtain the identification information of the user's account; then, based on the corresponding relationship between the identification information and the permission information of the account, the permission information of the account logged in to the client can be obtained; in this way, the client can query the workflow component corresponding to the account, and then display the LLM component and the connectable component corresponding to the permission information of the account, so that the user can select the first workflow component and the first LLM component from the LLM component and the connectable component corresponding to the permission information of the account; and then the workflow file can be constructed through the follow-up.

[0122] Through the embodiments of the present invention, different permission information can be set for different user accounts, so that different users can use different workflow components, which facilitates the management of different users and improves the security of the workflow construction method using the embodiments of the present invention.

[0123] It can be understood that steps S740 to S760 in the embodiment of the present invention are the same as or similar to steps S110 to S130 in the first embodiment, and are not described in detail here.

[0124] In some examples, the above LLM components may include: classification component, knowledge extraction component, question-answering component, beautification and rewriting component; the connectable components may include: knowledge retrieval component, interface calling component. Therefore, based on the above components, the following can be constructed: Figure 8 In some other examples, the connectable component may also include a custom node component, a condition component, and an assignment component. By setting a custom node component, it is convenient for users to customize, achieve flexibility, scalability, and cross-domain applications, and is suitable for a variety of business scenarios.

[0125] In this Figure 8In the example, the question classification component can output 6 categories of classification, and output different classification results to different knowledge retrieval components and knowledge extraction components. The knowledge retrieval component 1 to the knowledge retrieval component 3 can be components with the same structure. Among them, the knowledge retrieval component 1 can retrieve the metadata of the user question information, the knowledge retrieval component 2 can retrieve the monitoring data in the user question information; the knowledge retrieval component 3 can retrieve the user question information. The knowledge extraction component 1 can use the gateway information knowledge base to retrieve the gateway information; the knowledge extraction component 2 can use the description information knowledge base to extract the description information, and the knowledge extraction component 3 can use the question and answer information knowledge base to extract the question and answer information.

[0126] After obtaining the result, the knowledge retrieval component 1 can output the result to the interface calling component 1, so that the interface calling component 1 can call other external models to process the result output by the knowledge retrieval component 1, and finally the beautification and rewriting component 1 can beautify the result output by the interface calling component 1.

[0127] After obtaining the result, the knowledge retrieval component 2 can output the result to the interface calling component 2, so that the interface calling component 2 can call other external models to process the result output by the knowledge retrieval component 2, and finally the beautification and rewriting component 2 can beautify the result output by the interface calling component 2.

[0128] After obtaining the result, the knowledge retrieval component 3 can output the result to the interface calling component 3, so that the interface calling component 3 can call other external models to process the result output by the knowledge retrieval component 3, and finally the beautification and rewriting component 3 can beautify the result output by the interface calling component 3.

[0129] After extracting the gateway information, the knowledge extraction component 1 can output the gateway information; after extracting the description information, the knowledge extraction component 2 can output the description information; after extracting the question and answer information, the knowledge extraction component 3 can output the question and answer information.

[0130] In getting Figure 8 After the workflow file is obtained, the workflow file can be sent to a server, where the server stores source files of various components.

[0131] When the client receives the processing instruction for the task to be processed, the task to be processed can be sent to the server, so that the server processes the task to be processed based on the workflow file and obtains the processing results of each workflow component corresponding to the workflow file. After obtaining the processing results of each workflow component corresponding to the workflow file, the processing results of each workflow component corresponding to the workflow file can be stored in the database. In this way, it is convenient for users to view the processing results of each node at any time, and when a failure occurs, the output result of the previous node can be input to the next node for continued processing. The backup of the processing results is realized. The losses caused by failures are reduced.

[0132] Corresponding to the above method embodiment, the embodiment of the present invention also provides a workflow construction device, such as Fig. 9 As shown, it is a schematic diagram of the structure of a workflow construction device in an embodiment of the present invention. The device can be applied to a client. A plurality of workflow components are displayed on the client interface. The plurality of workflow components include: a plurality of large language model LLM components and a connectable component corresponding to each LLM component; the device includes:

[0133] The acquisition module 910 is used to acquire a connection instruction for the first workflow component and the first LLM component, sequence information set for the first workflow component and the first LLM component, input first parameter information, and second parameter information; wherein the first LLM component is at least one component among the multiple LLM components, and the first workflow component is at least one component among the connectable components; the first parameter information is identification information of a workflow component that outputs data to the first workflow component and / or identification information of a workflow component that receives data output by the first workflow component; the second parameter information is identification information of a workflow component that outputs data to the first LLM component and / or identification information of a workflow component that receives data output by the first LLM component;

[0134] The metadata configuration module 920 is used to configure the first metadata of the first workflow component with the first parameter information to obtain the first metadata after the parameters are configured, and to configure the second metadata of the first LLM component with the second parameter information to obtain the second metadata after the parameters are configured;

[0135] The workflow file construction module 930 is used to generate a workflow file including the first workflow component and the first LLM component by taking the first metadata after the identification information and configuration parameters of the first workflow component as the node of the first workflow component, taking the second metadata after the identification information and configuration parameters of the first LLM component as the node of the first LLM component, and taking the sequence information of the first workflow component and the first LLM component as the edge.

[0136] A workflow construction device according to an embodiment of the present invention can first obtain a connection instruction for a first workflow component and a first LLM component, sequence information set for the first workflow component and the first LLM component, input first parameter information corresponding to the first workflow component, and second parameter information corresponding to the first LLM component; wherein the first parameter information is identification information of a workflow component that outputs data to the first workflow component and / or identification information of a workflow component that receives data output by the first workflow component; the second parameter information is identification information of a workflow component that outputs data to the first LLM component and / or identification information of a workflow component that receives data output by the first LLM component; then, the first metadata of the first workflow component is configured with the first parameter information to obtain the first metadata after the configuration parameters are obtained, and the second metadata of the first LLM component is configured with the second parameter information to obtain the second metadata after the configuration parameters are obtained; finally, the identification information of the first workflow component and the first metadata after the configuration parameters are used as nodes of the first workflow component, the identification information of the first LLM component and the second metadata after the configuration parameters are used as nodes of the first LLM component, and the sequence information of the first workflow component and the first LLM component are used as edges to generate a workflow file including the first workflow component and the first LLM component. In this way, workflow files can be easily generated by selecting workflow components without requiring users to have strong professional programming skills, thereby reducing the difficulty of using LLM in workflows and reducing the complexity of integrating LLM components in workflows.

[0137] In some examples, the plurality of workflow components include a plurality of categories; in this regard, the apparatus further includes:

[0138] The first display module is used to obtain the category identification information of the workflow component before obtaining the connection instructions for the first workflow component and the first LLM component, the sequence information set for the first workflow component and the first LLM component, the input first parameter information and the second parameter information; and classify and display multiple workflow components according to the category information of the workflow components.

[0139] In some examples, the first display module is also used to obtain the connection instruction for the first workflow component and the first LLM component, the sequence information set for the first workflow component and the first LLM component, the input first parameter information and the second parameter information, and after obtaining the selection instruction for the first workflow component, display the LLM component that can be connected to the first workflow component; or after obtaining the selection instruction for the first LLM component, display the connectable component that can be connected to the first LLM component.

[0140] In some examples, the first display module is further used to:

[0141] When it is detected that the first workflow component is located at the first target location, generating a selection instruction for the first workflow component;

[0142] Based on the selection instruction of the first workflow component, displaying the LLM component connectable to the first workflow component;

[0143] Accordingly, the acquisition module 910 is specifically used for:

[0144] When it is detected that the first LLM component is located at the second target position, a connection instruction for the first workflow component and the first LLM component and sequence information for setting the first workflow component and the first LLM component are generated; wherein the first target position and the second target position are pre-set with a sequence;

[0145] Get the input first parameter information and second parameter information.

[0146] In some examples, the first display module is further used to:

[0147] When it is detected that the first LLM component is located at the third target position, generating a selection instruction for the first LLM component;

[0148] Based on the selection instruction of the first LLM component, displaying connectable components that can be connected to the first LLM component;

[0149] Accordingly, the acquisition module 910 is specifically used for:

[0150] When it is detected that the first workflow component is located at the fourth target position, a connection instruction for the first workflow component and the first LLM component and sequence information for setting the first workflow component and the first LLM component are generated; wherein the third target position and the fourth target position are pre-set with a sequence;

[0151] Get the input first parameter information and second parameter information.

[0152] In some examples, the apparatus further includes: an identification information acquisition module, configured to acquire identification information of an account logged into the client before acquiring a connection instruction for the first workflow component and the first LLM component, sequence information set for the first workflow component and the first LLM component, input first parameter information, and second parameter information; and determine permission information of the account based on the identification information;

[0153] The second display module is used to display the LLM components and connectable components corresponding to the account's permission information.

[0154] In some examples, the apparatus further includes:

[0155] A sending module is used to generate a workflow file including a first workflow component and a first LLM component by taking the first metadata after the identification information and configuration parameters of the first workflow component as the node of the first workflow component, taking the second metadata after the identification information and configuration parameters of the first LLM component as the node of the first LLM component, and taking the sequence information of the first workflow component and the first LLM component as the edge. After the workflow file including the first workflow component and the first LLM component is generated, upon receiving a processing instruction for the task to be processed, the task to be processed is sent to the server, so that the server processes the task to be processed based on the workflow file and obtains the processing results of each workflow component corresponding to the workflow file; and the processing results of each workflow component corresponding to the workflow file are stored in a database.

[0156] The embodiment of the present invention further provides an electronic device, such as Fig.10 As shown, it includes a processor 1010, a communication interface 1020, a memory 1030 and a communication bus 1040, wherein the processor 1010, the communication interface 1020, and the memory 1030 communicate with each other through the communication bus 1040.

[0157] Memory 1030, used for storing computer programs;

[0158] The processor 1010 is configured to implement the steps of the workflow construction method shown in any of the above embodiments when executing the program stored in the memory 1030. For example, the following steps may be implemented:

[0159] Acquire a connection instruction for a first workflow component and a first LLM component, sequence information set for the first workflow component and the first LLM component, input first parameter information, and second parameter information; wherein the first LLM component is at least one component among a plurality of LLM components, and the first workflow component is at least one component among connectable components; the first parameter information is identification information of a workflow component that outputs data to the first workflow component and / or identification information of a workflow component that receives data output by the first workflow component; the second parameter information is identification information of a workflow component that outputs data to the first LLM component and / or identification information of a workflow component that receives data output by the first LLM component;

[0160] The first metadata of the first workflow component is configured with the first parameter information to obtain the first metadata after the parameters are configured, and the second metadata of the first LLM component is configured with the second parameter information to obtain the second metadata after the parameters are configured;

[0161] A workflow file including the first workflow component and the first LLM component is generated by taking the first metadata after the identification information and configuration parameters of the first workflow component as the node of the first workflow component, taking the second metadata after the identification information and configuration parameters of the first LLM component as the node of the first LLM component, and taking the sequence information of the first workflow component and the first LLM component as the edge.

[0162] An electronic device according to an embodiment of the present invention can first obtain a connection instruction for a first workflow component and a first LLM component, sequence information set for the first workflow component and the first LLM component, input first parameter information corresponding to the first workflow component, and second parameter information corresponding to the first LLM component; wherein the first parameter information is identification information of a workflow component that outputs data to the first workflow component and / or identification information of a workflow component that receives data output by the first workflow component; the second parameter information is identification information of a workflow component that outputs data to the first LLM component and / or identification information of a workflow component that receives data output by the first LLM component; then, the first metadata of the first workflow component is configured with the first parameter information to obtain the first metadata after the configuration parameters are obtained, and the second metadata of the first LLM component is configured with the second parameter information to obtain the second metadata after the configuration parameters are obtained; finally, the identification information of the first workflow component and the first metadata after the configuration parameters are used as nodes of the first workflow component, the identification information of the first LLM component and the second metadata after the configuration parameters are used as nodes of the first LLM component, and the sequence information of the first workflow component and the first LLM component are used as edges to generate a workflow file including the first workflow component and the first LLM component. In this way, workflow files can be easily generated by selecting workflow components without requiring users to have strong professional programming skills, thereby reducing the difficulty of using LLM in workflows and reducing the complexity of integrating LLM components in workflows.

[0163] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0164] The communication interface is used for communication between the above terminal and other devices.

[0165] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0166] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0167] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the steps of the workflow construction method shown in any of the above embodiments are implemented. For example, the following steps can be implemented:

[0168] Acquire a connection instruction for a first workflow component and a first LLM component, sequence information set for the first workflow component and the first LLM component, input first parameter information, and second parameter information; wherein the first LLM component is at least one component among a plurality of LLM components, and the first workflow component is at least one component among connectable components; the first parameter information is identification information of a workflow component that outputs data to the first workflow component and / or identification information of a workflow component that receives data output by the first workflow component; the second parameter information is identification information of a workflow component that outputs data to the first LLM component and / or identification information of a workflow component that receives data output by the first LLM component;

[0169] The first metadata of the first workflow component is configured with the first parameter information to obtain the first metadata after the parameters are configured, and the second metadata of the first LLM component is configured with the second parameter information to obtain the second metadata after the parameters are configured;

[0170] A workflow file including the first workflow component and the first LLM component is generated by taking the first metadata after the identification information and configuration parameters of the first workflow component as the node of the first workflow component, taking the second metadata after the identification information and configuration parameters of the first LLM component as the node of the first LLM component, and taking the sequence information of the first workflow component and the first LLM component as the edge.

[0171] A computer-readable storage medium according to an embodiment of the present invention can first obtain a connection instruction for a first workflow component and a first LLM component, sequence information set for the first workflow component and the first LLM component, input first parameter information corresponding to the first workflow component, and second parameter information corresponding to the first LLM component; wherein the first parameter information is identification information of a workflow component that outputs data to the first workflow component and / or identification information of a workflow component that receives data output by the first workflow component; the second parameter information is identification information of a workflow component that outputs data to the first LLM component and / or identification information of a workflow component that receives data output by the first LLM component; then, the first metadata of the first workflow component is configured with the first parameter information to obtain the first metadata after the configuration parameters are obtained, and the second metadata of the first LLM component is configured with the second parameter information to obtain the second metadata after the configuration parameters are obtained; finally, the identification information of the first workflow component and the first metadata after the configuration parameters are used as nodes of the first workflow component, the identification information of the first LLM component and the second metadata after the configuration parameters are used as nodes of the first LLM component, and the sequence information of the first workflow component and the first LLM component are used as edges to generate a workflow file including the first workflow component and the first LLM component. In this way, workflow files can be easily generated by selecting workflow components without requiring users to have strong professional programming skills, thereby reducing the difficulty of using LLM in workflows and reducing the complexity of integrating LLM components in workflows.

[0172] In another embodiment provided by the present invention, a computer program product including instructions is further provided. When the computer program product is run on a computer, the computer executes the steps of the workflow construction method shown in any of the above embodiments. For example, the following steps can be implemented:

[0173] Acquire a connection instruction for a first workflow component and a first LLM component, sequence information set for the first workflow component and the first LLM component, input first parameter information, and second parameter information; wherein the first LLM component is at least one component among a plurality of LLM components, and the first workflow component is at least one component among connectable components; the first parameter information is identification information of a workflow component that outputs data to the first workflow component and / or identification information of a workflow component that receives data output by the first workflow component; the second parameter information is identification information of a workflow component that outputs data to the first LLM component and / or identification information of a workflow component that receives data output by the first LLM component;

[0174] The first metadata of the first workflow component is configured with the first parameter information to obtain the first metadata after the parameters are configured, and the second metadata of the first LLM component is configured with the second parameter information to obtain the second metadata after the parameters are configured;

[0175] A workflow file including the first workflow component and the first LLM component is generated by taking the first metadata after the identification information and configuration parameters of the first workflow component as the node of the first workflow component, taking the second metadata after the identification information and configuration parameters of the first LLM component as the node of the first LLM component, and taking the sequence information of the first workflow component and the first LLM component as the edge.

[0176] A computer program product including instructions according to an embodiment of the present invention can first obtain a connection instruction for a first workflow component and a first LLM component, sequence information set for the first workflow component and the first LLM component, input first parameter information corresponding to the first workflow component, and second parameter information corresponding to the first LLM component; wherein the first parameter information is identification information of a workflow component that outputs data to the first workflow component and / or identification information of a workflow component that receives data output by the first workflow component; and the second parameter information is identification information of a workflow component that outputs data to the first LLM component and / or identification information of a workflow component that receives data output by the first LLM component. The identification information of the workflow component of the data output; then configure the first metadata of the first workflow component with the first parameter information to obtain the first metadata after the configuration parameters, configure the second metadata of the first LLM component with the second parameter information to obtain the second metadata after the configuration parameters; finally, the identification information of the first workflow component and the first metadata after the configuration parameters are used as the node of the first workflow component, the identification information of the first LLM component and the second metadata after the configuration parameters are used as the node of the first LLM component, and the sequence information of the first workflow component and the first LLM component are used as the edge to generate a workflow file including the first workflow component and the first LLM component. In this way, a workflow file can be conveniently generated by selecting a workflow component without requiring the user to have strong professional programming skills, thereby reducing the difficulty of the user using LLM in the workflow. In addition, the complexity of integrating LLM components in the workflow can be reduced.

[0177] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0178] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0179] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the device, electronic device, computer-readable storage medium, and computer program product containing instructions, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0180] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A workflow construction method, characterized in that: Applied to a client, the client interface displays multiple workflow components, the multiple workflow components include: multiple large language model LLM components and connectable components corresponding to each LLM component; the method includes: Acquire a connection instruction for a first workflow component and a first LLM component, sequence information set for the first workflow component and the first LLM component, input first parameter information, and second parameter information; wherein the first LLM component is at least one of the multiple LLM components, and the first workflow component is at least one of the connectable components; the first parameter information is identification information of a workflow component that outputs data to the first workflow component and / or identification information of a workflow component that receives data output by the first workflow component; the second parameter information is identification information of a workflow component that outputs data to the first LLM component and / or identification information of a workflow component that receives data output by the first LLM component; The first metadata of the first workflow component is configured with the first parameter information to obtain the first metadata after the parameters are configured, and the second metadata of the first LLM component is configured with the second parameter information to obtain the second metadata after the parameters are configured; A workflow file including the first workflow component and the first LLM component is generated by taking the identification information of the first workflow component and the first metadata after the configuration parameters as the node of the first workflow component, taking the identification information of the first LLM component and the second metadata after the configuration parameters as the node of the first LLM component, and taking the sequence information of the first workflow component and the first LLM component as the edge.

2. The method according to claim 1, characterized in that The plurality of workflow components include a plurality of types; before obtaining the connection instruction for the first workflow component and the first LLM component, the sequence information set for the first workflow component and the first LLM component, the input first parameter information and the second parameter information, the method further includes: Obtaining category identification information of the workflow component; The plurality of workflow components are displayed in categories according to the category identification information of the workflow components.

3. The method according to claim 1, characterized in that Before obtaining the connection instruction for the first workflow component and the first LLM component, the sequence information set for the first workflow component and the first LLM component, the input first parameter information and the second parameter information, the method further includes: After obtaining the selection instruction for the first workflow component, displaying the LLM component that can be connected to the first workflow component; or After obtaining a selection instruction for the first LLM component, connectable components that can be connected to the first LLM component are displayed.

4. The method according to claim 3, characterized in that After obtaining the selection instruction for the first workflow component, displaying the LLM component that can be connected to the first workflow component so that the user selects the first LLM component includes: When it is detected that the first workflow component is located at a first target location, generating a selection instruction for the first workflow component; Based on the selection instruction of the first workflow component, displaying an LLM component connectable to the first workflow component; The obtaining of the connection instruction for the first workflow component and the first LLM component, the sequence information set for the first workflow component and the first LLM component, the input first parameter information and the second parameter information includes: When it is detected that the first LLM component is located at the second target position, a connection instruction for the first workflow component and the first LLM component and sequence information for setting the first workflow component and the first LLM component are generated; wherein the first target position and the second target position are pre-set with a sequence; Get the input first parameter information and second parameter information.

5. The method according to claim 3, characterized in that: After obtaining the selection instruction for the first LLM component, displaying connectable components that can be connected to the first LLM component so that the user selects the first workflow component includes: When it is detected that the first LLM component is located at a third target position, generating a selection instruction for the first LLM component; Based on the selection instruction of the first LLM component, displaying connectable components that can be connected to the first LLM component; The obtaining of the connection instruction for the first workflow component and the first LLM component, the sequence information set for the first workflow component and the first LLM component, the input first parameter information and the second parameter information includes: When it is detected that the first workflow component is located at the fourth target position, a connection instruction for the first workflow component and the first LLM component and sequence information for setting the first workflow component and the first LLM component are generated; wherein the third target position and the fourth target position are pre-set with a sequence; Get the input first parameter information and second parameter information.

6. The method according to claim 1, characterized in that Before obtaining the connection instruction for the first workflow component and the first LLM component, the sequence information set for the first workflow component and the first LLM component, the input first parameter information and the second parameter information, the method further includes: Obtaining identification information of an account used to log in to the client; Determining permission information of the account according to the identification information; The LLM components and connectable components corresponding to the permission information of the account are displayed.

7. The method according to claim 1, characterized in that After the step of generating a workflow file including the first workflow component and the first LLM component by taking the identification information of the first workflow component and the first metadata after the configuration parameters as the node of the first workflow component, taking the identification information of the first LLM component and the second metadata after the configuration parameters as the node of the first LLM component, and taking the sequence information of the first workflow component and the first LLM component as the edge, and generating the workflow file including the first workflow component and the first LLM component, the method further comprises: When a processing instruction for a task to be processed is received, the task to be processed is sent to a server so that the server processes the task to be processed based on the workflow file and obtains processing results of each workflow component corresponding to the workflow file; and the processing results of each workflow component corresponding to the workflow file are stored in a database.

8. A workflow construction device, characterized in that: Applied to a client, the client interface displays multiple workflow components, the multiple workflow components include: an LLM component and a connectable component corresponding to each LLM component; the device includes: An acquisition module, used for acquiring a connection instruction for a first workflow component and a first LLM component, sequence information set for the first workflow component and the first LLM component, input first parameter information, and second parameter information; wherein the first LLM component is at least one component among the multiple LLM components, and the first workflow component is at least one component among the connectable components; the first parameter information is identification information of a workflow component that outputs data to the first workflow component and / or identification information of a workflow component that receives data output by the first workflow component; the second parameter information is identification information of a workflow component that outputs data to the first LLM component and / or identification information of a workflow component that receives data output by the first LLM component; A metadata configuration module, configured to configure first metadata of the first workflow component with the first parameter information to obtain the first metadata after the parameters are configured, and to configure second metadata of the first LLM component with the second parameter information to obtain the second metadata after the parameters are configured; A workflow file construction module is used to generate a workflow file including the first workflow component and the first LLM component by taking the identification information of the first workflow component and the first metadata after the configuration parameters as the node of the first workflow component, taking the identification information of the first LLM component and the second metadata after the configuration parameters as the node of the first LLM component, and taking the sequence information of the first workflow component and the first LLM component as the edge.

9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the steps of any one of the methods described in claims 1-7 when executing the program stored in the memory.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

11. A computer program product comprising instructions, characterized in that When the method is executed on a computer, the computer is enabled to execute the steps of the method according to any one of claims 1 to 7.