Model deployment method and device based on container deployment and management system
By deploying target resource management components on the containerized deployment platform, including front-end applications and back-end services, the problem of low deployment efficiency of large language models is solved, allowing users to complete deployment without professional knowledge, improving deployment efficiency and simplifying operations. process.
Patent Information
- Application Number
- CN202410896609.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-10-11
AI Technical Summary
The deployment efficiency of large language models in the existing technology is low, and users need to master a large amount of professional knowledge, resulting in complex and inefficient deployment.
Using a model deployment method based on the container deployment and management system, by deploying target resource management components on the containerized deployment platform, including front-end applications, vector databases and back-end services, users do not need to directly operate complex configurations, and the system automatically completes the deployment of large language models and management.
It enables users to deploy large language models without having to master professional knowledge, which improves deployment efficiency and simplifies the user operation process.
Smart Images

Figure CN118760441A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a model deployment method and device based on a container deployment and management system. Background Art
[0002] In the prior art, large language models are usually deployed manually. When manual deployment is used, each model is configured and deployed for different usage scenarios and different application resources. Therefore, corresponding engineers are required to deploy large language models. If users want to deploy large language models, they need to master a lot of professional knowledge, and the deployment efficiency is low. Summary of the invention
[0003] The present application provides a model deployment method, device, storage medium and electronic device based on a container deployment and management system to solve the technical problem of low efficiency in user deployment of large language models.
[0004] In a first aspect, the present application provides a model deployment method based on a container deployment and management system, comprising: upon obtaining a deployment request from a first client, deploying a target resource management component on a containerized deployment platform, wherein a first foreground application, a vector database and a background service are deployed in the target resource management component, the first foreground application is used to receive interactive content of accessing users, the vector database is used to store vectors of documents uploaded by the first client, the background service is a service provided by a large language model, and the background service is used to display reply content of the interactive content in the first foreground application through the vectors in the vector database and the interactive content; and returning the access link of the first foreground application to the first client.
[0005] In the second aspect, the present application provides a model deployment device based on a container deployment and management system, including: a deployment module, which is used to deploy a target resource management component on a containerized deployment platform when a deployment request from a first client is obtained, wherein a first foreground application, a vector database and a background service are deployed in the above-mentioned target resource management component, the above-mentioned first foreground application is used to receive interactive content of accessing users, the above-mentioned vector database is used to store vectors of documents uploaded by the above-mentioned first client, the above-mentioned background service is a service provided by a large language model, and the background service is used to display the reply content of the above-mentioned interactive content in the above-mentioned first foreground application through the vectors in the above-mentioned vector database and the above-mentioned interactive content; a sending module, which is used to return the access link of the above-mentioned first foreground application to the above-mentioned first client.
[0006] As an optional example, the above-mentioned device also includes: a first processing module, which is used to, after deploying the target resource management component on the containerized deployment platform, obtain the target document to be uploaded by the above-mentioned upload request when receiving the upload request of the above-mentioned first client; convert the content in the above-mentioned target document into a vector; and store the above-mentioned vector in the above-mentioned vector database.
[0007] As an optional example, the above-mentioned device also includes: a second processing module, which is used to obtain the target foreground application corresponding to the above-mentioned replacement request after the target resource management component is deployed on the containerized deployment platform, upon receiving the replacement request of the above-mentioned first client; and use the above-mentioned target foreground application to replace the above-mentioned first foreground application in the above-mentioned target resource management component.
[0008] As an optional example, the deployment module includes: a determination unit, configured to obtain a model identifier from the deployment request; and determine a service provided by a language model corresponding to the model identifier as the background service.
[0009] As an optional example, the above-mentioned deployment module also includes: a modification unit, which is used to obtain a target keyword from the above-mentioned modification instruction when a modification instruction is received; and use the above-mentioned target keyword to replace the first keyword in the language model providing the above-mentioned background service, wherein the above-mentioned first keyword or the above-mentioned target keyword is a keyword used in the process of the above-mentioned language model generating the above-mentioned interactive content.
[0010] As an optional example, when the above-mentioned target resource management component is accessed, the above-mentioned target resource management component obtains the interactive content of the accessing user through the above-mentioned first foreground application, processes the above-mentioned interactive content, the above-mentioned target keywords and the vectors in the above-mentioned vector database through the above-mentioned background service, obtains the above-mentioned reply content, and displays the above-mentioned reply content in the above-mentioned first foreground application.
[0011] As an optional example, the apparatus further includes: a configuration module, configured to return database connection information of the vector database when returning the access link of the first foreground application to the first client; and configure access routing of the target resource management component.
[0012] As an optional example, the above-mentioned device also includes: a preprocessing module, used to upload the service image of the above-mentioned background service to the image repository before obtaining the deployment request of the first client; generate a configuration file based on the above-mentioned service image in the above-mentioned image repository, wherein the above-mentioned configuration file is configured with the resources and deployment method used by the above-mentioned first foreground application, and the above-mentioned configuration file is used to deploy the above-mentioned background service when the above-mentioned deployment request is received.
[0013] In a third aspect, the present application provides an electronic device comprising: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor connected to the at least one bus; and at least one memory connected to the at least one bus, wherein the memory stores a computer program, and the processor is configured to implement any one of the above-mentioned model deployment methods based on container deployment and management systems when executing the computer program.
[0014] In a fourth aspect, the present application also provides a computer storage medium storing computer executable instructions, wherein the computer executable instructions are used to execute any of the above-mentioned model deployment methods based on container deployment and management systems of the present application.
[0015] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: the solution provided by the embodiment of the present application, when a deployment request of the first client is obtained, deploys a target resource management component on a containerized deployment platform, wherein a first foreground application, a vector database and a background service are deployed in the above target resource management component, the above first foreground application is used to receive interactive content of accessing users, the above vector database is used to store vectors of documents uploaded by the above first client, the above background service is a service provided by the large language model, and the background service is used to display the reply content of the above interactive content in the above first foreground application through the vectors in the above vector database and the above interactive content; the access link of the above first foreground application is returned to the above first client, so that the user does not need to master complex professional knowledge, but only needs to deploy the target resource management component (target pod) on the containerized deployment platform through the deployment function of the client, and the system can deploy the first foreground application, the vector database and the background service of the large language model in the target pod according to the user's request, so as to achieve the effect that the user can deploy the large language model without mastering complex professional knowledge. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0017] 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 will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0018] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0019] Figure 1 A flowchart of a model deployment method based on a container deployment and management system provided in an embodiment of the present application;
[0020] Figure 2 A deployment and application diagram of a model deployment method based on a container deployment and management system provided in an embodiment of the present application;
[0021] Figure 3 A flowchart of another model deployment method based on a container deployment and management system provided in an embodiment of the present application;
[0022] Figure 4 A flowchart of another model deployment method based on a container deployment and management system provided in an embodiment of the present application;
[0023] Figure 5 A schematic diagram of a deployment pod of a model deployment method based on a container deployment and management system provided in an embodiment of the present application;
[0024] Figure 6 A schematic diagram of a deployment pod of another model deployment method based on a container deployment and management system provided in an embodiment of the present application;
[0025] Figure 7 A deployment flow chart of a model deployment method based on a container deployment and management system provided in an embodiment of the present application;
[0026] Figure 8 A schematic diagram of the structure of a model deployment device based on a container deployment and management system provided in an embodiment of the present application;
[0027] Fig. 9 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0029] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0030] In order to solve the technical problem of low efficiency in user deployment of large language models in the prior art, the present application provides a model deployment method based on a container deployment and management system, which can enable users to deploy large language models without having to master complex professional knowledge.
[0031] Figure 1 A flowchart of a model deployment method based on a container deployment and management system provided in an embodiment of the present application. Figure 1 As shown, the above-mentioned model deployment method based on container deployment and management system includes:
[0032] S102, in the case of obtaining a deployment request from the first client, deploying a target resource management component on a containerized deployment platform, wherein a first foreground application, a vector database, and a background service are deployed in the target resource management component, the first foreground application is used to receive interactive content of an accessing user, the vector database is used to store vectors of documents uploaded by the first client, and the background service is used to display reply content of the interactive content in the first foreground application through the vectors in the vector database and the interactive content;
[0033] S104: Return the access link of the first foreground application to the first client.
[0034] The first client can be a client used by customers to deploy front-end applications, vector databases, and back-end services. Users can deploy front-end applications, vector databases, and back-end services through the client, and then the deployed applications and services can be accessed by accessing users. For example, a company deploys front-end applications, vector databases, and back-end services through a client, and then publishes the deployed applications and services to netizens for use. Netizens can use the back-end services by accessing the front-end applications deployed by the company.
[0035] The above containerized deployment platform can be a cluster that provides container deployment and management. The cluster includes a resource management component pod. A pod is a combination of one or several related containers. The containers in a pod use the same network command space, network IP address and port, and can discover and communicate with each other through the local host name localhost. In addition, containers in the same pod can also share a storage volume space. In the containerized deployment platform, the smallest unit of creation, scheduling and management is the pod.
[0036] The first foreground application mentioned above is the foreground application in the pod deployed by the first client. The foreground application is an application used to provide netizens with an entry point for using services and to conduct foreground interactions. The vector database mentioned above is a database used to store vectors. The vectors stored in the vector database can be used by background services. Background services are services provided by large language models. There can be multiple types of large language models. When deploying, you can determine which large language model to deploy to provide services. When providing services, the large language model will take the interactive content of netizens as input, and the large language model will combine the vector database to give the reply content.
[0037] In this embodiment, the contents of the vector databases deployed by different users may be different. Since the vector databases are different, even if the background services deployed by different users, that is, the large language model is the same, the large language model will give different response contents when facing the same interactive content.
[0038] Figure 2 The user deploys a pod on the containerized deployment platform through the first client, and the deployed pod includes a first foreground application, a vector database, and a background service. The netizen user interacts with the first foreground application, and the background service returns a reply content.
[0039] The solution provided by the embodiment of the present application deploys a target resource management component on a containerized deployment platform when a deployment request from a first client is obtained, wherein a first foreground application, a vector database and a background service are deployed in the target resource management component, the first foreground application is used to receive interactive content of accessing users, the vector database is used to store vectors of documents uploaded by the first client, and the background service is used to display reply content of the interactive content in the first foreground application through the vectors and interactive content in the vector database; an access link of the first foreground application is returned to the first client, so that the user does not need to master complex professional knowledge, and only needs to deploy the target resource management component (target pod) on the containerized deployment platform through the deployment function of the client. The system can deploy the first foreground application, the vector database and the background service of the large language model in the target pod according to the user's request, thereby achieving the effect that the user can deploy the large language model without mastering complex professional knowledge.
[0040] As an alternative example, Figure 3 As shown, after the target resource management component is deployed on the containerized deployment platform, the method further includes:
[0041] S302, when receiving an upload request from the first client, obtaining a target document to be uploaded by the upload request;
[0042] S304, converting the content in the target document into a vector;
[0043] S306, storing the vector in a vector database.
[0044] The above upload request is used to upload the target document. The purpose of the first client uploading the target document is to convert the target document into a vector and store it in the vector database, thereby increasing or updating the vector in the vector database.
[0045] After the first client uploads the target document, the target document can be split into characters, words, sentences, paragraphs, etc. After the splitting, the split text can be filtered. The filtering process can be to filter the unwanted data set by the user, such as the user can set different types, different keywords, etc. When filtering, it will be filtered according to the user's settings, and the remaining text after filtering will be converted into vectors. Or when filtering, the user sets not to filter any content, then all the content of the target document will be converted into vectors. The converted vectors will be stored in the vector database.
[0046] In addition, vectors in the vector database can also be deleted. When deleting vectors in the vector database, the user can upload a deletion document, and then convert the text contained in the deletion document into a vector, which is compared with the vector in the vector database. In the vector database, vectors that are identical or similar to the vectors converted from the text in the deletion document can be deleted.
[0047] As an alternative example, Figure 4 As shown, after the target resource management component is deployed on the containerized deployment platform, the method further includes:
[0048] S402, when receiving a replacement request from the first client, obtaining a target foreground application corresponding to the replacement request;
[0049] S404: Use the target foreground application to replace the first foreground application in the target resource management component.
[0050] In this embodiment, when the user deploys through the first client, the first client, vector database and background service can all be deployed. If the user does not specify or upload the foreground application, vector database and background service, the pre-set standard application, standard vector database and standard background service can be used. If the user specifies, the user-specified application, vector database and service can be used. For the foreground application, the user can upload the developed target foreground application by himself, thereby replacing the first foreground application deployed in the pod.
[0051] When the user sends a replacement request through the first client, the file of the developed foreground application can be uploaded, and then the containerized deployment platform parses the file and generates a corresponding running file to run the target foreground application.
[0052] As an optional example, in the case of obtaining a deployment request from a first client, deploying a target resource management component on a containerized deployment platform includes: obtaining a model identifier from the deployment request; and determining a service provided by a language model corresponding to the model identifier as a background service.
[0053] In this embodiment, the background service is a different large prediction model. Deploying the background service in the pod is to deploy the service function of the large language model in the pod, and according to the model identifier carried in the deployment request, determine which large language model service function to deploy, so as to determine the service provided by the corresponding large language model as the background service.
[0054] As an optional example, the above method also includes: when a modification instruction is received, obtaining a target keyword from the modification instruction; using the target keyword to replace the first keyword in the language model providing background services, wherein the first keyword or the target keyword is a keyword used in the process of the language model generating interactive content.
[0055] In this embodiment, in addition to deploying the service of the large language model according to the deployment instruction, the keyword used by the service of the large language model when determining the interactive content can also be modified according to the modification instruction. The target keyword carried in the modification instruction can replace the first keyword previously used by the large language model, and the first keyword or target keyword is the keyword used by the large language model in the process of determining the reply content according to the interactive content.
[0056] By adjusting the first keyword to the target keyword according to the modification instruction, the response content obtained by the large prediction model can be related to the target keyword instead of the first keyword.
[0057] As an optional example, when the target resource management component is accessed, the target resource management component obtains the interactive content of the accessing user through the first foreground application, processes the interactive content, target keywords and vectors in the vector database through the background service, obtains reply content, and displays the reply content in the first foreground application.
[0058] In this embodiment, when the user deploys the first foreground application, the vector database and the background service through the first client, the first foreground application can be released, and other netizens who use the first foreground application, such as surfing the Internet, can use the first foreground application to input interactive content through the first foreground application. The interactive content is obtained by the background service, that is, the large language model, and then converted into a vector, which is compared with the vector in the vector database to obtain the target reply content. In addition, the large language model will also consider the influence of the target keyword in the process of generating the reply content, and generate reply content related to the target keyword.
[0059] As an optional example, when returning the access link of the first foreground application to the first client, the method further includes: returning database connection information of the vector database; and configuring an access route of the target resource management component.
[0060] In this embodiment, after the access link of the first foreground application is returned to the first client, the first client can share the access link for other users to access, and other users access the first foreground application to use the background service provided by the large language model.
[0061] In order to enable the large language model to provide better services, this embodiment can also return the database connection configuration and configuration access route of the vector database. The database connection configuration is used to specify the vector database used by the large language model, and the configuration access route can restrict which pod the Internet user's access request will be sent to.
[0062] As an optional example, before obtaining the deployment request from the first client, the above method also includes: uploading the service image of the background service to the image repository; generating a configuration file based on the service image in the image repository, wherein the configuration file is configured with resources and deployment methods used by the first foreground application, and the configuration file is used to deploy the background service when a deployment request is received.
[0063] In this embodiment, a service image can be generated in advance for the background service provided by the large language model, and the service image can be uploaded to the image warehouse. For each service image in the image warehouse, a configuration file is generated, and the resources and deployment methods used by the first foreground application corresponding to the background service are configured in the configuration file. After the configuration file is prepared, when the user needs to deploy, the generated configuration file can be directly called, without the need to generate it temporarily when the user needs to deploy.
[0064] Figure 5 This is a schematic diagram of configuring pods in this embodiment. Users deploy pods through the service ingress exposed by the containerized deployment platform. The containerized deployment platform ensures consistency through the distributed key-value storage etcd. For the deployment request used, the master control node obtains it and deploys the pod on the slave node node1 according to the deployment request. Different users' deployment requests deploy different pods and run different services. The front-end application, vector database and background service are deployed in the pod.
[0065] Figure 6 This is a schematic diagram of configuring the pod, modifying the foreground application, and adjusting the vector database through the first client in this embodiment. Before the user deploys the service through the first client, the step of the user building the vector database is extracted and provided to the user in the form of an interface. As long as the user uploads the document, the document can be automatically processed, the vector can be built, and then the vector can be stored in the vector database in the user's exclusive pod. In addition to the vector database, the user's front-end interface (foreground application) can also use the interface uploaded by himself, upload it to his own pod to replace the original interface.
[0066] For the deployment process, you can package the basic backend services into images and upload them to the image repository in advance. Generate the yaml deployment file in advance. When a user sends a deployment request to the console, automatically deploy a set of basic large language model assistant services. Then return the access address IP to the user. Figure 7 It is a deployment flow chart of this embodiment.
[0067] In this embodiment, when the user creates a project, the deployment component controller is called to automatically build a pod service. It includes basic front-end pages, databases, and back-end services. Then the user uploads the document and automatically modifies the database content in his pod through the database component db controller. The user selects the large language model prompt service, and the prompt service of the large language model in the pod is automatically modified through the component promptcontroller, thereby adjusting the keywords used by the large language model. The pod deployment is completed by creating a project, uploading a document, and selecting prompt (or selecting the underlying large model).
[0068] The function of the deployment component controller is to create basic services in the containerized deployment cluster after receiving a deployment request. The basic services include front-end applications, vector databases, and back-end services. It returns the network address of the front end in the pod, database connection information, etc., and configures the access route of each pod in the reverse proxy server nginx. The function of the large language model adjustment module prompt controller is to modify the prompt of the large language model in the specified pod after receiving a client request. The function of the database module db controller is to automatically calculate the vector and modify the vector database content in the specified pod after receiving a client request.
[0069] The server is a service between the client and the controller, responsible for maintaining the customer information table. It also receives client requests, searches for customer-related information, encapsulates instructions, and calls the corresponding controller service. For deployed pods, Internet users can ask questions through the front-end interface and get the replies generated by the large language model. The large language model searches for replies from the vector database through prompt engineering and vector search.
[0070] Figure 8 The following is a schematic diagram of a model deployment device based on a container deployment and management system provided in an embodiment of the present application. Figure 8 As shown, the above-mentioned model deployment device based on container deployment and management system includes:
[0071] The deployment module 802 is used to deploy the target resource management component on the containerized deployment platform when the deployment request of the first client is obtained, wherein the target resource management component is deployed with a first foreground application, a vector database and a background service, the first foreground application is used to receive interactive content of the accessing user, the vector database is used to store the vector of the document uploaded by the first client, and the background service is used to display the reply content of the interactive content in the first foreground application through the vector in the vector database and the interactive content;
[0072] The sending module 804 is used to return the access link of the first foreground application to the first client.
[0073] The first client can be a client used by customers to deploy front-end applications, vector databases, and back-end services. Users can deploy front-end applications, vector databases, and back-end services through the client, and then the deployed applications and services can be accessed by accessing users. For example, a company deploys front-end applications, vector databases, and back-end services through a client, and then publishes the deployed applications and services to netizens for use. Netizens can use the back-end services by accessing the front-end applications deployed by the company.
[0074] The above containerized deployment platform can be a cluster that provides container deployment and management. The cluster includes a resource management component pod. A pod is a combination of one or several related containers. The containers in a pod use the same network command space, network IP address and port, and can discover and communicate with each other through the local host name localhost. In addition, containers in the same pod can also share a storage volume space. In the containerized deployment platform, the smallest unit of creation, scheduling and management is the pod.
[0075] The first foreground application mentioned above is the foreground application in the pod deployed by the first client. The foreground application is an application used to provide netizens with an entry point for using services and to conduct foreground interactions. The vector database mentioned above is a database used to store vectors. The vectors stored in the vector database can be used by background services. Background services are services provided by large language models. There can be multiple types of large language models. When deploying, you can determine which large language model to deploy to provide services. When providing services, the large language model will take the interactive content of netizens as input, and the large language model will combine the vector database to give the reply content.
[0076] In this embodiment, the contents of the vector databases deployed by different users may be different. Since the vector databases are different, even if the background services deployed by different users, that is, the large language model is the same, the large language model will give different response contents when facing the same interactive content.
[0077] Figure 2The user deploys a pod on the containerized deployment platform through the first client, and the deployed pod includes a first foreground application, a vector database, and a background service. The netizen user interacts with the first foreground application, and the background service returns a reply content.
[0078] The solution provided by the embodiment of the present application deploys a target resource management component on a containerized deployment platform when a deployment request from a first client is obtained, wherein a first foreground application, a vector database and a background service are deployed in the target resource management component, the first foreground application is used to receive interactive content of accessing users, the vector database is used to store vectors of documents uploaded by the first client, and the background service is used to display reply content of the interactive content in the first foreground application through the vectors and interactive content in the vector database; an access link of the first foreground application is returned to the first client, so that the user does not need to master complex professional knowledge, and only needs to deploy the target resource management component (target pod) on the containerized deployment platform through the deployment function of the client. The system can deploy the first foreground application, the vector database and the background service of the large language model in the target pod according to the user's request, thereby achieving the effect that the user can deploy the large language model without mastering complex professional knowledge.
[0079] For other examples of this embodiment, please refer to the above examples and will not be described in detail here.
[0080] like Fig. 9 As shown, an embodiment of the present application provides an electronic device, including a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.
[0081] Memory 113, used for storing computer programs;
[0082] In one embodiment of the present application, the processor 111 is used to implement the model deployment method based on the container deployment and management system provided by any one of the aforementioned method embodiments when executing the program stored in the memory 113.
[0083] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, a model deployment method based on a container deployment and management system as provided in any of the aforementioned method embodiments is implemented.
[0084] The device embodiments described above are merely illustrative, wherein 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 network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0085] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0086] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0087] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A model deployment method based on container deployment and management system, characterized in that: include: In the case of obtaining a deployment request from the first client, deploying a target resource management component on a containerized deployment platform, wherein a first foreground application, a vector database, and a background service are deployed in the target resource management component, the first foreground application is used to receive interactive content of accessing users, the vector database is used to store vectors of documents uploaded by the first client, the background service is a service provided by a large language model, and the background service is used to display reply content of the interactive content in the first foreground application through the vectors in the vector database and the interactive content; Return the access link of the first foreground application to the first client.
2. The method according to claim 1, characterized in that After deploying the target resource management component on the containerized deployment platform, the method further includes: Upon receiving the upload request from the first client, obtaining the target document to be uploaded by the upload request; Convert the content in the target document into a vector; The vector is stored in the vector database.
3. The method according to claim 1, characterized in that After deploying the target resource management component on the containerized deployment platform, the method further includes: Upon receiving the replacement request from the first client, obtaining a target foreground application corresponding to the replacement request; The first foreground application in the target resource management component is replaced with the target foreground application.
4. The method according to claim 1, characterized in that: In the case where the deployment request of the first client is obtained, deploying the target resource management component on the containerized deployment platform includes: Obtaining a model identifier from the deployment request; The service provided by the language model corresponding to the model identifier is determined as the background service.
5. The method according to claim 4, characterized in that The method further comprises: When receiving the modification instruction, obtaining the target keyword from the modification instruction; The target keyword is used to replace a first keyword in the language model providing the background service, wherein the first keyword or the target keyword is a keyword used in a process in which the language model generates the interactive content.
6. The method according to claim 5, characterized in that When the target resource management component is accessed, the target resource management component obtains the interactive content of the accessing user through the first foreground application, processes the interactive content, the target keyword and the vectors in the vector database through the background service, obtains the reply content, and displays the reply content in the first foreground application.
7. The method according to claim 1, characterized in that When returning the access link of the first foreground application to the first client, the method further includes: Returns the database connection information of the vector database; Configure access routes for the target resource management component.
8. The method according to claim 1, characterized in that Before obtaining the deployment request from the first client, the method further includes: Upload the service image of the backend service to the image warehouse; A configuration file is generated according to the service image in the image repository, wherein the configuration file is configured with resources and a deployment method used by the first foreground application, and the configuration file is used to deploy the background service when the deployment request is received.
9. A model deployment device based on a container deployment and management system, characterized in that: include: A deployment module, configured to deploy a target resource management component on a containerized deployment platform when a deployment request from a first client is obtained, wherein a first foreground application, a vector database, and a background service are deployed in the target resource management component, wherein the first foreground application is configured to receive interactive content of accessing users, the vector database is configured to store vectors of documents uploaded by the first client, the background service is a service provided by a large language model, and the background service is configured to display reply content of the interactive content in the first foreground application through the vectors in the vector database and the interactive content; A sending module is used to return the access link of the first foreground application to the first client.
10. An electronic device, characterized in that: include: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor coupled to the at least one bus; At least one memory connected to the at least one bus, wherein a computer program is stored in the memory, and when the processor executes the computer program, the model deployment method based on the container deployment and management system described in any one of claims 1 to 8 is implemented.
11. A computer-readable storage medium storing computer-executable instructions for executing the model deployment method based on the container deployment and management system as described in any one of claims 1 to 8 of the present application.
