Methods, apparatus, devices, and media for managing machine learning systems
Receive and parse user query requests through instant messaging applications, and automatically obtain the machine learning system status, which solves the problem in the existing technology that it is difficult for users to manage and query the machine learning system status in real time, and improves user experience and automatic response efficiency.
Patent Information
- Application Number
- CN202210540733.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-17
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-05-17
AI Technical Summary
The existing machine learning system management method is difficult to provide a flexible and efficient user experience. It is difficult for users to query and manage the status of the machine learning system in real time, and the automatic response service cannot diagnose the service status in real time, which limits the way users can obtain information.
Receive the user's natural language query request through the instant messaging application, parse the query target, determine its association with the service provided by the machine learning system, obtain the service status based on the log, automatically provide status information, and transfer the service if manual intervention is required.
It enables users to flexibly query the status of the machine learning system without logging into a dedicated communication system, reduces customer service workload, improves user experience and automatic response efficiency, and reduces user waiting time.
Smart Images

Figure CN114840644B
Abstract
Description
Technical Field
[0001] Exemplary implementations of the present disclosure generally relate to the field of computers, and in particular, to methods, devices, apparatuses, and computer-readable storage media for managing a machine learning system. Background Art
[0002] With the development of machine learning technology, machine learning technology has been widely used in all walks of life. Users can design dedicated machine learning models based on various needs to handle specific problems in their respective application environments. Generally speaking, the training process of machine learning models requires a large amount of training data and the training process is complicated. This results in the training process requiring more storage resources and computing resources, and it is difficult for ordinary users to purchase and configure dedicated equipment to complete the above tasks. At present, a variety of machine learning systems have emerged, which are equipped with rich storage resources and computing resources, and can provide users with model training and reasoning services.
[0003] Users can submit various parameters of their own machine learning models (e.g., the structure of the machine learning model, initial parameters, storage location of training data, etc.) to the machine learning system, so as to utilize various resources of the machine learning system to generate a machine learning model that meets the desired goals. The generated machine learning model can further be used to perform the reasoning process. At this point, how to manage the machine learning system in a more convenient way and display information about various services of the machine learning system to users has become an urgent problem to be solved. Summary of the invention
[0004] According to an exemplary implementation of the present disclosure, a solution for managing a machine learning system is provided.
[0005] In a first aspect of the present disclosure, a method for managing a machine learning system is provided. In the method, a query request from a user of the machine learning system is received via an instant messaging application, the query request is expressed in natural language and the query request is received from a user account corresponding to the user in the instant messaging application. Determine whether a query target specified by the query request is associated with a service provided by the machine learning system. In response to determining that the query target is associated with a service provided by the machine learning system, obtain the status of the service based on a log of the machine learning system. Provide the status of the service to the user account via the instant messaging application.
[0006] In a second aspect of the present disclosure, a device for managing a machine learning system is provided. The device includes: a receiving module configured to receive a query request from a user of the machine learning system via an instant messaging application, the query request is expressed in a natural language and the query request is received from a user account corresponding to the user in the instant messaging application; a determining module configured to determine whether a query target specified by the query request is associated with a service provided by the machine learning system; an acquiring module configured to acquire the status of the service based on a log of the machine learning system in response to determining that the query target is associated with the service provided by the machine learning system; and a providing module configured to provide the status of the service to the user account via the instant messaging application.
[0007] In a third aspect of the present disclosure, an electronic device is provided. The electronic device includes: at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit, and when the instructions are executed by the at least one processing unit, the device executes the method according to the first aspect of the present disclosure.
[0008] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the processor implements the method according to the first aspect of the present disclosure.
[0009] It should be understood that the content described in the summary of the present invention is not intended to limit the key features or important features of the implementation of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easy to understand through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In the following, in conjunction with the accompanying drawings and with reference to the following detailed description, the above and other features, advantages and aspects of various implementations of the present disclosure will become more apparent. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0011] Figure 1 A block diagram illustrating an example environment in which implementations of the present disclosure can be implemented;
[0012] Figure 2 A block diagram illustrating a process for managing a machine learning system according to some implementations of the present disclosure;
[0013] Figure 3 A block diagram illustrating the interaction between a response manager and a machine learning system according to some implementations of the present disclosure;
[0014] Figure 4 A flowchart of a method for processing a query request according to some implementations of the present disclosure is shown;
[0015] Figure 5 A block diagram illustrating status information provided to a user according to some implementations of the present disclosure;
[0016] Figure 6 A block diagram showing a data statistical curve of users transferring to manual service after using automatic answering processing according to some implementations of the present disclosure;
[0017] Figure 7 A flowchart showing a method for managing a machine learning system according to some implementations of the present disclosure is shown;
[0018] Figure 8 A block diagram showing an apparatus for managing a machine learning system according to some implementations of the present disclosure; and
[0019] Fig. 9 A block diagram of a device capable of implementing multiple implementations of the present disclosure is shown. DETAILED DESCRIPTION
[0020] The implementation of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain implementations of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be interpreted as being limited to the implementations described herein. On the contrary, these implementations are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and implementations of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0021] In the description of the implementation methods of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "an implementation" or "the implementation" should be understood as "at least one implementation". The term "some implementations" should be understood as "at least some implementations". The following may also include other explicit and implicit definitions. As used herein, the term "model" can represent the association relationship between various data. For example, the above-mentioned association relationship can be obtained based on a variety of technical solutions currently known and / or to be developed in the future.
[0022] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0023] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0024] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0025] As an optional but non-limiting implementation, in response to receiving an active request from the user, a prompt message is sent to the user, for example, in the form of a pop-up window, in which the prompt message can be presented in text form. In addition, the pop-up window can also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0026] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0027] Example Environment
[0028] Figure 1 A block diagram of an example environment 100 is shown in which implementations of the present disclosure can be implemented. Figure 1 In the environment 100, the machine learning system 110 may include multiple computing devices 150, ..., 152 and multiple storage devices 160, ..., 162. The training platform 140 and the reasoning platform 142 may be implemented based on the above computing devices and storage devices, and the machine learning system 110 may provide a variety of services 122 to the user 120. Specifically, the training service may be provided to the user 120 based on the training platform 140; alternatively and / or additionally, the reasoning service may be provided to the user 120 based on the reasoning platform 142. At this time, the user 120 may call these services to perform his own training or reasoning tasks.
[0029] In the process of calling service 122, user 120 usually expects to query the running status of service 122. For example, user 120 may expect to know the progress of service 122, the scheduled completion time, the computing resources and storage resources occupied by service 122, and other information. For another example, due to insufficient resources in machine learning system 110 and / or other reasons, service 122 may be abnormal. At this time, the user expects to know more about the abnormality. User 120 can contact customer service center 130 to determine the status of service 122. At present, customer service center 130 can provide manual responses to user 120 via telephone, email, dedicated communication system messages, etc. However, the processing capacity of manual responses is limited by the number of customer service personnel and the speed of manual processing, making it difficult to ensure timely service.
[0030] At present, a technical solution based on robot automatic answering has been developed, and the user 120 can log in to the dedicated communication system of the customer service center 130 to enjoy the automatic answering service. However, the automatic answering service usually only answers user questions in the dedicated communication system, and can only handle simple questions based on the knowledge base, and cannot diagnose the status of the service 122 in real time. In addition, the user 120 must first log in to the dedicated communication system, which limits the way the user 120 obtains information. Therefore, it is expected to meet various requests from the user 120 in a more flexible and effective manner.
[0031] Overview of the Management Process
[0032] In order to solve the deficiencies in the above technical solutions, according to an exemplary implementation of the present disclosure, a technical solution for managing the machine learning system 110 is proposed. Figure 2 Describes an overview of managing a machine learning system 110, Figure 2 A block diagram 200 is shown of a process for managing a machine learning system 110 according to some implementations of the present disclosure. Figure 2 As shown, it is possible to communicate with the user 120 based on the instant messaging application 230 and provide the required information to the user 120. It will be understood that instant messaging is also called instant communication, and the instant messaging application 230 here refers to a tool for online real-time communication, such as various network communication applications currently known and / or to be developed in the future.
[0033] According to an exemplary implementation of the present disclosure, the instant messaging application 230 can be used as an interface for querying the status of the machine learning system 110. Thus, the user 120 does not need to log in to the dedicated communication system of the customer service center 130 separately, but can directly call the instant messaging application 230 used daily to query the status of the service 122 in a more flexible and effective manner.
[0034] It will be understood that in the context of the present disclosure, the type of instant messaging application 230 is not limited, but the instant messaging application 230 can be various network communication applications currently used and / or to be developed in the future (e.g., mainstream chat tools, etc.). In this way, the user 120 does not need to log in to the dedicated communication tool of the customer service center 130 separately, and can use the daily chat tool to query the status of the task performed by himself in the machine learning system 110.
[0035] It will be understood that the instant messaging application 230 may be a network communication application developed by a third party, or may be a network communication application provided by the developer of the machine learning system 110. Alternatively and / or additionally, the instant messaging application 230 may be an independent network communication application, or may be a network communication module in a multi-functional application integrated with the machine learning system 110.
[0036] like Figure 2 As shown, the administrator account 220 refers to the account of the administrator of the machine learning system 110 in the instant messaging application 230. For example, the corresponding administrator account 220 can be registered in one or more currently popular instant messaging applications 230. At this time, the administrator account 220 can communicate with the user account 210 of the user 120 via the instant messaging application 230. Specifically, the user 120 can use his user account 210 in the instant messaging application 230 to send a query request 212 to the administrator account 220 and receive feedback from the administrator account 220.
[0037] exist Figure 2 In the example, the response manager 240 can implement an automatic response function. Specifically, the response manager 240 can call the application programming interface (API) 232 of the instant messaging application 230 to perform operations related to message reception and message sending. Further, the response manager 240 can parse the received query request 212, query the machine learning system 110 according to the query request 212, and return the query status 222 to the user account 210 via the instant messaging application 230. Using the exemplary implementation of the present disclosure, the instant messaging application 230 can serve as an intermediary for communication between the machine learning system 110 and the user 120, and provide the user 120 with various information about the machine learning system 110 in a flexible and effective manner.
[0038] It will be understood that the response manager 240 can automatically process the query request 212 without manual intervention. When the user 120 believes that the query status 222 does not meet his needs, he can further call for manual operation (for example, send a message "ONCALL" to the administrator account 220, etc.). In this way, the workload of the staff in the customer service center 130 can be greatly reduced, and the efficiency of the customer service center 130 can be improved in an automated manner.
[0039] Specific implementation of the management process
[0040] The above has described an overview of an exemplary implementation of the present disclosure, and below, more details about managing the machine learning system 110 will be provided. According to an exemplary implementation of the present disclosure, the API 232 of the instant messaging application 230 can be used to call various functions of the instant messaging application 230. Here, the answer manager 240 can communicate with the instant messaging application 230 via the hypertext transfer (HTTP) protocol and using the API 232.
[0041] It will be understood that the API 232 may be provided by the developer of the instant messaging application 230, and the API 232 may provide a variety of functions for accessing the internal functions of the instant messaging application 230. For example, the API 232 may provide functions such as: registering an account, receiving messages, sending messages, etc. For example, the API 232 may be called to register an account in the instant messaging application 230; after the user account 210 sends a message to the administrator account 220, the API 232 may be used to read the message; or a message with specified content may be sent from the administrator account 220 to the user account 210.
[0042] Continue to see Figure 2 , a query request 212 from a user 120 of the machine learning system 110 can be received via an administrator account 220 in the instant messaging application 230, and the query request 212 is received from a user account 210 corresponding to the user 120 in the instant messaging application 230. It will be understood that the administrator account 220 here is an account in the instant messaging application 230 corresponding to the administrator of the machine learning system 110. The registration method of the administrator account 220 is not limited here, for example, the administrator account 220 can be directly registered using the registration function of the instant messaging application 230; for another example, the administrator account 220 can be registered by calling the registration function in the API 232.
[0043] According to an exemplary implementation of the present disclosure, a communication session may be established between a user account 210 and an administrator account 220 so that the user 120 sends a query request 212 from the user account 210 to the administrator account 220. It will be understood that the specific type of the communication session is not limited here, and the communication session may include a dedicated session between the user account 210 and the administrator account 220. For example, the user 120 may find the administrator account 220 and establish a dedicated session by clicking on the administrator account 220 icon. For another example, the administrator account 220 may also establish a dedicated session with the user account 210, such as after the user 120 submits a task to the machine learning system 110, the administrator account 220 may send a greeting message to the user account 210 associated with the user 120, so as to remind the user 120 that the automatic answering service of the administrator account 220 can be used when needed.
[0044] Alternatively and / or additionally, the communication session may include a group session between the user account 210, the administrator account 220, and other user accounts other than the user account 210 in the instant messaging application. In other words, the administrator account 220 can create a group and add the relevant user accounts of each user who calls the service in the machine learning system 110 to the group. In this way, a wide range of users of the machine learning system 110 can perform queries via group sessions. Using the exemplary implementation of the present disclosure, the user 120 can directly use the instant messaging application 230 used daily to query the running status of his or her tasks in the machine learning system 110. In this way, the flexibility of the query can be increased and the user experience can be improved.
[0045] Further, the response manager 240 can communicate with the machine learning system 110 via the Thrift protocol. It will be understood that Thrift is an interface description language and a binary communication protocol, and cross-language services can be defined and created using Thrift. Specifically, Thrift can be combined with a software stack through a code generation engine to create different degrees of seamless cross-platform efficient services. In this way, the response manager 240 can communicate with the machine learning system 110 via the Thrift protocol, and then obtain various information in the machine learning system 110.
[0046] Despite Figure 2 The response manager 240 shown in FIG. 1 is located outside the machine learning system 110. According to an exemplary implementation of the present disclosure, the response manager 240 may also be located inside the machine learning system 110; or deployed in a distributed manner, that is, a portion is located outside the machine learning system 110, and another portion is located inside the machine learning system 110. In the following, see Figure 3 More details of response manager 240 are described.
[0047] Figure 3 Block diagram 300 illustrates the interaction between response manager 240 and machine learning system 110 in accordance with some implementations of the present disclosure. Figure 3 The answer manager 240 is shown to be deployed within the machine learning system 110. The answer manager 240 may include: a natural language understanding (NLU) analyzer 310 for analyzing the query request 212 and extracting the query target; a state manager 320 for determining the state of the service specified by the query target based on the query log 330 and calling various diagnostic APIs; a training diagnostic API 340 for diagnosing services in the training stage; and a reasoning diagnostic API 342 for diagnosing services in the reasoning stage. At this time, the various modules in the answer manager 240 can cooperate with each other to process the query request 212 from the user.
[0048] In the following, see Figure 4 More details about processing query request 212 are described. Figure 4 A flow chart of a method 400 for processing a query request 212 according to some implementations of the present disclosure is shown. At block 410, the query request 212 may be parsed using the NLU analyzer 310 to determine a query target. It will be appreciated that the query request 212 is expressed in a natural language and the query request 212 may be first parsed to extract a query target specified by the query request 212. It will be appreciated that the query target herein refers to a target that the user 120 desires to query. NLU analysis may be performed on the query request 212 to determine the query target.
[0049] According to an exemplary implementation of the present disclosure, a variety of NLU analysis techniques may be used to determine the slot information in the query request 212. Specifically, the natural language understanding process may be implemented based on machine learning techniques. For example, a variety of NLU models currently known and / or to be developed in the future may be used to process the query request 212 to determine the slot information.
[0050] It will be understood that in natural language understanding, a slot refers to a specific concept extracted from a sentence, and slot filling refers to the process of converting a user's intent into a user's explicit instruction to complete the information. In other words, slot filling can collect key information from the user 120, that is, it can understand what the user 120 expects to achieve through the query request 212. For example, for the query request 212: "Please check the status of service SERVICE-A", through intent recognition and slot filling, it can be determined that the query target of the user 120 is "the status of SERVICE-A".
[0051] It will be understood that the above example is only a simple example provided for illustrative purposes, and the query request 212 may include a more complex grammatical structure, and there may be multiple query requests. At this time, the query target of the user 120 can be accurately and efficiently determined based on the NLU model, and then the subsequent operation can be determined according to the needs of the user 120.
[0052] It will be understood that although the above only describes the process of determining the query target using the NLU model using Chinese as a specific example of the natural language. According to an exemplary implementation of the present disclosure, the natural language may also include other languages, including but not limited to English, French, German, Spanish, etc., depending on the specific application environment. At this time, the NLU model corresponding to the input language may be used to extract the query target. Further, the language used in the reply message may be determined based on the natural language used in the query request 212. By using the exemplary implementation of the present disclosure, users from different language regions may be better served in a multilingual environment.
[0053] Continue to see Figure 4 , at box 420, the state manager 320 may be used to determine whether the query target is associated with the machine learning system 110. In other words, it may be first determined whether the query target is a service provided by the machine learning system 110. It will be understood that the user 120 may send any information to the administrator account 220, however, due to input errors and / or other reasons, the extracted query target may not always be a service provided by the machine learning system 110. At this point, unqualified (i.e., not related to the service provided by the machine learning system 110) query requests may be first filtered out, and only qualified query requests may be processed.
[0054] Specifically, a list of services provided by the machine learning system 110 may be obtained. The list may include completed services, ongoing services, and queued services, etc. The query target may be compared with the list to determine whether the query target is associated with the services provided by the machine learning system 110. In this way, query requests that do not meet the query conditions may be pre-filtered.
[0055] If the result of the judgment at box 420 is "No", the method 400 can proceed to box 450. In other words, if it is determined that a query request does not meet the query conditions, an error message can be sent from the administrator account 220 to the user account 210 at box 450. For example, the user can be prompted: "The queried service does not exist, please check." For another example, the user can be further prompted whether there is an input error. Assume that the service "SERVICE-B" is provided in the machine learning system 110, but the "SERVICE-A" queried by the user does not exist. At this time, the user can be prompted to re-enter the service name, or the user can be asked whether he wants to query the status of "SERVICE-B".
[0056] If the result of the judgment at box 420 is "yes", the method can proceed to box 430. At box 430, it can be determined whether the user 120 has access rights to the query target. It will be understood that in the context of the present disclosure, by default the user 120 can only query services that process the tasks submitted by himself. At this time, it can be first determined whether the user 120 has access rights to the service that meets the query target. If it is determined that the user 120 has access rights, the method 400 proceeds to box 440 to further determine the status of the service based on the log 330 of the machine learning system 110, and return the status. Otherwise, the method 400 proceeds to box 450 to provide an error message to the user account 210. The error message may be, for example: "You do not have access rights to the status of service SERVICE-A". Alternatively and / or additionally, the user can also be reminded to check whether the service name entered is correct, or to remind the user how to obtain access rights.
[0057] According to an exemplary implementation of the present disclosure, different levels can be further set for user permissions, and different levels can be set for services. For example, it can be specified that a user can only access services whose level is less than or equal to their own level. At this time, the user level and the service level can be compared to determine whether the user has access rights. Using the exemplary implementation of the present disclosure, the security of the machine learning system 110 can be improved and illegal access by unauthorized users can be avoided.
[0058] In the case where it has been determined that the user has access rights, the content associated with the service to be queried can be queried in the log 330 of the machine learning system 110. It will be understood that the log 330 may include a variety of status information generated during the operation of the machine learning system 110. For example, the name, identifier, operation status, start time, operation duration, end time / expected end time, status of occupied computing resources, status of occupied storage resources, etc. of the service called by the user. At this time, the information returned to the user can be generated based on the query results.
[0059] According to an exemplary implementation of the present disclosure, if the status of the service is determined to be normal, the status of the service can be returned to the user account 210. In this way, the response manager 240 can automatically query the status of the relevant service in the machine learning system 110 without manual operation, and provide the status of the service to the user account 210 via the instant messaging application 230. In this way, the administrator account 220 can serve as an interface between the machine learning system 110 and external users, receiving the query request 212 in the form of an automatic response robot and providing the corresponding status 222.
[0060] According to an exemplary implementation of the present disclosure, if the status of the service is determined to be abnormal, the stage to which the service belongs in the operation process of the machine learning system 110 can be further determined. It will be understood that the machine learning system 110 can provide training services and / or reasoning services, and the stage at this time may include any one of the training stage and the reasoning stage. After determining the stage to which the service belongs, the diagnostic process corresponding to the stage (e.g., the training diagnostic API 340 and the reasoning diagnostic API 342) can be further called to determine the diagnostic result of the service.
[0061] Specifically, assuming that the service belongs to the training phase, and the result of querying the log includes error information: "resource exhausted", "out of memory", then the training diagnosis API 340 can be called for diagnosis. According to an exemplary implementation of the present disclosure, the training diagnosis API 340 can be defined to perform the following operations when the above errors occur: if the video memory is insufficient, adjust the batch size parameter, adjust the workspace size, apply for a graphics processing unit with a larger video memory to execute the service, or transfer to manual service.
[0062] According to an exemplary implementation of the present disclosure, the diagnostic API may also define other operations. For example, when it is detected that the current state of the service is "localized", the response may be: starting the container. If the waiting time is too long, a diagnostic result may be given: the image used is too large or the service is too old, and it is recommended to transfer to manual service. For another example, when it is detected that the current state is "new", the response may be: container startup request. If the waiting time is too long, a diagnostic result may be given: there may be an old container that is suspended, resulting in the failure of the new container deployment, and it is recommended to transfer to manual service. For another example, when it is detected that the log cannot be found in the local disk, it is possible to further detect whether the trial operation in the machine learning system 110 fails to start or is in operation. At this time, a diagnostic result may be given: please replace the storage device and restart the trial operation, and it is recommended to transfer to manual service. If it still fails, the diagnostic result may be: the log is expired or there is no log backup on the current storage device. For another example, if an input stream (InputStream) error is detected, a diagnostic result may be given: the error does not affect normal use. If the trial operation fails again, it is recommended to transfer to manual service.
[0063] According to an exemplary implementation of the present disclosure, similar to the training diagnostic API 340 described above, a dedicated reasoning diagnostic API 342 can also be defined for the reasoning process. For example, the function GetServiceList can obtain a service list, that is, obtain a list of all services that are providing the reasoning process. For another example, the function GetServiceByID can return various relevant information of a service with a specified name. The function GetDeployment can obtain relevant deployment information. It will be understood that the above only schematically illustrates the schematic implementation of the training diagnostic API 340 and the reasoning diagnostic API 342, and various diagnostic APIs that implement the desired functions may be defined according to the needs of the specific application environment.
[0064] According to an exemplary implementation of the present disclosure, diagnostic results can be provided to the user account 210 based on the various diagnostic APIs described above. For example, the above diagnostic results can be sent from the administrator account 220 to the user account 210. Further, the user can be reminded how to transfer to manual service. Utilizing the exemplary implementation of the present disclosure, the service personnel of the customer service center 130 do not need to manually perform various query and diagnostic operations, but can automatically call the diagnostic API defined for the stage according to the stage to which the service belongs. In this way, the query request 212 from the user 120 can be automatically processed without manual intervention. Further, the diagnostic results can be returned to the user account 210 via the instant messaging application 230. Compared with manual operation, the automatic call of the diagnostic API can greatly reduce the user's waiting time, thereby improving the user experience.
[0065] According to an exemplary implementation of the present disclosure, the administrator account 220 may send a prompt message to the user account 210 to inform the user 120 of the calling method for transferring to manual service. For example, a message "If you need manual service, please reply ONCALL" may be sent. According to an exemplary implementation of the present disclosure, other keywords for transferring to manual service may also be defined. When a user sends "ONCALL" to the administrator account 220 via the user account 210, the response manager 240 may parse the message, and when it is found that the message includes the keyword "ONCALL", notify the administrator of the machine learning system 110 to manually process the message.
[0066] Alternatively and / or additionally, a prompt message may be sent to the user account 210 to inform how to obtain more details about the diagnosis result. For example, a message "For more information, please reply HELP" may be sent. At this time, when the message sent by the user includes the keyword "HELP", the response manager 240 may further provide detailed diagnosis information. Using the exemplary implementation of the present disclosure, other services may be provided to the user 120 by means of keywords.
[0067] Figure 5 A block diagram 500 is shown of state information for providing services to users according to some implementations of the present disclosure. Figure 5 As shown, user 120 can send a query request 510 from user account 210 to administrator account 220. At this time, response manager 240 can perform the process described above. For example, the query request 510 expressed in natural language can be parsed first, and the query target "SERVICE-B" can be determined. Then, it can be determined whether "SERVICE-B" is a service provided by the machine learning system 110. If the judgment result is "yes", the log of the machine learning system 110 can be queried to determine the status of the service.
[0068] like Figure 5 As shown, message 520 indicates the information returned from administrator account 220. Specifically, message 520 indicates that the JOB ID (job ID) corresponding to the service is "123...", the TASK ID (task ID) is "456...", the owner is user 120, the status of the Trail operation is failed, the service is provided by cluster "CLUSTER-A", and the SLICE ID (slice ID) is 112. More information can be obtained based on the uniform resource locator (URL) shown in message 520.
[0069] Since the service status is failed, the diagnostic API can be further called to obtain more diagnostic information. Specifically, the log is checked and no error information is found, and then the diagnostic API can return the error code "EXIT-CODE=1", which indicates that the cause of the error is a business logic failure. Further, the administrator account 220 can provide the user with a way to get more help. For example, the user is informed that replying "ONCALL" can transfer to manual service, and replying "HELP" can obtain more text information about the diagnosis.
[0070] like Figure 5 As shown, the user 120 can use the daily instant messaging application 230 to obtain information about the status of the machine learning system 110. In this way, the user 120 does not have to log in to the dedicated communication tool of the customer service center 130 of the machine learning system 110, but can manage the tasks running in the machine learning system 110 in a more flexible and effective way. On the other hand, the response manager 240 can automatically perform query operations without manual intervention and call the diagnostic API corresponding to the training and / or reasoning stage when necessary. In this way, the manual workload can be greatly reduced and the user's waiting time can be reduced, thereby improving the user experience.
[0071] Figure 6 A block diagram 600 is shown showing a statistical curve 610 of users transferring to human service after using automatic answering processing according to some implementations of the present disclosure. Figure 6 As shown, the horizontal axis shows the usage time and the vertical axis shows the proportion of transfer to manual service due to unresolved user problems when using the automatic answering process described above. Figure 6 In the example, during most of the operation time of the machine learning system 110, the proportion of transfer to manual service is close to 0, and the user is dissatisfied with the processing result given by the administrator account 220 and transfers to manual service only in a few cases. It can be seen that during the vast majority of the operation time of the machine learning system 110, the administrator account 220 can properly handle the query requests from users without manual intervention. In this way, the manual labor workload of the customer service center 130 can be greatly reduced, and the user waiting time can be reduced.
[0072] Example Process
[0073] Figure 7A flowchart of a method 700 for managing a machine learning system according to some implementations of the present disclosure is shown. Specifically, at box 710, a query request from a user of the machine learning system is received via an instant messaging application, the query request is expressed in a natural language and the query request is received from a user account corresponding to the user in the instant messaging application; at box 720, it is determined whether a query target specified by the query request is associated with a service provided by the machine learning system; at box 730, in response to determining that the query target is associated with a service provided by the machine learning system, the status of the service is obtained based on a log of the machine learning system; and the status of the service is provided to the user account via the instant messaging application.
[0074] According to an exemplary implementation of the present disclosure, determining whether a query target specified by a query request is associated with a service provided by a machine learning system includes: extracting the query target from the query request; and determining whether the query target is associated with the service provided by the machine learning system based on a comparison between a set of services provided by the machine learning system and the query target.
[0075] According to an exemplary implementation of the present disclosure, obtaining the status of a service based on the log of a machine learning system includes: in response to determining that a user has access rights to the service, determining the status of the service based on the log of the machine learning system.
[0076] According to an exemplary implementation of the present disclosure, the method 700 further includes providing an error message to the user account in response to at least any one of the following: determining that the query target is not associated with the service provided by the machine learning system; and determining that the user does not have access rights to the service.
[0077] According to an exemplary implementation of the present disclosure, providing the status of the service to the user account includes: in response to determining that the status of the service is normal, returning the status of the service to the user account.
[0078] According to an exemplary implementation of the present disclosure, providing the status of a service to a user account includes: in response to determining that the status of the service is abnormal, determining the stage to which the service belongs during the operation of the machine learning system, the stage including any one of a training stage and an inference stage; calling a diagnostic process corresponding to the stage to determine a diagnostic result of the service; and providing the diagnostic result to the user account.
[0079] According to an exemplary implementation of the present disclosure, extracting a query target from a query request includes: determining slot information in the query request based on a natural language understanding model; and determining the query target based on the slot information.
[0080] According to an exemplary implementation of the present disclosure, receiving a query request from a user of a machine learning system via an instant messaging application includes: utilizing an application programming interface of the instant messaging application to receive a query request from a user account via an administrator account in the instant messaging application for managing the machine learning system, wherein the status of providing services to the user account includes: utilizing the application programming interface to provide the status of services to the user account via the administrator account.
[0081] According to an exemplary implementation of the present disclosure, receiving a query request includes at least any one of the following: receiving a query request via a dedicated session between a user account and an administrator account; and receiving a query request via a group session between a user account, an administrator account, and other user accounts other than the user account in an instant messaging application.
[0082] According to an exemplary implementation of the present disclosure, the method 700 further includes: providing a prompt message to the user account, the prompt message being used to inform the user of a calling method for transferring to manual service; and in response to receiving a message from the user account via an instant messaging application including the calling method, notifying an administrator of the machine learning system of a reply message.
[0083] Example devices and equipment
[0084] Figure 8 A block diagram of an apparatus 800 for managing a machine learning system according to some implementations of the present disclosure is shown. The apparatus 800 includes: a receiving module 810 configured to receive a query request from a user of the machine learning system via an instant messaging application, the query request being expressed in a natural language and the query request being received from a user account corresponding to the user in the instant messaging application; a determining module 820 configured to determine whether a query target specified by the query request is associated with a service provided by the machine learning system; an acquiring module 830 configured to acquire the status of the service based on a log of the machine learning system in response to determining that the query target is associated with the service provided by the machine learning system; and a providing module 840 configured to provide the status of the service to the user account via the instant messaging application.
[0085] According to an exemplary implementation of the present disclosure, the determination module 820 includes: an extraction module configured to extract a query target from a query request; and a comparison module configured to determine whether the query target is associated with a service provided by the machine learning system based on a comparison between a set of services provided by the machine learning system and the query target.
[0086] According to an exemplary implementation of the present disclosure, the acquisition module 830 includes: a permission module, configured to determine the status of the service based on the log of the machine learning system in response to determining that the user has access rights to the service.
[0087] According to an exemplary implementation of the present disclosure, the apparatus 800 further includes: a message providing module configured to provide an error message to the user account in response to at least any one of the following: determining that the query target is not associated with a service provided by the machine learning system; and
[0088] Verify that the user does not have access permissions to the service.
[0089] According to an exemplary implementation of the present disclosure, the providing module 840 includes: a normal status providing module configured to return the status of the service to the user account in response to determining that the status of the service is normal.
[0090] According to an exemplary implementation of the present disclosure, the providing module 840 includes: a stage determination module, configured to determine the stage to which the service belongs during the operation of the machine learning system in response to determining that the status of the service is abnormal, the stage including any one of a training stage and an inference stage; a calling module, configured to call a diagnostic process corresponding to the stage to determine a diagnostic result of the service; and a diagnosis providing module, configured to provide the diagnostic result to a user account.
[0091] According to an exemplary implementation of the present disclosure, the extraction module includes: a slot determination module configured to determine slot information in a query request based on a natural language understanding model; and a target determination module configured to determine a query target based on the slot information.
[0092] According to an exemplary implementation of the present disclosure, the receiving module 810 includes: a request receiving module, configured to utilize an application programming interface of an instant messaging application to receive a query request from a user account via an administrator account in the instant messaging application for managing a machine learning system, wherein the providing module 840 includes: a status providing module, configured to utilize an application programming interface to provide the status of a service to the user account via the administrator account.
[0093] According to an exemplary implementation of the present disclosure, the receiving module 810 includes at least any one of the following: a dedicated session receiving module, configured to receive a query request via a dedicated session between a user account and an administrator account; and a group session receiving module, configured to receive a query request via a group session between a user account, an administrator account, and other user accounts other than the user account in the instant messaging application.
[0094] According to an exemplary implementation of the present disclosure, the device 800 further includes: a prompt module, configured to provide a prompt message to the user account, the prompt message being used to inform the user of a calling method for transferring to manual service; and a notification module, configured to notify an administrator of the machine learning system of a reply message in response to receiving a message from the user account via an instant messaging application including a calling method.
[0095] Fig. 9 9 is a block diagram of a device 900 capable of implementing multiple implementations of the present disclosure. It should be understood that Fig. 9 The computing device 900 shown is merely exemplary and should not constitute any limitation on the functionality and scope of the implementations described herein. Fig. 9 The illustrated computing device 900 may be used to implement the methods 400 and 700 described above.
[0096] like Fig. 9 As shown, computing device 900 is in the form of a general-purpose computing device. Components of computing device 900 may include, but are not limited to, one or more processors or processing units 910, memory 920, storage device 930, one or more communication units 940, one or more input devices 950, and one or more output devices 960. Processing unit 910 may be an actual or virtual processor and is capable of performing various processes according to a program stored in memory 920. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capabilities of computing device 900.
[0097] The computing device 900 typically includes a plurality of computer storage media. Such media may be any available media accessible to the computing device 900, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 920 may be a volatile memory (e.g., a register, a cache, a random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 930 may be a removable or non-removable medium, and may include a machine-readable medium, such as a flash drive, a disk, or any other medium, which may be capable of being used to store information and / or data (e.g., training data for training) and may be accessed within the computing device 900.
[0098] The computing device 900 may further include additional removable / non-removable, volatile / non-volatile storage media. Fig. 9As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus (not shown) by one or more data media interfaces. Memory 920 may include a computer program product 925 having one or more program modules that are configured to perform various methods or actions of various implementations of the present disclosure.
[0099] The communication unit 940 enables communication with other computing devices via a communication medium. Additionally, the functions of the components of the computing device 900 can be implemented in a single computing cluster or multiple computing machines that can communicate via a communication connection. Therefore, the computing device 900 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.
[0100] Input device 950 may be one or more input devices, such as a mouse, keyboard, tracking ball, etc. Output device 960 may be one or more output devices, such as a display, a speaker, a printer, etc. Computing device 900 may also communicate with one or more external devices (not shown) through communication unit 940 as needed, such as storage devices, display devices, etc., communicate with one or more devices that allow a user to interact with computing device 900, or communicate with any device that allows computing device 900 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).
[0101] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, the computer program product is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is provided, on which a computer program is stored, and when the program is executed by a processor, the method described above is implemented.
[0102] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices, equipment, and computer program products implemented according to the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0103] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0104] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0105] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some implementations as replacements, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.
[0106] The above descriptions of various implementations of the present disclosure are exemplary, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the various implementations disclosed herein.
Claims
1. A method for managing a machine learning system, comprising: receiving a query request from a user of the machine learning system via an instant messaging application, the query request being expressed in a natural language and being received from a user account corresponding to the user in the instant messaging application; Determining whether a query target specified by the query request is associated with a service provided by the machine learning system includes: Extracting the query target from the query request; and Determining whether the query target is associated with the service provided by the machine learning system based on a comparison of a set of services provided by the machine learning system and the query target; In response to determining that the query target is associated with a service provided by the machine learning system, obtaining a status of the service based on a log of the machine learning system; and The status of the service is provided to the user account via the instant messaging application.
2. The method according to claim 1, wherein obtaining the status of the service based on the log of the machine learning system comprises: In response to determining that the user has access rights to the service, determining the state of the service based on the log of the machine learning system.
3. The method of claim 2, further comprising providing an error message to the user account in response to at least any one of the following: determining that the query target is not associated with a service provided by the machine learning system; and It is determined that the user does not have access rights to the service.
4. The method of claim 1 , wherein providing the status of the service to the user account comprises: In response to determining that the status of the service is normal, returning the status of the service to the user account.
5. The method of claim 1 , wherein providing the status of the service to the user account comprises: In response to determining that the status of the service is abnormal, Determine the stage to which the service belongs during the operation of the machine learning system, wherein the stage includes any one of a training stage and an inference stage; Invoking a diagnostic process corresponding to the phase to determine a diagnostic result of the service; as well as The diagnostic result is provided to the user account.
6. The method according to claim 1, wherein extracting the query target from the query request comprises: Determine slot information in the query request based on a natural language understanding model; as well as The query target is determined based on the slot information.
7. The method of claim 1 , wherein receiving the query request from the user of the machine learning system via the instant messaging application comprises: Using an application programming interface of the instant messaging application, receiving the query request from the user account via an administrator account in the instant messaging application for managing the machine learning system, Providing the status of the service to the user account includes: utilizing the application programming interface to provide the status of the service to the user account via the administrator account.
8. The method according to claim 7, wherein receiving the query request comprises at least any one of the following: receiving the query request via a dedicated session between the user account and the administrator account; and The query request is received via a group session between the user account, the administrator account, and other user accounts other than the user account in the instant messaging application.
9. The method according to claim 1, further comprising: Providing a prompt message to the user account, wherein the prompt message is used to inform the user of a calling method for transferring to a manual service; as well as In response to receiving a message from the user account via the instant messaging application including the calling method, notifying an administrator of the machine learning system to answer the message.
10. An apparatus for managing a machine learning system, comprising: a receiving module configured to receive a query request from a user of the machine learning system via an instant messaging application, wherein the query request is expressed in a natural language and the query request is received from a user account corresponding to the user in the instant messaging application; A determination module is configured to determine whether a query target specified by the query request is associated with a service provided by the machine learning system, the determination module comprising: an extraction module, configured to extract the query target from the query request; and a comparison module configured to determine whether the query target is associated with the service provided by the machine learning system based on a comparison of a set of services provided by the machine learning system and the query target; an acquisition module configured to, in response to determining that the query target is associated with a service provided by the machine learning system, acquire a status of the service based on a log of the machine learning system; and A providing module is configured to provide the status of the service to the user account via the instant messaging application.
11. The device according to claim 10, wherein the acquisition module comprises: A permission module is configured to determine the status of the service based on the log of the machine learning system in response to determining that the user has access rights to the service.
12. The apparatus according to claim 11, further comprising a message providing module configured to provide an error message to the user account in response to at least any one of the following: determining that the query target is not associated with a service provided by the machine learning system; and It is determined that the user does not have access rights to the service.
13. The apparatus according to claim 10, wherein the providing module comprises: The normal status providing module is configured to return the status of the service to the user account in response to determining that the status of the service is normal.
14. The apparatus according to claim 10, wherein the providing module comprises: a stage determination module, configured to determine, in response to determining that the status of the service is abnormal, a stage to which the service belongs during the operation of the machine learning system, wherein the stage includes any one of a training stage and an inference stage; A calling module configured to call a diagnostic process corresponding to the stage to determine a diagnostic result of the service; as well as The diagnosis providing module is configured to provide the diagnosis result to the user account.
15. The apparatus according to claim 10, wherein the extraction module comprises: A slot determination module, configured to determine slot information in the query request based on a natural language understanding model; as well as A target determination module is configured to determine the query target based on the slot information.
16. The device according to claim 10, wherein the receiving module comprises: a request receiving module configured to receive the query request from the user account via an administrator account in the instant messaging application for managing the machine learning system using an application programming interface of the instant messaging application, The providing module comprises: a status providing module configured to provide the status of the service to the user account via the administrator account by using the application programming interface.
17. An electronic device comprising: at least one processing unit; as well as At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions causing the electronic device to perform the method according to any one of claims 1 to 9 when executed by the at least one processing unit.
18. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the processor is caused to implement the method according to any one of claims 1 to 9.
