Government affair multi-agent collaborative response method based on double extraction and classification guidance
By introducing a dual extraction and classification guidance mechanism in the collaborative response of government multi-agent systems, the problem of unclear user demand categories has been solved, and stable, accurate category determination and consistent processing have been achieved in cases where the expression forms are different and the business characteristics overlap.
Patent Information
- Application Number
- CN202611392502.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-09
- Publication Date
- 2026-11-27
AI Technical Summary
Existing government intelligent service platforms suffer from unclear user demand categories when processing user needs. This makes it difficult for the main intelligent agent to accurately determine the expert intelligent agent and collaborative processing scope corresponding to the current need. In particular, when the expression forms are different and the business characteristics overlap, the classification criteria are prone to change with the way the problem is expressed and the model's judgment results.
The method employs a dual extraction and classification-guided approach. The main intelligent agent extracts a subset of target user data from multi-source data, and uses a pre-built request classification system to perform joint category identification, determine the target request category and feature words, select the appropriate target expert intelligent agent, extract the matching knowledge subset from the knowledge base, and finally generate the response result.
It achieves stable and accurate category determination for user needs with different expression forms and overlapping business characteristics, ensuring that user data, expert agents, and expert knowledge content match the current needs, and improving the consistency of the main agent in determining the scope of expert agents and collaborative processing.
Smart Images

Figure CN123180201A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the fields of artificial intelligence and information processing technology, and in particular to a collaborative response method for government multi-agent systems based on dual extraction and classification guidance. Background Technology
[0002] With the development of artificial intelligence and large language model technology, multi-agent collaborative processing is increasingly being applied to government service scenarios such as policy consultation, service application guidance, document verification, business process invocation, and task collaboration. Government intelligent service platforms typically need to process natural language requests from users and combine user-authorized multi-source business data to complete request understanding, task processing, and response output. Because different service items have different business rules, processing conditions, process nodes, and knowledge content, the platform also needs to select appropriate professional processing capabilities based on user needs and, when necessary, link with external business systems.
[0003] Existing government intelligent service platforms typically employ a primary intelligent agent and multiple expert intelligent agents tailored to different business domains. The primary intelligent agent receives user questions and determines the appropriate expert intelligent agent based on keywords, semantic features, or pre-defined business tags in the question text. The expert intelligent agents, based on the received question, retrieve relevant policy content, procedures, or business guidelines from their respective knowledge bases and generate text responses, business invocation instructions, or task processing results. For needs requiring processing based on the user's specific circumstances, the platform also obtains user-authorized business data and uses this data as contextual information when the intelligent agent executes tasks.
[0004] However, government services are diverse, and there may be overlaps in terminology, processing conditions, and scope of business among different services. The same user need may also be expressed in abbreviations, colloquialisms, or incomplete statements. Existing methods typically rely on keyword matching, semantic similarity, or real-time judgment by the agent to determine the need category. However, the classification criteria are prone to change depending on the way the problem is expressed and the model's judgment results. Furthermore, there is a lack of stable and unified boundaries between different business categories, leading to situations where similar needs are classified into different categories or similar categories become confused. When category determination is unstable, user data processing, expert agent selection, and expert knowledge retrieval also struggle to maintain consistency around the current need. Therefore, existing multi-agent collaborative response processes in government services suffer from unclear user need category boundaries, making it difficult for the main agent to accurately determine the expert agent corresponding to the current need and the scope of collaborative processing. Summary of the Invention
[0005] This application provides a collaborative response method for government affairs multi-agent systems based on dual extraction and classification guidance. This method can stably and accurately classify user needs with different expressions and overlapping business characteristics during the collaborative response process, and matches user data, expert agents, and expert knowledge content with the current needs. This application provides the following technical solution: Firstly, this application provides a collaborative response method for government multi-agent systems based on dual extraction and classification guidance, the method comprising: Receive user requests input by the target user and obtain multi-source data corresponding to the target user; The main intelligent agent is invoked to perform correlation analysis on the multi-source data based on the user request, and extract a subset of target user data related to the user request from the multi-source data; Based on a pre-built request classification system, joint category identification is performed on the user request and the target user data subset, and category feature word matching is performed on the user request to obtain the target request category and target feature words. At least one target expert agent is determined based on the target request category. Each of the target expert intelligent agents is invoked to extract a target knowledge subset that matches the user request and the target user data subset from the corresponding knowledge base based on the target request category, the target feature words, and the target user data subset; A response result is generated based on the user request, the target user data subset, and each of the target knowledge subsets.
[0006] In one specific implementation scheme, the invoking agent performs correlation analysis on the multi-source data based on the user request, and extracts a subset of target user data related to the user request from the multi-source data, including: The user request is parsed to obtain the request object, processing target, and request limiting conditions, and the request object is converted into a standard business object name based on a pre-established business terminology correspondence. Based on the standard business object name, determine the corresponding business object identifier from the data directory corresponding to the multi-source data, and read the business instance carrying the business object identifier from the multi-source data, and filter the read business instances according to the request limiting conditions; Based on the pre-established correspondence between processing targets and field types, the directly related fields corresponding to the processing targets are read from each of the filtered business instances, and the associated fields that are in the same business instance as each of the directly related fields are read based on the field association relationship corresponding to each of the directly related fields. When multiple business instances exist after filtering, the directly related fields and associated fields in each business instance are compared according to the field identifier. For data with the same field identifier and the same field content, one copy of the field content is retained and the corresponding business instance identifier is recorded. For data with the same field identifier and different field content, each field content and the corresponding business instance identifier are retained respectively. The target user data subset is formed based on the retained directly related fields, the associated fields, and the corresponding business instance identifiers.
[0007] In one specific implementation scheme, the request classification system is pre-built in the following manner: Obtain a service item catalog, multiple historical user requests, the actual service items corresponding to each historical user request, and the business processing scope corresponding to each expert agent. Based on the business processing scope corresponding to each expert agent and the business objects and processing actions corresponding to each service item in the service item catalog, service items whose business objects and processing actions are in the same business processing scope are grouped into the same request category. Based on the standard item name, business object and processing action contained in each request category, a corresponding category description is generated, and a correspondence between each request category and the corresponding expert agent is established. Based on the actual service items corresponding to each of the historical user requests, each of the historical user requests is classified into the corresponding request category to form a set of example requests corresponding to each request category. Based on the pre-established business terminology correspondence, the terminology of each of the example requests is standardized. Extract standard business terms from the standardized example request sets, for example... The first of the request categories Each of the standard business terms is identified as containing the first... Example requests for standard business terms are in the [number]th [section]. The proportion of each request category and the corresponding set of example requests for each other request category; When the When the following conditions are met, the first standard business term will be... The first standard business term was determined as the [number]. Category feature words corresponding to each request category: ; in, Indicates containing the first Example requests for standard business terms are in the [number]th [section]. The proportion of the example request set corresponding to each request category. Indicates containing the first Example requests for standard business terms are in the [number]th [section]. The proportion of the example request set corresponding to each of the other request categories. Indicates the sequence number of other request categories. This represents a pre-set non-zero positive number. This indicates the pre-set threshold for filtering feature words; The request classification system is obtained by associating and storing the correspondences between each request category and its corresponding category description, example request set, category feature words, and expert agent.
[0008] In a specific feasible implementation, the step of performing joint category identification on the user request and the target user data subset based on a pre-built request classification system, and performing category feature word matching on the user request to obtain the target request category and target feature words, and determining at least one target expert agent based on the target request category, includes: The user request is terminologically standardized. The terminologically standardized user request and the category description and example request corresponding to each request category are converted into semantic vectors and cosine similarity is calculated. At the same time, the standard business words in the user request are compared with the category feature words corresponding to each request category one by one. The standard business words with the same content are recorded. At least one candidate request category is determined based on the cosine similarity and the standard business words with the same content. When only one candidate request category exists, that candidate request category is retained. When multiple candidate request categories exist, if the target user data subset corresponds to multiple business instances, the field content that does not simultaneously correspond to all business instances is read. If the target user data subset corresponds to only one business instance, the directly related field content in that business instance is read, the read field content is converted into standard business terms, and compared one by one with the category feature words corresponding to each candidate request category. Candidate request categories with the same category feature words are retained. When no category feature words with the same content exist, all candidate request categories are retained. The retained candidate request categories are determined as target request categories, and the standard business words in the user requests that have the same content as the category feature words corresponding to the target request categories are determined as target feature words. For target request categories that do not have the same content as standard business words, the user requests and the category feature words corresponding to the target request categories are converted into semantic vectors and cosine similarity is calculated. The category feature word with the largest cosine similarity is determined as the corresponding target feature word. The expert agent identifiers associated with each target request category are read, and the corresponding target expert agent is selected according to the expert agent identifiers.
[0009] In one specific implementation, determining at least one candidate request category based on the cosine similarity and the standard business terms with the same content includes: Regarding the first For each request category, obtain the cosine similarity between the user request and the corresponding category description, and the cosine similarity between the user request and each corresponding example request. Add one to each cosine similarity and divide by two. Select the cosine similarity with the largest value from the cosine similarities corresponding to each processed example request. Statistics of user requests related to the first The number of standard business terms with the same category feature word content corresponding to each request category is determined, and the ratio of this number to the total number of standard business terms in the user request is determined; when the total number of standard business terms in the user request is zero, the ratio is determined to be zero; When the When the request category meets the following conditions, the first request will be... The following request categories were identified as candidate request categories: ; in, This indicates that the user request is related to the first The value obtained by adding one to the cosine similarity between the category descriptions corresponding to each request category and dividing by two; This indicates that the user request is related to the first The maximum value obtained by adding one to the cosine similarity of each example request corresponding to each request category and then dividing by two; This indicates that the user request is related to the first... The ratio of the number of standard business terms with the same category feature word content for each request category to the total number of standard business terms in the user request; Indicates the first one obtained in the same way The ratio corresponding to each of the other request categories; Indicates except the first Other request category numbers besides the request category; Represents a pre-set non-zero positive number; This indicates a pre-set category determination threshold; When at least one request category meets the above conditions, all request categories that meet the conditions are determined as candidate request categories; when no request category meets the above conditions, the calculation results on the left side of the above formula corresponding to each request category are compared, and the request category with the largest value is determined as the candidate request category.
[0010] In one specific implementation scheme, the step of invoking each of the target expert agents to extract target knowledge subsets that match the user request and the target user data subset from the corresponding knowledge base based on the target request category, the target feature words, and the target user data subset includes: Obtain knowledge entries from the knowledge base corresponding to each target expert agent. Each knowledge entry records the corresponding request category, processing target, standard business terms, and knowledge content. Among them, knowledge entries with limited applicable conditions also record at least one set of applicable rules consisting of condition field identifiers, comparison relations, and condition values. From each of the knowledge entries, read the knowledge entries whose request category is the same as the target request category, whose processing target is the same as the processing target obtained by parsing the user request, and whose standard business terms contain at least one of the target feature words, to obtain candidate knowledge entries; For each candidate knowledge item, based on the condition field identifier in each applicable rule, the field content with the same field identifier is read from the target user data subset, and the read field content is distinguished according to the business instance identifier. The field content in the same business instance is compared with the corresponding condition value according to the corresponding comparison relationship. Candidate knowledge entries that are not recorded under the applicable rules are retained. For candidate knowledge entries that are recorded under the applicable rules, the corresponding candidate knowledge entry is retained when the field content in at least one business instance simultaneously satisfies the corresponding applicable rules, and the business instance identifier that satisfies the applicable rules is recorded. When the same candidate knowledge entry corresponds to multiple business instances that satisfy each applicable rule, a copy of the corresponding knowledge content is retained and the identifier of each business instance is recorded. Based on the retained knowledge content and the corresponding business instance identifier, a subset of target knowledge corresponding to each target expert agent is formed.
[0011] In one specific implementation scheme, generating a response result based on the user request, the target user data subset, and each of the target knowledge subsets includes: The user request, the target user data subset, and each target knowledge subset are respectively input into the corresponding target expert agent. Each target expert agent generates expert response content according to the correspondence between the knowledge content and the business instance identifier in the corresponding target knowledge subset, combined with the field content of the corresponding business instance in the target user data subset. When there is only one target expert agent, the corresponding expert response content is determined as the content to be output; when there are multiple target expert agents, the main agent is called to merge the expert response content according to the target request category and business instance identifier. Expert response content corresponding to the same business instance and with the same processing conclusion is merged and retained as one copy. Expert response content with different processing conclusions is retained and the corresponding target request category is recorded to obtain the content to be output. Based on the processing objective obtained from parsing the user request, the content to be output is organized into at least one of a text response, a business call instruction, and a task processing result to obtain the response result.
[0012] Secondly, this application provides a government multi-agent collaborative response system based on dual extraction and classification guidance, employing the following technical solution: A collaborative response system for government affairs based on dual extraction and classification guidance, comprising: The user request acquisition module is used to receive user requests input by the target user and acquire multi-source data corresponding to the target user; The user data extraction module is used to call the main intelligent agent to perform correlation analysis on the multi-source data based on the user request, and extract a subset of target user data related to the user request from the multi-source data; The request classification guidance module is used to perform joint category identification on the user request and the target user data subset based on a pre-built request classification system, and to perform category feature word matching on the user request to obtain the target request category and target feature words, and to determine at least one target expert agent based on the target request category; The expert knowledge extraction module is used to call each of the target expert intelligent agents and extract target knowledge subsets that match the user request and the target user data subset from the corresponding knowledge base based on the target request category, the target feature words and the target user data subset; The collaborative response generation module is used to generate response results based on the user request, the target user data subset, and each of the target knowledge subsets.
[0013] Thirdly, this application provides an electronic device, the device including a processor and a memory; the memory stores a program, the program being loaded and executed by the processor to implement a government multi-agent collaborative response method based on dual extraction and classification guidance as described in the first aspect.
[0014] Fourthly, this application provides a computer-readable storage medium storing a program that, when executed by a processor, is used to implement a government multi-agent collaborative response method based on dual extraction and classification guidance as described in the first aspect.
[0015] By introducing a dual extraction and request classification guidance mechanism in the multi-agent collaborative response process of government affairs, user request processing, user data filtering, request category identification, expert agent determination, and expert knowledge extraction are established as a continuous and interconnected process: First, the main agent extracts a subset of target user data related to the current request from the multi-source data corresponding to the target user based on the user request, so that the data involved in category identification is concentrated on the actual user situation corresponding to the current request; then, based on the pre-constructed request classification system, joint category identification is performed on the user request and the target user data subset, and the target request category and target feature words are obtained by combining category feature word matching. This makes the determination of the request category no longer solely dependent on the keywords, semantic expressions, or real-time judgment of the user request itself, but simultaneously constrained by the unified classification system, the user data related to the current request, and the category feature information. This reduces the interference of abbreviations, colloquial descriptions, incomplete expressions, and similar business expressions on category judgment, making it easier for similar requests to be classified into the corresponding request category according to consistent classification criteria, and thereby determining at least one target expert corresponding to the target request category. The system employs a multi-tiered intelligent agent approach, thereby reducing the discrepancy between the selected expert agent's scope and the actual request category. Furthermore, instead of directly retrieving knowledge from the complete knowledge base, each target expert agent extracts a subset of target knowledge from its own knowledge base based on the determined target request category, target feature words, and the target user data subset extracted in the first extraction. This allows the current request-related information obtained from the first user data extraction to participate in the second expert knowledge extraction. Consequently, the selection of expert knowledge is not only related to the request category and request expression but also corresponds to the target user's current relevant data, avoiding inconsistencies in processing criteria caused by the independent extraction of user data and the invocation of expert knowledge. Finally, a response result is generated based on the user request, the target user data subset, and each target knowledge subset. This ensures that the entire process, from request understanding and category determination to expert selection and knowledge invocation, revolves around the same user request and its related user data. This allows for a more unified category determination criterion even when there is overlap in the expression of request categories, and improves the consistency of the main agent in determining the corresponding expert agent and the scope of collaborative processing.
[0016] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, the preferred embodiments of this application are described in detail below with reference to the accompanying drawings. Attached Figure Description
[0017] Figure 1 This is a flowchart illustrating the government multi-agent collaborative response method based on dual extraction and classification guidance in the embodiments of this application.
[0018] Figure 2 This is a schematic diagram of the classification system requested in the embodiments of this application.
[0019] Figure 3 This is a flowchart illustrating step S300 in an embodiment of this application.
[0020] Figure 4 This is a schematic diagram of the overall process of the government multi-agent collaborative response method based on dual extraction and classification guidance in the embodiments of this application.
[0021] Figure 5 This is a structural block diagram of the government multi-agent collaborative response system based on dual extraction and classification guidance in the embodiments of this application.
[0022] Figure 6 This is a block diagram of an electronic device for collaborative response of government multi-agent systems based on dual extraction and classification guidance, as described in this application. Detailed Implementation
[0023] The specific embodiments of this application will be described in further detail below with reference to the accompanying drawings and examples. The following examples are used to illustrate this application, but are not intended to limit the scope of this application.
[0024] Optionally, this application uses the government multi-agent collaborative response method based on dual extraction and classification guidance provided in various embodiments as an example for application in electronic devices. The electronic device is a terminal or server. The terminal can be a computer, tablet computer, etc. This embodiment does not limit the type of electronic device.
[0025] Reference Figure 1 This is a flowchart illustrating a government multi-agent collaborative response method based on dual extraction and classification guidance, provided in one embodiment of this application. The method includes at least the following steps: Step S100: Receive the user request input by the target user and obtain the multi-source data corresponding to the target user.
[0026] In step S100, a user request submitted by the target user through the current interaction entry point is received, and the target user is identified based on the user identifier that has already completed identity verification in the current session. After confirming the target user and the current request, data content associated with the target user is obtained from multiple accessed data sources according to the target user's data access permissions, forming multi-source data corresponding to the target user. The user request is used to represent the service item or processing task that the target user currently expects to complete, and the multi-source data is used to represent the user information, business status, and interaction records that the target user has formed under different data sources.
[0027] First, upon receiving a user request, the system obtains the request content based on the input method corresponding to the current interaction entry point. If the user request is text, the corresponding text is directly retrieved; if the user request is voice, the voice is converted to text using a pre-configured speech-to-text function, and the converted text is used as the current user request; if the user request is triggered by an operation on a business page, the system retrieves the item name, operation type, and supplementary user input bound to the corresponding operation, and combines them according to a preset request format to form the current user request. Thus, requests generated by different interaction methods are all converted into textual request content that the main intelligent agent can process uniformly, without changing the processing intent expressed by the target user's current request.
[0028] Subsequently, the target user is identified based on the user identifier carried in the current session. This user identifier is generated after the target user completes login, authentication, or other platform verification operations, and maintains a correspondence with the target user throughout the current session. When acquiring multi-source data, this user identifier serves as the basis for data association between different data sources. When different data sources use different internal user identifiers, the current user identifier is converted into an internal user identifier that can be recognized by the corresponding data source based on a pre-saved user identifier mapping relationship, thereby locating the data record corresponding to the same target user in each data source. Data for which a user identifier correspondence cannot be established is not included in the current multi-source data.
[0029] After identifying the target user, multi-source data is retrieved based on the data access permissions corresponding to the current user's identifier. Specifically, each data source is pre-configured with a data source identifier, access interface, accessible field range, and corresponding access permissions. Upon receiving a request from the current user, data retrieval requests carrying the corresponding internal user identifier are sent to the data sources whose permissions have been verified, and the data records returned by each data source are received. The multi-source data includes at least two of the following: basic user information data, business processing data, business status data, historical service records, and current interaction data. The specific data source retrieved is determined by the data range already integrated into the platform and the target user's current data access permissions.
[0030] Furthermore, for data records returned by each data source, the corresponding data source identifier, business instance identifier, field identifier, field content, data update time, and current validity status are retained. The data source identifier distinguishes the source of the data; the business instance identifier associates multiple data items generated within the same business process; the field identifier identifies the specific data content; the data update time indicates the time of the most recent change to the data; and the current validity status indicates whether the corresponding data is still in a valid usage state. For data that has been explicitly marked as expired, revoked, or invalid, its original status identifier is retained, but it is not treated as currently valid data.
[0031] After data acquisition, the data structures from different data sources are uniformly organized. Specifically, based on a pre-established field mapping table, data from different sources expressing the same business meaning but with different field names are converted into unified field names, and date / time formats, status codes, and enumeration value representations are standardized. For example, when different data sources use "processing," "in progress," or code values to represent the same business processing status, they are converted into unified standard status values according to the field mapping table, while retaining the original field values and data source identifiers before conversion. Fields with different business meanings are not merged based on similar field names.
[0032] Furthermore, when the same business instance has corresponding data in different data sources, the correspondence between the data is retained based on the business instance identifier or the established data association identifier, instead of directly merging the data from multiple sources into a single field content. When the same field has different field values in multiple data sources, each field value, corresponding data source, and data update time are saved separately, so that multi-source data can reflect the actual record status under different data sources, without judging or selecting different field values in step S100.
[0033] The resulting multi-source data uses the target user identifier as the user-level association identifier, the data source identifier to distinguish different data sources, and the business instance identifier to organize related fields under the same business instance. Each data item has a clear data source, field meaning, business affiliation, update time, and valid status, enabling the main intelligent agent to identify the range of data actually needed by the current user request while maintaining the original data relationships.
[0034] For example, a target user might enter a request through the service platform stating the current stage of their food business license application and what additional materials are needed. After identifying the target user based on the user identifier in the current session, the system retrieves, within the access permissions, the target user's basic information, business entity data, food business license application data, and current interaction data. The business entity data includes the entity name, entity type, and current registration status; the food business license application data includes application records, processing milestones, material review records, and corresponding update times; and the current interaction data includes the current session identifier and the user's request content. Subsequently, the data returned from each data source is organized according to a unified field format, retaining the corresponding data source identifier and business instance identifier, forming multi-source data for the target user.
[0035] Step S200: Invoke the main intelligent agent to perform correlation analysis on the multi-source data based on the user request, and extract a subset of target user data related to the user request from the multi-source data.
[0036] In step S200, the main intelligent agent is invoked to parse the current user request. First, the actual business object involved in the request and the business content to be processed are determined. Then, the parsing results are used to limit the business instances and data fields related to the current request from the multi-source data obtained in step S100. If the user request can uniquely identify a specific business instance, relevant data is directly extracted around that business instance. If the user request cannot uniquely identify a specific business instance, instead of forcibly selecting a business instance based on time sequence, business status, or model judgment results, multiple business instances that fit the scope of the current request are retained. The relevant fields in these multiple business instances are compared, duplicate content is merged, and the correspondence between differing field content and each business instance is maintained, thereby forming a subset of the target user data.
[0037] First, the user request is parsed to obtain the request object, processing target, and request limiting conditions. Based on a pre-established correspondence of business terms, the request object is converted into a standard business object name. The request object represents the business matter or object involved in the current request. The processing target represents the specific processing that the target user expects to complete for this business object, including at least one of the following: information query, processing progress query, material query, matter processing, business invocation, or task processing. When a user request contains multiple processing actions, the corresponding processing target is determined for each action, and subsequent processing is performed for each processing target. The request limiting conditions record the business scope restrictions explicitly given by the target user in the current request, including business type, application number, matter number, time range, processing status, or other information that can narrow down the scope of the business instance.
[0038] Specifically, the business terminology mapping is pre-established based on the names of already integrated business items and their actual usage, recording the mapping between standard business object names and their corresponding abbreviations, aliases, and commonly used expressions. After the main agent identifies the business object expression in the user's request, it first checks whether the expression has a corresponding standard business object name; if it does, the corresponding standard business object name is used as the standardized result of the requested object. For example, a food certificate corresponds to a food business license, and an engineering planning certificate corresponds to a construction engineering planning license. If the user only uses a broad expression, and this expression corresponds to multiple specific business objects in the business terminology mapping, the standard business scope it can cover is retained, rather than selecting only one specific business object based on language expression at the current stage.
[0039] Meanwhile, the main intelligent agent determines the processing target based on the processing actions expressed in the user's request. For example, if the user asks for the current status, the corresponding action is a progress query; if the user asks for missing materials, the corresponding action is a materials query; if the user requests assistance with this matter, the corresponding action is to process the matter. Request constraints are extracted only from content explicitly stated in the user's request, such as application number A1023, submission this month, and still being processed. Information such as numbers, times, or statuses not explicitly stated by the user are not supplemented with inferences. Therefore, subsequent business instance selection is based solely on the information actually provided by the user.
[0040] After obtaining the standard business object name, the corresponding business object identifier is determined from the data directory corresponding to the multi-source data based on the standard business object name. Business instances carrying the business object identifier are then read from the multi-source data, and the read business instances are filtered according to the request constraints. The data directory here uses the data structure information formed by the data sources in step S100, and at least records the standard business object name, business object identifier, business instance identifier, field identifier, field type, and field relationships. A pre-established correspondence is established between the standard business object name and the business object identifier. When a broad standard business object name covers multiple specific business objects, the data directory retains the correspondence between the standard business object name and the multiple business object identifiers.
[0041] Furthermore, each independent application, processing, verification, or business processing record corresponds to a business instance identifier, and all data generated by the same business instance carries the same business instance identifier. When reading a business instance, the scope of business instances that the current request may involve is first determined based on the business object identifier, and then the scope is narrowed down based on the request's limiting conditions. For example, if the request explicitly includes an application number, only business instances with that application number are retained; if the request explicitly includes a time range, only business instances whose application time, creation time, or business occurrence time falls within that time range are retained; if the request explicitly includes a processing status, then business instances with the corresponding status are retained.
[0042] It should be noted that when the request constraints are insufficient to uniquely identify a single business instance, no additional rules such as prioritizing the latest record, pending records, or the record with the highest similarity are set in step S200 to force the identification of a single business instance. In this case, multiple business instances that still meet the current user request after filtering by the request constraints are retained. This approach avoids premature business judgments that cannot be supported by the user request during the first data extraction when the user's expression itself is ambiguous.
[0043] After identifying the business instances that need to be retained, the directly relevant fields corresponding to the processing objectives are read from each of the filtered business instances based on the pre-established correspondence between processing objectives and field types. The correspondence between processing objectives and field types is pre-configured according to the actual data structure of each business matter. For example, processing progress queries correspond to field types such as current processing node, node status, and processing result; material queries correspond to field types such as material name, material review status, material submission status, and review comments; and matter processing corresponds to current processing status, pending nodes, and the data fields required by the current node. Through this correspondence, the types of data to be read are first limited by the processing objectives, rather than directly using all fields of the entire business instance as target user data.
[0044] Subsequently, based on the field relationships corresponding to each directly related field, the associated fields within the same business instance are read. These field relationships are pre-determined based on existing record numbers, field combinations, or relationships between data tables within the business data, ensuring that directly related fields retain their complete business meaning. For example, when reading the material review status, the corresponding material name and review comments are also read; when reading the current processing node, the node update time is also read; when reading a processing result, the corresponding application number or item number is also read. The scope of reading associated fields is limited to the currently retained business instances, and new associated fields are not used to extend to other unrelated business data.
[0045] If only one business instance exists after filtering, the directly related and associated fields from that business instance are directly retained. If multiple business instances exist after filtering, the directly related and associated fields in each business instance are compared separately according to the field identifier. During the comparison, only data with the same field identifier are compared; fields with different business meanings are not merged.
[0046] For data with identical field identifiers and content, retain one copy of the field content and record the corresponding business instance identifiers. For example, if three business instances all correspond to the applicant entity name "Company A," do not save three copies of "Company A." Instead, retain one copy of the applicant entity name and field content, and simultaneously record the three business instances corresponding to that field content. This reduces the duplication of identical information among multiple business instances while still allowing identification of which business instances the field content originally belonged to, preventing the merging process from disrupting business ownership relationships.
[0047] Conversely, for data with the same field identifier but different field content, the field content is not overwritten or merged; instead, each field content and its corresponding business instance identifier are retained separately. For example, if multiple business instances have a processing status field, and one business instance's field content is "completed" while another's is "materials supplemented," then both processing statuses and their corresponding business instance identifiers are saved separately. If a field exists only in some business instances, the actual field content and its corresponding business instance identifier are also retained; field values from other business instances are not used to fill the gaps.
[0048] After completing the above comparisons, a subset of target user data is formed based on the retained directly relevant fields, associated fields, and corresponding business instance identifiers. This subset of target user data is not simply a deletion of fields from the multi-source data; rather, it reorganizes the data within the current request scope: identical information shared by multiple business instances is retained only once, and its business instance affiliation is still recorded; information that differs between multiple business instances is kept separate, ensuring that the actual business differences between different business instances are fully preserved.
[0049] Through this processing, when a user request explicitly points to a specific business instance, the subset of target user data can centrally represent the relevant content of that business instance; even when a user request cannot uniquely point to a specific business instance, potential relevant data will not be lost due to prematurely selecting a single business instance. Simultaneously, a large amount of duplicate main information and basic attributes across multiple business instances will not be repeatedly transmitted, while data that differs in business object type, application number, processing status, processing node, and material status will still maintain its correspondence with the specific business instance. Therefore, the first data extraction both compresses duplicate data related to the current request and retains the actual business content that reflects the differences across multiple business instances.
[0050] For example, if a target user enters "What should I do now regarding my license?", but the current user request doesn't specify the license's name, application number, or processing time, the system identifies the license as part of the license processing scope requested based on business terminology. The "What should I do now?" query is then interpreted as a query for the current business status and processing details. After retrieving relevant business instances under the target user's name based on the business object identifier, three business instances are obtained: Food Business License Application A, Food Business License Application B, and Construction Project Planning Permit Application C. Since the user request doesn't provide specific conditions to uniquely identify a business instance from A, B, and C, instead of directly selecting one based on the latest application time or current processing status, all three business instances are retained.
[0051] Subsequently, based on the current processing objective, directly relevant fields such as license type, applicant entity, processing status, and current processing node are retrieved from the three business instances, along with related fields such as the corresponding application number and node update time. Field comparison reveals that the applicant entity for all three business instances is Company A; therefore, only one application for Company A is retained, and its corresponding business instances A, B, and C are recorded. Food business license applications A and B have the same license type, so only one application for Food Business License is retained, and its corresponding business instances A and B are recorded. Construction project planning permit application C has a different license type, so only the Construction Project Planning Permit is retained, and business instance C is recorded. Regarding the processing status, business instance A is completed, business instance B requires material supplementation, and business instance C is pending acceptance; therefore, the contents of these three fields are retained separately, and the corresponding business instance identifier is recorded for each.
[0052] The final subset of target user data no longer contains three sets of duplicated complete business records. Instead, it retains the common correspondence between Company A and business instances A, B, and C, while separately retaining the data for food business licenses, construction planning licenses, and fields with business differences such as completed, supplementary materials, and pending applications, along with their corresponding business instances. This reduces duplicate data among multiple related business instances without arbitrarily determining specific business instances for the target user, while fully preserving data that reflects the actual differences between different business instances.
[0053] Step S300: Based on the pre-built request classification system, perform joint category identification on user requests and target user data subsets, and perform category feature word matching on user requests to obtain target request categories and target feature words. Determine at least one target expert agent based on the target request category.
[0054] In step S300, before classifying the current user request, a request classification system is pre-constructed based on the actual business division of government service items, historical user requests, and the business scope that each expert agent can handle. This ensures that different types of user requests can be categorized according to unified business boundaries, and that each request category has a corresponding category description, example request, category feature words, and expert agent. (Refer to...) Figure 2 , Figure 2 This is a diagram illustrating the request classification system, which includes multiple request categories. Figure 2 Examples of request categories include enterprise registration, business license application, construction project approval, talent service consultation, and intellectual property consultation. Other request categories are represented in an abbreviated form. Each request category is associated with a corresponding category description, example request, category feature words, and expert agent.
[0055] First, the system obtains a service item catalog, multiple historical user requests, the actual service items corresponding to each historical user request, and the business processing scope of each expert agent. The service item catalog uses item information already configured in the government service platform, recording at least the standard item name, business object, and processing action. The standard item name represents a specific government service item; the business object represents the personnel, entity, project, permit, or other business object handling the corresponding item; and the processing action represents the registration, application, inquiry, verification, approval, modification, or other business processing behavior corresponding to the item. Historical user requests use user requests that have already been processed by the platform, and their actual corresponding service item is determined based on the service item ultimately entered by the request, rather than re-inferring the item based on the textual expression of the historical user request itself.
[0056] Simultaneously, the business processing scope corresponding to each registered expert agent is obtained. The business processing scope is determined based on the actual business capabilities configured for each expert agent, limiting the set of service items that the expert agent can receive and process. For example, a license processing expert agent handles matters related to business licenses and qualifications, while a project approval expert agent handles matters such as project initiation, environmental impact assessment, planning permits, construction permits, and completion acceptance. Therefore, the formation of request categories is based on actual business matters and the existing processing capabilities of the expert agents, rather than on unconstrained clustering of historical user requests through a language model.
[0057] Based on this, according to the business processing scope of each expert agent and the business objects and processing actions corresponding to each service item in the service item catalog, service items whose business objects and processing actions are within the same business processing scope are grouped into the same request category. Specifically, first, service items that can be processed by the same expert agent are determined based on the business processing scope of the expert agent, and then the business objects and processing actions corresponding to these service items are read; service items whose business objects belong to the same business domain and whose processing actions are within the processing scope of that expert agent are grouped into the same request category. In this way, one request category can cover multiple specific service items, instead of requiring each specific service item to establish an independent category.
[0058] For example, while food business license processing, medical device business qualification processing, and special equipment use registration correspond to different specific service items, they all fall under the scope of business license or business qualification related processing, and therefore are categorized under business license processing. Similarly, while project establishment, environmental impact assessment, engineering planning permits, construction permits, and completion acceptance are at different stages of a construction project, they all fall under the scope of construction project approval related processing, and therefore are categorized under construction project approval. This approach avoids creating numerous overly granular request categories based on single service items, while maintaining the relevance of actual business processing for service items within the same request category.
[0059] Subsequently, corresponding category descriptions are generated based on the standard item names, business objects, and processing actions already categorized within each request category. The category description summarizes the business content covered by the corresponding request category. Its content is organized according to the standard item names, business objects, and processing actions of each service item within that request category, rather than directly using a specific service item name to represent the entire category. For example, the category description for the "Business License Processing" category is "Business License and Qualification Processing Related Matters," and the category description for the "Construction Project Approval" category is "Construction Project Approval and Permit Related Matters." After completing the category descriptions, a correspondence is established between each request category and its corresponding expert agent, and the corresponding expert agent identifier is recorded.
[0060] Furthermore, based on the actual service items corresponding to each historical user request, each historical user request is categorized into its corresponding request category, forming a set of example requests for each request category. Since historical user requests already have actual processing results, their category assignment is directly determined by the request category to which the corresponding service item belongs, without re-performing category determination based on the request text. For example, a historical user requesting "How to apply for a food business license" actually corresponds to the food business license application matter, so this historical user request is added to the set of example requests corresponding to the business license application category; a historical user requesting "What procedures are required for project approval" actually corresponds to the project approval matter, so this historical user request is added to the set of example requests corresponding to the project approval category.
[0061] After forming a set of example requests, the terminology of each example request is standardized based on a pre-established correspondence between business terms. This correspondence records the relationships between standard business terms and their corresponding abbreviations, aliases, and common expressions. For example, a food permit is converted to a food business license, an engineering planning permit to a construction engineering planning permit, and an environmental impact assessment to an environmental impact evaluation. For content already expressed using standard business terms, the corresponding standard business terms remain unchanged. Therefore, when different historical users describe the same business content using abbreviations, colloquial expressions, or different written expressions, they can be unified to the same standard business terms.
[0062] Subsequently, standard business terms are extracted from the standardized set of example requests. Specifically, standard business terms that can represent standard item names, business objects, processing actions, and specific business content are extracted from the example requests, while terms used only for connection, inquiry, or general expression that cannot point to specific business content are removed. After obtaining the standard business terms corresponding to each request category, for the first... The first of the request categories Each of the standard business terms is counted, and those containing the first term are statistically analyzed. The number of example requests for each standard business term, divided by the number of the first term. The total number of request categories and example requests in each other request category is used to obtain the first request category. The proportion of standard business terms in the corresponding example request sets for each request category.
[0063] Furthermore, when the first When the following conditions are met, the first standard business term will be... The first standard business term was determined as the [number]. Category feature words corresponding to each request category: ; in, Indicates containing the first Example requests for standard business terms are in the [number]th [section]. The proportion of the example request set corresponding to each request category. Indicates containing the first Example requests for standard business terms are in the [number]th [section]. The proportion of the example request set corresponding to each of the other request categories. Indicates the sequence number of other request categories. This represents a pre-set non-zero positive number. This represents the pre-set threshold for feature word filtering; it changes sequentially between zero and one according to a preset step size. The value of is determined according to the above formula for each request category. The obtained category feature words are used to determine the category of historical user requests. The request category with the most matching category feature words in the historical user requests is taken as the corresponding determination result. The number of determination results that are consistent with the actual request category of the historical user requests is counted. The value corresponding to the largest number of consistent values is selected as the feature word filtering threshold.
[0064] In the above formula, the numerator is squared, rather than directly using... This setting allows the proportion of standard business terms appearing in the current request category to have a non-linear filtering effect: when a standard business term only appears occasionally in a small number of example requests, its squared value further decreases, making it difficult to identify as a category feature term simply because it does not appear in other categories; as the proportion of the standard business term appearing in the current request category increases, its contribution to the formula result increases significantly. This suppresses accidental terms generated by individual historical user requests, ensuring that the category feature terms ultimately retained first have a relatively stable practical usage basis in the corresponding request category.
[0065] At the same time, the denominator did not use the average of the proportions appearing in other request categories, but instead used... This means directly taking the highest occurrence ratio of the standard business term in other request categories. The reason for this setting is that what usually affects category differentiation is not a large number of obviously unrelated request categories, but rather one or a few request categories that use similar business expressions to the current request category. If the average occurrence ratio of other categories were used, a large number of request categories unrelated to the standard business term would lower the average, potentially masking the fact that the term also appears frequently in a similar request category. By using the highest occurrence ratio, as long as another request category uses the same standard business term extensively, the denominator increases accordingly, thus suppressing the term from being used as a category feature word for the current request category.
[0066] Therefore, this formula actually imposes constraints on two conditions simultaneously: firstly, standard business terms need to have a relatively stable occurrence in the current request category; secondly, these standard business terms cannot have a similarly high occurrence rate in other request categories. The former condition is used to exclude low-frequency business terms that occur occasionally, while the latter condition is used to exclude general business terms used by multiple request categories. Together, these two conditions ensure that the final category feature words tend to retain standard business terms that can stably represent the corresponding request category and also possess actual category distinguishing ability.
[0067] For example, assuming the proportion of example requests containing the standard business term "environmental impact assessment" in the project approval category is 0.60, while the maximum proportion of this standard business term in other request categories is 0.05, then taking the smaller positive number, the result on the left side of the formula is close to 0.55. For the standard business term "materials," assuming its proportion of example requests in the project approval category is 0.70, but its maximum proportion in another request category reaches 0.65, then the result on the left side of the formula is only about 0.36. When the feature word selection threshold is set between these two values, "environmental impact assessment" can be retained as a category feature word for the project approval category, while "materials," although frequently appearing in the project approval category, will not be retained as a category feature word for this category because it also appears extensively in other categories.
[0068] Therefore, compared to selecting high-frequency words solely based on word frequency within the current request category, or filtering based on the difference in average word frequency between the current category and all other categories, the above method avoids two situations simultaneously: first, mistaking low-frequency words that occasionally appear but not in other categories as category feature words; and second, mistaking general business terms that are high in the current category but also equally high in similar categories as category feature words. Especially for expressions commonly found across categories in government services, such as licenses, materials, applications, processing, and procedures, this filtering method can reduce the interference of these general terms on category boundaries and retain standard business terms with clearer business orientations, such as food business, medical devices, project approval, environmental impact assessment, and planning permits.
[0069] Finally, the correspondences between each request category and its corresponding category description, example request set, category feature words, and expert agent are associated and stored to obtain the request classification system. Specifically, the request category identifier is used as the basis for associating the content of each item under the same request category, and the corresponding category description, example request set, category feature words, and expert agent identifier are recorded, so that the category description, example request, category feature words, and expert agent information corresponding to the request category can be read in subsequent requests.
[0070] like Figure 2As shown, the request classification system is not limited to the five request categories shown in the figure. Other request categories can also be established based on the actual service items accessed and the business processing scope of the expert agent. Figure 2 The omitted parts are used to represent other request categories not shown one by one. Each unshown request category is still configured with a category description, example request set, category feature words, and corresponding expert agent in the same way. Thus, the request classification system can cover different government service areas while maintaining a unified construction logic, and provide a unified classification basis with clear business boundaries for joint category identification based on user requests and target user data subsets in step S300.
[0071] Reference Figure 3 Step S300 includes at least the following sub-steps: Step S3001: Determine at least one candidate request category based on user requests and request classification system.
[0072] In step S3001, the semantic relationship between user requests and category descriptions and example requests in the request classification system is first used to determine the scope of request categories. Then, category feature words are used to supplement the specific business direction in the user requests, thereby determining at least one candidate request category from the multiple request categories included in the request classification system.
[0073] Specifically, the terminology of user requests is standardized. The standardized user requests and the category descriptions and example requests corresponding to each request category are converted into semantic vectors and cosine similarity is calculated. At the same time, the standard business terms in the user requests are compared with the category feature words corresponding to each request category one by one. Standard business terms with the same content are recorded. At least one candidate request category is determined based on the cosine similarity and the standard business terms with the same content.
[0074] In this process, terminology standardization follows the business terminology correspondence established when constructing the request classification system, converting abbreviations, aliases, and common expressions in user requests into standard business terms. User requests, category descriptions, and example requests are all converted into semantic vectors using the same text vector model to ensure a unified calculation benchmark for each cosine similarity. Category descriptions reflect the overall business scope covered by the corresponding request category, example requests reflect the expression of real user requests under the corresponding category, and category feature words are used to represent the specific business content that has a distinguishing effect on the corresponding category.
[0075] Furthermore, at least one candidate request category is determined based on standard business terms with similar cosine similarity and content, including: Regarding the first For each request category, obtain the cosine similarity between the user request and the corresponding category description, as well as the cosine similarity between the user request and each corresponding example request. Add one to each cosine similarity and divide by two. Then select the cosine similarity with the largest value from the cosine similarities corresponding to each processed example request. Statistics on user requests and the first The number of standard business terms with the same category feature word content corresponding to each request category is determined, and the ratio of this number to the total number of standard business terms in the user request is determined; when the total number of standard business terms in the user request is zero, the ratio is determined to be zero. When the When the request category meets the following conditions, the first request will be... The following request categories were identified as candidate request categories: ; in, Indicates user request and the first The value obtained by adding one to the cosine similarity between the category descriptions corresponding to each request category and dividing by two; Indicates user request and the first The maximum value obtained by adding one to the cosine similarity of each example request corresponding to each request category and then dividing by two; Indicates the relationship between the user request and the first The ratio of the number of standard business terms with the same category feature word content for each request category to the total number of standard business terms in the user request; Indicates the first one obtained in the same way The ratio corresponding to each of the other request categories; Indicates except the first Other request category numbers besides the request category; Represents a pre-set non-zero positive number; This indicates a pre-set category determination threshold.
[0076] In addition, the category determination threshold The threshold is determined using a fixed trial-and-error method. The category determination threshold is changed sequentially between zero and one with a preset step size. At each value, the category of each historical user request whose actual request category has been determined is determined according to the formula described above. For each historical user request, it is determined whether the obtained candidate request category includes the actual request category corresponding to that historical user request, and the number of historical user requests whose candidate request category includes the actual request category at the current category determination threshold is counted. When the number of historical user requests corresponding to multiple category determination thresholds is the same, the number of candidate request categories corresponding to each historical user request at each category determination threshold is further counted, and the category determination threshold with the fewer candidate request categories is selected. The category determination threshold determined in the above manner is used as the final category determination threshold. For example, when the preset step size is 0.01, calculations are performed sequentially using 0.01, 0.02, and up to 0.99 to determine the final category determination threshold.
[0077] When at least one request category meets the above conditions, all request categories that meet the conditions are determined as candidate request categories; when no request category meets the above conditions, the calculation results on the left side of the above formula corresponding to each request category are compared, and the request category with the largest value is determined as the candidate request category.
[0078] The above formula first adopts In essence, the method selects the result that is closest to the current user request from two semantic references: the category description and the real-world example request. When the user request uses a standard business expression, the category description usually forms a clear semantic correspondence; when the user request uses abbreviations, colloquialisms, or shorter expressions, a specific real-world example request may have a higher degree of similarity. Therefore, using the larger of the two values can balance the standard expression and the real-world user expression without requiring both to reach a high degree of similarity simultaneously.
[0079] At the same time, the formula The scope of influence of category feature words is defined. When a user request and a category description or example request already have a high degree of similarity, this value decreases accordingly, and category feature words only provide limited supplementation. When the overall semantic relationship is not yet clear, this value increases, and category feature words with specific business implications in the user request play a more significant distinguishing role. Therefore, a fixed weight is not used between semantic relationship and category feature words; instead, the supplementary space of category feature words is determined by the semantic clarity of the current user request itself.
[0080] Furthermore, in the formula Simultaneously, the correspondence between the current request category and other request categories and standard business terms in the user request is examined. The numerator ensures that request categories with only a few category feature words are unlikely to receive excessively high supplementary results due to low matching degrees in other categories; the denominator uses the maximum ratio among other request categories, limiting the supplementary results obtained by the current category from category feature words when the user request clearly points to another request category. Therefore, terms with clear business orientations, such as food business, medical devices, and environmental impact assessment, can enhance the judgment basis for the corresponding category, while terms that easily appear in multiple categories, such as licenses, materials, and processing, are difficult to determine the candidate request category independently. Thus, the above formula forms a processing relationship where the overall semantics first determine the basic scope, category feature words supplement the unclear parts, and other categories limit the influence of shared business expressions. This avoids the problems of repetitive enhancement or excessive influence of cross-category general terms on the classification results when directly superimposing semantic similarity and feature word matching results with fixed weights.
[0081] Step S3002: Filter multiple candidate request categories based on a subset of target user data.
[0082] In step S3002, a subset of target user data is introduced for further differentiation only when multiple candidate request categories are obtained in step S3001. The target user data subset has already undergone cross-business instance duplicate information compression and retained business-specific differences in step S200. Therefore, this step directly utilizes these differences to narrow down the range of candidate request categories without rereading all multi-source data corresponding to the target user.
[0083] Specifically, when there is only one candidate request category, that candidate request category is retained; when there are multiple candidate request categories, if the target user data subset corresponds to multiple business instances, the field content that does not simultaneously correspond to all business instances is read; if the target user data subset corresponds to only one business instance, the directly related field content in that business instance is read, the read field content is converted into standard business terms, and compared one by one with the category feature words corresponding to each candidate request category, and candidate request categories with the same category feature words are retained; when there are no same category feature words, each candidate request category is retained.
[0084] When a subset of target user data corresponds to multiple business instances, the fields corresponding to all business instances reflect information common to all instances and are not used for further category differentiation. For example, if the same applicant name is associated with both a food business license application and a construction project planning permit application, the applicant name itself cannot reflect which request category the current request actually points to. Conversely, fields such as food business licenses, construction project planning permits, and environmental impact assessments, which only correspond to a subset of business instances, can reflect the actual differences between the business instances and are therefore used for comparison with the category feature words of each candidate request category.
[0085] When the standard business terms obtained from the conversion of the business difference field are the same as the category feature words of a candidate request category, the candidate request category is retained; when no business difference field can further distinguish the category, the original candidate request category remains unchanged, and a single category result is not forced using the target user's existing business records. This ensures that the target user data only participates in category identification when there is category ambiguity in the user request itself, and allows the business difference information retained in step S200 to be directly used to eliminate that category ambiguity.
[0086] Step S3003: Determine the target request category, target feature words, and target expert agent.
[0087] In step S3003, the final business processing scope is determined based on the retention results obtained in steps S3001 and S3002, and the target feature words required for expert knowledge extraction and the target expert agents actually participating in the current request processing are further obtained.
[0088] Specifically, the retained candidate request categories are determined as target request categories, and the standard business terms in the user requests that have the same content as the category feature terms corresponding to the target request categories are determined as target feature terms. For target request categories that do not have the same content as standard business terms, the user requests and the category feature terms corresponding to the target request category are converted into semantic vectors and cosine similarity is calculated. The category feature term with the highest cosine similarity is determined as the corresponding target feature term. The expert agent identifiers associated with each target request category are read, and the corresponding target expert agent is selected based on the expert agent identifiers.
[0089] Specifically, when a user request already contains corresponding category feature words, the standard business terms in the user request are directly used as target feature words to maintain consistency between the target feature words and the actual expression of the current user. When a user request does not directly contain corresponding category feature words, the cosine similarity between the user request and each category feature word is calculated only within the already determined target request category, and the category feature word with the highest similarity is selected to obtain a clear target feature word, without expanding to other request categories.
[0090] Finally, based on the target request category, the expert agent identifiers associated with the request classification system are read, and then the corresponding agent is selected from the registered expert agents according to the expert agent identifiers. When there is only one target request category, one target expert agent is determined; when multiple target request categories are still retained, the expert agent identifiers associated with each target request category are read and multiple target expert agents are determined, so that the current request maintains the necessary multi-agent collaborative processing range when there is still reasonable overlap in category information.
[0091] Step S400: Invoke each target expert agent and, based on the target request category, target feature words, and target user data subset, extract the target knowledge subset that matches the user request and the target user data subset from the corresponding knowledge base.
[0092] In step S400, for each target expert agent determined in step S300, the knowledge scope in the corresponding knowledge base is first limited using the target request category, the processing target parsed in step S200, and the target feature words. Then, the actual applicable conditions recorded in the knowledge entries are checked against business instances using a subset of target user data, thereby determining the knowledge content that is truly applicable to the current business situation of the target user. For the same knowledge applicable to multiple business instances, only one copy of the knowledge content is retained and the corresponding business instance identifier is recorded. This ensures that the second knowledge extraction is not only limited by the user request but also continues to utilize the field content and business instance relationships formed by the first user data extraction.
[0093] First, acquire the knowledge entries in the knowledge base corresponding to each target expert agent. Each knowledge entry records the corresponding request category, processing target, standard business terms, and knowledge content. Among them, knowledge entries with limited applicable conditions also record at least one set of applicable rules consisting of condition field identifiers, comparison relations, and condition values.
[0094] Each target expert agent corresponds to a knowledge base adapted to its own business processing scope. Knowledge entries in the knowledge base are organized according to their independent usability for business processing. Request categories record the business scope to which the knowledge entry belongs; processing targets record the information queries, processing progress queries, material queries, matter handling, business invocations, task processing, or other specific processing behaviors to which the knowledge content applies; and standard business terms record the specific business objects or matters involved in the knowledge content. The knowledge content records policies, rules, processing requirements, material requirements, business guidelines, or other business knowledge that can be used by the expert agent to generate processing results.
[0095] Furthermore, the applicable rules are used to record the actual business conditions that user business data must meet when a certain knowledge content is established. A set of applicable rules consists of condition field identifiers, comparison relationships, and condition values. The condition field identifiers are consistent with the field identifiers used in steps S100 and S200 for user business data, and are used to determine the specific fields that need to be read from the target user data subset. The comparison relationship specifies the judgment method between the read field content and the condition value, including equality, inequality, inclusion, belonging to a preset range, or satisfying a preset order relationship. The condition value represents the applicable value or applicable value range of the corresponding knowledge content as specified in the actual business rules. It is recorded synchronously when the knowledge entry is established, based on the specific requirements for the corresponding condition field in the policy rules, processing rules, or business rules corresponding to the knowledge content. For example, if a business rule stipulates that a certain material requirement applies to applications with a business scope of catering services, then the business scope is the field corresponding to the condition field identifier, the comparison relationship is equality, and catering services is the condition value; if a business rule stipulates that the establishment time of the applicant entity should be earlier than a specified date, then the specified date is the corresponding condition value; if a business rule stipulates that the registered capital is within a certain numerical range, then that numerical range is the corresponding condition value. Therefore, the condition values are not generated temporarily based on the current user data, but rather originate from the actual applicable requirements corresponding to the knowledge content itself, and are used to verify the actual field content in the target user data subset during knowledge extraction.
[0096] For example, if a certain material requirement only applies to a business instance whose business scope is catering services and whose current processing status is "material supplementation," then the condition field identifier, equality relation, and condition value for the business scope, as well as the condition field identifier, equality relation, and condition value for the processing status, are recorded respectively. During knowledge extraction in step S400, the business scope and processing status fields of the corresponding business instance are read from the target user data subset and compared with those for catering services and material supplementation, respectively, to determine whether the knowledge content is applicable to the corresponding business instance.
[0097] After obtaining the knowledge entries, candidate knowledge entries are obtained by reading the knowledge entries that have the same request category as the target request category, the same processing target as the processing target obtained by parsing the user request, and contain at least one target feature word in the standard business terms.
[0098] Specifically, the scope of business in the target expert agent's knowledge base is first limited according to the target request category. For example, if the target request category is business license processing, knowledge entries belonging to enterprise establishment registration or other request categories in the knowledge base are not read. Subsequently, the processing target obtained when parsing the user request in step S200 is used to further narrow down the knowledge scope. For example, if the processing target is material query, knowledge entries describing material requirements, material supplementation, or material review processing are retained, while knowledge that differs from the current processing target, such as fee rules and change rules in the same business category, is not included. Finally, the standard business terms recorded in each knowledge entry are read, and it is checked whether they contain at least one target feature word obtained in step S300, in order to further limit the specific business object.
[0099] Through the above processing, the results obtained in steps S200 and S300 directly become the entry conditions for the second knowledge extraction, instead of the target expert agent performing an unconstrained knowledge retrieval on the complete user request again. The target request category limits the business scope to which the knowledge belongs, the processing target limits the type of knowledge that needs to be obtained, and the target feature words further limit the specific business content. The three together yield candidate knowledge entries.
[0100] Subsequently, for each candidate knowledge item, based on the condition field identifier in each applicable rule, the field content with the same field identifier is read from the target user data subset, and the read field content is distinguished according to the business instance identifier. The field content in the same business instance is compared with the corresponding condition value according to the corresponding comparison relationship.
[0101] Specifically, when a candidate knowledge entry records multiple sets of applicable rules, the condition field identifier in the first set of applicable rules is read first. Then, data with the same field identifier is searched from the target user data subset, and the business instance to which the field content belongs is determined according to the business instance identifier retained in step S200. The corresponding field content of the remaining sets of applicable rules is read in the same way. After the field reading is completed, the field content is organized by business instance, so that multiple fields belonging to the same business instance can participate in the application judgment of the knowledge entry.
[0102] For example, if a candidate knowledge entry record has three applicable rules: subject type equal to "enterprise," business item equal to "catering services," and processing status equal to "material correction," then the subject type, business item, and processing status fields in the target user data subset are read respectively. First, the three fields are assigned to the corresponding business instances according to the business instance identifier, and then equality comparisons are performed separately. Only when the contents of all three fields in the same business instance meet the corresponding condition values is the business instance considered to satisfy all applicable rules for that candidate knowledge entry record.
[0103] Furthermore, candidate knowledge entries for which no applicable rules are recorded are retained. For candidate knowledge entries for which applicable rules are recorded, the corresponding candidate knowledge entry is retained when the field content in at least one business instance simultaneously satisfies each applicable rule, and the business instance identifier that satisfies each applicable rule is recorded.
[0104] In this context, "no applicable rules recorded" indicates that the corresponding knowledge content does not have applicable conditions that require further clarification based on the specific business status of the target user. Therefore, it is directly retained if the restrictions on request category, processing target, and target keyword are already met. For knowledge entries with applicable rules, at least one business instance must fully satisfy all applicable rules recorded for that knowledge entry. Concatenating fields from different business instances that satisfy different applicable rules is not acceptable as a way to satisfy the conditions.
[0105] This business instance-by-business-instance judgment is directly related to the data extraction method formed in step S200. When step S200 finds the same field content among multiple business instances, it merges and saves them, and records the corresponding business instance identifier; for different field content, it maintains the correspondence between each field value and the business instance. Therefore, step S400 can reduce duplicate user data, accurately restore which business instance each field actually belongs to based on the business instance identifier, and complete the knowledge applicability condition judgment within the same business instance.
[0106] After completing the judgment of applicable rules, when the same candidate knowledge item corresponds to multiple business instances that meet each applicable rule, a copy of the corresponding knowledge content is retained and the identifier of each business instance is recorded. Based on the retained knowledge content and the corresponding business instance identifier, a subset of target knowledge corresponding to each target expert agent is formed.
[0107] In other words, when the same knowledge content applies to multiple business instances simultaneously, the same knowledge is not repeatedly saved due to the existence of multiple business instances. Instead, an association is formed between one set of knowledge content and multiple business instance identifiers. When a piece of knowledge only applies to some of the business instances, only the identifiers of the business instances that meet the applicable rules are recorded. Thus, the target knowledge subset includes both the knowledge content that the target expert agent currently needs to use and information on which user business instances each piece of knowledge content is specifically applicable to.
[0108] For example, the target user inputs what materials are still missing for their food business license. Step S200 parses the processing target as a material query and retains two relevant business instances, Food Business License Application A and Food Business License Application B, from the target user data; Step S300 further determines the target request category as business license processing, the target feature words include food business, and identifies the license processing expert agent as the target expert agent.
[0109] In the knowledge base corresponding to the expert agent for license processing, first read the knowledge entries whose request category is "business license processing," whose processing target is "material query," and whose standard business terms include "food business." Assume that one of the knowledge entries records three sets of applicable rules: subject type equals "enterprise," business item equals "catering service," and processing status equals "material supplementation." In the target user data subset formed in step S200, business instance A records a subject type of "enterprise," a business item of "catering service," and a processing status of "completed"; business instance B records a subject type of "individual business owner," a business item of "catering service," and a processing status of "material supplementation."
[0110] If we ignore the business instance relationships and directly aggregate the target user data, we can simultaneously find the content of the three fields: enterprise, catering service, and material correction. It is easy to mistakenly identify this knowledge as applicable to the target user. However, after comparing them according to the business instance identifiers, business instance A does not meet the requirement that the processing status is equal to material correction, and business instance B does not meet the requirement that the subject type is equal to enterprise. Therefore, neither business instance simultaneously meets all three sets of applicable rules, and this knowledge item is not included in the target knowledge subset.
[0111] Further assuming another knowledge item requires that the business item equals catering services and the processing status equals material correction, then business instance B simultaneously satisfies both sets of conditions. This knowledge content is retained and recorded as business instance B. If there is also a general material description for which applicable rules have not been recorded, it is directly retained after satisfying the restrictions on request category, processing target, and target feature words. The final target knowledge subset contains both general material knowledge and specific material knowledge applicable only to business instance B, while maintaining the correspondence between each knowledge content and the corresponding business instance.
[0112] Therefore, step S400 does not perform a simple knowledge retrieval independently after the first user data extraction, but continues to use the field content and business instance relationships retained in step S200. The first extraction reduces user data irrelevant to the current request while intentionally preserving data attribution and differences between multiple business instances. The second extraction further utilizes these attribution relationships to verify the applicability of knowledge rules for each business instance, avoiding the concatenation of condition fields from different business instances into business states that do not exist in reality. Simultaneously, the same knowledge applicable to multiple business instances is saved and multiple business instance identifiers are recorded, ensuring a correspondence between the user data compression method and the knowledge content organization method. Thus, while reducing duplicate data and duplicate knowledge content, consistency between the user's actual business state and the scope of knowledge application is maintained, ensuring that the extracted target knowledge subset is not only relevant to the user request but also adapted to the target user's current real business situation.
[0113] Step S500: Generate a response result based on the user request, the target user data subset, and each target knowledge subset.
[0114] In step S500, based on the target knowledge subsets obtained in step S400, the corresponding target expert agent is invoked to generate expert response content that matches the current user request and the actual business situation. When the current user request involves multiple target expert agents, the main agent merges the different expert response contents and finally determines the actual output format by combining the processing target obtained in step S200, thereby obtaining the response result.
[0115] Specifically, the user request, the target user data subset, and each target knowledge subset are input into the corresponding target expert agent. Each target expert agent generates expert response content based on the correspondence between the knowledge content in the corresponding target knowledge subset and the business instance identifier, combined with the field content of the corresponding business instance in the target user data subset.
[0116] Each expert agent receives only a subset of target knowledge corresponding to its own target request category, and reads the knowledge content and corresponding business instance identifier recorded in the target knowledge subset. When a knowledge content has a business instance identifier, the agent reads the field content belonging to the same business instance from the target user data subset based on the business instance identifier, and then uses the user request, knowledge content, and the field content of the corresponding business instance together as the basis for generating the expert response. For general knowledge content that does not record a business instance identifier, it is used as the general processing basis under the corresponding target request category in the expert response generation.
[0117] In this way, the correspondence between the knowledge content and business instances established in step S400 can be carried over to the response generation stage, preventing the knowledge content corresponding to one business instance from being incorrectly used for another business instance. For example, if a supplementary material requirement in the target knowledge subset only records business instance B, the target expert agent will only generate the corresponding material prompt based on the field content of business instance B, and will not apply the requirement to business instance A at the same time.
[0118] Furthermore, when there is only one target expert agent, the corresponding expert response content is determined as the content to be output; when there are multiple target expert agents, the main agent is called to merge the expert response content according to the target request category and business instance identifier. Expert response content corresponding to the same business instance and with the same processing conclusion is merged and retained as one copy, while expert response content with different processing conclusions is retained and the corresponding target request category is recorded to obtain the content to be output.
[0119] The target request category distinguishes the business domains corresponding to different expert responses, while the business instance identifier distinguishes the actual user business instance targeted by different expert responses. The main agent first matches the expert responses generated by different target expert agents according to the business instance identifier, and then compares the processing conclusions for the same business instance. When multiple expert responses provide the same processing conclusion for the same business instance, only one processing conclusion is retained to avoid duplicate content in the final response; when different expert responses correspond to different business matters, or provide different processing conclusions for the same business instance, the corresponding content is retained separately, and the corresponding target request category is recorded, ensuring that the processing results generated from different business domains maintain a clear source.
[0120] The processing conclusions here refer to the actual processing results derived from the expert responses for the current request. For example, for material inquiry requests, the processing conclusion includes the required supplementary materials, whether the current materials meet the requirements, and the corresponding material processing requirements; for matter handling requests, the processing conclusion includes the processing actions to be performed, the corresponding business matter, and the necessary business parameters; for progress inquiry requests, the processing conclusion includes the current processing node and its corresponding status. Therefore, when merging the processing conclusions, the comparison focuses on the actual results derived by each expert response for the current business issue, rather than simply comparing whether the entire natural language text is completely identical.
[0121] Finally, based on the processing target obtained from parsing the user request, the content to be output is organized into at least one of the following: text response, business call instruction, and task processing result, to obtain the response result.
[0122] Specifically, when the processing target is a task requiring the return of explanatory content to the user, such as policy consultation, application condition inquiry, material inquiry, or progress description, the content to be output is organized into a text response. When the processing target requires calling an already integrated external business interface to perform a query, submission, verification, or processing operation, a business call instruction is formed based on the corresponding business item, business instance identifier, and processing parameters in the content to be output. When the processing target corresponds to a business task consisting of multiple processing actions, the task processing result is formed according to the business relationship of each processing action in the content to be output. For user requests that simultaneously include explanatory feedback and business execution requirements, the response result includes both the corresponding text response and the business call instruction or task processing result.
[0123] For example, a target user inputs what materials are still missing for their food business license application, and if the requirements are met, the application is processed accordingly. Step S200 determines the processing targets corresponding to the material query and the matter handling based on the two processing actions included in the user request, and obtains the target user data corresponding to food business license application B; Step S300 determines the business license handling as the target request category and identifies the corresponding target expert agent; Step S400 performs knowledge item filtering for the processing targets corresponding to the material query and the matter handling, further obtaining the material requirement knowledge and processing rule knowledge that match business instance B.
[0124] In step S500, the user request, the target user data corresponding to business instance B, and the target knowledge subset are input into the corresponding target expert agent. The target expert agent, based on the correspondence between knowledge content and business instance B, matches the submitted material fields in the target user data with the material requirements in the target knowledge subset to form the currently missing material content; simultaneously, based on the processing rule knowledge and the current processing status of business instance B, it forms the corresponding processing content for continuing processing.
[0125] Since the current example involves only one target expert agent, the expert's response is directly identified as the output. Subsequently, based on the processing objective corresponding to the material query, the missing materials and corresponding requirements are organized into a text response; based on the processing objective corresponding to the matter handling, the business instance identifier, matter identifier, and handling action required for continued processing are organized into business invocation instructions. The final response result includes both material descriptions for the target user and business invocation instructions for executing the corresponding business operations.
[0126] Therefore, step S500 does not re-determine the user's business category or re-filter the knowledge content. Instead, it takes the user data, request category, target expert agent, and target knowledge subset already formed in the previous steps, generates an expert response according to the correspondence between knowledge and business instances, and merges multiple expert responses according to business instances and request categories when multiple expert responses exist. This maintains the data and knowledge correspondence formed in the previous two extractions and avoids introducing new irrelevant judgments in the final response stage, ensuring that the generated response is consistent with the user's current request, the actual business instance, and the corresponding knowledge content.
[0127] In summary, combining Figure 4In the collaborative response process of government multi-agent systems, user requests input by target users are received and corresponding multi-source data is obtained. First, the main agent parses the request object, processing target, and request constraints in the user request. Based on standard business objects and business instances, directly related and associated fields are extracted from the multi-source data. Duplicate fields in multiple business instances are merged, and the corresponding business instance identifiers are retained for different fields, forming a subset of target user data related to the current user request. Subsequently, a request classification system is pre-constructed based on the service item catalog, the actual service items corresponding to historical user requests, and the business processing scope of each expert agent. A correspondence between category description, example request set, category feature words, and expert agents is established for each request category. During the response process, the target request category and target characteristics are determined by combining the semantic relationship of the user request, category feature words, and the field content reflecting the differences in business instances in the target user data subset. The system involves identifying at least one target expert agent. Further, each target expert agent first determines candidate knowledge entries from the corresponding knowledge base based on the target request category, processing objective, and target feature words. Then, using the applicable rules composed of condition field identifiers, comparison relationships, and condition values in the candidate knowledge entries, it reads the corresponding fields from the target user data subset and verifies the applicable knowledge conditions within the same business instance according to the business instance identifier. Knowledge content applicable to multiple business instances is merged, saved, and the corresponding business instance identifier is recorded, thus forming the target knowledge subset corresponding to each target expert agent. Finally, each target expert agent generates expert response content according to the correspondence between knowledge content and business instances. When multiple target expert agents exist, the master agent merges the expert response content according to the target request category and business instance identifier, and forms at least one response result among text response, business call instruction, and task processing result based on the processing objective.
[0128] Through the above processing, user requests are first used to filter out information irrelevant to the current processing from multi-source data, while retaining the field differences and their attribution relationships that have practical distinguishing significance between different business instances. This allows the data involved in request category determination to converge from all user history and business information to the data range relevant to the current request. On this basis, the request classification system establishes relatively stable category boundaries through real service items, the actual attribution of historical requests, and the scope of expert business. Furthermore, the overall semantics of the user request, specific category features, and differences in business instances in the target user data are used together for category determination. This ensures that even when abbreviations, colloquial expressions, incomplete information, or similar terms are used for similar business categories, the category range can still be narrowed by combining the user's current actual business situation, thereby improving the correspondence consistency between the request category and the target expert agent. Furthermore, the subset of target user data obtained in the first data extraction does not become irrelevant after expert selection. Instead, it continues to serve as the basis for determining the applicability of knowledge in the second knowledge extraction. This ensures that the scope of knowledge is first constrained by the target request category, processing objective, and target feature words, and then by the actual business data of the target user. Simultaneously, by leveraging the business instance identifiers retained from the first extraction, all applicable conditions of knowledge entries are verified within the same business instance. This prevents the erroneous combination of data from different business instances that partially meet the conditions into non-existent business states, and also avoids applying knowledge content applicable only to one business instance to other business instances. Thus, the two extractions form a sequential processing relationship, allowing the user data screening results to further participate in determining the scope of expert knowledge application. This ensures that the knowledge content, the actual user business instance, and the request processing objective in the final response correspond, thereby improving the consistency and relevance of expert selection, knowledge retrieval, and response generation during multi-agent collaborative response.
[0129] Figure 5 This is a structural block diagram of a government multi-agent collaborative response system based on dual extraction and classification guidance, provided in one embodiment of this application. The system includes at least the following modules: The user request acquisition module is used to receive user requests input by the target user and acquire multi-source data corresponding to the target user. The user data extraction module is used to call the main intelligent agent to perform correlation analysis on multi-source data based on user requests, and extract a subset of target user data related to the user requests from the multi-source data; The request classification guidance module is used to perform joint category identification on user requests and target user data subsets based on a pre-built request classification system, and to perform category feature word matching on user requests to obtain target request categories and target feature words, and to determine at least one target expert agent based on the target request category; The expert knowledge extraction module is used to call on each target expert agent and extract target knowledge subsets that match the user request and the target user data subset from the corresponding knowledge base based on the target request category, target feature words, and target user data subset. The collaborative response generation module is used to generate response results based on user requests, subsets of target user data, and subsets of target knowledge.
[0130] For relevant details, please refer to the above method implementation examples.
[0131] Figure 6 This is a block diagram of an electronic device provided in one embodiment of this application. The device includes at least a processor 601 and a memory 602.
[0132] Processor 601 may include one or more processing cores, such as a quad-core processor or an octa-core processor. Processor 601 may be implemented using at least one hardware form selected from DSP (Digital Signal Processor), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). Processor 601 may also include a main processor and a coprocessor. The main processor, also known as a CPU, performs processing tasks such as user request processing, multi-source data reading, request category recognition, expert agent invocation, knowledge content extraction, and response result generation. The coprocessor undertakes some data preprocessing or parallel computing tasks. In some embodiments, processor 601 may also integrate a GPU (Graphics Processing Unit). In addition to rendering and drawing the displayed content, the GPU can also perform parallel computing tasks such as semantic vector generation and vector similarity calculation. In some embodiments, the processor 601 may further include an AI (Artificial Intelligence) processor, which performs artificial intelligence computational operations such as natural language processing, semantic vector computation, request category recognition, and response content generation involved in the operation of the main intelligent agent and the expert intelligent agent.
[0133] The memory 602 may include one or more computer-readable storage media, which are non-transitory storage media. The memory 602 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the memory 602 is used to store at least one data from the following: a request classification system, business terminology correspondences, expert agent configuration information, a knowledge base corresponding to each expert agent, and a subset of target user data, target request categories, target feature words, and target knowledge subsets formed during method execution. The non-transitory computer-readable storage media in the memory 602 is also used to store at least one instruction, which, when executed by the processor 601, causes the processor 601 to execute the government multi-agent collaborative response method based on dual extraction and classification guidance provided in the method embodiments of this application.
[0134] Optionally, this application also provides a computer-readable storage medium storing a program that is loaded and executed by a processor to implement the government multi-agent collaborative response method based on dual extraction and classification guidance in the above method embodiments.
[0135] Optionally, this application also provides a computer product including a computer-readable storage medium storing a program, which is loaded and executed by a processor to implement the government multi-agent collaborative response method based on dual extraction and classification guidance described in the above method embodiments.
[0136] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0137] The above embodiments merely illustrate several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A collaborative response method for government affairs based on dual extraction and classification guidance, characterized in that, The method includes: Receive user requests input by the target user and obtain multi-source data corresponding to the target user; The main intelligent agent is invoked to perform correlation analysis on the multi-source data based on the user request, and extract a subset of target user data related to the user request from the multi-source data; Based on a pre-built request classification system, joint category identification is performed on the user request and the target user data subset, and category feature word matching is performed on the user request to obtain the target request category and target feature words. At least one target expert agent is determined based on the target request category. Each of the target expert intelligent agents is invoked to extract a target knowledge subset that matches the user request and the target user data subset from the corresponding knowledge base based on the target request category, the target feature words, and the target user data subset; A response result is generated based on the user request, the target user data subset, and each of the target knowledge subsets.
2. The multi-agent collaborative response method for government affairs based on dual extraction and classification guidance as described in claim 1, characterized in that, The calling main intelligent agent performs correlation analysis on the multi-source data based on the user request, and extracts a subset of target user data related to the user request from the multi-source data, including: The user request is parsed to obtain the request object, processing target, and request limiting conditions, and the request object is converted into a standard business object name based on a pre-established business terminology correspondence. Based on the standard business object name, determine the corresponding business object identifier from the data directory corresponding to the multi-source data, and read the business instance carrying the business object identifier from the multi-source data. Filter the read business instances according to the request limiting conditions. Based on the pre-established correspondence between processing targets and field types, the directly related fields corresponding to the processing targets are read from each of the filtered business instances, and the associated fields that are in the same business instance as each of the directly related fields are read based on the field association relationship corresponding to each of the directly related fields. When multiple business instances exist after filtering, the directly related fields and associated fields in each business instance are compared according to the field identifier. For data with the same field identifier and the same field content, one copy of the field content is retained and the corresponding business instance identifier is recorded. For data with the same field identifier and different field content, each field content and the corresponding business instance identifier are retained respectively. The target user data subset is formed based on the retained directly related fields, the associated fields, and the corresponding business instance identifiers.
3. The multi-agent collaborative response method for government affairs based on dual extraction and classification guidance as described in claim 1, characterized in that, The request classification system is pre-constructed in the following manner: Obtain a service item catalog, multiple historical user requests, the actual service items corresponding to each historical user request, and the business processing scope corresponding to each expert agent. Based on the business processing scope corresponding to each expert agent and the business objects and processing actions corresponding to each service item in the service item catalog, service items whose business objects and processing actions are in the same business processing scope are grouped into the same request category. Based on the standard item name, business object and processing action contained in each request category, a corresponding category description is generated, and a correspondence between each request category and the corresponding expert agent is established. Based on the actual service items corresponding to each of the historical user requests, each of the historical user requests is classified into the corresponding request category to form a set of example requests corresponding to each request category. Based on the pre-established business terminology correspondence, the terminology of each of the example requests is standardized. Extract standard business terms from the standardized example request sets, for example... The first of the request categories Each of the standard business terms is identified as containing the first... Example requests for standard business terms are in the [number]th [section]. The proportion of each request category and the corresponding set of example requests for each other request category; When the When the following conditions are met, the first standard business term will be... The first standard business term was determined as the [number]. Category feature words corresponding to each request category: ; in, Indicates containing the first Example requests for standard business terms are in the [number]th [section]. The proportion of the example request set corresponding to each request category. Indicates containing the first Example requests for standard business terms are in the [number]th [section]. The proportion of the example request set corresponding to each of the other request categories. Indicates the sequence number of other request categories. This represents a pre-set non-zero positive number. This indicates the pre-set threshold for filtering feature words; The request classification system is obtained by associating and storing the correspondence between each request category and its corresponding category description, example request set, category feature words and expert agents.
4. The multi-agent collaborative response method for government affairs based on dual extraction and classification guidance as described in claim 3, characterized in that, The method, based on a pre-built request classification system, performs joint category identification on the user request and the target user data subset, and performs category feature word matching on the user request to obtain the target request category and target feature words. Based on the target request category, at least one target expert agent is determined, including: The user request is terminologically standardized. The terminologically standardized user request and the category description and example request corresponding to each request category are converted into semantic vectors and cosine similarity is calculated. At the same time, the standard business words in the user request are compared with the category feature words corresponding to each request category one by one. The standard business words with the same content are recorded. At least one candidate request category is determined based on the cosine similarity and the standard business words with the same content. When only one candidate request category exists, that candidate request category is retained. When multiple candidate request categories exist, if the target user data subset corresponds to multiple business instances, the field content that does not simultaneously correspond to all business instances is read. If the target user data subset corresponds to only one business instance, the directly related field content in that business instance is read, the read field content is converted into standard business terms, and compared one by one with the category feature words corresponding to each candidate request category. Candidate request categories with the same category feature words are retained. When no category feature words with the same content exist, all candidate request categories are retained. The retained candidate request categories are determined as target request categories, and the standard business words in the user requests that have the same content as the category feature words corresponding to the target request categories are determined as target feature words. For target request categories that do not have the same content as standard business words, the user requests and the category feature words corresponding to the target request categories are converted into semantic vectors and cosine similarity is calculated. The category feature word with the largest cosine similarity is determined as the corresponding target feature word. The expert agent identifiers associated with each target request category are read, and the corresponding target expert agent is selected according to the expert agent identifiers.
5. The multi-agent collaborative response method for government affairs based on dual extraction and classification guidance as described in claim 4, characterized in that, The step of determining at least one candidate request category based on the cosine similarity and the standard business terms with the same content includes: Regarding the first For each request category, obtain the cosine similarity between the user request and the corresponding category description, and the cosine similarity between the user request and each corresponding example request. Add one to each cosine similarity and divide by two. Select the cosine similarity with the largest value from the cosine similarities corresponding to each processed example request. Statistics of user requests related to the first The number of standard business terms with the same category feature word content corresponding to each request category is determined, and the ratio of this number to the total number of standard business terms in the user request is determined; when the total number of standard business terms in the user request is zero, the ratio is determined to be zero; When the When the request category meets the following conditions, the first request will be... The following request categories were identified as candidate request categories: ; in, This indicates that the user request is related to the first The value obtained by adding one to the cosine similarity between the category descriptions corresponding to each request category and dividing by two; This indicates that the user request is related to the first The maximum value obtained by adding one to the cosine similarity of each example request corresponding to each request category and then dividing by two; This indicates that the user request is related to the first... The ratio of the number of standard business terms with the same category feature word content for each request category to the total number of standard business terms in the user request; Indicates the first one obtained in the same way The ratio corresponding to each of the other request categories; Indicates except the first Other request category numbers besides the request category; Represents a pre-set non-zero positive number; This indicates a pre-set category determination threshold; When at least one request category meets the above conditions, all request categories that meet the conditions are determined as candidate request categories; when no request category meets the above conditions, the calculation results on the left side of the above formula corresponding to each request category are compared, and the request category with the largest value is determined as the candidate request category.
6. The multi-agent collaborative response method for government affairs based on dual extraction and classification guidance as described in claim 2, characterized in that, The step of invoking each of the target expert agents, based on the target request category, the target feature words, and the target user data subset, extracts a target knowledge subset from the corresponding knowledge base that matches the user request and the target user data subset, including: Obtain knowledge entries from the knowledge base corresponding to each target expert agent. Each knowledge entry records the corresponding request category, processing target, standard business terms, and knowledge content. Among them, knowledge entries with limited applicable conditions also record at least one set of applicable rules consisting of condition field identifiers, comparison relations, and condition values. From each of the knowledge entries, read the knowledge entries whose request category is the same as the target request category, whose processing target is the same as the processing target obtained by parsing the user request, and whose standard business terms contain at least one of the target feature words, to obtain candidate knowledge entries; For each candidate knowledge item, based on the condition field identifier in each applicable rule, the field content with the same field identifier is read from the target user data subset, and the read field content is distinguished according to the business instance identifier. The field content in the same business instance is compared with the corresponding condition value according to the corresponding comparison relationship. Candidate knowledge entries that are not recorded under the applicable rules are retained. For candidate knowledge entries that are recorded under the applicable rules, the corresponding candidate knowledge entry is retained when the field content in at least one business instance simultaneously satisfies the corresponding applicable rules, and the business instance identifier that satisfies the applicable rules is recorded. When the same candidate knowledge entry corresponds to multiple business instances that satisfy each applicable rule, a copy of the corresponding knowledge content is retained and the identifier of each business instance is recorded. Based on the retained knowledge content and the corresponding business instance identifier, a subset of target knowledge corresponding to each target expert agent is formed.
7. The multi-agent collaborative response method for government affairs based on dual extraction and classification guidance as described in claim 6, characterized in that, The step of generating a response result based on the user request, the target user data subset, and each of the target knowledge subsets includes: The user request, the target user data subset, and each target knowledge subset are respectively input into the corresponding target expert agent. Each target expert agent generates expert response content according to the correspondence between the knowledge content and the business instance identifier in the corresponding target knowledge subset, combined with the field content of the corresponding business instance in the target user data subset. When there is only one target expert agent, the corresponding expert response content is determined as the content to be output; when there are multiple target expert agents, the main agent is called to merge the expert response content according to the target request category and business instance identifier. Expert response content corresponding to the same business instance and with the same processing conclusion is merged and retained as one copy. Expert response content with different processing conclusions is retained and the corresponding target request category is recorded to obtain the content to be output. Based on the processing target obtained from parsing the user request, the content to be output is organized into at least one of a text response, a business call instruction, and a task processing result to obtain the response result.
8. A multi-agent collaborative response system for government affairs based on dual extraction and classification guidance, characterized in that, include: The user request acquisition module is used to receive user requests input by the target user and acquire multi-source data corresponding to the target user; The user data extraction module is used to call the main intelligent agent to perform correlation analysis on the multi-source data based on the user request, and extract a subset of target user data related to the user request from the multi-source data; The request classification guidance module is used to perform joint category identification on the user request and the target user data subset based on a pre-built request classification system, and to perform category feature word matching on the user request to obtain the target request category and target feature words, and to determine at least one target expert agent based on the target request category; The expert knowledge extraction module is used to call each of the target expert intelligent agents and extract target knowledge subsets that match the user request and the target user data subset from the corresponding knowledge base based on the target request category, the target feature words and the target user data subset; The collaborative response generation module is used to generate response results based on the user request, the target user data subset, and each of the target knowledge subsets.
9. An electronic device, characterized in that, The device includes a processor and a memory; the memory stores a program, which is loaded and executed by the processor to implement a government multi-agent collaborative response method based on dual extraction and classification guidance as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The storage medium stores a program that, when executed by a processor, is used to implement a government multi-agent collaborative response method based on dual extraction and classification guidance as described in any one of claims 1 to 7.
