Expansion tool deployment architecture and user request processing method
By introducing proxy services and expansion tool managers into the expansion tool deployment architecture, combining online and offline expansion tool sets, the call to intranet and external network resources is realized, solving the problem of limited capabilities of existing expansion tool and improving the functions and efficiency of expansion tools.
Patent Information
- Application Number
- CN202411891935.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-04-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing expansion tools are unable to use Internet-related expansion tools because the intranet only supports offline expansion tools; or the limitations on expansion tools deployed on the Internet make it unable to use internal privacy data, resulting in serious limitations in the capabilities of expansion tools.
Provides an expansion tool deployment architecture, including an online expansion tool set deployed on the external network, a proxy service and expansion tool manager deployed in the intermediate area, and an offline expansion tool set deployed on the intranet and a tool expansion selection processor. Through proxy services, the intranet calls to the online expansion tool set, access external network resources through the online expansion tool set, and access intranet resources through the offline expansion tool set.
The call to intranet resources and/or external network resources is realized, solving the problem that existing expansion tools cannot use Internet-related expansion and internal privacy data, and improving the capabilities of expansion tools.
Smart Images

Figure CN119814849A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an expansion tool deployment architecture and a user request processing method. Background Art
[0002] The expansion and deployment of third-party tools is an important means to improve development efficiency and expand functions. Expansion tools can help us quickly integrate commonly used functions and tools.
[0003] The network environment can be divided into the intranet, the extranet, and the intermediate zone (DMZ) between the intranet and the extranet. Enterprises usually set up internal enterprise data in the intranet environment, and due to security restrictions, they often support offline expansion tools and cannot use Internet-related expansions; or they restrict expansion tools deployed on the Internet so that they cannot use internal privacy data. As a result, the capabilities of existing expansion tools are severely limited. Summary of the invention
[0004] In view of this, the purpose of the embodiments of the present application is to provide an expansion tool deployment architecture and a user request processing method to solve the technical problem that the capabilities of existing expansion tools are severely limited due to "the intranet only supports offline expansion tools and cannot use Internet-related extensions; or because restrictions are imposed on expansion tools deployed on the Internet, making it impossible to use internal privacy data."
[0005] In a first aspect, an embodiment of the present application provides an expansion tool deployment architecture, the architecture comprising: an online expansion tool set deployed on an external network, a proxy service and an expansion tool manager deployed in an intermediate area, and an offline expansion tool set and a tool expansion selection processor deployed on an internal network;
[0006] The proxy service is respectively connected to the tool expansion selection processor and the online expansion tool set in communication; the expansion tool manager is respectively connected to the online expansion tool set, the offline expansion tool set and the tool expansion selection processor in communication;
[0007] Wherein, the online expansion tool set is used to access external network resources;
[0008] The proxy service is used to implement the call of the online expansion tool set on the intranet;
[0009] The offline expansion toolset is used to access intranet resources;
[0010] The extension tool manager is used to maintain the online extension tool set and the offline extension tool set, and provide a list of available extension tools;
[0011] The tool extension selection processor is used to obtain the available extension tool list according to the extension tool manager, and determine and call the required extension tool from the available extension tool list according to the user request.
[0012] In the above implementation process, the expansion tool deployment architecture includes an online expansion tool set deployed on the external network, a proxy service and an expansion tool manager deployed in the middle area, and an offline expansion tool set and a tool expansion selection processor deployed on the intranet; the proxy service communicates and connects the tool expansion selection processor and the online expansion tool set respectively; the expansion tool manager communicates and connects the online expansion tool set, the offline expansion tool set and the tool expansion selection processor respectively. The expansion tool deployment architecture can obtain a list of available expansion tools according to the expansion tool manager through the tool expansion selection processor, determine and call the required expansion tools from the list of available expansion tools according to the user request; and implement the call of the online expansion tool set in the intranet based on the proxy service, and access to the external network resources through the online expansion tool set; and can also access the intranet resources based on the offline expansion tool set. Therefore, the call to the intranet resources and / or the external network resources can be realized based on the expansion tool deployment architecture. It solves the technical problem that the existing expansion tools are severely limited in their capabilities due to "the intranet only supports offline expansion tools and cannot use Internet-related expansions; or the expansion tools deployed on the Internet are restricted so that they cannot use internal privacy data".
[0013] Optionally, in an embodiment of the present application, the architecture further includes: a service processor deployed in an intranet; the service processor is communicatively connected to the tool expansion selection processor; the service processor is used to obtain a request processing result based on a call result of the required expansion tool and the user request.
[0014] In the above implementation process, the service processor can obtain the call result of the required extension tool and the user request, and integrate the call result of the required extension tool and the user request to obtain the final request processing result.
[0015] Optionally, in an embodiment of the present application, the architecture also includes: a data desensitizing module deployed in the intranet; the data desensitizing module is communicated with the proxy service and the tool extension selection processor respectively; the data desensitizing module is used to, when the required extension tool is an online extension tool, perform desensitizing processing on the user request to obtain a desensitized request; the tool extension selection processor is also used to, when the required extension tool is an online extension tool, initiate a call request to the online extension tool set according to the proxy service and the desensitizing request; and obtain the call result of the required extension tool.
[0016] In the above implementation process, the user requests sent to the external network are desensitized through the data desensitization module, which can protect the privacy data in the user requests and reduce the possibility of user privacy leakage.
[0017] In a second aspect, an embodiment of the present application provides a method for processing user requests, the method being applied to the expansion tool deployment architecture as described in the first embodiment of the first aspect above; the expansion tool deployment architecture comprises an online expansion tool set deployed on an external network, a proxy service and an expansion tool manager deployed in an intermediate area, and an offline expansion tool set and a tool expansion selection processor deployed on an internal network;
[0018] The method comprises:
[0019] Based on the extension tool manager, a list of available extension tools is obtained; wherein the list of available extension tools includes online extension tools in the online extension tool set and offline extension tools in the offline extension tool set;
[0020] Based on the tool extension selection processor, a required extension tool is determined and called from the available extension tool list according to a user request to process the user request.
[0021] In the above implementation process, the user request processing method is applied to the expansion tool deployment architecture as described in the first embodiment of the first aspect above, and obtains a list of available expansion tools based on the expansion tool manager; based on the tool expansion selection processor, the required expansion tool is determined and called from the list of available expansion tools according to the user request to process the user request. This method can realize the call of intranet resources and / or extranet resources based on the above expansion tool deployment architecture to realize the processing of user requests. It solves the technical problem that the capabilities of existing expansion tools are severely limited due to "the intranet only supports offline expansion tools and cannot use Internet-related extensions; or because the expansion tools deployed on the Internet are restricted, they cannot use internal privacy data".
[0022] Optionally, in an embodiment of the present application, the tool extension selection processor determines and calls the required extension tool from the available extension tool list according to the user request to process the user request, including: based on the tool extension selection processor, determining the required extension tool from the available extension tool list according to the user request; when the required extension tool is the offline extension tool, based on the tool extension selection processor, initiating a call request to the offline extension tool set according to the user request; and accessing intranet resources based on the offline extension tool set to process the user request; when the required extension tool is the online extension tool, initiating a call request to the online extension tool set based on the tool extension selection processor, the proxy service and the user request; and accessing external network resources based on the online extension tool set to process the user request.
[0023] In the above implementation process, when the required extension tool is an offline extension tool, a call request is initiated to the offline extension tool set, and the intranet resources are accessed based on the offline extension tool set, and the user request is processed by calling the intranet resources. When the required extension tool is an online extension tool, a call request is initiated to the online extension tool set based on the proxy service, and the extranet resources are accessed based on the online extension tool set, and the user request is processed by calling the extranet resources.
[0024] Optionally, in an embodiment of the present application, the expansion tool deployment architecture also includes a data desensitizing module deployed on the intranet; the data desensitizing module is communicated with the proxy service and the tool expansion selection processor respectively; the method also includes: when the required expansion tool is the online expansion tool, desensitizing the user request based on the data desensitizing module to obtain a desensitized request; under the request that the required expansion tool is the online expansion tool, initiating a call request to the online expansion tool set based on the tool expansion selection processor, the proxy service and the user request, including: under the request that the required expansion tool is the online expansion tool, initiating a call request to the online expansion tool set based on the tool expansion selection processor, the proxy service and the desensitized request.
[0025] In the above implementation process, the user requests sent to the external network are desensitized by the data desensitization module, so that the privacy data in the user requests can be protected and the possibility of user privacy leakage can be reduced.
[0026] Optionally, in an embodiment of the present application, the desensitizing processing is performed on the user request based on the data desensitizing module to obtain the desensitized request, including: determining the degree of match between the user request and a preset desensitizing template based on the data desensitizing module; when the maximum value of the degree of match is greater than or equal to a preset matching threshold, desensitizing processing is performed on the user request based on the desensitization rules of the desensitizing template corresponding to the maximum degree of match to obtain the desensitized request.
[0027] In the above implementation process, according to the matching degree between the user request and the preset desensitizing template, the desensitizing rule of the desensitizing template corresponding to the maximum matching degree is selected to perform desensitization processing on the user request; based on the desensitization rule of the desensitizing template, the privacy data in the user request can be effectively protected, thereby improving the efficiency of desensitization processing.
[0028] Optionally, in an embodiment of the present application, the desensitizing processing of the user request based on the data desensitizing module to obtain the desensitized request also includes: based on the data desensitizing module, when the maximum value of the matching degree is less than the preset matching threshold, determining the desensitizing scenario of the user request; selecting a corresponding desensitizing model according to the desensitizing scenario, desensitizing the user request, and obtaining the desensitized request.
[0029] In the above implementation process, when the maximum value of the matching degree is less than the preset matching threshold, the corresponding desensitization model is selected according to the desensitization scenario, and the user request is desensitized, which can effectively protect the privacy data in the user request.
[0030] Optionally, in the embodiment of the present application, the method further includes: maintaining the online extension tool set and the offline extension tool set based on the extension tool manager.
[0031] In the above implementation process, the online extension tool set and the offline extension tool set are maintained through the extension tool manager. When the online extension tool set or the offline extension tool set changes, the list of available extension tools and the relevant data of each extension tool can be updated in time, thereby ensuring the processing efficiency of user requests.
[0032] Optionally, in an embodiment of the present application, the expansion tool deployment architecture also includes a service processor deployed on the intranet; the service processor is communicatively connected to the tool expansion selection processor; the method also includes: obtaining the request processing result based on the service processor according to the call result of the required expansion tool and the user request.
[0033] In a third aspect, an embodiment of the present application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the method described in any one of the second aspects above.
[0034] In a fourth aspect, an embodiment of the present application further provides an electronic device; the electronic device includes:
[0035] Memory;
[0036] processor;
[0037] The memory stores a computer program executable by the processor, and when the computer program is executed by the processor, the method described in any one of the second aspects is performed.
[0038] In a fifth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method described in any one of the second aspects is executed.
[0039] The beneficial effects of the present application include at least: the expansion tool deployment architecture includes an online expansion tool set deployed on the external network, a proxy service and an expansion tool manager deployed in the middle area, and an offline expansion tool set and a tool expansion selection processor deployed on the intranet; the proxy service communicates and connects the tool expansion selection processor and the online expansion tool set respectively; the expansion tool manager communicates and connects the online expansion tool set, the offline expansion tool set and the tool expansion selection processor respectively. The expansion tool deployment architecture can obtain a list of available expansion tools according to the expansion tool manager through the tool expansion selection processor, determine and call the required expansion tool from the list of available expansion tools according to the user request; and implement the call of the online expansion tool set in the intranet based on the proxy service, and implement access to the external network resources through the online expansion tool set; and can also access the intranet resources based on the offline expansion tool set. Therefore, the call to the intranet resources and / or the external network resources can be realized based on the expansion tool deployment architecture. It solves the technical problem that the existing expansion tools are severely limited in their capabilities due to "the intranet only supports offline expansion tools and cannot use Internet-related expansions; or because the expansion tools deployed on the Internet are restricted, they cannot use internal privacy data". BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0041] Figure 1 A schematic diagram of the structure of an expansion tool deployment architecture provided in an embodiment of the present application;
[0042] Figure 2 A schematic diagram of another expansion tool deployment architecture provided in an embodiment of the present application;
[0043] Figure 3 A flowchart of a method for processing user requests provided in an embodiment of the present application;
[0044] Figure 4 A flowchart of a tool-expanded selection processor processing a user request provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.
[0046] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0047] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0048] See also Figure 1 The schematic diagram of the structure of an expansion tool deployment architecture provided by an embodiment of the present application is shown. The expansion tool deployment architecture includes: an online expansion tool set deployed on the external network, a proxy service and an expansion tool manager deployed in the middle area, and an offline expansion tool set and a tool expansion selection processor deployed on the internal network;
[0049] The proxy service is respectively connected to the tool expansion selection processor and the online expansion tool set in communication; the expansion tool manager is respectively connected to the online expansion tool set, the offline expansion tool set and the tool expansion selection processor in communication;
[0050] Wherein, the online expansion tool set is used to access external network resources;
[0051] The proxy service is used to implement the call of the online expansion tool set on the intranet;
[0052] The offline expansion toolset is used to access intranet resources;
[0053] The extension tool manager is used to maintain the online extension tool set and the offline extension tool set, and provide a list of available extension tools;
[0054] The tool extension selection processor is used to obtain the available extension tool list according to the extension tool manager, and determine and call the required extension tool from the available extension tool list according to the user request.
[0055] Among them, the external network can be a wide area network (for example, the Internet), the internal network can be a local area network (specifically, it can be a limited local area network or a wireless local area network, etc.), and the intermediate area can be a demilitarized zone (DMZ), that is, a buffer zone set up between a non-secure system (corresponding to the external network) and a secure system (corresponding to the internal network) in order to solve the transmission problem of data exchange across networks. The online extension tool set can include extension tools set in applications (WeChat, Google Chrome, Baidu Browser, etc.) on the external network, and the offline extension tool set can include extension tools set in applications (for example, intranet login software, data statistics and processing software in the intranet, etc.) on the intranet. The proxy service can be implemented by a proxy server (Proxy Server), based on which the intranet and the external network can be connected, and the call to the online extension tool set can be implemented based on the user request initiated in the intranet. The extension tool manager can obtain multiple online extension tools included in the online extension tool set and the online extension functions that can be realized by each, as well as obtain multiple offline extension tools included in the offline extension tool set and the offline extension functions that can be realized by each offline extension tool; and generate a list of available extension tools. The extension tool manager can also update the list of available extension tools in a timely manner when the online extension tool set / offline extension tool set changes. The tool extension selection processor can select and call the required extension tool for completing the user request processing according to the extension functions that can be achieved by each available extension tool in the available extension tool list. The tool extension selection processor can also directly call the offline extension tool set and access the required intranet resources to process the user request when the required extension tool is an offline extension tool; when the required extension tool is an online extension tool, call the online extension tool set based on the proxy service and access the required external network resources to process the user request. The required extension tool can be an offline extension tool, an online extension tool, or both an offline extension tool and an online extension tool, and this application does not make specific restrictions on this.
[0056] It can be seen that the expansion tool deployment architecture provided by the present application can obtain the list of available expansion tools according to the expansion tool manager through the tool expansion selection processor, determine and call the required expansion tools from the list of available expansion tools according to the user request; and realize the call of the online expansion tool set in the intranet based on the proxy service, and realize the access to the external network resources through the online expansion tool set; and can also access the intranet resources based on the offline expansion tool set. Therefore, the call to the intranet resources and / or the external network resources can be realized based on the expansion tool deployment architecture. It solves the technical problem that the capabilities of the existing expansion tools are severely limited due to "the intranet only supports offline expansion tools, and the Internet-related extensions cannot be used; or the expansion tools deployed on the Internet are restricted, so that they cannot use internal privacy data".
[0057] For example, in a medical scenario, considering user privacy issues, the hospital intranet usually cannot be directly connected to the Internet (extranet). This application forwards intranet and extranet data through an intermediate area, deploys a proxy service and an extension tool manager in the intermediate area, and forwards intranet user requests to the extranet based on the proxy service to call the online extension tool set deployed on the extranet; thereby realizing the call of intranet resources and / or extranet resources.
[0058] Please refer to Figure 2 , Figure 2 A schematic diagram of the structure of another expansion tool deployment architecture provided in an embodiment of the present application.
[0059] In some optional embodiments, the architecture further includes: a service processor deployed in an intranet; the service processor is communicatively connected to the tool extension selection processor; and the service processor is used to obtain a request processing result based on a call result of the required extension tool and the user request.
[0060] The service processor can be implemented by a large model (Service LLM) for providing services, that is, deploying a large language model (LLM) as a service so that other applications or systems can interact and use the model through API calls and process user requests. Based on the service processor, the call results of the required extension tools and user requests can be obtained, and the call results of the required extension tools and user requests can be integrated to obtain the final request processing results.
[0061] In some optional embodiments, the architecture also includes: a data desensitizing module deployed in the intranet; the data desensitizing module is respectively communicated with the proxy service and the tool extension selection processor; the data desensitizing module is used to perform desensitizing processing on the user request and obtain a desensitizing request when the required extension tool is an online extension tool; the tool extension selection processor is also used to initiate a call request to the online extension tool set according to the proxy service and the desensitizing request when the required extension tool is an online extension tool; and obtain the call result of the required extension tool.
[0062] Among them, the data desensitization module can be implemented based on a mask algorithm, an encryption algorithm or a hash algorithm, etc., and this application does not make specific limitations on this. Through the data desensitization module, the user request sent to the external network is desensitized, and the privacy data in the user request can be protected, reducing the possibility of user privacy leakage.
[0063] Please refer to Figure 3 , Figure 3 A flowchart of a method for processing user requests provided in an embodiment of the present application. The method is applied to the expansion tool deployment architecture as described in the first embodiment of the first aspect above; the expansion tool deployment architecture includes an online expansion tool set deployed on the external network, a proxy service and an expansion tool manager deployed in the middle area, and an offline expansion tool set and a tool expansion selection processor deployed on the intranet. The method for processing user requests may include the following steps:
[0064] S101, obtaining a list of available extension tools based on the extension tool manager; wherein the list of available extension tools includes online extension tools in the online extension tool set and offline extension tools in the offline extension tool set;
[0065] S102: Based on the tool extension selection processor, determine and call a required extension tool from the available extension tool list according to a user request to process the user request.
[0066] Among them, in steps S101-S102, taking the medical scenario as an example, the user request may be "query books related to heart disease", "exercise methods suitable for patients with heart disease" or "prediction of recovery of a specific disease of a patient", etc. Taking the automobile sales scenario as an example, the user request may be "query sales data of a certain model" or "parts parameters of a certain vehicle", etc. The specific implementation of the user request processing method can refer to the relevant description of the deployment architecture of the expansion tool in the above embodiment. In order to avoid repetition, some detailed descriptions are omitted here.
[0067] It can be seen that the user request processing method provided in the embodiment of the present application is applied to the expansion tool deployment architecture as described in the first embodiment of the first aspect above, and can implement the call of intranet resources and / or extranet resources based on the above expansion tool deployment architecture to realize the processing of user requests. It solves the technical problem that the capabilities of existing expansion tools are severely limited due to "the intranet only supports offline expansion tools and cannot use Internet-related expansions; or because the expansion tools deployed on the Internet are restricted, they cannot use internal privacy data".
[0068] Please refer to Figure 4 , Figure 4 A flowchart of a tool-expanded selection processor processing a user request provided in an embodiment of the present application.
[0069] In some optional embodiments, S102, based on the tool extension selection processor, determines and calls the required extension tool from the available extension tool list according to the user request to process the user request, including: S1021, based on the tool extension selection processor, determines the required extension tool from the available extension tool list according to the user request; S1022, when the required extension tool is the offline extension tool, based on the tool extension selection processor, initiates a call request to the offline extension tool set according to the user request; and accesses intranet resources based on the offline extension tool set to process the user request; S1023, when the required extension tool is the online extension tool, initiates a call request to the online extension tool set based on the tool extension selection processor, the proxy service and the user request; and accesses external network resources based on the online extension tool set to process the user request.
[0070] Wherein, in steps S1021-S1023, the required expansion tools may include only offline expansion tools, may include only online expansion tools, or may include both offline expansion tools and online expansion tools. In the case where the required expansion tools include both offline expansion tools and online expansion tools, a processor is selected based on the tool expansion, a call request is initiated to the offline expansion tool set according to the user request, and a call request is also initiated to the online expansion tool set based on the proxy service and the user request. By initiating a call request to the offline expansion tool set when the required expansion tool is an offline expansion tool, and accessing intranet resources based on the offline expansion tool set, the user request is processed by calling the intranet resources. In the case where the required expansion tool is a request for an online expansion tool, a call request is initiated to the online expansion tool set based on the proxy service, and accessing extranet resources based on the online expansion tool set, and the user request is processed by calling extranet resources.
[0071] In some optional embodiments, the expansion tool deployment architecture also includes a data desensitizing module deployed on the intranet; the data desensitizing module communicates with the proxy service and the tool expansion selection processor respectively; the method also includes: when the required expansion tool is the online expansion tool, based on the data desensitizing module, the user request is desensitized to obtain a desensitized request; S1023, under the request that the required expansion tool is the online expansion tool, based on the tool expansion selection processor, the proxy service and the user request, a call request is initiated to the online expansion tool set, including: under the request that the required expansion tool is the online expansion tool, a call request is initiated to the online expansion tool set based on the tool expansion selection processor, the proxy service and the desensitizing request.
[0072] Among them, the data desensitization module can include multiple desensitization schemes, and can select an adapted desensitization scheme to desensitize the user request based on the specific content included in the user request and / or the context content of the user request. By desensitizing the user request sent to the external network through the data desensitization module, the privacy data in the user request can be protected, reducing the possibility of user privacy leakage.
[0073] In some optional embodiments, the desensitizing the user request based on the data desensitizing module to obtain the desensitized request includes: determining the degree of match between the user request and a preset desensitizing template based on the data desensitizing module; and when the maximum value of the degree of match is greater than or equal to a preset matching threshold, desensitizing the user request based on the desensitization rule of the desensitizing template corresponding to the maximum degree of match to obtain the desensitized request.
[0074] Among them, a preset desensitization template can be set for a typical desensitization scenario. The preset desensitization template may include text content or a table frame in a fixed area, which can be matched using a regular expression. Taking the medical scenario as an example, the preset desensitization template may include a desensitization template for a patient's medical record (which may include the medical record title position, title content), a desensitization template for admission and discharge records, etc.; when the user inputs data such as medical records or admission and discharge records as request information, the medical records or admission and discharge record data in the user's request may be desensitized based on the corresponding desensitization template. The preset matching threshold may be 80%, or 90% or other reasonable values. According to the degree of match between the user request and the preset desensitization template, the desensitization rule of the desensitization template corresponding to the maximum degree of match is selected to desensitize the user request; based on the desensitization rules of the desensitization template, the privacy data in the user request can be effectively protected, and the desensitization processing efficiency can be improved.
[0075] In some optional embodiments, the desensitizing the user request based on the data desensitizing module to obtain the desensitized request includes: matching the user request and the desensitizing scenario based on a semantic model to obtain the desensitizing scenario corresponding to the user request; selecting a corresponding desensitizing model according to the desensitizing scenario, desensitizing the user request to obtain the desensitized request.
[0076] Among them, it can be matched with the scene knowledge base based on the semantic model (for example, RAG model) first. Taking the medical scene as an example, a corresponding knowledge base can be built for the main types of medical scenes. The actual use scenarios can include: patient cases, hospital systems, laws and regulations, medical guidelines and consensus, and document templates, etc., and can also be expanded based on the actual use scenarios. Similar documents can be matched from different knowledge bases, and multiple documents with the highest similarity (matching can be performed based on semantic vectors to obtain matching similarity results) are selected, and the similarities of multiple documents are weighted summed (taking the number of documents as 3 as an example, according to the similarity, the similarity ratios of multiple documents can be 0.6, 0.3 and 0.1 respectively), and the knowledge base with the highest weighted sum value is used as the desensitization scene requested by the user. And based on the desensitization model of the corresponding desensitization scene, the user request is desensitized to obtain a desensitized request. Among them, the desensitization scene can also include a conventional scene. When the matching degree between the user request and the remaining desensitization scenes is low, the user request can be desensitized using the desensitization model corresponding to the conventional scene. A knowledge base of common scenarios and corresponding common desensitization results can be constructed based on the RAG model.
[0077] In some optional embodiments, the desensitizing the user request based on the data desensitizing module to obtain the desensitized request also includes: based on the data desensitizing module, when the maximum value of the matching degree is less than the preset matching threshold, determining the desensitizing scenario of the user request; selecting a corresponding desensitizing model according to the desensitizing scenario, desensitizing the user request, and obtaining the desensitized request.
[0078] Among them, the user request can be processed based on the semantic model to obtain the desensitized scenario of the user request (the specific implementation method can refer to the relevant description above). When the maximum value of the matching degree is less than the preset matching threshold, the corresponding desensitization model is selected according to the desensitization scenario, and the user request is desensitized, which can effectively protect the privacy data in the user request.
[0079] In some optional embodiments, the method further includes: maintaining the online extension tool set and the offline extension tool set based on the extension tool manager.
[0080] Among them, by maintaining the online expansion tool set and the offline expansion tool set through the expansion tool manager, the list of available expansion tools and the relevant data of each expansion tool can be updated in time when the online expansion tool set or the offline expansion tool set changes, so as to provide guarantee for the processing efficiency of user requests. The specific implementation of the above steps can refer to the relevant description in the embodiment of the above expansion tool deployment architecture. In order to avoid repetition, some detailed descriptions are omitted here.
[0081] In some optional embodiments, the expansion tool deployment architecture also includes a service processor deployed on an intranet; the service processor is communicatively connected to the tool expansion selection processor; the method also includes: obtaining a request processing result based on the service processor according to the call result of the required expansion tool and the user request.
[0082] Among them, based on the service processor, the call results of the required expansion tools and the user requests can be obtained, and the call results of the required expansion tools and the user requests can be integrated to obtain the final request processing results. The specific implementation of the above steps can refer to the relevant description in the embodiment of the above expansion tool deployment architecture. In order to avoid repetition, some detailed descriptions are omitted here.
[0083] In several embodiments provided by the embodiments of the present application, it should be understood that the disclosed architecture / system and method can also be implemented in other ways. The above-described architecture embodiments are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the architecture, methods and computer program products according to the multiple embodiments of the embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0084] In addition, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part.
[0085] The above description is only an optional implementation manner of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the embodiments of the present application, which should be covered within the protection scope of the embodiments of the present application.
Claims
1. An expansion tool deployment architecture, characterized in that: The architecture includes: an online expansion tool set deployed on the external network, a proxy service and an expansion tool manager deployed in the middle area, and an offline expansion tool set and a tool expansion selection processor deployed in the internal network; The proxy service is respectively connected to the tool expansion selection processor and the online expansion tool set in communication; the expansion tool manager is respectively connected to the online expansion tool set, the offline expansion tool set and the tool expansion selection processor in communication; Wherein, the online expansion tool set is used to access external network resources; The proxy service is used to implement the call of the online expansion tool set on the intranet; The offline expansion toolset is used to access intranet resources; The extension tool manager is used to maintain the online extension tool set and the offline extension tool set, and provide a list of available extension tools; The tool extension selection processor is used to obtain the available extension tool list according to the extension tool manager, and determine and call the required extension tool from the available extension tool list according to the user request.
2. The architecture according to claim 1, characterized in that The architecture further includes: a service processor deployed in the intranet; the service processor is communicatively connected to the tool expansion selection processor; The service processor is used to obtain the request processing result according to the calling result of the required expansion tool and the user request.
3. The architecture according to claim 2, characterized in that: The architecture further includes: a data desensitization module deployed in the intranet; the data desensitization module is respectively connected to the proxy service and the tool expansion selection processor; The data desensitization module is used to perform desensitization processing on the user request to obtain a desensitized request when the required expansion tool is an online expansion tool; The tool extension selection processor is also used to initiate a call request to the online extension tool set according to the proxy service and the desensitizing request when the required extension tool is an online extension tool; and obtain the call result of the required extension tool.
4. A method for processing user requests, characterized in that: The method is applied to the expansion tool deployment architecture as claimed in claim 1; the expansion tool deployment architecture includes an online expansion tool set deployed on the external network, a proxy service and an expansion tool manager deployed in the middle area, and an offline expansion tool set and a tool expansion selection processor deployed on the internal network; The method comprises: Based on the extension tool manager, a list of available extension tools is obtained; wherein the list of available extension tools includes online extension tools in the online extension tool set and offline extension tools in the offline extension tool set; Based on the tool extension selection processor, a required extension tool is determined and called from the available extension tool list according to a user request to process the user request.
5. The method according to claim 4, characterized in that The tool-based expansion selection processor determines and calls a required expansion tool from the available expansion tool list according to a user request to process the user request, including: Based on the tool expansion selection processor, determining the required expansion tool from the available expansion tool list according to the user request; In the case where the required expansion tool is the offline expansion tool, based on the tool expansion selection processor, a call request is initiated to the offline expansion tool set according to the user request; and based on the offline expansion tool set, an intranet resource is accessed to process the user request; Under the request that the required expansion tool is the online expansion tool, a call request is initiated to the online expansion tool set based on the tool expansion selection processor, the proxy service and the user request; and external network resources are accessed based on the online expansion tool set to process the user request.
6. The method according to claim 5, characterized in that The expansion tool deployment architecture also includes a data desensitization module deployed in the intranet; the data desensitization module is respectively connected to the proxy service and the tool expansion selection processor; The method further comprises: In a case where the required expansion tool is the online expansion tool, performing desensitization processing on the user request based on the data desensitization module to obtain a desensitized request; The step of initiating a call request to the online extension tool set based on the tool extension selection processor, the proxy service and the user request under the request that the required extension tool is the online extension tool includes: Under the request that the required extension tool is the online extension tool, a call request is initiated to the online extension tool set based on the tool extension selection processor, the proxy service and the desensitization request.
7. The method according to claim 6, characterized in that The desensitizing the user request based on the data desensitizing module to obtain the desensitized request includes: Based on the data desensitizing module, the degree of match between the user request and the preset desensitizing template is determined; when the maximum value of the degree of match is greater than or equal to the preset matching threshold, the user request is desensitized based on the desensitization rule of the desensitization template corresponding to the maximum degree of match to obtain the desensitized request.
8. The method according to claim 7, characterized in that The desensitizing the user request based on the data desensitizing module to obtain the desensitized request further includes: Based on the data desensitization module, when the maximum value of the matching degree is less than the preset matching threshold, the desensitization scenario of the user request is determined; according to the desensitization scenario, a corresponding desensitization model is selected, the user request is desensitized, and the desensitized request is obtained.
9. The method according to any one of claims 4 to 8, characterized in that: The method further comprises: The online extension tool set and the offline extension tool set are maintained based on the extension tool manager.
10. The method according to any one of claims 4 to 8, characterized in that: The expansion tool deployment architecture also includes a service processor deployed on the intranet; The service processor is communicatively connected to the tool expansion selection processor; the method further comprises: Based on the service processor's call result according to the required extension tool and the user request, a request processing result is obtained.