Service deployment method and device, storage medium and electronic equipment

The service processing request information is received through the target large language model and the target interface is called to automatically complete the compilation, construction and deployment of the service package, solving the problem of low service deployment efficiency in the existing technology and realizing an efficient automated deployment process.

CN118860422APending Publication Date: 2024-10-29YGSOFT INC
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410969465.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

The compilation, construction and deployment of service packages in the existing technology are inefficient, require manual operations, are time-consuming and repetitive, resulting in low efficiency.

Method used

Use the target large language model to receive service processing request information, determine and call the target interface through the dialogue interface, realize automatic compilation, construction and deployment of the service package, obtain the execution results and display them to the user.

Benefits of technology

It automates the compilation, construction and deployment process of service packages, reduces the workload of technical personnel, saves time and labor costs, and improves the efficiency of service deployment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118860422A_ABST
    Figure CN118860422A_ABST
Patent Text Reader

Abstract

The invention discloses a service deployment method and device, a storage medium and electronic equipment, and relates to the technical field of computers. The method comprises the following steps: receiving service processing request information input by a target object through a dialogue interface by adopting a target large language model; according to the service processing request information, a target interface is determined and called, and the target interface is used for compiling, constructing and deploying a service package of the target service; an execution result of the target interface is obtained, reply information corresponding to the execution result is displayed to the target object based on the dialogue interface, and the execution result is used for representing whether the target service is successfully deployed or not. According to the method and the device, the technical problem that the service deployment efficiency is relatively low due to the fact that the service package is compiled, constructed and deployed manually in the prior art is solved.
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 service deployment method, device, storage medium and electronic device. Background Art

[0002] At present, in the prior art, when compiling, building and deploying service packages, developers mainly use continuous integration tools to bind corresponding git flow codes, compile and build service packages separately, and if there are exceptions in the build, they need to solve the build problems. Then, the built service package is given to testers for deployment. After the testers get the service package and execute the script, they need to start the service command in the operating system, wait for the service package to start, and verify whether it is successfully started. If there are exceptions, they need to take out the logs separately and give them to the developers for resolution. The operations are time-consuming and repetitive, resulting in low efficiency of service deployment.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present invention provide a service deployment method, device, storage medium and electronic device to at least solve the technical problem in the prior art that the service deployment efficiency is low due to manual compilation, construction and deployment of service packages.

[0005] According to one aspect of an embodiment of the present invention, a service deployment method is provided, comprising: using a target large language model to receive service processing request information input by a target object through a dialogue interface, wherein the target large language model is obtained by fine-tuning and training a large language model using service domain knowledge, and the service processing request information is used to request to build a service package of a target service and deploy the service package of the target service to a target operating environment; determining a target interface based on the service processing request information, and calling the target interface, wherein the target interface is used to implement compilation, construction and deployment of the service package of the target service; obtaining an execution result of the target interface, and displaying reply information corresponding to the execution result to the target object based on the dialogue interface, wherein the execution result is used to characterize whether the target service is successfully deployed.

[0006] Furthermore, the target interface includes a first interface, a second interface and a third interface, and the first interface, the second interface and the third interface implement different functions, wherein determining the target interface based on the service processing request information includes: performing semantic analysis on the service processing request information to obtain first semantic information and second semantic information, wherein the first semantic information is used to characterize the intention of the target object to request to build a service package of the target service, and the second semantic information is used to characterize the intention of the target object to request to deploy the service package of the target service to the target operating environment; determining the first interface and the second interface based on the first semantic information, wherein the first interface is used to obtain functional description information and build process information corresponding to the service package of the target service, and the second interface is used to determine a compilation script based on the functional description information, generate a compiled service package based on the compilation script, and generate a service package of the target service based on the build process information and the compiled service package; determining the third interface based on the second semantic information, wherein the third interface is used to obtain deployment process information, and deploy the service package of the target service to the target operating environment based on the deployment process information.

[0007] Furthermore, reply information corresponding to the execution result is displayed to the target object based on the dialogue interface, including: when the execution result indicates that the target service is successfully deployed, attribute information of the target service is displayed to the target object based on the dialogue interface, wherein the attribute information includes at least the service name and address information of the target service; when the execution result indicates that the target service is not successfully deployed, error information of the target interface is displayed to the target object based on the dialogue interface.

[0008] Furthermore, after displaying the error information of the target interface to the target object based on the dialogue interface, the method also includes: receiving adjustment information input by the target object through the dialogue interface, wherein the adjustment information is used to instruct the target large language model to adjust the anomaly corresponding to the error information; and re-calling the target interface according to the adjustment information.

[0009] Furthermore, before using the target large language model to receive the service processing request information input by the target object through the dialogue interface, the method also includes: obtaining a service domain knowledge base, and fine-tuning the large language model based on the service domain knowledge in the service domain knowledge base to obtain the target large language model; obtaining target process information, wherein the target process information is used to describe the workflow of compiling, building and deploying the service package; and constructing a knowledge base of the target large language model based on the service domain knowledge base and the target process information.

[0010] Furthermore, before using the target large language model to receive service processing request information input by the target object through the dialogue interface, the method also includes: defining the role of the target large language model based on the target role information, wherein the target role information is used to describe the identity information played by the target large language model; configuring the skill information of the target large language model, wherein the skill information is used to describe the task execution capability of the target large language model.

[0011] Furthermore, before using the target large language model to receive the service processing request information input by the target object through the dialogue interface, the method also includes: configuring interface information of the target large language model, wherein the interface information at least includes parameter information required to construct the service package and storage directory information of the service package.

[0012] According to another aspect of an embodiment of the present invention, a service deployment device is also provided, including: a receiving module, used to use a target large language model to receive service processing request information input by a target object through a dialogue interface, wherein the target large language model is obtained by fine-tuning and training a large language model using service domain knowledge, and the service processing request information is used to request to build a service package of a target service and deploy the service package of the target service to a target operating environment; a determination module, used to determine a target interface based on the service processing request information and call the target interface, wherein the target interface is used to implement compilation, construction and deployment of the service package of the target service; a display module, used to obtain an execution result of the target interface, and display reply information corresponding to the execution result to the target object based on the dialogue interface, wherein the execution result is used to characterize whether the target service is successfully deployed.

[0013] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, and the computer program implements the above-mentioned service deployment method when executed by a processor.

[0014] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned service deployment method when running.

[0015] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, which includes one or more processors; a memory for storing one or more programs, so that when the one or more programs are executed by the one or more processors, the one or more processors are implemented to run the programs, wherein the programs are configured to execute the above-mentioned service deployment method when running.

[0016] In an embodiment of the present invention, a method of automatically compiling, building and deploying a service package is adopted through a target large language model. First, the target large language model is used to receive service processing request information input by a target object through a dialogue interface, wherein the target large language model is obtained by fine-tuning and training a large language model using service domain knowledge. The service processing request information is used to request the construction of a service package for a target service, and the service package for the target service is deployed to a target operating environment. Then, a target interface is determined based on the service processing request information, and the target interface is called, wherein the target interface is used to implement the compilation, construction and deployment of the service package for the target service. Then, the execution result of the target interface is obtained, and reply information corresponding to the execution result is displayed to the target object based on the dialogue interface, wherein the execution result is used to characterize whether the target service is successfully deployed.

[0017] In the above process, the target large language model is used to receive the service processing request information input by the target object through the dialogue interface, so that the target large language model can determine the target interface according to the user's intention, and call the target interface to realize the compilation, construction and deployment of the service package of the target service, which effectively reduces the workload of technical personnel, saves time and labor costs, and improves the efficiency of service deployment.

[0018] It can be seen that through the technical solution of the present invention, the purpose of automatically realizing the compilation, construction and deployment of service packages is achieved, thereby realizing the technical effect of improving the efficiency of service deployment, and further solving the technical problem of low efficiency of service deployment in the prior art due to manual compilation, construction and deployment of service packages. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0020] Figure 1 is a flowchart of an optional service deployment method according to an embodiment of the present invention;

[0021] Figure 2 is a schematic diagram of an optional large language model arrangement setting according to an embodiment of the present invention;

[0022] Figure 3 is a schematic diagram of an optional large language model interface configuration according to an embodiment of the present invention;

[0023] Figure 4 is a schematic diagram of an optional service deployment device according to an embodiment of the present invention;

[0024] Figure 5is a schematic diagram of an optional electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0027] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in the present invention are all information and data authorized by the user or fully authorized by all parties. For example, an interface is set between the system and the relevant user or organization. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.

[0028] Example 1

[0029] According to an embodiment of the present invention, an embodiment of a service deployment method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0030] Figure 1 is a flowchart of an optional service deployment method according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:

[0031] Step S101, using a target large language model to receive service processing request information input by a target object through a dialogue interface, wherein the target large language model is obtained by fine-tuning and training a large language model using service domain knowledge, and the service processing request information is used to request construction of a service package for a target service and deploy the service package for the target service to a target operating environment.

[0032] In the above steps, the application system, processor, electronic device and other devices can be used as the execution subject. Optionally, the service deployment system can be used as the execution subject. The service deployment system includes a front-end dialogue interface and a back-end target large language model intelligent agent. The service deployment system can use the target large language model to receive the service processing request information input by the target object through the dialogue interface. For example, the user (i.e., the target object) enters the following sentence in the front-end dialogue interface: Please help build a service package for service A and deploy it to the Linux server.

[0033] Step S102, determining a target interface according to the service processing request information, and calling the target interface, wherein the target interface is used to implement compilation, construction and deployment of a service package of a target service.

[0034] Step S103, obtaining the execution result of the target interface, and displaying reply information corresponding to the execution result to the target object based on the dialogue interface, wherein the execution result is used to indicate whether the target service is deployed successfully.

[0035] Optionally, the target interface to be called can be determined based on the service processing request information. By calling the target interface, the compilation, construction and deployment of the service package of the target service can be realized. Then, the reply information corresponding to the execution result can be displayed to the target object based on the dialogue interface. For example, the target large language model can perform semantic analysis on the sentence input by the user to know that the user intends to build and deploy the service package of the target service, thereby determining that the target interface is the build task interface and the pipeline deployment interface. The compilation and construction of the service package can be realized by calling the build task interface, and the deployment of the service package can be realized by calling the pipeline deployment interface. If the deployment is successful, the corresponding reply information may be the service name, size, and address, etc. If the deployment fails, the corresponding reply information may be the reason for the deployment failure, etc.

[0036] Based on the scheme defined by the above steps S101 to S103, it can be learned that in an embodiment of the present invention, a method of automatically compiling, building and deploying a service package is adopted through a target large language model. First, the target large language model is used to receive service processing request information input by the target object through a dialogue interface, wherein the target large language model is obtained by fine-tuning and training the large language model using service domain knowledge, and the service processing request information is used to request the construction of a service package for the target service, and deploy the service package of the target service to the target operating environment, and then determine the target interface based on the service processing request information, and call the target interface, wherein the target interface is used to implement the compilation, construction and deployment of the service package of the target service, and then obtain the execution result of the target interface, and display the reply information corresponding to the execution result to the target object based on the dialogue interface, wherein the execution result is used to characterize whether the target service is successfully deployed.

[0037] It is easy to notice that in the above process, the target large language model is used to receive the service processing request information input by the target object through the dialogue interface, so that the target large language model can determine the target interface according to the user's intention, and call the target interface to realize the compilation, construction and deployment of the service package of the target service, which effectively reduces the workload of technical personnel, saves time and labor costs, and improves the efficiency of service deployment.

[0038] It can be seen that through the technical solution of the present invention, the purpose of automatically realizing the compilation, construction and deployment of service packages is achieved, thereby realizing the technical effect of improving the efficiency of service deployment, and further solving the technical problem of low efficiency of service deployment in the prior art due to manual compilation, construction and deployment of service packages.

[0039] In an optional embodiment, the target interface includes a first interface, a second interface and a third interface, and the first interface, the second interface and the third interface implement different functions, wherein determining the target interface based on the service processing request information includes: performing semantic analysis on the service processing request information to obtain first semantic information and second semantic information, wherein the first semantic information is used to characterize the intention of the target object to request to build a service package of the target service, and the second semantic information is used to characterize the intention of the target object to request to deploy the service package of the target service to the target operating environment; determining the first interface and the second interface based on the first semantic information, wherein the first interface is used to obtain functional description information and build process information corresponding to the service package of the target service, and the second interface is used to determine a compilation script based on the functional description information, generate a compiled service package based on the compilation script, and generate a service package of the target service based on the build process information and the compiled service package; determining the third interface based on the second semantic information, wherein the third interface is used to obtain deployment process information, and deploy the service package of the target service to the target operating environment based on the deployment process information.

[0040] Optionally, the aforementioned build task interface includes a first interface and a second interface, the first interface is a git flow interface, which is used to obtain functional description information (such as code) and build process information corresponding to the service package of the target service, the second interface is a compilation package interface, which is used to determine the compilation script based on the functional description information, generate a compiled service package based on the compilation script, and generate a service package for the target service based on the build process information and the compiled service package, and the third interface is the aforementioned pipeline deployment interface, which is used to obtain deployment process information, and deploy the service package of the target service to the target operating environment based on the deployment process information.

[0041] Optionally, the target large language model can obtain first semantic information and second semantic information by performing semantic analysis on the service processing request information, thereby knowing that the user intends to build a service package for the target service and deploy the service package for the target service to the target operating environment, and can determine the git flow interface and the compilation package interface based on the intention of building the service package for the target service, and determine the pipeline deployment interface based on the intention of deploying the service package for the target service to the target operating environment.

[0042] For example, the target large language model is guided by prompt words, and the knowledge base is intelligently divided into paragraphs, and the sharded knowledge base with the highest matching degree is determined by vector recall technology to analyze and understand the user's intention, and the git flow information and parameter information mentioned in the relevant dialogue are extracted in combination with the context, and then the git flow interface is called to bind the git flow information, and the address and description of the git flow are returned to the front-end dialogue interface for the user to confirm the git flow information. After receiving the user's confirmation instruction, the compilation package interface is called to transmit the git flow information to the compilation package interface. The compilation package interface can obtain the code corresponding to the service package according to the address of the git flow, determine the compilation process script and the build process script (i.e., build process information) corresponding to the code, compile based on the compilation process script to obtain a compiled service package, and then generate a built service package based on the build process script, and then call the pipeline deployment interface to complete the pipeline update to realize service deployment. For example, if the update is successful, the success mark and service name, size, address and other information can be returned to the front-end dialogue interface.

[0043] It should be noted that the target large language model can be used to determine the target interface based on user intent, and call the target interface to achieve the compilation, construction and deployment of the service package of the target service, which effectively reduces the workload of technical personnel, saves time and labor costs, and improves the efficiency of service deployment.

[0044] In an optional embodiment, reply information corresponding to the execution result is displayed to the target object based on the dialogue interface, including: when the execution result indicates that the target service is successfully deployed, attribute information of the target service is displayed to the target object based on the dialogue interface, wherein the attribute information includes at least the service name and address information of the target service; when the execution result indicates that the target service is not successfully deployed, error information of the target interface is displayed to the target object based on the dialogue interface.

[0045] Optionally, if the deployment is successful, the corresponding reply information may be the service name, size, address, etc., which may be displayed to the user based on the dialogue interface; if the deployment fails, the corresponding reply information may be the reason for the deployment failure, etc., which may be displayed to the user based on the dialogue interface.

[0046] In an optional embodiment, after the error information of the target interface is displayed to the target object based on the dialogue interface, adjustment information input by the target object through the dialogue interface is received, wherein the adjustment information is used to instruct the target large language model to adjust the anomaly corresponding to the error information; and the target interface is re-called according to the adjustment information.

[0047] Optionally, if the deployment fails, after the error information of the target interface is displayed to the user based on the dialogue interface, the adjustment information input by the user through the dialogue interface is received, and the target interface is re-called based on the adjustment information. For example, the target large language model can monitor problems in the service compilation and construction process and interruptions or slow interface response encountered during service operation, and display them to the user in the form of an error warning through the dialogue interface, so that the user can understand the error information on the dialogue interface, determine the solution and input it to the target large language model. The target large language model can recompile the package and dynamically execute the pipeline deployment after solving the problem. The target large language model can also give optimization suggestions for the error content to provide a reference for the user to determine the solution.

[0048] In an optional embodiment, before using the target large language model to receive the service processing request information input by the target object through the dialogue interface, a service domain knowledge base is obtained, and the large language model is fine-tuned and trained based on the service domain knowledge in the service domain knowledge base to obtain the target large language model; target process information is obtained, wherein the target process information is used to describe the workflow of compiling, building and deploying the service package; and a knowledge base of the target large language model is constructed based on the service domain knowledge base and the target process information.

[0049] Optionally, by obtaining a service domain knowledge base and fine-tuning the large language model based on the service domain knowledge in the service domain knowledge base, a target large language model can be obtained, and then the target process information is obtained, and a knowledge base of the target large language model is constructed based on the service domain knowledge base and the target process information.

[0050] For example, we can introduce manually annotated domain data to fine-tune the large language model so that it can better understand domain knowledge. We can use retrieval enhancement generation technology to enhance knowledge retrieval. We can configure workflow scripts from building tasks to triggering pipeline deployment and provide them as a knowledge base to the large language model. Through multiple rounds of conversations and combined with Function Call technology, the large language model can automatically complete the compilation, build, deployment and real-time monitoring of the service.

[0051] In an optional embodiment, before using the target large language model to receive service processing request information input by the target object through the dialogue interface, the role of the target large language model is defined according to the target role information, wherein the target role information is used to describe the identity information played by the target large language model; and the skill information of the target large language model is configured, wherein the skill information is used to describe the task execution capability of the target large language model.

[0052] Optionally, after the target large language model is obtained through fine-tuning, a role is defined for the target large language model according to the target role information, and skill information of the target large language model is configured. Figure 2 is a schematic diagram of an optional large language model arrangement setting according to an embodiment of the present invention, such as Figure 2 As shown, add the role definition content in the orchestration setting list (for example, as a compilation and construction tool assistant, before calling the construction task, check the following content: git flow address, whether the flow binding directory is successfully bound, if not successfully bound, the user needs to bind again), define the target large language model as a compilation and construction tool assistant, and configure the skill description content (for example, build task: build task package). For example, the user inputs according to the prompt word, and the target large language model performs semantic understanding through the prompt word project defined by the role, performs interface matching based on the understanding content, and realizes the selection and call of the tool, which enables the large language model to fully understand the call link and be more intelligent.

[0053] In an optional embodiment, before using the target large language model to receive the service processing request information input by the target object through the dialogue interface, the interface information of the target large language model is configured, wherein the interface information at least includes parameter information required to construct the service package and storage directory information of the service package.

[0054] Optionally, configure the interface information of the target large language model, for example, add the build task interface and pipeline deployment interface to the interface configuration. Figure 3 is a schematic diagram of an optional large language model interface configuration according to an embodiment of the present invention, such as Figure 3 As shown, add the build task interface to the interface configuration, provide a guide prompt, set the parameters required for the build task in the interface configuration (such as git flow, flow directory), add the binding pipeline configuration, the bound Linux server, and the corresponding build directory generated to the server.

[0055] In the embodiment of the present invention, manually annotated domain data is introduced to complete the fine-tuning of the large language model, and the search enhancement generation technology is used to understand the specific domain knowledge. Then, it is necessary to add the construction task and pipeline deployment interface, and the corresponding flow to be built is bound by the large language model in a conversational manner. After the construction is completed, the user confirms that it is correct and then realizes the automatic deployment of the service through the conversation. The large language model drives the service automation execution process, and the interface call is made according to the orchestration workflow and user intention, and each task is dynamically and gradually realized, effectively improving the efficiency of service deployment.

[0056] In an embodiment of the present invention, a method of automatically compiling, building and deploying a service package is adopted through a target large language model. First, the target large language model is used to receive service processing request information input by a target object through a dialogue interface, wherein the target large language model is obtained by fine-tuning and training a large language model using service domain knowledge. The service processing request information is used to request the construction of a service package for a target service, and the service package for the target service is deployed to a target operating environment. Then, a target interface is determined based on the service processing request information, and the target interface is called, wherein the target interface is used to implement the compilation, construction and deployment of the service package for the target service. Then, the execution result of the target interface is obtained, and reply information corresponding to the execution result is displayed to the target object based on the dialogue interface, wherein the execution result is used to characterize whether the target service is successfully deployed.

[0057] In the above process, the target large language model is used to receive the service processing request information input by the target object through the dialogue interface, so that the target large language model can determine the target interface according to the user's intention, and call the target interface to realize the compilation, construction and deployment of the service package of the target service, which effectively reduces the workload of technical personnel, saves time and labor costs, and improves the efficiency of service deployment.

[0058] It can be seen that through the technical solution of the present invention, the purpose of automatically realizing the compilation, construction and deployment of service packages is achieved, thereby realizing the technical effect of improving the efficiency of service deployment, and further solving the technical problem of low efficiency of service deployment in the prior art due to manual compilation, construction and deployment of service packages.

[0059] Example 2

[0060] According to an embodiment of the present invention, an embodiment of a service deployment device is provided, wherein: Figure 4 is a schematic diagram of an optional service deployment device according to an embodiment of the present invention. Figure 4 As shown, the device includes: a receiving module 401, which is used to use a target large language model to receive service processing request information input by a target object through a dialogue interface, wherein the target large language model is obtained by fine-tuning and training a large language model using service domain knowledge, and the service processing request information is used to request to build a service package of a target service and deploy the service package of the target service to a target operating environment; a determining module 402, which is used to determine a target interface based on the service processing request information and call the target interface, wherein the target interface is used to implement compilation, construction and deployment of the service package of the target service; a display module 403, which is used to obtain an execution result of the target interface, and display reply information corresponding to the execution result to the target object based on the dialogue interface, wherein the execution result is used to characterize whether the target service is successfully deployed.

[0061] It should be noted that the above-mentioned receiving module 401, determining module 402 and displaying module 403 correspond to steps S101 to S103 in the above-mentioned embodiment, and the examples and application scenarios implemented by the three modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned embodiment 1.

[0062] Optionally, the target interface includes a first interface, a second interface and a third interface, and the first interface, the second interface and the third interface implement different functions, wherein the determination module includes: an analysis module, used to perform semantic analysis on the service processing request information to obtain first semantic information and second semantic information, wherein the first semantic information is used to characterize the intention of the target object to request to build a service package of the target service, and the second semantic information is used to characterize the intention of the target object to request to deploy the service package of the target service to the target operating environment; a first determination module, used to determine the first interface and the second interface based on the first semantic information, wherein the first interface is used to obtain functional description information and build process information corresponding to the service package of the target service, and the second interface is used to determine the compilation script based on the functional description information, generate a compiled service package based on the compilation script, and generate a service package of the target service based on the build process information and the compiled service package; a second determination module, used to determine the third interface based on the second semantic information, wherein the third interface is used to obtain deployment process information, and deploy the service package of the target service to the target operating environment based on the deployment process information.

[0063] Optionally, the display module includes: a first display module, which is used to display attribute information of the target service to the target object based on the dialogue interface when the execution result indicates that the target service is successfully deployed, wherein the attribute information includes at least the service name and address information of the target service; and a second display module, which is used to display error information of the target interface to the target object based on the dialogue interface when the execution result indicates that the target service is not successfully deployed.

[0064] Optionally, the service deployment device also includes: a first processing module, used to receive adjustment information input by the target object through the dialogue interface after displaying the error information of the target interface to the target object based on the dialogue interface, wherein the adjustment information is used to instruct the target large language model to adjust the exception corresponding to the error information; a second processing module, used to re-call the target interface based on the adjustment information.

[0065] Optionally, the service deployment device also includes: a first acquisition module, which is used to acquire a service domain knowledge base before using the target large language model to receive service processing request information input by the target object through the dialogue interface, and fine-tune the large language model based on the service domain knowledge in the service domain knowledge base to obtain the target large language model; a second acquisition module, which is used to acquire target process information, wherein the target process information is used to describe the workflow of compiling, building and deploying the service package; and a construction module, which is used to construct a knowledge base of the target large language model based on the service domain knowledge base and the target process information.

[0066] Optionally, the service deployment device also includes: a third processing module, used to define the role of the target large language model according to the target role information before using the target large language model to receive the service processing request information input by the target object through the dialogue interface, wherein the target role information is used to describe the identity information played by the target large language model; a fourth processing module, used to configure the skill information of the target large language model, wherein the skill information is used to describe the task execution capability of the target large language model.

[0067] Optionally, the service deployment device also includes: a fifth processing module, used to configure interface information of the target large language model before using the target large language model to receive service processing request information input by the target object through the dialogue interface, wherein the interface information at least includes parameter information required to construct the service package and storage directory information of the service package.

[0068] Example 3

[0069] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, and the computer program implements the above-mentioned service deployment method when executed by a processor.

[0070] Example 4

[0071] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned service deployment method when running.

[0072] Example 5

[0073] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, wherein: Figure 5 is a schematic diagram of an optional electronic device according to an embodiment of the present invention, such as Figure 5 As shown, the electronic device includes one or more processors; a memory for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors are used to run the programs, wherein the programs are set to execute the above-mentioned service deployment method when running. When the processor executes the program, the following steps are implemented: using the target large language model to receive the service processing request information input by the target object through the dialogue interface, wherein the target large language model is obtained by fine-tuning the large language model using the service domain knowledge, and the service processing request information is used to request the construction of the service package of the target service, and deploy the service package of the target service to the target operating environment; determining the target interface according to the service processing request information, and calling the target interface, wherein the target interface is used to implement the compilation, construction and deployment of the service package of the target service; obtaining the execution result of the target interface, and displaying the reply information corresponding to the execution result to the target object based on the dialogue interface, wherein the execution result is used to characterize whether the target service is deployed successfully.

[0074] Optionally, when executing the program, the processor also implements the following steps: performing semantic analysis on the service processing request information to obtain first semantic information and second semantic information, wherein the first semantic information is used to represent the intention of the target object to request to build a service package of the target service, and the second semantic information is used to represent the intention of the target object to request to deploy the service package of the target service to the target operating environment; determining a first interface and a second interface based on the first semantic information, wherein the first interface is used to obtain functional description information and build process information corresponding to the service package of the target service, and the second interface is used to determine a compilation script based on the functional description information, generate a compiled service package based on the compilation script, and generate a service package for the target service based on the build process information and the compiled service package; determining a third interface based on the second semantic information, wherein the third interface is used to obtain deployment process information, and deploy the service package of the target service to the target operating environment based on the deployment process information.

[0075] Optionally, when executing the program, the processor also implements the following steps: when the execution result indicates that the target service is deployed successfully, displaying the attribute information of the target service to the target object based on the dialogue interface, wherein the attribute information includes at least the service name and address information of the target service; when the execution result indicates that the target service is not deployed successfully, displaying the error information of the target interface to the target object based on the dialogue interface.

[0076] Optionally, the processor also implements the following steps when executing the program: after displaying the error information of the target interface to the target object based on the dialogue interface, receiving adjustment information input by the target object through the dialogue interface, wherein the adjustment information is used to instruct the target large language model to adjust the exception corresponding to the error information; and re-calling the target interface according to the adjustment information.

[0077] Optionally, the processor also implements the following steps when executing the program: before using the target large language model to receive service processing request information input by the target object through the dialogue interface, obtain the service domain knowledge base, and fine-tune the large language model based on the service domain knowledge in the service domain knowledge base to obtain the target large language model; obtain target process information, wherein the target process information is used to describe the workflow of compiling, building and deploying the service package; and construct a knowledge base of the target large language model based on the service domain knowledge base and the target process information.

[0078] Optionally, the processor also implements the following steps when executing the program: before using the target large language model to receive service processing request information input by the target object through the dialogue interface, defining the role of the target large language model based on the target role information, wherein the target role information is used to describe the identity information played by the target large language model; configuring the skill information of the target large language model, wherein the skill information is used to describe the task execution capability of the target large language model.

[0079] Optionally, when the processor executes the program, the following steps are also implemented: before using the target large language model to receive service processing request information input by the target object through the dialogue interface, interface information of the target large language model is configured, wherein the interface information at least includes parameter information required to construct the service package and storage directory information of the service package.

[0080] The devices in this article can be servers, PCs, PADs, mobile phones, etc.

[0081] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0082] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0083] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0084] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0085] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0086] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0087] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A service deployment method, characterized in that: include: Using a target large language model to receive service processing request information input by a target object through a dialogue interface, wherein the target large language model is obtained by fine-tuning and training a large language model using service domain knowledge, and the service processing request information is used to request to build a service package of a target service, and deploy the service package of the target service to a target operating environment; Determine a target interface according to the service processing request information, and call the target interface, wherein the target interface is used to implement the compilation, construction and deployment of the service package of the target service; The execution result of the target interface is obtained, and reply information corresponding to the execution result is displayed to the target object based on the dialogue interface, wherein the execution result is used to indicate whether the target service is deployed successfully.

2. The method according to claim 1, characterized in that The target interface includes a first interface, a second interface, and a third interface, and the first interface, the second interface, and the third interface implement different functions, wherein determining the target interface according to the service processing request information includes: Performing semantic analysis on the service processing request information to obtain first semantic information and second semantic information, wherein the first semantic information is used to represent the intention of the target object to request to build a service package of the target service, and the second semantic information is used to represent the intention of the target object to request to deploy the service package of the target service to the target operating environment; Determining the first interface and the second interface according to the first semantic information, wherein the first interface is used to obtain function description information and construction process information corresponding to the service package of the target service, and the second interface is used to determine a compilation script according to the function description information, generate a compiled service package based on the compilation script, and generate the service package of the target service according to the construction process information and the compiled service package; The third interface is determined according to the second semantic information, wherein the third interface is used to obtain deployment process information, and deploy the service package of the target service to the target operating environment according to the deployment process information.

3. The method according to claim 1, characterized in that Displaying reply information corresponding to the execution result to the target object based on the dialogue interface includes: In the case where the execution result indicates that the target service is deployed successfully, displaying attribute information of the target service to the target object based on the dialogue interface, wherein the attribute information at least includes a service name and address information of the target service; When the execution result indicates that the target service is not deployed successfully, error information of the target interface is displayed to the target object based on the dialogue interface.

4. The method according to claim 3, characterized in that After displaying the error information of the target interface to the target object based on the dialogue interface, the method further includes: Receiving adjustment information input by the target object through the dialogue interface, wherein the adjustment information is used to instruct the target large language model to adjust the anomaly corresponding to the error message; The target interface is re-invoked according to the adjustment information.

5. The method according to claim 1, characterized in that Before using the target large language model to receive the service processing request information input by the target object through the dialogue interface, the method further includes: Acquire a service domain knowledge base, and fine-tune the large language model according to the service domain knowledge in the service domain knowledge base to obtain the target large language model; Obtaining target process information, wherein the target process information is used to describe the workflow of compiling, building, and deploying the service package; A knowledge base of the target large language model is constructed based on the service domain knowledge base and the target process information.

6. The method according to claim 1, characterized in that Before using the target large language model to receive the service processing request information input by the target object through the dialogue interface, the method further includes: Defining a role for the target large language model according to the target role information, wherein the target role information is used to describe the identity information played by the target large language model; The skill information of the target large language model is configured, wherein the skill information is used to describe the task execution capability of the target large language model.

7. The method according to claim 1, characterized in that Before using the target large language model to receive the service processing request information input by the target object through the dialogue interface, the method further includes: The interface information of the target large language model is configured, wherein the interface information at least includes parameter information required for constructing a service package and storage directory information of the service package.

8. A service deployment device, characterized in that: include: A receiving module, configured to use a target large language model to receive service processing request information input by a target object through a dialogue interface, wherein the target large language model is obtained by fine-tuning and training a large language model using service domain knowledge, and the service processing request information is used to request the construction of a service package of a target service, and to deploy the service package of the target service to a target operating environment; A determination module, used to determine a target interface according to the service processing request information, and call the target interface, wherein the target interface is used to implement the compilation, construction and deployment of the service package of the target service; A display module is used to obtain the execution result of the target interface and display the reply information corresponding to the execution result to the target object based on the dialogue interface, wherein the execution result is used to indicate whether the target service is deployed successfully.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the service deployment method described in any one of claims 1 to 7 when running.

10. An electronic device, characterized in that: The electronic device includes one or more processors; A memory for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to run the programs, wherein the programs are configured to execute the service deployment method described in any one of claims 1 to 7 when running.

Citation Information

Cited By

  • Medical service interface calling method based on large language model

    CN119149137A