Domain dialogue, government affair dialogue, enterprise evaluation and task processing model training method
By constructing a domain knowledge base for regional information classification and training a task processing model for multiple tasks, the problem of insufficient knowledge internalization in specific domains by large models is solved, thereby improving the accuracy and regional adaptability of the response results.
Patent Information
- Application Number
- CN202510660778.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-21
- Publication Date
- 2026-11-24
AI Technical Summary
Large models lack knowledge internalization in specific domains, leading to biased understanding of intent and difficulty in accurately answering questions in specific domains.
By constructing a domain knowledge base, storing domain knowledge based on regional information classification, and utilizing a task processing model trained through multiple tasks, the model's ability to understand specific domain problems is enhanced.
It improves the accuracy of response results and the ability to meet users' actual needs, and solves the problems of insufficient knowledge internalization and regional adaptation of large models in specific fields.
Smart Images

Figure CN123159358A_ABST
Abstract
Description
Technical Field
[0001] The embodiments in this specification relate to the field of artificial intelligence technology, and in particular to methods for training models for domain dialogue, government dialogue, enterprise evaluation, and task processing. Background Technology
[0002] In recent years, large-scale models have made significant progress in the field of natural language processing and have been widely applied to tasks such as intelligent dialogue, text generation, and intent recognition. Due to their powerful language understanding and generation capabilities, large-scale models have been gradually introduced into various vertical fields such as government affairs, healthcare, and finance, providing new technical pathways for intelligent services in different sectors.
[0003] Although large models have strong generalization capabilities, they lack deep internalization of knowledge in specific domains, which can easily lead to biases in understanding intent and make it difficult to accurately answer questions in specific domains, resulting in inaccurate responses. Therefore, there is an urgent need for a domain-specific dialogue solution with high accuracy. Summary of the Invention
[0004] In view of this, embodiments of this specification provide a domain dialogue method. One or more embodiments of this specification also relate to a government dialogue method, an enterprise evaluation method, a task processing model training method, an information processing method based on a task processing model, a task platform, a domain dialogue device, a government dialogue device, an enterprise evaluation device, a task processing model training device, an information processing device based on a task processing model, a computing device, an electronic device, a computer-readable storage medium, and a computer program product, to address the technical deficiencies existing in the prior art.
[0005] According to a first aspect of the embodiments of this specification, a domain dialogue method is provided, comprising:
[0006] The task problem of acquiring the target domain;
[0007] Extract target domain knowledge that matches the task problem from the domain knowledge base. The domain knowledge base includes domain knowledge of the target domain, and the domain knowledge is stored in the domain knowledge base based on the classification of regional information.
[0008] The task problem and target domain knowledge are input into the task processing model to obtain the answer to the task problem. The task processing model is trained on multi-task data based on domain sample data of the target domain. Multi-task training is used to enhance the task processing model's ability to understand the task problem.
[0009] According to a second aspect of the embodiments of this specification, a method for government dialogue is provided, including:
[0010] Obtain information on government affairs issues in the government sector;
[0011] Target government knowledge matching government issues is extracted from the government knowledge base. The government knowledge base includes domain knowledge in the government field, and the domain knowledge is stored in the government knowledge base based on regional information classification.
[0012] The task processing model inputs government affairs questions and target government affairs knowledge to obtain answers to government affairs questions. The task processing model is trained on multi-task data based on domain sample data in the government affairs field. Multi-task training is used to enhance the task processing model's ability to understand government affairs questions.
[0013] According to a third aspect of the embodiments of this specification, a method for evaluating an enterprise is provided, comprising:
[0014] Obtain the target company's corporate information and, based on that information, construct a corporate assessment question.
[0015] Extract target domain knowledge that matches the enterprise's assessment questions from the domain knowledge base. The domain knowledge base includes domain knowledge of the target enterprise's domain. The domain knowledge is classified and stored in the domain knowledge base based on regional information. The target domain knowledge includes at least one of environmental knowledge, social knowledge, and governance knowledge.
[0016] The enterprise assessment problem and target domain knowledge are input into the task processing model to obtain the enterprise development indicators of the target enterprise. The task processing model is trained on multi-task data based on domain sample data of the target enterprise's domain. Multi-task training is used to enhance the task processing model's ability to understand the enterprise assessment problem.
[0017] According to a fourth aspect of the embodiments of this specification, a method for training a task processing model is provided, comprising:
[0018] Obtain domain sample data for the sample domain, which includes sample questions and sample answers to the sample questions;
[0019] Extract sample domain knowledge that matches the sample problem from the sample domain knowledge base. The sample domain knowledge base includes domain knowledge of the sample domain, and the domain knowledge is stored in the sample domain knowledge base based on regional information classification.
[0020] Based on the sample questions, sample answers, and sample domain knowledge, the task processing model is trained through multiple tasks to obtain a trained task processing model. The multi-task training is used to enhance the task processing model's ability to understand the sample questions.
[0021] According to a fifth aspect of the embodiments of this specification, an information processing method based on a task processing model is provided, applied to a task platform, comprising:
[0022] Receive model requests sent by terminal devices;
[0023] Based on the model request, the target task processing model is determined from multiple task processing models, wherein the multiple task processing models are trained based on the task processing model training method.
[0024] According to a sixth aspect of the embodiments of this specification, a task platform is provided, including a request interface and a response unit;
[0025] The request interface is used to receive model requests sent by terminal devices. The model request includes at least one of the following: the domain identifier of the target domain, the domain input data of the target domain, and model specification parameters.
[0026] The response unit is used to determine the target task processing model from multiple task processing models based on the model request, wherein the multiple task processing models are trained based on the task processing model training method.
[0027] According to a seventh aspect of the embodiments of this specification, a domain dialogue device is provided, comprising:
[0028] The first acquisition module is configured to acquire task problems in the target domain;
[0029] The first extraction module is configured to extract target domain knowledge that matches the task problem from the domain knowledge base. The domain knowledge base includes domain knowledge of the target domain, and the domain knowledge is stored in the domain knowledge base based on regional information classification.
[0030] The first input module is configured to input the task problem and target domain knowledge into the task processing model to obtain the answer to the task problem. The task processing model is obtained by multi-task training based on domain sample data of the target domain. Multi-task training is used to enhance the task processing model's ability to understand the task problem.
[0031] According to an eighth aspect of the embodiments of this specification, a government dialogue device is provided, comprising:
[0032] The second acquisition module is configured to acquire government affairs issues in the government affairs field;
[0033] The second extraction module is configured to extract target government knowledge that matches the government issues from the government knowledge base. The government knowledge base includes domain knowledge in the government field, and the domain knowledge is stored in the government knowledge base based on regional information classification.
[0034] The second input module is configured to input government affairs questions and target government affairs knowledge into the task processing model to obtain the answer to the government affairs questions. The task processing model is trained on multi-task data based on domain sample data in the government affairs field. Multi-task training is used to enhance the task processing model's ability to understand government affairs questions.
[0035] According to a ninth aspect of the embodiments of this specification, a business evaluation apparatus is provided, comprising:
[0036] The third acquisition module is configured to acquire the target company's corporate information and, based on that information, construct corporate assessment questions.
[0037] The third extraction module is configured to extract target domain knowledge that matches the enterprise's assessment problem from the domain knowledge base. The domain knowledge base includes domain knowledge of the target enterprise's domain. The domain knowledge is classified and stored in the domain knowledge base based on regional information. The target domain knowledge includes at least one of environmental knowledge, social knowledge, and governance knowledge.
[0038] The third input module is configured to input the enterprise assessment problem and target domain knowledge into the task processing model to obtain the enterprise development indicators of the target enterprise. The task processing model is obtained by multi-task training based on domain sample data of the target enterprise's domain. Multi-task training is used to enhance the task processing model's ability to understand the enterprise assessment problem.
[0039] According to a tenth aspect of the embodiments of this specification, a task processing model training apparatus is provided, comprising:
[0040] The fourth acquisition module is configured to acquire domain sample data of the sample domain, wherein the domain sample data includes sample questions and sample answers to the sample questions;
[0041] The fourth extraction module is configured to extract sample domain knowledge that matches the sample problem from the sample domain knowledge base. The sample domain knowledge base includes domain knowledge of the sample domain, and the domain knowledge is stored in the sample domain knowledge base based on regional information classification.
[0042] The training module is configured to perform multi-task training on the task processing model based on sample questions, sample answers, and sample domain knowledge to obtain a trained task processing model. The multi-task training is used to enhance the task processing model's ability to understand sample questions.
[0043] According to the eleventh aspect of the embodiments of this specification, an information processing apparatus based on a task processing model is provided, applied to a task platform, comprising:
[0044] The receiving module is configured to receive model requests sent by the terminal device;
[0045] The determination module is configured to determine the target task processing model from multiple task processing models based on a model request, wherein the multiple task processing models are trained based on a task processing model training method.
[0046] According to a twelfth aspect of the embodiments of this specification, a computing device is provided, comprising:
[0047] Memory and processor;
[0048] The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions, which, when executed by the processor, implement the steps of the methods provided in the first, second, third, fourth, or fifth aspects described above.
[0049] According to a thirteenth aspect of the embodiments of this specification, an electronic device is provided, comprising:
[0050] The memory and processor are connected via a bus;
[0051] The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions, which, when executed by the processor, implement the steps of the methods provided in the first, second, third, fourth, or fifth aspects described above.
[0052] According to a fourteenth aspect of the embodiments of this specification, a computer-readable storage medium is provided that stores a computer program / instructions that, when executed by a processor, implement the steps of the methods provided in the first, second, third, fourth, or fifth aspects described above.
[0053] According to a fifteenth aspect of the embodiments of this specification, a computer program product is provided, including a computer program / instructions that, when executed by a processor, implement the steps of the methods provided in the first, second, third, fourth, or fifth aspects described above.
[0054] This specification provides a domain dialogue method according to one embodiment, comprising: acquiring a task question in a target domain; extracting target domain knowledge matching the task question from a domain knowledge base, wherein the domain knowledge base includes domain knowledge of the target domain, and the domain knowledge is stored in the domain knowledge base based on regional information classification; inputting the task question and the target domain knowledge into a task processing model to obtain a response to the task question, wherein the task processing model is trained on multi-task data of the target domain, and the multi-task training is used to enhance the task processing model's ability to understand the task question. Since the domain knowledge is stored based on regional information classification, extracting target domain knowledge matching the task question from the target domain knowledge base ensures that the provided information is highly relevant and accurate to the task question in terms of regional information, thereby improving the effectiveness of problem-solving; since the task processing model is trained on multi-tasks, it can better understand and parse the task question, making the response more in line with the user's actual needs, thus improving the accuracy of the response. Attached Figure Description
[0055] Figure 1 This is a flowchart of a domain dialogue method provided in one embodiment of this specification;
[0056] Figure 2 This is an architecture diagram of a domain dialogue system provided in one embodiment of this specification;
[0057] Figure 3 This is a flowchart of a government dialogue method provided in one embodiment of this specification;
[0058] Figure 4 This is a flowchart illustrating a business evaluation method provided in one embodiment of this specification;
[0059] Figure 5 This is a flowchart illustrating a task processing model training method provided in one embodiment of this specification;
[0060] Figure 6 This is a flowchart illustrating an information processing method based on a task processing model, provided in one embodiment of this specification.
[0061] Figure 7 This is a schematic diagram of the structure of a task platform provided in one embodiment of this specification;
[0062] Figure 8 This is a schematic diagram of the structure of a domain dialogue device provided in one embodiment of this specification;
[0063] Figure 9 This is a schematic diagram of the structure of a government dialogue device provided in one embodiment of this specification;
[0064] Figure 10 This is a schematic diagram of the structure of an enterprise evaluation device provided in one embodiment of this specification;
[0065] Figure 11 This is a schematic diagram of the structure of a task processing model training device provided in one embodiment of this specification;
[0066] Figure 12 This is a schematic diagram of the structure of an information processing device based on a task processing model provided in one embodiment of this specification;
[0067] Figure 13 This is a structural block diagram of a computing device provided in one embodiment of this specification;
[0068] Figure 14 This is a structural block diagram of an electronic device provided in one embodiment of this specification. Detailed Implementation
[0069] Many specific details are set forth in the following description to provide a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar extensions without departing from the spirit of this specification. Therefore, this specification is not limited to the specific implementations disclosed below.
[0070] The terminology used in one or more embodiments of this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of the one or more embodiments of this specification. The singular forms “a,” “described,” and “the” used in one or more embodiments of this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items. The term “at least one” in one or more embodiments of this application means “one or more,” and “a plurality of” means “two or more.” The term “comprising” is an open-ended description and should be understood as “including but not limiting,” and may include other content in addition to what has been described.
[0071] It should be understood that although the terms first, second, etc., may be used to describe various information in one or more embodiments of this specification, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first may also be referred to as second without departing from the scope of one or more embodiments of this specification, and similarly, second may also be referred to as first. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to a determination."
[0072] Furthermore, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties. Moreover, the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0073] In one or more embodiments of this specification, a large model refers to a deep learning model with a large number of model parameters, typically containing hundreds of millions, tens of billions, hundreds of billions, trillions, or even tens of trillions of model parameters. A large model can also be called a foundation model. It is pre-trained using large-scale unlabeled corpora to produce a pre-trained model with hundreds of millions of parameters. Such models can adapt to a wide range of downstream tasks and have good generalization ability. Examples include Large Language Models (LLMs) and multi-modal pre-training models.
[0074] In practical applications, large models only require a small number of samples to fine-tune the pre-trained model before they can be applied to different tasks. Large models can be widely used in fields such as Natural Language Processing (NLP) and Computer Vision. Specifically, they can be applied to computer vision tasks such as Visual Question Answering (VQA), Image Captioning (IC), and Image Generation, as well as natural language processing tasks such as text-based sentiment classification, text summarization, and machine translation. The main application scenarios for large models include digital assistants, intelligent robots, search, online education, office software, e-commerce, and intelligent design.
[0075] First, the terms and concepts used in one or more embodiments of this specification will be explained.
[0076] Frequently Asked Questions (FAQ): This is a document or webpage format designed to answer the most common questions a target audience might have about a particular topic, product, service, or process. FAQs typically include a series of questions and answers collected from inquiries by actual users or anticipated questions from potential users.
[0077] Supervised fine-tuning (SFT) is a method of further training a model based on a pre-trained model. In this method, the model is trained on a dataset containing pairs of inputs and desired outputs so that it learns how to generate responses closer to human-level performance. Supervised fine-tuning is often used to adapt a model to task-specific or domain-specific data, thereby improving its performance on those tasks.
[0078] Direct Preference Optimization (DPO) is a technique in the fields of artificial intelligence and machine learning, particularly used for training dialogue models or other types of generative models. DPO aims to train models to understand user preferences using preference-based data.
[0079] ESG stands for Environment (E), Social (S), and Governance (G), representing three key non-financial dimensions for evaluating a company's operational performance. ESG standards measure a company's efforts and achievements in promoting environmental protection, fulfilling social responsibility, and adopting sound corporate governance structures. The environmental aspect focuses on a company's environmental protection measures and their impact on climate change, including but not limited to carbon emissions, energy efficiency, resource management, and pollution prevention. The social aspect involves how a company manages its relationships with employees, customers, suppliers, and the communities in which it operates, including working conditions, employee health and safety, product liability, human rights protection, and community engagement. The governance aspect focuses on the company's management system, including leadership structure, shareholder rights, transparency in information disclosure, business ethics, compliance, and the independence and diversity of the board of directors.
[0080] This specification provides a domain dialogue method, and also relates to a government dialogue method, an enterprise evaluation method, a task processing model training method, an information processing method based on a task processing model, a task platform, a domain dialogue device, a government dialogue device, an enterprise evaluation device, a task processing model training device, an information processing device based on a task processing model, a computing device, an electronic device, a computer-readable storage medium, and a computer program product, which will be described in detail in the following embodiments.
[0081] See Figure 1 , Figure 1 This specification illustrates a flowchart of a domain dialogue method provided in one embodiment, which specifically includes the following steps:
[0082] Step 102: Obtain the task problem in the target domain.
[0083] It's important to clarify that the target domain refers to the professional scope or industry of interest within a specific task, project, or problem context. The target domain can be diverse, such as human resources and social security, financial services, information technology, education, and so on. The task question refers to a problem posed within the target domain that needs to be solved or answered. Task questions can be related to specific operations, function usage, information retrieval, policy consultation, troubleshooting, etc. For example, in a government dialogue task within the human resources and social security domain, task questions could be "How to apply for [specific type of insurance]?" or "How is [specific type of insurance] calculated?" Task questions can be single-turn dialogue data, multi-hop reasoning data, or long thought chain data. As input, the task question drives the domain dialogue system to retrieve relevant information from the domain knowledge base and processes it through a task processing model to generate accurate responses.
[0084] In practical applications, there are various ways to obtain task questions in the target domain, and the specific method chosen depends on the actual situation. This specification does not impose any limitations on these methods in its embodiments. In one possible implementation, this specification may receive task questions in the target domain sent by a user through a client. In another possible implementation, task questions in the target domain may be read from other data acquisition devices or databases.
[0085] Step 104: Extract target domain knowledge that matches the task problem from the domain knowledge base. The domain knowledge base includes domain knowledge of the target domain, and the domain knowledge is classified and stored in the domain knowledge base based on regional information.
[0086] It should be noted that a domain knowledge base is a structured or semi-structured information repository containing professional knowledge, rules, experience, frequently asked questions, and answers within a target domain. This domain knowledge is typically organized and stored according to certain classification methods (such as region, industry, product type, etc.). For example, a domain knowledge base could be an information repository containing professional knowledge, policies and regulations, frequently asked questions, and answers within the human resources and social security field.
[0087] Target domain knowledge refers to a set of knowledge content within the target domain that is highly relevant to the task problem. It is a subset selected from the domain knowledge base based on the content and context of the task problem. Since domain knowledge is stored in the domain knowledge base based on geographical information, target domain knowledge is knowledge corresponding to one or more regions, such as knowledge of a specific district in a city. Methods for extracting target domain knowledge matching the task problem from the domain knowledge base include, but are not limited to, semantic analysis, keyword matching, and classification models. The specific method chosen depends on the actual situation, and this specification does not impose any limitations on these methods. For example, for the task problem of "how to apply for a certain type of insurance," target domain knowledge might include information such as the application conditions, required materials list, and application process for that insurance. Target domain knowledge can provide background support and reference for subsequent task processing models, improving the accuracy and relevance of the model's output.
[0088] Geographic information refers to data related to geographical location, such as city areas, language regions, and cultural customs. Taking the human resources and social security field as an example, different regions may have different project logics, policies and regulations, or user habits. For instance, different countries have different tax policies, and medical service procedures may differ between regions. In a domain knowledge base, domain knowledge can be categorized and managed based on geographic information, making the domain knowledge more aligned with the needs of users in the current geographic location.
[0089] In practical applications, there are multiple ways to extract target domain knowledge matching the task problem from the domain knowledge base. The specific method chosen depends on the actual situation, and this specification does not impose any limitations on these methods. In the first possible implementation, the target domain knowledge matching the task problem can be directly extracted from the domain knowledge base. In the second possible implementation, since task problems may contain common issues such as colloquialisms, ambiguities, and typos, intent understanding can be performed on the task problem to obtain key elements related to the user's intent, such as policy names, objects, preconditions, and city / region. These key elements can then be used to extract target domain knowledge matching the task problem from the domain knowledge base. In the third possible implementation, the task problem can be standardized using these key elements to obtain the target problem, and then target domain knowledge matching the target problem can be extracted from the domain knowledge base.
[0090] Furthermore, if the task problem includes target region information, then partial domain knowledge corresponding to the target region information can be extracted from the domain knowledge base, and target domain knowledge matching the task problem can be extracted from the partial domain knowledge, thus achieving precise matching of knowledge at different region levels.
[0091] In one optional embodiment of this specification, the extraction of target domain knowledge matching the task problem from the domain knowledge base may include the following steps:
[0092] The task problem is standardized to obtain the target problem, which conforms to the processing standards of the target domain.
[0093] Extract target domain knowledge that matches the target problem from the domain knowledge base.
[0094] It should be noted that standardization refers to the process of transforming the task problem into a form that conforms to the specifications and standards of the target domain. Standardization includes, but is not limited to, steps such as intent recognition, terminology conversion, and structured expression. Standardization makes the task problem more precise and facilitates matching with information in the domain knowledge base. The target problem refers to the standardized task problem, whose expression conforms to the processing standards of the target domain and can be directly used to retrieve relevant information from the domain knowledge base.
[0095] In practical applications, there are multiple ways to standardize the task problem to obtain the target problem. The specific method chosen depends on the actual situation, and the embodiments in this specification do not impose any limitations on this. In one possible implementation, the task problem can be processed according to the processing standards of the target domain to obtain the target problem. In another possible implementation, a task processing model can be used to standardize the task problem to obtain the target problem.
[0096] For example, suppose the task question is "What are the policies regarding [specific benefits]?" When standardizing the task question, we can first convert the user's everyday language into professional terminology specific to the target domain. This allows for better matching with content in the domain knowledge base. For instance, the above example could be converted to "What is [specific insurance]?" Next, the converted question is structured according to a certain format or template to ensure it conforms to the processing standards of the target domain. For example, adding necessary qualifiers (such as time, location, etc.) makes the question more specific, resulting in a target question like "In District A of City A, what is [specific insurance]?"
[0097] By applying the solutions in the embodiments of this specification, the task problem is standardized, and the target problem obtained from the standardized process is used to retrieve domain knowledge from the domain knowledge base to obtain target domain knowledge. This not only improves the efficiency of domain dialogue but also ensures that the target domain knowledge provided is highly relevant and accurate to the task problem.
[0098] In one optional embodiment of this specification, the standardization of the task problem described above to obtain the target problem may include the following steps:
[0099] The processing prompts and task questions are input into the task processing model to obtain the target question. The processing prompts are used to guide the task processing model to standardize the processing of the task question based on the processing standards of the target domain.
[0100] It should be noted that processing prompts refer to a set of instructions used to guide the task processing model to understand and process the input task problem according to specific rules or standards. Processing prompts can be structured templates, standardized format requirements, domain terminology mapping rules, etc. For example, a processing prompt could be, "Please convert the following task problem into a question format that conforms to the policy consultation standards of 'City A, District A, XX Guarantee'." The task processing model refers to an intelligent model with natural language understanding capabilities. Here, the task processing model can receive the task problem and processing prompts, and generate a standardized target problem based on the knowledge system and processing standards of the target domain.
[0101] The solution implemented in the embodiments of this specification guides the task processing model to understand the task problem by processing prompts and converts the task problem into a standard format of the target domain, which facilitates subsequent knowledge matching and automated processing. Since the task processing model has natural language understanding capabilities, the generation of the target problem using the task processing model achieves efficient and accurate standardized problem processing.
[0102] In one optional embodiment of this specification, the construction method of the domain knowledge base is described. That is, before extracting the target domain knowledge matching the task problem from the domain knowledge base, the following steps may be included:
[0103] Acquire domain knowledge of the target domain, where the domain knowledge carries geographic information;
[0104] Based on geographical information, domain knowledge is classified to obtain the classified domain knowledge;
[0105] Based on the categorized domain knowledge, construct a domain knowledge base.
[0106] It should be noted that domain knowledge refers to professional knowledge, policies and regulations, operational procedures, FAQs, and other information within the target domain. Domain knowledge not only includes professional content but also specifically indicates applicable geographical area information (i.e., regional information), such as country, province, and city. Methods for acquiring domain knowledge in the target domain include, but are not limited to, receiving data sent by users through a client, or reading data from other data acquisition devices or databases; the specific method is chosen based on the actual situation, and this specification does not impose any limitations on this approach. The categorized domain knowledge is divided into different categories based on the different regional information. The categorized domain knowledge can be multi-level; for example, domain knowledge for City A can be one category, domain knowledge for City B can be another category, and the domain knowledge for City A can be further divided into two categories: domain knowledge for District A of City A and domain knowledge for District B of City A.
[0107] In practical applications, there are various ways to classify domain knowledge based on geographical information. The specific method chosen depends on the actual situation, and the embodiments in this specification do not impose any limitations on this. One possible implementation of this specification involves using a classification model to classify domain knowledge by region, obtaining the classified domain knowledge. Another possible implementation involves classifying domain knowledge based on classification rules and geographical information, obtaining the classified domain knowledge. Before classifying domain knowledge based on geographical information, the domain knowledge can be standardized. Then, the standardized domain knowledge is classified based on the geographical information to obtain the classified domain knowledge.
[0108] Furthermore, there are various ways to construct a domain knowledge base based on the categorized domain knowledge, and the specific method should be chosen according to the actual situation. This specification does not impose any limitations on this approach in the embodiments. One possible implementation of this specification is to standardize the domain knowledge of each category, such as determining the policy name, applicable objects (enterprises / individuals), application conditions (extraction of core elements), processing procedures (step decomposition), supporting documents (associative attachment index), and policy content, and then classify and store the standardized domain knowledge as a domain knowledge document library. Another possible implementation of this specification is to construct a domain knowledge graph based on the categorized domain knowledge.
[0109] By applying the solutions in the embodiments of this specification, and by acquiring domain knowledge carrying regional information and classifying and building databases according to regions, a domain knowledge base with a clear structure, efficient retrieval, and strong regional adaptability can be constructed, which significantly improves the standardization of knowledge management and the accuracy of retrieval response.
[0110] In one optional embodiment of this specification, the domain knowledge base includes a domain knowledge graph; the construction of the domain knowledge base based on the categorized domain knowledge may include the following steps:
[0111] Based on geographical information, determine the hierarchical relationships between the categorized domain knowledge;
[0112] Based on the hierarchical relationship, a domain knowledge graph is constructed, where the domain knowledge graph uses classified domain knowledge as nodes and hierarchical relationships as edges, and the nodes store regional information.
[0113] It's important to note that hierarchical relationships refer to the hierarchical structure between categorized domain knowledge, typically manifested as a geographical or urban regional affiliation from macro to micro levels. For example, municipal policies belong to provincial policies. A domain knowledge graph is a knowledge network organized in a graph structure, where nodes represent categorized domain knowledge, edges represent hierarchical relationships between knowledge, and each node also carries corresponding regional information. Domain knowledge graphs support knowledge visualization, semantic reasoning, precise retrieval, and cross-level access. A domain knowledge graph can be viewed as a hierarchical domain knowledge base, supporting the construction of progressive reasoning paths based on policy levels (e.g., national / provincial / municipal / district) to achieve fine-grained differentiation of municipal and district-level issues.
[0114] For example, for hierarchical domain knowledge, a domain knowledge graph is constructed according to the hierarchical relationship between knowledge. For example, national policies include provincial implementation, provincial implementation includes detailed rules of City A, and detailed rules of City A include supplementary clauses of District B.
[0115] The solution implemented in this specification determines the hierarchical relationship between classified knowledge based on regional information and constructs a domain knowledge graph accordingly. This resolves cross-level conflict issues and enables structured, visualized, and intelligent management of domain knowledge. The nodes and edges in the domain knowledge graph clearly express the ownership and dependency relationships of domain knowledge, improving the efficiency and accuracy of knowledge retrieval. In particular, it demonstrates stronger adaptability and intelligence when dealing with complex issues such as cross-level policy queries and regional difference analysis.
[0116] Step 106: Input the task question and target domain knowledge into the task processing model to obtain the answer to the task question. The task processing model is trained on multi-task data based on domain sample data of the target domain. Multi-task training is used to enhance the task processing model's ability to understand the task question.
[0117] It's important to note that a task processing model is an artificial intelligence-based model capable of understanding task problems and generating corresponding answers or solutions by incorporating knowledge of the target domain. Domain sample data refers to a collection of real or simulated data from the target domain, typically including sample questions and sample answers, and may also include dialogue records, case descriptions, and other dialogue contexts. This data is used to train and optimize the task processing model. Domain sample data helps the task processing model master the language expressions, logical structures, common problems, and coping strategies of the target domain.
[0118] Multi-task training is a machine learning method that involves training multiple related tasks simultaneously within the same model. This allows the model to share common knowledge across different tasks, thereby improving overall performance and generalization ability. For example, in a customer service dialogue system, multiple tasks such as "question classification," "entity recognition," "intent recognition," and "answer generation" can be trained simultaneously.
[0119] The response can include simple answers to questions, the thought process of the task processing model, or knowledge base identifiers for the target domain, such as "according to a certain document in Area A." Furthermore, when the task processing model cannot answer the current task question, it can output service scripts to improve user experience, such as "We cannot answer your question at this time. You can consult the following aspects."
[0120] For example, assuming the task problem is "What materials are needed for a certain insurance in District A?", the task problem is standardized to obtain the target problem "What materials are needed for individual business owners in District A to pay for a certain insurance?". The target domain knowledge matching the target problem is extracted from the domain knowledge base, including the city-level knowledge "Regulations on Participation in Certain Insurance in City A" and the District A knowledge "Detailed Rules for Supplementary Payments by Individual Business Owners in District A". The target problem and target domain knowledge are input into the task processing model, resulting in the answer to the task problem: "According to a certain document in District A, the following are required: ① a copy of the business license, ② certificates, and ③ a supplementary payment application form (see attached template)."
[0121] By applying the solutions in the embodiments of this specification, since domain knowledge is stored based on regional information classification, extracting target domain knowledge that matches the task problem from the domain knowledge base of the target domain can ensure that the provided information is highly relevant and accurate to the task problem in terms of regional information, thereby improving the effectiveness of problem-solving; since the task processing model has been trained through multiple tasks, it can better understand and parse the task problem, making the response results more in line with the user's actual needs and improving the accuracy of the response results.
[0122] Considering the large number of model parameters in the task processing model and the limited computing resources of the client, the domain dialogue method proposed in the embodiments of this specification can be applied to, for example... Figure 2 This illustrates a domain-specific dialogue system, but is not limited to it. See also... Figure 2 , Figure 2 This specification illustrates an architecture diagram of a domain dialogue system provided in one embodiment of the specification. The domain dialogue system may include a client 202 and a server 204.
[0123] Client 202 is used to send task questions in the target domain to server 204;
[0124] Server 204 is used to extract target domain knowledge matching the task question from the domain knowledge base, wherein the domain knowledge base includes domain knowledge of the target domain, and the domain knowledge is stored in the domain knowledge base according to the classification of regional information; input the task question and the target domain knowledge into the task processing model to obtain the answer to the task question, wherein the task processing model is obtained by multi-task training based on domain sample data of the target domain, and multi-task training is used to enhance the task processing model's ability to understand the task question; and send the answer to the task question to client 202.
[0125] Client 202 is also used to receive the response to the task question sent by server 204.
[0126] like Figure 2 As shown, the task processing model is deployed in server 204. Server 204 can connect to one or more clients 202 via a local area network (LAN), wide area network (WAN), internet connection, or other types of data network. Client 202 may include, but is not limited to, smartphones, tablets, laptops, PDAs, personal computers (PCs), smart home devices, and in-vehicle devices. Client 202 can also interact with users through a graphical user interface to invoke the task processing model, thereby implementing the domain dialogue method provided in the embodiments of this specification.
[0127] It is worth noting that the domain dialogue method provided in the embodiments of this specification is generally executed by the server. However, in other embodiments of this specification, if the client's runtime resources can meet the deployment and runtime conditions of the task processing model, the client can also have similar functions to the server, thereby executing the domain dialogue method provided in the embodiments of this specification. In other embodiments, the domain dialogue method provided in the embodiments of this specification can also be executed jointly by the client and the server.
[0128] Taking government dialogue tasks in the field of human resources and social security as an example, the general large-scale model has the following core pain points in this field: Insufficient internalization of domain knowledge: It cannot accurately answer complex questions requiring the connection of multiple policies, such as "how to make up for insufficient basic insurance contribution years." Intent comprehension bias: User questions often use colloquial language. Broken reasoning chains: It cannot complete multi-step problem analysis, such as "from insurance enrollment to subsidy application, and then from subsidy application to income calculation." Insufficient regionality: The same policy has implementation differences at the city / district level, such as differences in insurance standards at the city / district level. To solve the above problems, the embodiments in this specification propose an optimization method to improve the dialogue capabilities of the domain large-scale model. The following, in conjunction with the appendix... Figure 3Taking the application of the domain dialogue method provided in this specification in a government affairs dialogue task scenario in the field of human resources and social security as an example, the domain dialogue method will be further explained. Figure 3 This specification shows a flowchart of a government dialogue method according to an embodiment, which specifically includes the following steps:
[0129] Step 302: Obtain government affairs issues in the government affairs field.
[0130] Step 304: Extract target government knowledge that matches the government issues from the government knowledge base. The government knowledge base includes domain knowledge in the government field, and the domain knowledge is stored in the government knowledge base based on regional information classification.
[0131] Step 306: Input the government affairs question and target government affairs knowledge into the task processing model to obtain the answer to the government affairs question. The task processing model is trained on multi-task based on domain sample data in the government affairs field. Multi-task training is used to enhance the task processing model's ability to understand government affairs questions.
[0132] It should be noted that the explanations of the terms in steps 302 to 306 and the implementation methods of each step can be found in the explanations of similar terms in steps 102 to 106 and the implementation methods of each step. Therefore, the embodiments in this specification will not be described in detail again.
[0133] In practical applications, the government dialogue method proposed in the embodiments of this specification can be used to construct an intelligent dialogue system for human resources and social security. This system provides comprehensive intelligent services, reduces policy implementation costs, and enhances user trust for core scenarios in the human resources and social security field, such as policy consultation, project application guidance, and benefit calculation. It addresses issues such as insufficient knowledge internalization in the human resources and social security field, misunderstandings due to colloquial language, fragmented multi-step reasoning, and regional policy adaptation in general-purpose models, significantly improving service accuracy and efficiency.
[0134] The solution implemented in this specification, since domain knowledge is stored based on regional information classification, can extract target government knowledge that matches government issues from the government knowledge base in the government affairs domain. This ensures that the information provided is highly relevant to and accurate in relation to government issues, thereby improving the effectiveness of problem-solving. Furthermore, since the task processing model has been trained through multiple tasks, it can better understand and analyze government issues, making the response results more aligned with the user's actual needs and improving the accuracy of the response results.
[0135] The following is in conjunction with the appendix Figure 4 Taking the application of the domain dialogue method provided in this specification in an ESG scenario as an example, the domain dialogue method will be further explained. Figure 4 This specification illustrates a flowchart of a business evaluation method provided in one embodiment, which specifically includes the following steps:
[0136] Step 402: Obtain the target company's corporate information and construct corporate assessment questions based on the corporate information.
[0137] Step 404: Extract target domain knowledge that matches the enterprise's assessment problem from the domain knowledge base. The domain knowledge base includes domain knowledge of the target enterprise's domain. The domain knowledge is classified and stored in the domain knowledge base based on regional information. The target domain knowledge includes at least one of environmental knowledge, social knowledge, and governance knowledge.
[0138] Step 406: Input the enterprise assessment problem and target domain knowledge into the task processing model to obtain the enterprise development indicators of the target enterprise. The task processing model is obtained by multi-task training based on domain sample data of the target enterprise's domain. Multi-task training is used to enhance the task processing model's ability to understand the enterprise assessment problem.
[0139] It should be noted that target company information refers to data and information related to the target company, including but not limited to its financial status, operations, market position, legal compliance, and employee structure. Sources for obtaining this information include, but are not limited to, the target company's annual reports, social responsibility reports, official website introductions, and media reports. Company assessment questions refer to a set of questions constructed based on the obtained company information, designed to evaluate the target company's performance in ESG and other aspects. For example, company assessment questions might include, "What is the trend of the company's carbon emissions over the past five years?" or "What percentage of the company's revenue is invested in employee health and safety?"
[0140] Environmental knowledge encompasses relevant regulations, technologies, and methods for environmental protection and their impact on businesses. Social knowledge covers how businesses fulfill their social responsibilities towards their employees, customers, and the communities in which they operate. Governance knowledge covers aspects such as corporate management structure, transparency in decision-making processes, and shareholder protection. Corporate development indicators (CPIs) are results obtained through task-processing model analysis, used to measure a target company's performance and development potential in environmental, social, and governance aspects. Examples of CPIs include carbon footprint reduction rate, employee satisfaction score, and board independence index.
[0141] In practical applications, the explanations of the terms and implementation methods in steps 404 and 406 can be found in the explanations of similar terms and implementation methods in steps 102 to 106, and will not be repeated in this embodiment. There are multiple ways to construct enterprise assessment questions based on enterprise information; the specific method should be chosen according to the actual situation, and this embodiment does not impose any limitations on this. In one possible implementation, enterprise assessment questions can be formulated based on enterprise assessment standards combined with enterprise information. In another possible implementation, the task processing model can generate enterprise assessment questions by constructing prompt information and enterprise information based on the questions.
[0142] By applying the solutions in the embodiments of this specification, since domain knowledge is stored based on regional information classification, extracting target domain knowledge that matches the enterprise assessment problem from the domain knowledge base of the target enterprise's domain can ensure that the provided information is highly relevant and accurate to the enterprise assessment problem, thereby improving the effectiveness of solving the enterprise assessment problem. Since the task processing model has been trained through multiple tasks, it can better understand and analyze the task problem, making the response results more in line with the user's actual needs, improving the accuracy of enterprise development indicators. This not only helps to identify the strengths and weaknesses of the target enterprise, but also provides a scientific basis for formulating strategic plans, promoting the sustainable development of the enterprise.
[0143] Next, the training methods of the task processing models involved in the domain dialogue method, government dialogue method, and enterprise evaluation method proposed in the embodiments of this specification will be explained. See [link to documentation]. Figure 5 , Figure 5 This specification illustrates a flowchart of a task processing model training method according to an embodiment, which specifically includes the following steps:
[0144] Step 502: Obtain domain sample data for the sample domain, which includes sample questions and sample answers to the sample questions.
[0145] It's important to clarify that the sample domain refers to a specific domain used for model training, such as the "human resources and social security domain." Domain sample data refers to real or constructed datasets collected within a specific sample domain, typically including paired "question-answer" data, used to train and validate the task processing model. Sample questions are the question portions extracted from the domain sample data, serving as part of the task processing model's input to train its ability to understand and answer relevant questions. Sample answers are the correct or standard answers corresponding to the sample questions, used to supervise the task processing model's training process, enabling the model to learn the correct output patterns.
[0146] For example, a sample question could be "How does the company ensure the occupational health and safety of its employees?" and a sample answer could be "The company has established an occupational health and safety management system and conducts regular employee physical examinations and safety training."
[0147] In practical applications, there are various ways to obtain domain sample data for a sample domain, and the specific method chosen depends on the actual situation. This specification does not impose any limitations on these methods in its embodiments. One possible implementation of this specification involves structured parsing of policy and regulatory texts, service guides, consultation records, etc., within the sample domain to obtain domain sample data. Another possible implementation of this specification involves receiving domain sample data sent by a user through a client.
[0148] In one optional embodiment of this specification, the sample question includes a first sample question and a second sample question in the sample domain, and the sample answer includes a first sample answer to the first sample question and a second sample answer to the second sample question. The first sample question and the second sample question have a semantic relationship. The second sample question is obtained based on the question generation strategy and the first sample question. The question generation strategy includes at least one of the following: a synonym replacement strategy, a mutually exclusive word replacement strategy, a question angle adjustment strategy, a regional information adjustment strategy, a time information adjustment strategy, and a reasoning link adjustment strategy.
[0149] In one optional embodiment of this specification, obtaining the domain sample data of the sample domain described above may include the following steps:
[0150] Obtain the first sample question and the first sample answer;
[0151] Based on the question generation strategy and the first sample question, generate the second sample question;
[0152] The second sample question is processed to obtain the second sample answer.
[0153] It should be noted that the first sample question refers to a question that already exists or can be directly obtained within the sample domain. The first sample answer refers to the standard answer corresponding to the first sample question. The second sample question refers to a new question generated based on the first sample question using a question generation strategy. The second sample question is semantically related to the first sample question and may be an extension, variation, or expansion of the first sample question. The second sample answer refers to the standard answer corresponding to the second sample question, which can be obtained by reasoning and expanding upon the first sample answer, or by independently solving the second sample question.
[0154] Semantic relevance refers to the logical connection or contextual dependency between two questions in terms of semantic content, which may involve the same topic, similar intent, or a continuous chain of reasoning. For example, the first sample question could be "Does the company monitor carbon emissions?", and the second sample question could be "If so, what emission reduction measures have been adopted?"
[0155] Question generation strategy refers to the method used to generate new second sample questions from existing first sample questions. Question generation strategy includes at least one of the following: synonym replacement, mutually exclusive word replacement, question angle adjustment, regional information adjustment, time information adjustment, and reasoning link adjustment.
[0156] The process of generating a second sample question based on the question generation strategy and the first sample question can be viewed as a process of data augmentation of the first sample question. Data augmentation includes, but is not limited to, domain diversification data augmentation, data augmentation for understanding common public questions, data augmentation for differentiating between city and district-level issues, data augmentation for logical reasoning in complex problems, and general data augmentation. Through data augmentation, domain knowledge can be internalized in the task processing model, allowing the model to directly grasp domain knowledge, reducing reliance on external knowledge bases, and improving the model's ability to understand non-standardized inputs. In the process of data augmentation for understanding common public questions, real user questions can be collected and labeled to simulate common problem formats such as colloquialisms, ambiguities, and typos, thus improving the model's ability to understand non-standardized inputs. In the process of data augmentation for differentiating between city and district-level issues, a dataset of policy differences between city and district levels can be constructed, labeling the detailed policy differences between different urban areas, thus enhancing the model's ability to distinguish regional knowledge.
[0157] The scheme implemented in this specification obtains a first sample question and a first sample answer from the sample domain, and generates a semantically related second sample question and a second sample answer based on the question generation strategy. This effectively expands the diversity and depth of the training data, enabling the task processing model to directly master domain knowledge and reduce its dependence on external knowledge bases. This not only improves the task processing model's ability to understand complex problems, but also enhances its performance in multi-turn dialogues and contextual reasoning.
[0158] In one optional embodiment of this specification, the process of domain-specific data augmentation and complex problem logic reasoning data augmentation is described. That is, the generation of a second sample problem based on the problem generation strategy and the first sample problem may include at least one of the following methods:
[0159] The keywords in the first sample question are replaced with synonyms to obtain the second sample question;
[0160] Replace the keywords in the first sample question with mutually exclusive terms to obtain the second sample question;
[0161] The questioning angle in the first sample question was adjusted to obtain the second sample question;
[0162] Adjust the geographical information in the first sample problem to obtain the second sample problem;
[0163] Adjust the time information in the first sample problem to obtain the second sample problem;
[0164] The reasoning chain in the first sample problem is adjusted to obtain the second sample problem.
[0165] It should be noted that synonym replacement refers to replacing the keywords in the first sample question with their synonyms or similar expressions, while keeping the core intent of the question unchanged. For example, the first sample question is "What is the insurance for food delivery drivers?", and the second sample question is "What is the insurance for new ecosystem practitioners?"
[0166] Mutually exclusive word substitution refers to replacing keywords in the first sample question with words of opposite or contrasting meanings to generate a new question with comparative significance. For example, the first sample question might be "Has the company had any environmental penalties in the past three years?", while the second sample question might be "Has the company not been subject to any environmental violations in the past three years?" Obtaining the second sample question through synonym / mutually exclusive word substitution enhances the task processing model's understanding of question terminology.
[0167] Adjusting the question angle refers to modifying the first sample question from different perspectives. For example, if the first sample question is "What are the eligibility requirements for receiving a certain insurance policy?", the question angle is "eligibility requirements". Adjusting the question angle to "application materials" results in the second sample question "What are the application materials for a certain insurance policy?".
[0168] Geographic information adjustment refers to changing the geographical region involved in the question from a spatial dimension, while retaining the question structure, to adapt to the knowledge training needs of multiple regions. For example, the first sample question is "What is the insurance policy of a certain type in City A?", and the second sample question is "What is the insurance policy of a certain type in City B?".
[0169] Adjusting time information refers to modifying the time points, time periods, or frequencies involved in the problem from a time dimension, so that the model can better understand time-series problems. For example, the first sample problem is "a certain insurance regulation in 2022", and the second sample problem is "a certain insurance regulation in 2023".
[0170] Inference path adjustment refers to transforming the logical structure or reasoning path of a problem, such as adding multi-hop reasoning data (e.g., from enrollment to payment to benefits) or constructing long thought chain data (e.g., mathematical derivation, policy chain analysis). Inference path adjustment can be seen as enhancing the logical reasoning data for complex problems. For example, the first sample problem might be "How to enroll in a certain insurance policy?", while the second sample problem could be "What are the payment and benefits of a certain insurance policy?" By adjusting the inference path, the reasoning ability of the task processing model for complex problems can be comprehensively improved.
[0171] By applying the solutions described in the embodiments of this specification, and through one or a combination of the six methods mentioned above, diverse second sample questions and their answers can be efficiently generated from existing first sample questions, significantly improving the coverage and diversity of training data. This not only enhances the task processing model's ability to understand different expressions, regional differences, time dimensions, and logical reasoning paths, but also helps improve the model's ability to handle complex problems, multi-turn dialogues, and cross-domain transfer in real-world scenarios, enabling the construction of a more intelligent, generalized, and robust dialogue system.
[0172] Step 504: Extract sample domain knowledge that matches the sample problem from the sample domain knowledge base. The sample domain knowledge base includes domain knowledge of the sample domain, and the domain knowledge is stored in the sample domain knowledge base based on regional information classification.
[0173] It should be noted that the sample domain knowledge base refers to a structured knowledge base containing professional knowledge in the sample domain. This domain knowledge is stored and categorized according to geographical information for easy matching and retrieval. For example, the sample domain knowledge base could be a knowledge base about environmental regulations in different regions of the country, organized at the "province-city-district" level. Sample domain knowledge refers to the knowledge content extracted from the sample domain knowledge base that is relevant to the current sample problem. It can provide background support for the task processing model, helping it to generate answers more accurately. For example, for the sample problem "How to determine the environmental compliance of a company in region A," the corresponding sample domain knowledge could be the relevant clauses of the "Ecological and Environmental Protection Regulations of Province A."
[0174] In practical applications, the implementation method of "extracting sample domain knowledge that matches the sample problem from the sample domain knowledge base" can refer to the above implementation method of "extracting target domain knowledge that matches the task problem from the domain knowledge base". The embodiments in this specification will not be described in detail.
[0175] Step 506: Based on the sample questions, sample answers, and sample domain knowledge, perform multi-task training on the task processing model to obtain the trained task processing model. The multi-task training is used to enhance the task processing model's ability to understand the sample questions.
[0176] It should be noted that, based on the sample questions, sample answers, and sample domain knowledge, the methods for multi-task training of the task processing model include, but are not limited to, SFT and DPO. The specific method should be selected according to the actual situation, and the embodiments in this specification do not impose any limitations on this.
[0177] By applying the solutions described in this specification, and by acquiring domain sample data from the sample domain and extracting sample domain knowledge matching the sample questions using a sample domain knowledge base, and then using this data to train the task processing model for multiple tasks, the depth of the task processing model's understanding of the sample questions and the accuracy of its responses can be significantly improved. This training method not only enhances the task processing model's ability to identify industry terms and regional policies, but also improves its reasoning and generalization capabilities when facing complex, cross-regional problems, ultimately achieving more efficient and accurate domain dialogue services.
[0178] In practical applications, there are various ways to train a task processing model using multiple tasks based on sample questions, sample answers, and sample domain knowledge to obtain a fully trained task processing model. The specific method chosen depends on the actual situation, and the embodiments in this specification do not impose any limitations on this. In one possible implementation of this specification, multiple sample tasks can be randomly determined, and the task processing model can be trained using multiple tasks based on the sample questions, sample answers, sample domain knowledge, and the randomly determined sample tasks to obtain a fully trained task processing model.
[0179] In another possible implementation of this specification, before performing multi-task training on the task processing model based on sample questions, sample answers, and sample domain knowledge to obtain the trained task processing model, the following steps may also be included:
[0180] From the candidate sample tasks, multiple sample tasks that match the sample problem are selected. The multiple sample tasks include sample dialogue tasks and sample enhancement tasks. The sample enhancement tasks include at least one of the following: synonym discrimination task, mutually exclusive word discrimination task, key information extraction task, regional knowledge discrimination task, and knowledge reasoning task. The sample enhancement tasks are used to enhance the task processing model's ability to understand the sample problem.
[0181] Based on the sample questions, sample answers, and sample domain knowledge, the task processing model is trained on multiple tasks to obtain a trained task processing model, including the following steps:
[0182] Based on sample questions, sample answers, sample domain knowledge, and multiple sample tasks, the task processing model is trained on multiple tasks to obtain a trained task processing model.
[0183] It should be noted that candidate sample tasks refer to a pre-prepared set of tasks that may be applicable to the current sample problem. These candidate sample tasks contain diverse questions and answer formats, but all belong to the sample domain.
[0184] In practical applications, there are various ways to select multiple sample tasks that match the sample problem from candidate sample tasks. The specific method is chosen based on the actual situation, and this specification does not limit this approach. In one possible implementation, sample keywords in the sample problem can be identified, and tasks containing the same or similar sample keywords can be found among the candidate sample tasks. These tasks are then identified as sample tasks. In another possible implementation, semantic analysis tools can be used to calculate the semantic similarity between the sample problem and the candidate sample tasks, and candidate sample tasks with higher similarity can be selected as sample tasks.
[0185] It's important to note that the multiple sample tasks include not only directly related sample dialogue tasks but also a series of sample augmentation tasks designed to enhance the model's understanding of sample questions. These sample augmentation tasks extend the capabilities of the task processing model in different ways, enabling it to better understand and handle various complex situations. Sample dialogue tasks are tasks directly matched with sample questions, typically containing a question and its corresponding answer, used to train the model's ability to directly answer domain-specific questions. Sample dialogue tasks ensure the basic reasoning ability of the task processing model. Sample augmentation tasks are used to enhance the task processing model's understanding and generalization abilities by providing additional training data or task formats, helping the task processing model learn more complex language structures and logical reasoning.
[0186] The synonym discrimination task is used to train a task processing model to recognize and understand different expressions of keywords in a problem, ensuring that it can correctly understand the core of the problem under different expressions. An example of a synonym discrimination task is "distinguishing between first insurance and basic first insurance".
[0187] The mutual exclusion word discrimination task is used to train a task processing model to distinguish between opposing or mutually exclusive concepts. A typical example of a mutual exclusion word discrimination task is "distinguishing between insurance A and insurance B." Both synonym discrimination and mutual exclusion word discrimination tasks can improve a task processing model's ability to understand easily confused terms.
[0188] The key information extraction task focuses on extracting key information points from text, such as policy names, objects, preconditions, city regions, etc., related to user intent, in order to improve the information extraction capabilities of the task processing model.
[0189] Geographic knowledge discrimination tasks refer to tasks involving geographical location-related knowledge, which can help task processing models understand and process rules, policies, or background information specific to different regions. For example, if the sample problem is "What local environmental protection regulations do companies in City A need to follow?", the geographic knowledge discrimination task would be "Compare the different environmental protection regulations in City A and City B".
[0190] Knowledge reasoning tasks require task processing models to perform logical reasoning based on existing knowledge to derive new conclusions or solutions, thereby enhancing their ability to solve complex problems. Examples of knowledge reasoning tasks include long-thinking-chain data reasoning tasks and multi-hop data reasoning tasks. Long-thinking-chain data reasoning tasks introduce complex reasoning data from mathematics and programming to improve the task processing model's ability to analyze multi-step problems. Multi-hop data reasoning tasks support cross-policy chain training, forming multi-hop reasoning chains to train the task processing model's ability to reason about complex problems.
[0191] In practical applications, composite tasks can be constructed based on multiple sample tasks, such as dialogue corpora with three elements: standard terminology, spoken expression, and incorrect expression, as well as question words, similar words, and mutually exclusive words, to enhance the intent understanding ability of the task processing model.
[0192] The scheme implemented in this specification involves selecting multiple sample tasks that match the sample question from candidate sample tasks, and then training the task processing model using a multi-task approach that combines the sample question, sample answer, and sample domain knowledge. This not only enriches the diversity of training data but also enhances the model's performance in handling complex, cross-task problems, enabling it to respond more accurately to task questions and improving the professionalism and reliability of domain dialogue. Through multi-task comprehensive training of the task processing model's knowledge capabilities, regional capabilities, and reasoning abilities, the model's ability to understand non-standard inputs and reason about complex inputs is improved, thereby creating an efficient, accurate, and intelligent domain dialogue system that significantly enhances user experience and service quality.
[0193] See Figure 6 , Figure 6 This specification illustrates a flowchart of an information processing method based on a task processing model, provided in one embodiment. The method is applied to a task platform and specifically includes the following steps:
[0194] Step 602: Receive the model request sent by the terminal device.
[0195] Step 604: Based on the model request, determine the target task processing model from multiple task processing models, wherein the multiple task processing models are trained based on the task processing model training method.
[0196] It should be noted that multiple task processing models can be task processing models with different model specifications and parameters, and adapted to different domains. The target task processing model is the task processing model applicable to the target domain. The target domain can be different domains, such as the human resources and social security domain or the financial domain. The model request includes a domain identifier of the target domain, domain input data of the target domain, and at least one of the model specification parameters. Based on the model request, there are multiple ways to determine the target task processing model from multiple task processing models, and the specific method is selected according to the actual situation. This specification does not limit this in any way. In the first possible implementation of this specification, the corresponding target task processing model can be searched from the task processing models included in the first model library based on the domain identifier included in the model request; in the second possible implementation of this specification, the target task processing model can be trained and obtained based on the domain input data included in the model request; in the third possible implementation of this specification, the target task processing model can be selected based on the model request.
[0197] For example, based on the domain identifier of the target domain, at least one pre-trained task processing model can be searched from a first model library. Then, based on model specification parameters, an intermediate task processing model can be selected from the at least one task processing model. Finally, based on the domain input data of the target domain, the selected intermediate task processing model is trained to obtain a target task processing model suitable for user needs. The at least one task processing model can be based on… Figure 5 The task processing model is trained using the method shown, and will not be described again in the embodiments of this specification.
[0198] The solutions implemented in the embodiments of this specification are adapted to user needs to obtain target task processing models, realize personalized model services, provide users with an efficient, flexible and easy-to-use model service solution, and improve user experience.
[0199] In one optional embodiment of this specification, determining the target task processing model from multiple task processing models based on a model request may include the following steps:
[0200] If the model request includes a domain identifier for the target domain, the target task processing model suitable for the target domain is searched from the first model library based on the domain identifier. The first model library stores multiple task processing models suitable for different domains.
[0201] When the model request includes domain input data of the target domain, a task processing model to be trained that is suitable for the target domain is determined from multiple task processing models, and the task processing model to be trained is trained based on the domain input data to obtain the target task processing model.
[0202] If the model request includes model specification parameters, the target task processing model corresponding to the model specification parameters is searched from the second model library. The second model library stores multiple task processing models with different model specification parameters.
[0203] It should be noted that domain identifiers refer to unique or specific labels used to distinguish different domains. The First Model Library is a database for storing and managing various pre-trained deep learning models. Multiple task processing models adapted to different domains cover various application areas and needs. The First Model Library allows users to select the appropriate task processing model according to their needs, or directly call the appropriate task processing model to perform domain-specific dialogue tasks through the application programming interface. The multiple task processing models adapted to different domains are various models stored in the First Model Library suitable for different domains. Each task processing model is optimized for a specific domain environment. Any task processing model is based on... Figure 5 The model obtained by training the task processing model shown is trained using a training method. For example, a target task processing model suitable for the human resources and social security domain can be searched from a first model library based on the domain identifier "human resources and social security".
[0204] Different task processing models are adapted to different domains. For example, task processing model 1 is suitable for domains 1 and 2, while task processing model 2 is suitable for domains 2 and 3. A task processing model to be trained refers to a model among multiple task processing models that is suitable for the target domain, but whose performance can be further optimized. If the target domain is domain 1, then the task processing model to be trained is task processing model 1 adapted to domain 1. A task processing model to be trained may not only be applicable to the target domain but also to other domains, representing a general task processing model applicable to different domains. The task processing model to be trained can be used to perform domain-specific dialogue tasks in the target domain, but the results may not be ideal. In this case, the task processing model to be trained can be optimized based on the domain input data of the target domain. For example, optimizing the task processing model to be trained based on the domain input data of the human resources and social security domain can yield a target task processing model suitable for the human resources and social security domain. The domain input data of the target domain can be understood as the domain sample data of the task processing models in the target domain. The method for training the task processing model to be trained based on the domain input data of the target domain to obtain the target task processing model can be found in [reference needed]. Figure 5 The training method for the task processing model shown in this specification will not be described again in the embodiments.
[0205] Model specifications refer to the various parameters that define the structure and behavior of a model. These parameters can be broadly categorized into two types: model parameters (learnable parameters) and hyperparameters. Model parameters are those automatically adjusted during model training using the backpropagation algorithm, including but not limited to weight matrices and bias terms. For example, in a simple fully connected layer, the weight matrix is a two-dimensional tensor connecting neurons in the input and output layers; the bias term is a one-dimensional vector providing additional offset values for each output neuron. Hyperparameters are parameters set before model training begins, used to control the model's learning process and architecture. Hyperparameters include, but are not limited to, the learning rate and the number of neurons per layer, selected based on specific requirements.
[0206] The solutions implemented in this specification, based on domain requirements, accurately identify target task processing models suitable for the corresponding domain through domain identifiers, making the processing of domain dialogue tasks more accurate and more aligned with the target domain; based on domain requirements, further train a general task processing model to be trained using domain input data to obtain a target task processing model adapted to the target domain, making the target task processing model more aligned with the target domain, thereby improving user experience and task processing quality; based on model specification parameters, the corresponding target task processing model can be accurately found, ensuring the efficient and stable operation of the target task processing model and enhancing user experience.
[0207] In one optional embodiment of this specification, after determining the target task processing model from multiple task processing models based on the model request, the following steps may be further included:
[0208] Deploy the target task processing model, and build a domain dialogue interface based on the target task processing model, so that the terminal device can schedule the target task processing model to execute domain dialogue tasks through the domain dialogue interface.
[0209] It should be noted that the domain dialogue interface is an interactive programming interface for terminal devices to schedule target task processing models for domain dialogue task processing, and is usually provided in the form of an application programming interface (API). Through the domain dialogue interface, users can input task questions for the domain dialogue task to be processed.
[0210] In practical applications, there are various ways to deploy the target task processing model, and the specific method should be chosen based on the actual situation. This specification does not impose any limitations on this approach. One possible implementation of this specification is to deploy the target task processing model on cloud-side devices using infrastructure provided by a cloud service provider. Another possible implementation of this specification is to deploy the target task processing model on edge devices using a lightweight framework. For example, the target task processing model can be deployed on a distributed system, and a domain dialogue interface can be built based on the target task processing model and provided to the terminal device, enabling the terminal device to schedule the target task processing model to execute domain dialogue tasks.
[0211] By applying the solutions provided in the embodiments of this specification, deploying the target task processing model, and building a domain dialogue interface based on the target task processing model, terminal devices can efficiently call the target task processing model, thereby improving the processing quality and response speed of domain dialogue tasks.
[0212] See Figure 7 , Figure 7 This specification shows a schematic diagram of the structure of a task platform 700 provided in one embodiment of the present specification. The task platform 700 includes a request interface 702 and a response unit 704.
[0213] Request interface 702 is used to receive a model request sent by a terminal device, wherein the model request includes at least one of the following: the domain identifier of the target domain, the domain input data of the target domain, and the model specification parameters;
[0214] The response unit 704 is used to determine the target task processing model from multiple task processing models based on the model request, wherein the multiple task processing models are trained based on the task processing model training method.
[0215] In one optional embodiment of this specification, the task platform further includes a domain dialogue interface, which is constructed based on the target task processing model;
[0216] Domain dialogue interface, used for terminal devices to schedule and execute domain dialogue tasks.
[0217] The above is an illustrative scheme of a task platform according to this embodiment. It should be noted that the technical solution of this task platform and the technical solution of the information processing method based on the task processing model described above belong to the same concept. For details not described in detail in the technical solution of the task platform, please refer to the description of the technical solution of the information processing method based on the task processing model described above.
[0218] Corresponding to the above-described domain dialogue method embodiments, this specification also provides domain dialogue device embodiments. Figure 8A schematic diagram of a domain dialogue device according to one embodiment of this specification is shown. Figure 8 As shown, the device includes:
[0219] The first acquisition module 802 is configured to acquire the task problem in the target domain;
[0220] The first extraction module 804 is configured to extract target domain knowledge that matches the task problem from the domain knowledge base, wherein the domain knowledge base includes domain knowledge of the target domain, and the domain knowledge is stored in the domain knowledge base based on regional information classification.
[0221] The first input module 806 is configured to input the task problem and target domain knowledge into the task processing model to obtain the answer to the task problem. The task processing model is obtained by multi-task training based on domain sample data of the target domain. Multi-task training is used to enhance the task processing model's ability to understand the task problem.
[0222] Optionally, the first extraction module 804 is further configured to standardize the task problem to obtain the target problem, wherein the target problem conforms to the processing standards of the target domain; and to extract target domain knowledge that matches the target problem from the domain knowledge base.
[0223] Optionally, the first extraction module 804 is further configured to input processing prompts and task questions into the task processing model to obtain the target question, wherein the processing prompts are used to guide the task processing model to standardize the task question based on the processing standards of the target domain.
[0224] Optionally, the device further includes: a construction module configured to acquire domain knowledge of a target domain, wherein the domain knowledge carries regional information; classify the domain knowledge according to the regional information to obtain classified domain knowledge; and construct a domain knowledge base according to the classified domain knowledge.
[0225] Optionally, the domain knowledge base includes a domain knowledge graph; the construction module is further configured to determine the hierarchical relationship between the classified domain knowledge based on the regional information; and construct the domain knowledge graph based on the hierarchical relationship, wherein the domain knowledge graph uses the classified domain knowledge as nodes and the hierarchical relationship as edges, and the nodes store regional information.
[0226] By applying the solutions in the embodiments of this specification, since domain knowledge is stored based on regional information classification, extracting target domain knowledge that matches the task problem from the domain knowledge base of the target domain can ensure that the provided information is highly relevant and accurate to the task problem in terms of regional information, thereby improving the effectiveness of problem-solving; since the task processing model has been trained through multiple tasks, it can better understand and parse the task problem, making the response results more in line with the user's actual needs and improving the accuracy of the response results.
[0227] The above is an illustrative scheme of a domain dialogue device according to this embodiment. It should be noted that the technical solution of this domain dialogue device and the technical solution of the above-described domain dialogue method belong to the same concept. For details not described in detail in the technical solution of the domain dialogue device, please refer to the description of the technical solution of the above-described domain dialogue method.
[0228] Corresponding to the above embodiments of the government dialogue method, this specification also provides embodiments of the government dialogue device. Figure 9 A schematic diagram of the structure of a government dialogue device according to one embodiment of this specification is shown. Figure 9 As shown, the device includes:
[0229] The second acquisition module 902 is configured to acquire government affairs issues in the government affairs field;
[0230] The second extraction module 904 is configured to extract target government knowledge that matches the government issue from the government knowledge base. The government knowledge base includes domain knowledge in the government field, and the domain knowledge is stored in the government knowledge base based on regional information classification.
[0231] The second input module 906 is configured to input government affairs questions and target government affairs knowledge into the task processing model to obtain the answer to the government affairs questions. The task processing model is obtained by multi-task training based on domain sample data in the government affairs field. Multi-task training is used to enhance the task processing model's ability to understand government affairs questions.
[0232] The solution implemented in this specification, since domain knowledge is stored based on regional information classification, can extract target government knowledge that matches government issues from the government knowledge base in the government affairs domain. This ensures that the information provided is highly relevant to and accurate in relation to government issues, thereby improving the effectiveness of problem-solving. Furthermore, since the task processing model has been trained through multiple tasks, it can better understand and analyze government issues, making the response results more aligned with the user's actual needs and improving the accuracy of the response results.
[0233] The above is an illustrative scheme of a government dialogue device according to this embodiment. It should be noted that the technical solution of this government dialogue device and the technical solution of the above-described government dialogue method belong to the same concept. For details not described in detail in the technical solution of the government dialogue device, please refer to the description of the technical solution of the above-described government dialogue method.
[0234] Corresponding to the above-described enterprise evaluation method embodiments, this specification also provides enterprise evaluation device embodiments. Figure 10 A schematic diagram of a business evaluation apparatus provided in one embodiment of this specification is shown. Figure 10 As shown, the device includes:
[0235] The third acquisition module 1002 is configured to acquire the target company's enterprise information and construct enterprise assessment questions based on the enterprise information;
[0236] The third extraction module 1004 is configured to extract target domain knowledge that matches the enterprise assessment problem from the domain knowledge base. The domain knowledge base includes domain knowledge of the target enterprise's domain. The domain knowledge is classified and stored in the domain knowledge base based on regional information. The target domain knowledge includes at least one of environmental knowledge, social knowledge, and governance knowledge.
[0237] The third input module 1006 is configured to input the enterprise evaluation problem and target domain knowledge into the task processing model to obtain the enterprise development indicators of the target enterprise. The task processing model is obtained by multi-task training based on domain sample data of the target enterprise's domain. Multi-task training is used to enhance the task processing model's ability to understand the enterprise evaluation problem.
[0238] By applying the solutions in the embodiments of this specification, since domain knowledge is stored based on regional information classification, extracting target domain knowledge that matches the enterprise assessment problem from the domain knowledge base of the target enterprise's domain can ensure that the provided information is highly relevant and accurate to the enterprise assessment problem, thereby improving the effectiveness of solving the enterprise assessment problem. Since the task processing model has been trained through multiple tasks, it can better understand and analyze the task problem, making the response results more in line with the user's actual needs, improving the accuracy of enterprise development indicators. This not only helps to identify the strengths and weaknesses of the target enterprise, but also provides a scientific basis for formulating strategic plans, promoting the sustainable development of the enterprise.
[0239] The above is a schematic scheme of a business evaluation device according to this embodiment. It should be noted that the technical solution of this business evaluation device and the technical solution of the business evaluation method described above belong to the same concept. For details not described in detail in the technical solution of the business evaluation device, please refer to the description of the technical solution of the business evaluation method described above.
[0240] Corresponding to the above-described embodiments of the task processing model training method, this specification also provides embodiments of the task processing model training apparatus. Figure 11 A schematic diagram of a task processing model training device according to one embodiment of this specification is shown. Figure 11 As shown, the device includes:
[0241] The fourth acquisition module 1102 is configured to acquire domain sample data of the sample domain, wherein the domain sample data includes sample questions and sample answers to the sample questions;
[0242] The fourth extraction module 1104 is configured to extract sample domain knowledge that matches the sample problem from the sample domain knowledge base, wherein the sample domain knowledge base includes domain knowledge of the sample domain, and the domain knowledge is stored in the sample domain knowledge base based on regional information classification.
[0243] Training module 1106 is configured to perform multi-task training on the task processing model based on sample questions, sample answers, and sample domain knowledge to obtain a trained task processing model. The multi-task training is used to enhance the task processing model's ability to understand sample questions.
[0244] Optionally, the sample questions include a first sample question and a second sample question in the sample domain, and the sample answers include the first sample answer of the first sample question and the second sample answer of the second sample question. The first sample question and the second sample question have a semantic relationship. The second sample question is obtained based on the question generation strategy and the first sample question. The question generation strategy includes at least one of the following: synonym replacement strategy, mutually exclusive word replacement strategy, question angle adjustment strategy, regional information adjustment strategy, time information adjustment strategy, and reasoning link adjustment strategy.
[0245] Optionally, the fourth acquisition module 1102 is further configured to acquire a first sample question and a first sample answer; generate a second sample question based on the question generation strategy and the first sample question; process the second sample question to obtain a second sample answer.
[0246] Optionally, the fourth acquisition module 1102 is further configured to implement at least one of the following methods: replacing keywords in the first sample question with synonyms to obtain a second sample question; replacing keywords in the first sample question with mutually exclusive words to obtain a second sample question; adjusting the questioning angle in the first sample question to obtain a second sample question; adjusting the regional information in the first sample question to obtain a second sample question; adjusting the time information in the first sample question to obtain a second sample question; and adjusting the reasoning link in the first sample question to obtain a second sample question.
[0247] Optionally, the device further includes: a screening module configured to screen multiple sample tasks that match the sample question from candidate sample tasks, the multiple sample tasks including sample dialogue tasks and sample enhancement tasks, the sample enhancement tasks including at least one of synonym discrimination tasks, mutually exclusive word discrimination tasks, key information extraction tasks, regional knowledge discrimination tasks, and knowledge reasoning tasks, the sample enhancement tasks being used to enhance the task processing model's understanding of the sample question; and a training module 1106 further configured to perform multi-task training on the task processing model based on the sample question, sample answer, sample domain knowledge, and multiple sample tasks, to obtain a trained task processing model.
[0248] By applying the solutions described in this specification, and by acquiring domain sample data from the sample domain and extracting sample domain knowledge matching the sample questions using a sample domain knowledge base, and then using this data to train the task processing model for multiple tasks, the depth of the task processing model's understanding of the sample questions and the accuracy of its responses can be significantly improved. This training method not only enhances the task processing model's ability to identify industry terms and regional policies, but also improves its reasoning and generalization capabilities when facing complex, cross-regional problems, ultimately achieving more efficient and accurate domain dialogue services.
[0249] The above is a schematic scheme of a task processing model training device according to this embodiment. It should be noted that the technical solution of this task processing model training device and the technical solution of the task processing model training method described above belong to the same concept. For details not described in detail in the technical solution of the task processing model training device, please refer to the description of the technical solution of the task processing model training method described above.
[0250] Corresponding to the above-described embodiments of the information processing method based on the task processing model, this specification also provides embodiments of the information processing apparatus based on the task processing model. Figure 12 A schematic diagram of the structure of an information processing device based on a task processing model provided in one embodiment of this specification is shown. Figure 12 As shown, the device is applied to a mission platform and includes:
[0251] The receiving module 1202 is configured to receive model requests sent by the terminal device;
[0252] The determination module 1204 is configured to determine the target task processing model from multiple task processing models based on a model request, wherein the multiple task processing models are trained based on a task processing model training method.
[0253] Optionally, the determining module 1204 is further configured to: when the model request includes a domain identifier of the target domain, search for a target task processing model adapted to the target domain from a first model library based on the domain identifier, wherein the first model library stores multiple task processing models adapted to different domains; when the model request includes domain input data of the target domain, determine a task processing model to be trained adapted to the target domain from multiple task processing models, and train the task processing model to be trained based on the domain input data to obtain the target task processing model; when the model request includes model specification parameters, search for a target task processing model corresponding to the model specification parameters from a second model library, wherein the second model library stores multiple task processing models with different model specification parameters.
[0254] Optionally, the device further includes: a deployment module configured to deploy a target task processing model and, based on the target task processing model, construct a domain dialogue interface so that the terminal device can schedule the target task processing model to execute domain dialogue tasks through the domain dialogue interface.
[0255] The solutions implemented in the embodiments of this specification are adapted to user needs to obtain target task processing models, realize personalized model services, provide users with an efficient, flexible and easy-to-use model service solution, and improve user experience.
[0256] The above is an illustrative scheme of an information processing device based on a task processing model according to this embodiment. It should be noted that the technical solution of this information processing device based on a task processing model belongs to the same concept as the technical solution of the information processing method based on a task processing model described above. For details not described in detail in the technical solution of the information processing device based on a task processing model, please refer to the description of the technical solution of the information processing method based on a task processing model described above.
[0257] Figure 13 A structural block diagram of a computing device 1300 provided in one embodiment of this specification is shown.
[0258] The computing device 1300 includes:
[0259] Memory 1310 and processor 1320;
[0260] The memory 1310 is used to store computer programs / instructions, and the processor 1320 is used to execute the computer programs / instructions. When the computer programs / instructions are executed by the processor 1320, they implement the steps of the above-mentioned domain dialogue method, government dialogue method, enterprise evaluation method, task processing model training method, or information processing method based on task processing model.
[0261] In one or more embodiments of this specification, the computing device can be understood as an integrated smart terminal, including but not limited to a server, desktop computer, personal computer, all-in-one model machine, mobile phone, tablet computer or other portable smart terminal, etc., and the computing device may have the model described in the above embodiments of this application pre-installed.
[0262] Specifically, this computing device can pre-install various types of models, including but not limited to models in natural language processing, visual processing, speech processing, code processing, and multimodal task processing, thus providing diverse model selection. In different product forms, this computing device can support one or more model usage methods, including but not limited to model training, model invocation, model fine-tuning, model deployment, model inference, and application. In some product forms, this computing device also supports model management, including but not limited to multi-type model management (supporting the management of discriminative, generative, and other types of models), model version control (supporting the control of different model versions), and model evaluation (evaluating model performance and effectiveness based on model evaluation tools). In other product forms, this computing device can also create applications based on models, providing application programming interface (API) invocation capabilities. Models can be invoked into created applications through the API interface, and application management tools are provided for application management and monitoring.
[0263] Furthermore, the computing device may also include data management (supporting the creation and management of model tuning datasets), a training center (providing abundant training resources to help users learn and master artificial intelligence technology), and basic control capabilities (providing enterprise-level basic control capabilities to ensure the security and efficient operation of the system). Through the above functions, it provides a comprehensive and integrated device for artificial intelligence development, training, deployment, and application.
[0264] Figure 14 A structural block diagram of an electronic device 1400 provided according to one embodiment of this specification is shown.
[0265] The memory 1410 and the processor 1420 are connected via a bus 1430;
[0266] The memory 1410 is used to store computer programs / instructions, and the processor 1420 is used to execute the computer programs / instructions. When the computer programs / instructions are executed by the processor 1420, they implement the steps of the above-mentioned domain dialogue method, government dialogue method, enterprise evaluation method, task processing model training method, or information processing method based on task processing model.
[0267] Specifically, the components of the electronic device 1400 include, but are not limited to, a memory 1410 and a processor 1420. The processor 1420 and the memory 1410 can be connected via a bus 1430.
[0268] Electronic device 1400 may also include access device 1440, which enables electronic device 1400 to communicate with database 1450 storing data via one or more networks 1460. Examples of such networks include Public Switched Telephone Network (PSTN), Local Area Network (LAN), Wide Area Network (WAN), Personal Area Network (PAN), or combinations of communication networks such as the Internet. Access device 1440 may include one or more of any type of wired or wireless network interface (e.g., Network Interface Card (NIC)), such as IEEE 802.11 Wireless Local Area Networks (WLAN) wireless interface, Wi-MAX (World Interoperability for Microwave Access) interface, Ethernet interface, Universal Serial Bus (USB) interface, cellular network interface, Bluetooth interface, Near Field Communication (NFC) interface, and so on.
[0269] In one embodiment of this specification, the above-described components of the electronic device 1400 and Figure 14 Other components, not shown, can also be connected to each other, for example, via a bus. It should be understood that... Figure 14 The block diagram of the electronic device shown is for illustrative purposes only and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
[0270] Electronic device 1400 can be any type of stationary or mobile electronic device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable electronic devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary electronic devices such as desktop computers or PCs. Electronic device 1400 can also be a mobile or stationary electronic device.
[0271] The above is an illustrative scheme of an electronic device according to this embodiment. It should be noted that the technical solution of this electronic device belongs to the same concept as the technical solutions of the aforementioned domain dialogue method, government dialogue method, enterprise evaluation method, task processing model training method, and information processing method based on task processing model. For details not described in detail in the technical solution of the electronic device, please refer to the description of the technical solutions of the aforementioned domain dialogue method, government dialogue method, enterprise evaluation method, task processing model training method, or information processing method based on task processing model.
[0272] An embodiment of this specification also provides a computer-readable storage medium storing a computer program / instructions that, when executed by a processor, implement the steps of the aforementioned domain dialogue method, government dialogue method, enterprise evaluation method, task processing model training method, or information processing method based on a task processing model.
[0273] The above is an illustrative scheme of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium belongs to the same concept as the technical solutions of the aforementioned domain dialogue method, government dialogue method, enterprise evaluation method, task processing model training method, and task processing model-based information processing method. Details not described in detail in the technical solution of the storage medium can be found in the descriptions of the technical solutions of the aforementioned domain dialogue method, government dialogue method, enterprise evaluation method, task processing model training method, or task processing model-based information processing method.
[0274] An embodiment of this specification also provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the steps of the aforementioned domain dialogue method, government dialogue method, enterprise evaluation method, task processing model training method, or information processing method based on a task processing model.
[0275] The above is an illustrative scheme of a computer program product according to this embodiment. It should be noted that the technical solution of this computer program product belongs to the same concept as the technical solutions of the aforementioned domain dialogue method, government dialogue method, enterprise evaluation method, task processing model training method, and information processing method based on task processing models. Details not described in detail in the technical solution of the computer program product can be found in the descriptions of the aforementioned domain dialogue method, government dialogue method, enterprise evaluation method, task processing model training method, or information processing method based on task processing models.
[0276] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.
[0277] Computer instructions include computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. Computer-readable media can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in computer-readable media can be appropriately added or removed according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media do not include electrical carrier signals and telecommunication signals.
[0278] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments in this specification are not limited to the described order of actions, because according to the embodiments in this specification, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the embodiments in this specification.
[0279] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0280] The preferred embodiments disclosed above are merely illustrative of this specification. The optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the embodiments described herein. These embodiments are selected and specifically described in this specification to better explain the principles and practical applications of the embodiments, thereby enabling those skilled in the art to better understand and utilize this specification. This specification is limited only by the claims and their full scope and equivalents.
Claims
1. A domain-specific dialogue method, comprising: The task problem of acquiring the target domain; Extract target domain knowledge that matches the task problem from the domain knowledge base, wherein the domain knowledge base includes domain knowledge of the target domain, and the domain knowledge is stored in the domain knowledge base based on regional information classification; The task problem and the target domain knowledge are input into the task processing model to obtain the answer to the task problem. The task processing model is obtained by multi-task training based on domain sample data of the target domain. The multi-task training is used to enhance the task processing model's ability to understand the task problem.
2. The method according to claim 1, wherein extracting target domain knowledge matching the task problem from the domain knowledge base includes: The task problem is standardized to obtain the target problem, wherein the target problem conforms to the processing standards of the target domain; Extract target domain knowledge that matches the target problem from the domain knowledge base.
3. The method according to claim 2, wherein standardizing the task problem to obtain the target problem includes: The processing prompts and the task problem are input into the task processing model to obtain the target problem. The processing prompts are used to guide the task processing model to standardize the task problem based on the processing standards of the target domain.
4. The method according to any one of claims 1 to 3, wherein before extracting target domain knowledge matching the task problem from the domain knowledge base, the method further comprises: Acquire domain knowledge of the target domain, wherein the domain knowledge carries geographic information; Based on the geographical information, the domain knowledge is classified to obtain the classified domain knowledge; Based on the categorized domain knowledge, construct the domain knowledge base.
5. The method according to claim 4, wherein the domain knowledge base includes a domain knowledge graph; The step of constructing the domain knowledge base based on the categorized domain knowledge includes: Based on the geographical information, determine the hierarchical relationship between the categorized domain knowledge; Based on the hierarchical relationship, the domain knowledge graph is constructed, wherein the domain knowledge graph uses the classified domain knowledge as nodes and the hierarchical relationship as edges, and the regional information is stored on the nodes.
6. A method for government dialogue, comprising: Obtain information on government affairs issues in the government sector; Target government knowledge matching the government issue is extracted from the government knowledge base, wherein the government knowledge base includes domain knowledge of the government field, and the domain knowledge is stored in the government knowledge base based on regional information classification; The government affairs question and the target government affairs knowledge are input into the task processing model to obtain the answer to the government affairs question. The task processing model is obtained by multi-task training based on domain sample data of the government affairs domain. The multi-task training is used to enhance the task processing model's ability to understand the government affairs question.
7. A method for evaluating a company, comprising: Obtain the target company's corporate information, and construct a corporate assessment question based on the corporate information; From the domain knowledge base, target domain knowledge that matches the enterprise assessment question is extracted. The domain knowledge base includes domain knowledge of the domain to which the target enterprise belongs. The domain knowledge is stored in the domain knowledge base based on regional information classification. The target domain knowledge includes at least one of environmental knowledge, social knowledge, and governance knowledge. The enterprise evaluation problem and the target domain knowledge are input into the task processing model to obtain the enterprise development indicators of the target enterprise. The task processing model is obtained by multi-task training based on domain sample data of the target enterprise's domain. The multi-task training is used to enhance the task processing model's ability to understand the enterprise evaluation problem.
8. A method for training a task processing model, comprising: Obtain domain sample data for the sample domain, wherein the domain sample data includes sample questions and sample answers to the sample questions; Extract sample domain knowledge that matches the sample problem from the sample domain knowledge base, wherein the sample domain knowledge base includes domain knowledge of the sample domain, and the domain knowledge is stored in the sample domain knowledge base based on regional information classification; Based on the sample question, the sample answer, and the sample domain knowledge, the task processing model is trained using multi-task methods to obtain a trained task processing model. The multi-task training is used to enhance the task processing model's ability to understand the sample question.
9. The method according to claim 8, wherein the sample question includes a first sample question and a second sample question in the sample domain, the sample answer includes a first sample answer to the first sample question and a second sample answer to the second sample question, the first sample question and the second sample question have a semantic relationship, the second sample question is obtained based on a question generation strategy and the first sample question, and the question generation strategy includes at least one of a synonym replacement strategy, a mutually exclusive word replacement strategy, a question angle adjustment strategy, a regional information adjustment strategy, a time information adjustment strategy, and a reasoning link adjustment strategy.
10. The method according to claim 9, wherein obtaining domain sample data of the sample domain includes: Obtain the first sample question and the first sample answer; Based on the problem generation strategy and the first sample problem, generate the second sample problem; The second sample question is processed to obtain the second sample answer.
11. The method of claim 10, wherein generating the second sample question based on the question generation strategy and the first sample question comprises at least one of the following: The keywords in the first sample question are replaced with synonyms to obtain the second sample question; The keywords in the first sample question are replaced with mutually exclusive words to obtain the second sample question; The questioning angle in the first sample question is adjusted to obtain the second sample question; The geographical information in the first sample question is adjusted to obtain the second sample question; The time information in the first sample problem is adjusted to obtain the second sample problem; The reasoning chain in the first sample problem is adjusted to obtain the second sample problem.
12. The method according to any one of claims 8 to 11, wherein before performing multi-task training on the task processing model based on the sample question, the sample answer, and the sample domain knowledge to obtain the trained task processing model, the method further comprises: From the candidate sample tasks, multiple sample tasks that match the sample problem are selected. The multiple sample tasks include sample dialogue tasks and sample enhancement tasks. The sample enhancement tasks include at least one of the following: synonym discrimination task, mutually exclusive word discrimination task, key information extraction task, regional knowledge discrimination task, and knowledge reasoning task. The sample enhancement tasks are used to enhance the task processing model's understanding of the sample problem. The step of training the task processing model on multiple tasks based on the sample questions, sample answers, and sample domain knowledge to obtain a trained task processing model includes: Based on the sample questions, sample answers, sample domain knowledge, and multiple sample tasks, the task processing model is trained using a multi-task approach to obtain a fully trained task processing model.
13. An information processing method based on a task processing model, applied to a task platform, comprising: Receive model requests sent by terminal devices; Based on the model request, a target task processing model is determined from multiple task processing models, wherein the multiple task processing models are trained based on the task processing model training method as described in any one of claims 8 to 12.
14. The method according to claim 13, wherein determining the target task processing model from multiple task processing models based on the model request comprises: If the model request includes a domain identifier of the target domain, a target task processing model suitable for the target domain is searched from the first model library based on the domain identifier. The first model library stores multiple task processing models suitable for different domains. When the model request includes domain input data of the target domain, a task processing model to be trained that is adapted to the target domain is determined from the plurality of task processing models, and the task processing model to be trained is trained based on the domain input data to obtain the target task processing model; If the model request includes model specification parameters, the target task processing model corresponding to the model specification parameters is searched from the second model library, wherein the second model library stores multiple task processing models with different model specification parameters.
15. The method according to claim 13, further comprising, after determining the target task processing model from multiple task processing models based on the model request: Deploy the target task processing model, and based on the target task processing model, construct a domain dialogue interface so that the terminal device can schedule the target task processing model to execute domain dialogue tasks through the domain dialogue interface.
16. A task platform, comprising a request interface and a response unit; The request interface is used to receive a model request sent by a terminal device, wherein the model request includes at least one of the following: a domain identifier of the target domain, domain input data of the target domain, and model specification parameters. The response unit is configured to determine a target task processing model from multiple task processing models based on the model request, wherein the multiple task processing models are trained based on the task processing model training method as described in any one of claims 8 to 12.
17. The task platform according to claim 16, further comprising a domain dialogue interface, wherein the domain dialogue interface is constructed based on the target task processing model; The domain dialogue interface is used for the terminal device to schedule and execute domain dialogue tasks.
18. A computing device, comprising: Memory and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions, which, when executed by the processor, implement the steps of the method according to any one of claims 1 to 15.
19. An electronic device comprising: A memory and a processor, the memory and the processor being connected via a bus; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions, which, when executed by the processor, implement the steps of the method according to any one of claims 1 to 15.
20. A computer-readable storage medium storing a computer program / instructions that, when executed by a processor, implement the steps of the method according to any one of claims 1 to 15.
21. A computer program product comprising a computer program / instructions that, when executed by a processor, implement the steps of the method according to any one of claims 1 to 15.
