Multi-round dialogue method and apparatus for dynamic government affair updating, and electronic device

By constructing and dynamically updating a multi-round dialogue system for government affairs matters and consultation issue documents, the problem of multi-round dialogue systems in the government field being difficult to adapt to the requirements of different regions has been solved, a flexible and efficient dialogue response has been achieved, and the difficulty of deployment and modification has been reduced.

WO2024187581A1PCT designated stage expired Publication Date: 2024-09-19SHANGHAI ZHUOFAN INFORMATION TECH CO LTD

Patent Information

Application Number
PCT/CN2023/094709
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-16
Filing Date
2023-05-17
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

Due to the confidentiality of data and regional differences, the multi-round dialogue system in the government affairs field makes data collection and business process sorting difficult for non-professional practitioners, and deployment and modification are difficult.

Method used

Provide a multi-round dialogue method for dynamic updating of government affairs. By constructing government affairs documents and consultation question documents, target format conversion and model training are performed, the question and answer model is dynamically updated to adapt to the government affairs requirements of different regions, and when the user inputs a question Respond in conjunction with preset hit rules.

Benefits of technology

It achieves the flexibility and adaptability of multi-round government dialogues, reduces deployment and modification problems caused by regional differences, and improves data confidentiality and the versatility of the dialogue system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023094709_19092024_PF_FP_ABST
    Figure CN2023094709_19092024_PF_FP_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of government affair services, in particular to a multi-round dialogue method and apparatus for dynamic government affair updating, and an electronic device. The method comprises: constructing government affair item files and consultation question files; respectively carrying out model training on the government affair item files and the consultation question files to obtain question answering models corresponding to different regions; when the content of the government affair item files and / or the consultation question files changes, retraining the question answering models on the basis of the changed government affair item files and consultation questions, to dynamically update the question answering models; and acquiring a question input by a user, and according to a preset hit rule, responding to the question input by the user. According to the present invention, the multi-round dialogue apparatus is applied to the field of government affairs; the present invention is suitable for different government affair item requirements and item changes in different regions, thereby achieving flexible dialogues, and mitigating the problems of deployment and modification caused by the regional difference.
Need to check novelty before this filing date? Find Prior Art

Description

A multi-round dialogue method, device and electronic device for dynamic updating of government affairs Technical Field

[0001] The present invention relates to the field of government service technology, and in particular to a multi-round dialogue method, device and electronic equipment for dynamic updating of government affairs. Background Art

[0002] Multi-turn dialogue systems have been developed for many years. The current mainstream approach involves technical personnel collecting relevant data from real-world business scenarios, summarizing and organizing it, and designing specific business processes, ultimately delivering relevant products to clients. However, compared to multi-turn dialogue in other fields, the government sector presents a particular challenge for non-professionals due to its unique nature and data confidentiality. Data collection and business process analysis are also more challenging for non-professionals, and deployment and modification issues caused by regional variations are more difficult to manage.

[0003] Summary of the Invention

[0004] The present invention provides a multi-round dialogue method, device and electronic equipment for dynamic updating of government affairs, which are adapted to different government affairs requirements in different regions and realize dynamic updating of dialogue content.

[0005] The embodiment of the present specification provides a multi-round dialogue method for dynamic updating of government affairs, including: constructing a government affairs document and a consultation question document, converting the government affairs document and the consultation question document into a target format, and saving the converted government affairs document and the consultation question document into folders in different regions;

[0006] Model training is performed on the government affairs documents and the consultation question documents in the folders of different regions respectively to obtain question-answering models corresponding to different regions;

[0007] When there is a change in the content of the government affairs document and / or the consulting question document, the question-answering model is retrained based on the changed government affairs document and the consulting question, and the question-answering model is dynamically updated;

[0008] Obtain user input questions and respond to the user input questions in combination with preset hit rules.

[0009] Preferably, the construction of government affairs documents and consultation question documents includes:

[0010] Acquire workflow data of historical government affairs, analyze the workflow data, and obtain operational relationships of the workflow data, wherein the operational relationships include contextual relationships, dependency relationships, and different matters;

[0011] Construct corresponding government affairs documents according to the operation contacts.

[0012] Preferably, the construction of government affairs documents and consultation question documents further includes:

[0013] Acquire consultation question data of historical government affairs, wherein the consultation question data includes: consultation questions and answers corresponding to the consultation questions;

[0014] Construct a consulting question file based on the consulting questions and the answers corresponding to the consulting questions.

[0015] Preferably, the method further comprises:

[0016] According to the current government affairs situation in different regions, the number and problems of the government affairs documents and the number and problems of the consulting question documents in the folders of different regions are regulated.

[0017] Preferably, the obtaining of the user input question and responding to the user input question in combination with a preset hit rule includes:

[0018] Determine whether the question input by the user matches the items in the government affairs document and / or the questions in the consultation question document based on word segmentation rules, Bert model, and keywords;

[0019] When the question input by the user hits an item in the government affairs document, the question-answering model matches the government affairs document corresponding to the question input by the user in the government affairs document to fill in the slot value;

[0020] When the question input by the user hits the question in the consultation question file, the FAQ dialogue mode is entered;

[0021] When the question input by the user does not hit the item in the government affairs file and / or the question in the consultation question file, the question input by the user is a non-business question and enters the chat mode.

[0022] Preferably, the step of entering the FAQ dialogue mode includes:

[0023] The question-answering model matches the answer corresponding to the question input by the user in the consulting question file and responds to the user.

[0024] Preferably, the entering the chat mode includes:

[0025] The dialogue template based on the small talk mode replies with an answer suitable for the question input by the user.

[0026] The embodiments of this specification also provide a multi-round dialogue device for dynamic updating of government affairs, including:

[0027] A file construction module is used to construct government affairs documents and consulting question documents, convert the government affairs documents and consulting question documents into target formats, and save the converted government affairs documents and consulting question documents into folders in different regions;

[0028] A model training module is used to perform model training on the government affairs documents and the consultation question documents in the folders of different regions respectively to obtain question-answering models corresponding to different regions;

[0029] A model updating module, which, when the content of the government affairs document and / or the consulting question document changes, retrains the question-answering model based on the changed government affairs document and the consulting question, and dynamically updates the question-answering model;

[0030] The question response module is used to obtain user input questions and respond to the user input questions in combination with preset hit rules.

[0031] An electronic device, wherein the electronic device comprises:

[0032] A processor and a memory storing computer-executable instructions, wherein when the instructions are executed, the processor is caused to perform any of the above methods.

[0033] A computer-readable storage medium stores one or more instructions, and when the one or more instructions are executed by a processor, implements any of the above methods.

[0034] The present invention can dynamically update the question-answer model when the content of the government affairs document and / or the consultation question document changes, thereby realizing flexible dialogue; the multi-round dialogue device is applied to the government affairs field, and can adapt to different government affairs requirements and changes in matters in different regions, thereby reducing deployment and modification problems caused by regional differences. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation of the present application. In the drawings:

[0036] FIG1 is a schematic diagram showing the principle of a multi-round dialogue method for dynamic updating of government affairs provided in an embodiment of this specification;

[0037] FIG2 is a schematic structural diagram of a multi-round dialogue device for dynamic updates of government affairs provided by an embodiment of this specification;

[0038] FIG3 is a schematic diagram of the structure of an electronic device provided in an embodiment of this specification;

[0039] FIG4 is a schematic diagram showing the principle of a computer-readable medium provided in an embodiment of this specification. DETAILED DESCRIPTION

[0040] Exemplary embodiments of the present invention will now be described more fully with reference to the accompanying drawings. However, exemplary embodiments can be implemented in various forms, and it should not be understood that the present invention is limited to the embodiments set forth herein. On the contrary, providing these exemplary embodiments enables the present invention to be more comprehensive and complete, making it easier to fully convey the inventive concept to those skilled in the art. In the figures, the same reference numerals represent the same or similar elements, components or parts, and thus their repeated description will be omitted.

[0041] Under the premise of being consistent with the technical concept of the present invention, the features, structures, characteristics or other details described in a specific embodiment do not exclude that they can be combined in one or more other embodiments in a suitable manner.

[0042] In the description of specific embodiments, the features, structures, characteristics, or other details of the present invention are described to enable those skilled in the art to fully understand the embodiments. However, this does not preclude those skilled in the art from practicing the technical solutions of the present invention without one or more of the specific features, structures, characteristics, or other details.

[0043] The figures shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be performed in the order described. For example, some operations / steps may be decomposed, while others may be combined or partially combined. Therefore, the actual execution order may vary depending on the actual situation.

[0044] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0045] The term "and / or" or "and / or" includes all combinations of any one or more of the associated listed items.

[0046] 1 is a schematic diagram showing the principle of a multi-round dialogue method for dynamic updating of government affairs provided in an embodiment of this specification, including:

[0047] S101: Constructing government affairs documents and consulting question documents, converting the government affairs documents and consulting question documents into target formats, and saving the converted government affairs documents and consulting question documents into folders in different regions;

[0048] Furthermore, the construction of government affairs documents and consultation question documents includes:

[0049] Acquire workflow data of historical government affairs, analyze the workflow data, and obtain operational relationships of the workflow data, wherein the operational relationships include contextual relationships, dependency relationships, and different matters;

[0050] Constructing corresponding government affairs documents according to the operation contacts;

[0051] Acquire consultation question data of historical government affairs, wherein the consultation question data includes: consultation questions and answers corresponding to the consultation questions;

[0052] Construct a consulting question file based on the consulting questions and the answers corresponding to the consulting questions.

[0053] In a preferred embodiment of the present invention, government officials summarize the workflows of relevant government affairs and analyze the workflow data to identify operational connections within the workflow data, including contextual relationships, dependencies, and distinct items. Based on these contextual relationships, dependencies, and distinct items, a corresponding government affairs document is constructed, providing data support for subsequent question-answering model training and slot value filling. The government affairs document contains the intent, slot values, similar sentences, and outputs from the workflow data.

[0054] In a preferred embodiment of the present invention, government officials summarize common consultation question data and construct a consultation question file based on the consultation questions and their corresponding answers. For example, a consultation question might be: Where is the nearest police station? This consultation question and its corresponding answer are written as JSON format data to form a consultation question file, providing data support for subsequent question-answering model training and question response.

[0055] S102: Performing model training on the government affairs documents and the consultation question documents in the folders of different regions respectively to obtain question-answering models corresponding to different regions;

[0056] S103: When the content of the government affairs document and / or the consulting question document changes, retrain the question-answering model based on the changed government affairs document and the consulting question, and dynamically update the question-answering model;

[0057] In a preferred embodiment of the present invention, government officials can use corresponding instructions to perform model training on government affairs documents and consulting question documents uploaded from a designated area to obtain a question-and-answer model. The trained model parameters will be automatically saved in the corresponding folder. When government affairs or consulting questions change, for example, government officials can dynamically choose to delete or modify government affairs and consulting questions based on their own needs. The model can be retrained based on the deleted and / or modified government affairs documents or frequently asked consulting question documents to ensure the validity of the question-and-answer model, thereby achieving dynamic dialogue adjustment and flexible dialogue. Since the deletion and modification of government affairs and consulting questions can only be performed by government officials, the confidentiality of the data is improved, flexibility is achieved, and deployment and modification issues caused by different regions are reduced.

[0058] S104: Obtain the question input by the user, and respond to the question input by the user in combination with the preset hit rule.

[0059] Furthermore, the obtaining of the user input question and responding to the user input question in combination with the preset hit rule include:

[0060] Determine whether the question input by the user matches the items in the government affairs document and / or the questions in the consultation question document based on word segmentation rules, Bert model, and keywords;

[0061] When the question input by the user hits an item in the government affairs document, the question-answering model matches the government affairs document corresponding to the question input by the user in the government affairs document to fill in the slot value;

[0062] When the question input by the user hits the question in the consultation question file, the FAQ dialogue mode is entered;

[0063] When the question input by the user does not hit the item in the government affairs file and / or the question in the consultation question file, the question input by the user is a non-business question and enters the chat mode.

[0064] Furthermore, the step of entering the FAQ dialogue mode includes:

[0065] The question-answering model matches the answer corresponding to the question input by the user in the consulting question file and responds to the user.

[0066] Furthermore, entering the chat mode includes:

[0067] The dialogue template based on the small talk mode replies with an answer suitable for the question input by the user.

[0068] In a preferred embodiment of the present invention, the question entered by the user in the query interface is obtained, and then the dialogue system will determine whether the user's input question hits the item in the government affairs file and / or the question in the consultation question file based on the word segmentation rules, the BERT (Bidirectional Encoder Representation from Transformers, bidirectional encoding representation) model, and keywords. When the user's input question hits the item in the government affairs file, it means that the user is asking about government affairs. Therefore, the question-answering model will extract the government affairs file corresponding to the user's input question based on the user's input question to fill the slot value; when the user's input question hits the question in the consultation question file, the question-answering model matches the answer corresponding to the user's input question in the consultation question file and responds to the user; when the user's input question does not hit the item in the government affairs file and / or the question in the consultation question file, the user's input question is a non-business question, and the dialogue template based on the chat mode responds with an answer that is appropriate to the user's input question, reducing the staff's dissatisfaction with the entire dialogue system. The chat mode can be integrated as a fallback at the bottom of the dialogue system to respond to all non-business queries entered by users, avoiding the problem of a single fallback speech affecting the user experience and bringing a richer question-answering experience to the interaction. Furthermore, the preset matching rules can be configured with a priority for matching files, such as government affairs files taking precedence over consultation question files, which in turn take precedence over casual chat mode. For example, when a user inputs a question, the system first determines whether the user's input question matches the government affairs file. If not, it then determines whether the user's input question matches the consultation question. If not, it then enters the casual chat mode. This can further reduce the amount of data required for question queries and improve query speed. The word segmentation rules can be understood as configuring the corresponding word segmentation rules for Jieba word segmentation, which facilitates accurate parsing of user input questions and accurate responses to user input questions. Furthermore, the Bert model uses Masked LM and Next Sentence Prediction methods to capture word- and sentence-level representations, respectively, thereby achieving accurate parsing of user input questions and accurate responses to user input questions.

[0069] Furthermore, the method further comprises:

[0070] According to the current government affairs situation in different regions, the number and problems of the government affairs documents and the number and problems of the consulting question documents in the folders of different regions are regulated.

[0071] In a preferred embodiment of the present invention, government affairs documents and consultation question documents are uploaded to the dialogue system through the corresponding interface. The dialogue system converts these files into the required format according to the corresponding parsing method and saves them in folders of different regions. The number and questions of government affairs documents and the number and questions of consultation question documents in different regions may be different. They can be adjusted according to needs to adapt to the different government affairs requirements in different regions, thereby increasing the versatility of the dialogue system.

[0072] In a preferred embodiment of the present invention, the present invention can dynamically update the question-answer model when the content of the government affairs document and / or the consultation question document changes, thereby realizing flexible dialogue; the multi-round dialogue device is applied to the government affairs field, and adapts to different government affairs requirements and changes in matters in different regions, thereby reducing deployment and modification problems caused by different regions.

[0073] FIG2 is a schematic diagram of the structure of a multi-round dialogue device for dynamic updating of government affairs provided by an embodiment of this specification, including:

[0074] The file construction module 201 is used to construct government affairs documents and consulting question documents, convert the government affairs documents and consulting question documents into target formats, and save the converted government affairs documents and consulting question documents into folders in different regions;

[0075] The model training module 202 is used to perform model training on the government affairs documents and the consultation question documents in the folders of different regions respectively to obtain question-answering models corresponding to different regions;

[0076] The model updating module 203 retrains the question-answering model based on the changed government affairs document and the changed consultation questions when the content of the government affairs document and / or the consultation question document changes, thereby dynamically updating the question-answering model.

[0077] The question response module 204 is used to obtain the question input by the user and respond to the question input by the user in combination with the preset hit rule.

[0078] Furthermore, the file construction module 201 includes:

[0079] A first data acquisition unit is configured to acquire workflow data of historical government affairs, analyze the workflow data, and obtain operational relationships of the workflow data, wherein the operational relationships include contextual relationships, dependency relationships, and different matters;

[0080] The first file construction unit is used to construct a corresponding government affairs document according to the operation connection.

[0081] Furthermore, the construction of government affairs documents and consultation question documents also includes:

[0082] A second data acquisition unit is used to acquire consultation question data of historical government affairs, wherein the consultation question data includes: consultation questions and answers corresponding to the consultation questions;

[0083] A second file construction unit is used to construct a consulting question file according to the consulting question and the answer corresponding to the consulting question;

[0084] Furthermore, the device further comprises:

[0085] The data control module is used to control the number and problems of the government affairs documents and the number and problems of the consulting question documents in the folders of different regions according to the current government affairs status of different regions.

[0086] Furthermore, the problem response module 204 includes:

[0087] A hit determination unit, configured to determine whether the question input by the user hits an item in the government affairs document and / or a question in the consultation question document based on word segmentation rules, a Bert model, and keywords;

[0088] a slot value filling unit, configured to, when the question input by the user hits an item in the government affairs item file, match the government affairs item file corresponding to the question input by the user in the government affairs item file to fill in the slot value by the question-answering model;

[0089] A dialogue mode entry unit, configured to enter a FAQ dialogue mode when the question input by the user hits a question in the consultation question file;

[0090] The chat mode entry unit is used to enter the chat mode when the question input by the user does not hit the item in the government affairs file and / or the question in the consultation question file, and the question input by the user is a non-business question.

[0091] Furthermore, the dialogue mode entry unit includes:

[0092] The dialogue mode enters the sub-unit, which is used by the question-answering model to match the answer corresponding to the question input by the user in the consulting question file to reply to the user.

[0093] Furthermore, the chat mode entry unit includes:

[0094] The chat mode entry subunit is used to reply with an answer suitable for the user input question based on the chat mode dialogue template.

[0095] The functions of the device in the embodiment of the present invention have been described in the above method embodiment. Therefore, for details not fully described in this embodiment, please refer to the relevant description in the above embodiment and will not be repeated here.

[0096] Based on the same inventive concept, an embodiment of this specification also provides an electronic device.

[0097] The following describes an electronic device embodiment of the present invention, which can be considered a specific physical implementation of the method and apparatus embodiments of the present invention described above. Details described in the electronic device embodiment of the present invention should be considered supplementary to the above-mentioned method or apparatus embodiments; details not disclosed in the electronic device embodiment of the present invention can be implemented with reference to the above-mentioned method or apparatus embodiments.

[0098] FIG3 is a schematic diagram of the structure of an electronic device according to an embodiment of this specification. The electronic device 300 according to this embodiment of the present invention is described below with reference to FIG3. The electronic device 300 shown in FIG3 is merely an example and should not limit the functionality or scope of use of the embodiment of the present invention.

[0099] As shown in Figure 3, electronic device 300 is implemented as a general-purpose computing device. Components of electronic device 300 may include, but are not limited to, at least one processing unit 310, at least one storage unit 320, a bus 330 connecting various device components (including storage unit 320 and processing unit 310), and a display unit 340.

[0100] The storage unit stores program code that can be executed by the processing unit 310, so that the processing unit 310 performs the steps according to various exemplary embodiments of the present invention described in the above processing method section of this specification. For example, the processing unit 310 can perform the steps shown in Figure 1.

[0101] The storage unit 320 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 3201 and / or a cache memory unit 3202 , and may further include a read-only memory unit (ROM) 3203 .

[0102] The storage unit 320 may also include a program / utility 3204 having a set (at least one) of program modules 3205, such program modules 3205 including but not limited to: operating means, one or more application programs, other program modules and program data, each of which or some combination may include an implementation of a network environment.

[0103] Bus 330 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0104] The electronic device 300 can also communicate with one or more external devices 400 (e.g., a keyboard, a pointing device, a Bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 300, and / or any device that enables the electronic device 300 to communicate with one or more other computing devices (e.g., a router, a modem, etc.). Such communication can occur via an input / output (I / O) interface 350. Furthermore, the electronic device 300 can communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network such as the Internet) via a network adapter 360. The network adapter 360 can communicate with other modules of the electronic device 300 via the bus 330. It should be understood that, although not shown in FIG. 3 , other hardware and / or software modules can be used in conjunction with the electronic device 300, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID devices, tape drives, and data backup storage devices.

[0105] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the exemplary embodiments described in the present invention can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, or a network device, etc.) to execute the above method according to the present invention. When the computer program is executed by a data processing device, the computer-readable medium is enabled to implement the above method of the present invention, that is, the method shown in Figure 1.

[0106] 4 is a schematic diagram of a computer-readable medium according to an embodiment of the present disclosure.

[0107] The computer program implementing the method shown in Figure 1 can be stored on one or more computer-readable media. The computer-readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor device, device or component, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0108] The computer-readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, wherein the readable program code is carried. The data signal propagated may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution device, device, or component. The program code contained on the readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination thereof.

[0109] The program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, and the like, as well as conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a stand-alone software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0110] In summary, the present invention can be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that general data processing equipment such as a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all of the functions of some or all of the components in the embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for executing a part or all of the methods described herein. Such a program for implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0111] The specific embodiments described above further illustrate the objectives, technical solutions, and beneficial effects of the present invention. It should be understood that the present invention is not inherently related to any specific computer, virtual device, or electronic device, and various general-purpose devices can also implement the present invention. The above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention shall be included in the scope of protection of the present invention.

[0112] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments.

[0113] The foregoing is merely an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.

Claims

1. A multi-round dialogue method for dynamic updating of government affairs, characterized in that: include: Constructing government affairs documents and consulting question documents, converting the government affairs documents and consulting question documents into target formats, and saving the government affairs documents and consulting question documents after format conversion into folders in different regions; Model training is performed on the government affairs documents and the consulting question documents in the folders of different regions respectively to obtain question-answering models corresponding to different regions; When there is a change in the content of the government affairs document and / or the consulting question document, the question-answering model is retrained based on the changed government affairs document and the consulting question, and the question-answering model is dynamically updated; Obtain a question input by the user, and respond to the question input by the user in accordance with a preset hit rule.

2. A multi-round dialogue method for dynamic updating of government affairs as claimed in claim 1, characterized in that: The construction of government affairs documents and consultation question documents includes: Acquire workflow data of historical government affairs, analyze the workflow data, and obtain operational relationships of the workflow data, wherein the operational relationships include: contextual relationships, dependency relationships, and different matters; The corresponding government affairs documents are constructed according to the operation contacts.

3. A multi-round dialogue method for dynamic government affairs update as claimed in claim 1, characterized in that: The construction of government affairs documents and consultation question documents also includes: Acquire consultation question data of historical government affairs, wherein the consultation question data includes: consultation questions and answers corresponding to the consultation questions; A consulting question file is constructed according to the consulting questions and the answers corresponding to the consulting questions.

4. A multi-round dialogue method for dynamic government affairs update as claimed in claim 1, characterized in that: The method further comprises: According to the current government affairs situation in different regions, the number and problems of government affairs documents and the number and problems of consulting question documents in the folders of different regions are regulated.

5. A multi-round dialogue method for dynamic government affairs update as claimed in claim 1, characterized in that: The obtaining of the user input question and responding to the user input question in combination with the preset hit rule includes: Determine whether the question input by the user matches the item in the government affairs document and / or the question in the consultation question document according to the word segmentation rules, Bert model and keywords; When the question input by the user hits an item in the government affairs item file, the question-answering model matches the government affairs item file corresponding to the question input by the user in the government affairs item file to fill in the slot value; When the question input by the user hits the question in the consulting question file, the FAQ dialogue mode is entered; When the question input by the user does not match the item in the government affairs file and / or the question in the consulting question file, the question input by the user is a non-business question and the chat mode is entered.

6. A multi-round dialogue method for dynamic updating of government affairs as claimed in claim 5, characterized in that: The step of entering the FAQ dialogue mode includes: The question-answering model matches the answer corresponding to the question input by the user in the consulting question file and responds to the user.

7. A multi-round dialogue method for dynamic updating of government affairs as claimed in claim 5, characterized in that: The entering the chat mode includes: The dialogue template based on the small talk mode replies with an answer suitable for the question input by the user.

8. A multi-round dialogue device for dynamic updating of government affairs, characterized in that: include: A file construction module, used to construct government affairs documents and consulting question documents, convert the government affairs documents and consulting question documents into target formats, and save the converted government affairs documents and consulting question documents into folders in different regions; A model training module, used to perform model training on the government affairs documents and the consulting question documents in the folders of different regions respectively, to obtain question-answering models corresponding to different regions; A model updating module, when there is a change in the content of the government affairs document and / or the consulting question document, retraining the question-answering model based on the changed government affairs document and the consulting question, and dynamically updating the question-answering model; The question response module is used to obtain the user input question and respond to the user input question in combination with the preset hit rule.

9. An electronic device, wherein: The electronic device includes: A processor and a memory storing computer executable instructions, which when executed cause the processor to perform the method according to any one of claims 1-7.

10. A computer-readable storage medium, wherein: The computer-readable storage medium stores one or more instructions, which, when executed by a processor, implement the method of any one of claims 1-7.

Citation Information

Patent Citations

  • Intelligent customer service questioning and answering method and device for government affair service

    CN111400474A

  • Intelligent item question-answering implementation method

    CN112487166A

  • Intelligent question and answer method, device and equipment

    CN113377936A

  • Question and answer model training method and device and question and answer method and device

    CN114328841A

  • Horizontal member coupled non-welded modular structure with slab floor

    KR102307326B1

Cited By

  • Government affair intelligent question answering method and device, storage medium and computer equipment

    CN119474319A

  • Question and answer method and device based on context dependency relationship and storage medium

    CN121188150A