A device for assisting in the preparation of parliamentary responses, a method for assisting in the preparation of parliamentary responses, and a program.
The parliamentary response preparation support device automates the generation of questions and answers using a generative model, alleviating the preparation burden and enhancing efficiency.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-09-25
- Publication Date
- 2026-04-08
AI Technical Summary
Creating parliamentary response documents is burdensome for individuals responsible for preparing them, as they need to accurately grasp the content of questions from parliamentarians and handle overlapping content across multiple questions.
A parliamentary response preparation support device and method utilizing a generative model to assist in generating questions and answers based on user inputs, incorporating search and extraction of relevant materials to reduce the preparation burden.
Reduces the workload on those preparing parliamentary responses by automating the generation of questions and answers, improving efficiency and accuracy.
Smart Images

Figure 2026060932000001_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a parliamentary response document creation support device, a parliamentary response document creation support method, and a program for supporting the creation of parliamentary response documents.
Background Art
[0002] When a parliament is held, it is common for participants in the parliament to notify the executive branch of questions in advance. The executive branch creates a parliamentary response document summarizing the content of the responses to the questions from the members of parliament before the parliament is held.
[0003] Patent Documents 1 and 2 disclose a prediction system that predicts questions or answers in a shareholders' meeting using a pre-learned learned model.
Prior Art Documents
Patent Documents
[0004]
Patent Document 1
Patent Document 2
Summary of the Invention
Problems to be Solved by the Invention
[0005] The person in charge of creating the parliamentary response document must consider an appropriate response to the question. To this end, the person in charge needs to accurately grasp the content of the questions notified by the members of parliament, for example, by directly conducting a hearing with the members of parliament. In addition, when there is overlapping content in the questions notified by a plurality of members of parliament, the person in charge needs to adjust the questions and answers described in the parliamentary response document.
[0006] Thus, the person responsible for preparing parliamentary responses faces a significant burden. This disclosure aims to provide a parliamentary response preparation support device, a parliamentary response preparation support method, and a program that can alleviate the burden on the person responsible for preparing parliamentary responses. [Means for solving the problem]
[0007] A parliamentary response preparation support device according to one aspect of the present disclosure includes: a prompt creation unit that creates a first prompt including an instruction to cause a generation model to generate a question for parliamentary response based on the content of a question in parliament, and a second prompt including an instruction to cause the generation model to generate an answer for parliamentary response in response to the question; and an acquisition unit that acquires the question generated by the generation model based on the first prompt and the answer generated by the generation model based on the second prompt.
[0008] A method for supporting the preparation of parliamentary responses according to one aspect of the present disclosure is a method for supporting the preparation of parliamentary responses that is performed by a computer, wherein the computer performs the following processes: creating a first prompt that causes a generation model to generate a question for a parliamentary response based on the content of a question in parliament, and a second prompt that causes the generation model to generate an answer for the parliamentary response in response to the question; and obtaining the question generated by the generation model based on the first prompt and the answer generated by the generation model based on the second prompt.
[0009] A program according to one aspect of the present disclosure causes a computer to perform the following processes: create a first prompt that causes a generation model to generate a question for a parliamentary response based on the content of a question in parliament; and create a second prompt that causes the generation model to generate an answer for the parliamentary response to the question; and obtain the question generated by the generation model based on the first prompt and the answer generated by the generation model based on the second prompt. [Effects of the Invention]
[0010] According to this disclosure, the burden on those responsible for preparing parliamentary responses can be reduced. [Brief explanation of the drawing]
[0011] [Figure 1] This figure shows an example configuration of a parliamentary response preparation support system, including a parliamentary response preparation support device according to an embodiment of the present disclosure. [Figure 2] Block diagram showing an example of the hardware configuration of a user terminal. [Figure 3] Block diagram showing an example of the hardware configuration of a parliamentary response preparation support device. [Figure 4] A diagram illustrating an example of the functional configuration of a parliamentary response preparation support device. [Figure 5] A flowchart illustrating an example of the overall operation flow of a parliamentary response preparation support system. [Figure 6] A flowchart illustrating an example of the operation of a parliamentary response preparation support device in the question generation process. [Figure 7] This diagram shows an example of the parliamentary response creation screen before the user enters the content of the question. [Figure 8] This diagram shows an example of the screen used to create a parliamentary response after the user has entered the content of the question. [Figure 9] This diagram shows an example of the first prompt created by the prompt generation unit. [Figure 10] This diagram shows an example of a parliamentary response creation screen, including the question text generated by the generative model. [Figure 11] A flowchart illustrating an example of the operation of a parliamentary response preparation support device in the response text generation process. [Figure 12] This figure shows the first example of a second prompt created by the prompt creation unit. [Figure 13] This diagram shows an example of a parliamentary response creation screen, including the response text generated by the generative model. [Figure 14] A flowchart illustrating an example of the operation of the parliamentary response preparation support device in the process of generating additional questions. [Figure 15] Figure showing an example of the third prompt created by the prompt creation unit [Figure 16] Figure showing an example of a parliamentary answer document creation screen including additional question texts generated by the generation model [Figure 17] Figure showing an example of a search result display screen [Figure 18] Figure showing an example of an adoption selection screen [Figure 19] Figure showing an example of a parliamentary answer document creation screen when creating an answer text based on materials adopted on the adoption selection screen [Figure 20] Figure showing a second example of the second prompt created by the prompt creation unit [Figure 21] Figure showing an example of a parliamentary answer document creation screen in which an answer text generated by the generation model based on the second example of the second prompt is displayed in the message display field
Modes for Carrying Out the Invention
[0012] [[ID=2,6]] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings. However, the present disclosure is not limited to the examples described in the embodiments. In the following description, those having the same functions and configurations are denoted by the same reference numerals, and the description thereof is omitted.
[0013] <Overview> The present disclosure relates to a parliamentary answer document creation support device that supports a creator in creating a parliamentary answer document based on the content of a question notified by a parliamentarian when a parliament is convened. In the following description, the creator of the parliamentary answer document is described as a user. <00001,07> Note that the term "parliament" used in this specification includes, in its meaning, other meetings such as any committee in addition to the parliament. Also, specific examples of the "content of the question" in this specification include the "question matters" and "summaries" described in the general question speech notice items.
[0015] <System Configuration> Figure 1 shows an example configuration of a parliamentary response preparation support system, including a parliamentary response preparation support device according to an embodiment of the present disclosure.
[0016] In the example shown in Figure 1, the parliamentary response preparation support system 100 includes a user terminal 10, a parliamentary response preparation support device 20, a generation model 30, and a network 40.
[0017] User terminal 10 is a terminal device used by the user responsible for preparing the parliamentary response document. User terminal 10 is a type of computer, such as a PC (Personal Computer), smartphone, or tablet device.
[0018] The parliamentary response preparation support device 20 is a device that generates meeting minutes data based on user input operations on the user terminal 10. The parliamentary response preparation support device 20 is a type of computer, such as a PC, smartphone, or tablet device. Details of the parliamentary response preparation support device 20 will be described later.
[0019] Generative model 30 is a deep learning model that includes a vast number of parameters. An example of generative model 30 is a large language model (LLMS) that is generated by deep learning based on a large amount of text data and is useful in natural language processing. A large language model can interpret the content of input text and generate an appropriate response according to the content. An example of a large language model is GPT (Generative Pre-trained Transformer) developed by OpenAI.
[0020] In this disclosure, the generative model 30 is not limited to a large-scale language model. Furthermore, the data input to the generative model 30 is not limited to text format data. The generative model 30 may be a model that takes data other than text format as input and outputs data other than text format as a response. Examples of data other than text format include image format, audio format, or a format that combines text, images, and audio.
[0021] Network 40 is a public network, such as the internet.
[0022] The user terminal 10 and the parliamentary response preparation support device 20 are connected via a network 40 so as to be able to communicate. Furthermore, the parliamentary response preparation support device 20 and the generation model 30 are also connected via the network 40 so as to be able to communicate. In the example shown in Figure 1, the network through which the user terminal 10 and the parliamentary response preparation support device 20 communicate, and the network through which the parliamentary response preparation support device 20 and the generation model 30 communicate, are the same network 40; however, this disclosure is not limited to this example. The network through which the user terminal 10 and the parliamentary response preparation support device 20 communicate, and the network through which the parliamentary response preparation support device 20 and the generation model 30 communicate, may be different networks.
[0023] In the parliamentary response document creation support system 100 shown in Figure 1, the parliamentary response document creation support device 20 inputs prompts generated based on the user's input operations to the user terminal 10 into the generation model 30. The parliamentary response document creation support device 20 then retrieves the question and answer texts to be included in the parliamentary response document, which are generated by the generation model 30 based on the prompts. The question and answer texts retrieved by the parliamentary response document creation support device 20 are displayed on the user terminal 10. This allows the user to create a parliamentary response document with relatively little effort.
[0024] <Hardware configuration of user terminal 10> Figure 2 is a block diagram showing an example of the hardware configuration of a user terminal 10. The user terminal 10 is a computer comprising a processor 11, an operation unit 12, a display unit 13, a communication unit 14, and a storage unit 15.
[0025] The processor 11 is, for example, a CPU (Central Processing Unit). The processor 11 reads and executes programs stored in the memory unit 15, thereby realizing various functions of the user terminal 10.
[0026] The storage unit 15 is composed of, for example, ROM (Read Only Memory), RAM (Random Access Memory), and either an HDD (Hard Disk Drive) or an SSD (Solid State Drive), or a combination thereof. The storage unit 15 stores programs that the processor 11 reads and executes, as well as various data used for program execution.
[0027] The operation unit 12 is a user interface that accepts various operations from the user. The operation unit 12 is composed of, for example, an operation device such as a keyboard, mouse, touchpad, or trackball.
[0028] The display unit 13 is a display device such as a liquid crystal display or an organic EL (Electro Luminescence) display.
[0029] The communications unit 14 connects the user terminal 10 to at least the parliamentary response preparation support device 20 via the network 40, enabling communication between them.
[0030] <Hardware configuration of the parliamentary response preparation support device 20> Figure 3 is a block diagram showing an example of the hardware configuration of the parliamentary response preparation support device 20. The parliamentary response preparation support device 20 is a computer comprising a processor 21, a communication unit 22, and a storage unit 23.
[0031] The processor 21 is, for example, a CPU. The processor 21 reads and executes programs stored in the memory unit 23, thereby realizing various functions of the parliamentary response preparation support device 20. The various functions of the parliamentary response preparation support device 20 will be described later.
[0032] The storage unit 23 is composed of, for example, ROM, RAM, and either an HDD or SSD, or a combination thereof. The storage unit 15 stores the program that the processor 11 reads and executes, as well as various data used for program execution.
[0033] The communication unit 22 connects the parliamentary response preparation support device 20 to at least the generation model 30 via the network 40 so that it can communicate with it.
[0034] <Functional Configuration of the Parliamentary Response Preparation Support Device 20> Figure 4 is a diagram illustrating an example of the functional configuration of the parliamentary response preparation support device 20. In the example shown in Figure 4, the parliamentary response preparation support device 20 comprises an input receiving unit 24, a prompt creation unit 25, an acquisition unit 26, an output unit 27, a search unit 28, and an extraction unit 29. These functional configurations of the parliamentary response preparation support device 20 are realized by the processor 21 shown in Figure 3 reading and executing a program stored in the storage unit 23.
[0035] The input receiving unit 24 receives input from the user to the user terminal 10. More specifically, when the user makes various inputs via the operation unit 12 of the user terminal 10, the processor 11 of the user terminal 10 generates input information indicating the content of the input and transmits the generated input information to the parliamentary response document preparation support device 20 via the network 40. The input receiving unit 24 of the parliamentary response document preparation support device 20 receives user input based on the input information received via the communication unit 22.
[0036] The prompt generation unit 25 creates a prompt, which is an instruction statement for the generation model 30, based on the user input received by the input reception unit 24. The prompt created by the prompt generation unit 25 includes at least a first prompt that includes an instruction for the generation model 30 to generate a question for the parliamentary response based on the content of the question, and a second prompt that includes an instruction for the generation model to generate an answer for the parliamentary response in response to the question.
[0037] The acquisition unit 26 acquires the question or answer text generated by the generation model 30 based on the prompt created by the prompt creation unit 25. More specifically, the prompt created by the prompt creation unit 25 is transmitted to the generation model 30 via the network 40 by the communication unit 22. The generation model 30 transmits the question or answer text generated based on the prompt to the parliamentary response document creation support device 20 via the network 40. The acquisition unit 26 acquires the question or answer text received via the communication unit.
[0038] The output unit 27 outputs at least one of the question and answer texts acquired by the acquisition unit 26 to the user terminal 10. More specifically, the output unit 27 transmits at least one of the question and answer texts to the user terminal 10 via the network 40 using the communication unit 22. The user terminal 10 displays a screen containing at least one of the received question and answer texts on the display unit 13. This allows the user to view the question and answer texts generated by the generation model 30.
[0039] The search unit 28 searches for text on the World Wide Web related to the content of a question when the input receiving unit 24 receives input requesting a search related to the content of the question. In other words, the search unit 28 executes the search when the user requests the operation unit 12 of the user terminal 10 to perform a search related to the content of the question. The search results from the search unit 28 can be included in the prompt as reference text when the prompt creation unit 25 creates a prompt, which can be used by the generation model 30 when generating a question or answer.
[0040] The extraction unit 29 performs the extraction when the input receiving unit 24 receives input requesting the extraction of at least one of the question sentences and answer sentences related to the content of the question from past meeting minutes. In other words, the extraction unit 29 performs the extraction when the user requests the operation unit 12 of the user terminal 10 to extract a question sentence or answer sentence related to the content of the question from past meeting minutes. The extraction results by the extraction unit 29 can be included in the prompt as reference text when the prompt creation unit 25 creates a prompt, which can be used as reference when the generation model 30 generates a question sentence or answer sentence.
[0041] <Example of operation of the parliamentary response preparation support device 20> The following describes an example of the operation of the parliamentary response preparation support device 20. Figure 5 is a flowchart illustrating an example of the overall operation flow of the parliamentary response preparation support device 20. In the example shown in Figure 5, the parliamentary response preparation support device 20 sequentially executes the question generation process in step S1, the answer generation process in step S2, and the additional question generation process in step S3.
[0042] (Question text generation process) The question generation process in step S1 of Figure 5 will be explained in detail. Figure 6 is a flowchart illustrating an example of the operation of the parliamentary response preparation support device 20 in the question generation process.
[0043] In step S11, the input receiving unit 24 receives input from the user regarding the content of a question to be asked in the assembly. The content of the question to be asked in the assembly refers to the content of a question notified by a member of parliament participating in the assembly. When a user who has received notification from a member of parliament inputs the content of the question via the operation unit 12 of the user terminal 10, the input receiving unit 24 can accept the input content, which is the content of the question.
[0044] Figures 7 and 8 show examples of the parliamentary response creation screen 500 displayed on the display unit 13 of the user terminal 10 in step S11.
[0045] Figure 7 shows an example of the parliamentary response creation screen 500 before the user enters the content of the question. Figure 8 shows an example of the parliamentary response creation screen 500 after the user has entered the content of the question. In the examples shown in Figures 7 and 8, the parliamentary response creation screen 500 includes a message display field 501, an input field 502, a document submission button 503, a search button for examples from other municipalities 504, a past minutes reference button 505, and a create button 506.
[0046] The message display area 501 is a field where messages to the user, user input, and questions and answers generated by the generative model 30 are displayed. In the example shown in Figure 7, the message to the user is displayed inside a speech bubble in the message display area 501.
[0047] As shown in Figure 7, on the parliamentary response creation screen 500 before the user enters the content of the question, the message display field 501 contains a message 501a prompting the user to enter the content of the question. As shown in Figure 8, on the parliamentary response creation screen 500 after the user has entered the content of the question, the message display field 501 contains not only the message 501a prompting the user to enter the content of the question, but also a message 501b reflecting the content of the question entered by the user. In the examples shown in Figures 7 and 8, messages sent from the system to the user are shown in a speech bubble from the left. In the example shown in Figure 8, the message reflecting the content entered by the user is shown in a speech bubble from the right.
[0048] Input field 502 is a field where the user enters information. As shown in Figure 7, before the user enters the content of the question, input field 502 displays a message prompting the user to enter information: "Please generate an actual question based on the advance notice from the city council member." Figure 8 shows an example where the user has entered the following question: "Question: Regarding the learning system Summary: Are elementary and junior high schools in the city considering introducing it?" In the example shown in Figure 8, the content entered in input field 502 is reflected in message 501b of message display field 501.
[0049] The document submission button 503 is a button that accepts document input from the user. Documents are materials that the generation model 30 uses as reference when generating a question based on the content of the question. Specific examples of documents include document files of parliamentary responses actually used in the past, or document files related to the content of the question. Users can input a file as a document by operating the document submission button 503 and selecting a file stored on the user terminal 10. Alternatively, users can input a file as a document by dragging and dropping the file they want to use onto the document submission button 503.
[0050] The "Search for Examples from Other Municipalities" button 504 is a button that accepts a request to search for examples from other municipalities related to the content of the question on the World Wide Web. After the user enters the content of the question in the input field 502 and operates the "Search for Examples from Other Municipalities" button 504, the search unit 28 searches for examples from other municipalities related to the content of the question on the World Wide Web. The search results from the search unit 28 are displayed, for example, in the message display field 501.
[0051] An example of how the parliamentary response preparation support device 20 operates when it receives input for the search button 504 for examples from other municipalities will be described later.
[0052] The Past Meeting Minutes Reference Button 505 is a button that references past meeting minutes to extract at least one of the question and answer related to the question entered by the user. When the user enters the content of the question in the input field 502 and then operates the Past Meeting Minutes Reference Button 505, the extraction unit 29 extracts the question or answer related to the content of the question from past meeting minutes. The extraction results by the extraction unit 29 are displayed, for example, in the message display field 501.
[0053] Past meeting minutes may be stored in advance by the parliamentary response preparation support device 20, or they may be entered by the user when they operate the past meeting minutes reference button 505.
[0054] Furthermore, when a user operates the "Search for Examples from Other Municipalities" button 504 or the "Reflect Past Meeting Minutes" button 505, the parliamentary response preparation support device 20 may search for materials corresponding to each button. Also, when a user operates the "Submit Materials" button 503, the "Search for Examples from Other Municipalities" button 504, or the "Reflect Past Meeting Minutes" button 505, the parliamentary response preparation support device 20 may transition to a screen where the user can choose whether or not to reflect the materials received from the user, or the search results from the parliamentary response preparation support device 20, in the question or answer. Details of the reflection / reflection screen will be described later.
[0055] The create button 506 is operated when the user has entered the content of a question into the input field 502 and requests the generation model 30 to create a question. When the create button 506 is operated, the content of the question entered in the input field 502 is reflected in the message display field 501 as a new message 501b, and the processing of the parliamentary response creation support device 20 proceeds to step S12.
[0056] In step S12, the prompt generation unit 25 creates a first prompt that includes an instruction to the generation model to generate a question for the parliamentary response based on the content of the input question. The question for the parliamentary response is a question generated to be included in the parliamentary response created by the user.
[0057] Figure 9 shows an example of a first prompt created by the prompt creation unit 25. Figure 9 shows an example in which the generation model 30 generates a question based on a prior notice given by a council member for the holding of a city council meeting. The question items included in the prior notice are entered inside the {} of "Question items:{}". The summary of the question included in the prior notice is entered inside the {} of "Summary:{}". These entries are based on the content of the input received by the input reception unit 24 based on the operation performed by the user via the user terminal 10. In the example shown in Figure 9, the question item is "Regarding the learning system". Also in the example shown in Figure 9, the summary is "Are elementary and junior high schools in the city considering introducing it?".
[0058] The first prompt may include reference text that the generative model 30 uses as a reference when generating the question. In the example shown in Figure 9, the following sentences are reference text: "Please refer to the following example."
[0059] The reference text includes, for example, questions, summaries, and examples of question sentences corresponding to questions and summaries that have actually been included in past parliamentary response documents. The reference text provides the generation model 30 with concrete examples of the style and logical development of question sentences that have actually been included in parliamentary response documents. By including such reference text in the first prompt, the generation model 30 can improve the probability of generating a sentence that is suitable as a question sentence to be included in the parliamentary response document. Note that the reference text is, for example, a sentence prepared in advance by the system administrator of the parliamentary response document creation support system 100 during the system construction. Alternatively, the reference text may be the content of a document (sentences included in the document) entered by the user via the document submission button 503. Alternatively, the reference text may be a sentence based on examples from other municipalities that the search unit 28 has searched on the World Wide Web in response to the user's operation. Alternatively, the reference text may be a question sentence or answer sentence extracted by the extraction unit 29 from past examples entered by the user.
[0060] In step S13, the communication unit 22 sends a first prompt to the generation model 30. As a result, the generation model 30 generates a question sentence based on the first prompt.
[0061] In step S14, the acquisition unit 26 acquires the question text generated by the generation model 30.
[0062] In step S15, the output unit 27 outputs a question to the user terminal 10. This allows the user to view a screen containing a question corresponding to the content of the question, which was generated by the generation model 30.
[0063] Figure 10 shows an example of the parliamentary response creation screen 500, which includes the question text generated by the generation model 30. In the example shown in Figure 10, a new message 501c, which includes the question text generated by the generation model 30, is displayed in the message display area 501. Note that the parliamentary response creation screen 500 exemplified in Figure 10 is a screen that has changed from the parliamentary response creation screen 500 exemplified in Figure 7 due to the progress of processing. In the parliamentary response creation screen 500 exemplified in Figure 10, the old message is scrolled out and no longer displayed in the message display area 501 as a new message is added.
[0064] Furthermore, as shown in Figure 10, in the parliamentary response creation screen 500 where the question text is displayed, the content displayed in the input field 502 has changed from the example shown in Figure 7. Specifically, a response text generation button 502a and an additional question text generation button 502b have been added. The response text generation button 502a is a button that accepts a request for the generation model 30 to generate a response text for the question text generated by the generation model 30, when the user accepts the question text displayed in the message display field 501. The additional question text generation button 502b is a button that accepts a request for the generation model 30 to generate additional questions in addition to the question text displayed in the message display field 501.
[0065] Furthermore, as illustrated in Figure 10, while the parliamentary response creation screen 500, which includes the question generated by the generation model 30, is displayed, the user can also modify the question generated by the generation model 30. Specifically, the user can instruct the generation model 30 to modify the question by entering a sentence instructing the generation model 30 to modify the question in the "Changes:" field of input field 502. An example of a sentence instructing the generation model 30 to modify the question is, "Please revise this question in more detail." The sentence instructing the generation model to modify the question may also include specific parts that the user specifies need to be changed.
[0066] In step S15 of Figure 6, after the user is presented with a screen for creating a parliamentary response document including the question, if the user requests the generation model 30 to generate a response document, the process proceeds to the response document generation process in step S2 of Figure 5. In the example shown in Figure 10, the user requests the generation model 30 to generate a response document when the user presses the response document generation button 502a.
[0067] On the other hand, in step S15 of Figure 6, after the user is presented with a screen for creating a parliamentary response document including the question, if the user requests the generation model 30 to generate an additional question, the process proceeds to step S3 of Figure 5. In the example shown in Figure 10, the user requests the generation model 30 to generate an additional question when the user presses the button 502b to generate the additional question.
[0068] (Response text generation process) The response text generation process in step S2 of Figure 5 will be explained in detail. Figure 11 is a flowchart illustrating an example of the operation of the parliamentary response document creation support device 20 in the response text generation process.
[0069] In step S21, the input receiving unit 24 receives input from the user requesting the generation of a response. Specifically, the user's request for the generation of a response is an operation on the response generation button 502a in Figure 10.
[0070] In step S22, the prompt creation unit 25 creates a second prompt that includes an instruction to cause the generation model to generate a response sentence, based on an operation by the user requesting the generation of a response sentence.
[0071] Figure 12 shows a first example of a second prompt created by the prompt creation unit 25. Figure 12 shows an example of a second prompt when the generation model 30 is instructed to generate a response to a question generated by the generation model 30 when holding a city council meeting.
[0072] In the example shown in Figure 12, reference text may be included to help the generative model 30 generate the response. In the example shown in Figure 12, the text following "Please refer to the following example." is the reference text. The reference text includes, for example, a question actually written in a past parliamentary response document and the response to that question. The reference text included in the second prompt, like the reference text included in the first prompt, provides the generative model 30 with concrete examples of the writing style and logical development of responses actually written in parliamentary responses. By including such reference text in the second prompt, the probability that the generative model 30 will generate a text that is appropriate as a response to be written in a parliamentary response document can be improved.
[0073] In step S23, the communication unit 22 sends a second prompt to the generation model 30. As a result, the generation model 30 generates a response sentence based on the second prompt.
[0074] In step S24, the acquisition unit 26 acquires the response text generated by the generation model 30.
[0075] In step S25, the output unit 27 outputs the response text to the user terminal 10. This allows the user to view a screen containing the response text generated by the generation model 30.
[0076] Figure 13 shows an example of the parliamentary response creation screen 500, which includes the response text generated by the generation model 30. In the example shown in Figure 13, a new message 501d, which includes the response text generated by the generation model 30, is displayed in the message display field 501. Note that the parliamentary response creation screen 500 exemplified in Figure 13 is a screen that has changed from the parliamentary response creation screen 500 exemplified in Figures 7 and 10 as the processing progresses.
[0077] In the example shown in Figure 13, the message display area 501 displays two messages: message 501d, which reflects that a new request has been received from the user to have the generation model 30 generate a response; and message 501e, which contains the response generated by the generation model 30. Message 501d is displayed in the message display area 501 when the user operates the response generation button 502a in Figure 10. Message 501e is displayed in the message display area 501 when the output unit 27 outputs a response.
[0078] Furthermore, as shown in Figure 13, in the parliamentary response creation screen 500 where the question is displayed, the content displayed in the input field 502 has changed from the example shown in Figure 10. Specifically, a "Change to Yes" button 502c and a "Change to Consider" button 502d have been added.
[0079] The "Change to Do" button 502c is a button that accepts requests from users who have viewed the response text generated by the generation model 30 to revise the response text to something more positive, such as "I will do it." or "I will execute it." When the "Change to Do" button 502c is operated, the prompt creation unit 25 creates a revision prompt to revise the response text to something more positive. The revision prompt is an example of the fourth prompt of this disclosure. When the generation model 30 generates a revised response text based on the revision prompt, the acquisition unit 26 acquires the revised response text, and the output unit 27 outputs the revised response text to the user terminal 10.
[0080] An example of a correction prompt that appears when input is received for the "Change to Do" button 502c is as follows:
[0081] "As a city employee, I want the conclusion in the response to mean 'we will consider it' or 'we will do it.' Please revise the response, including the reasons and premises, to achieve this meaning. Also, responses like 'Thank you for your question,' 'Understood,' or 'We will do XX' are unnecessary."
[0082] Such correction prompts allow the generative model 30 to rewrite the response with more positive content.
[0083] On the other hand, the "Change to Consider" button 502d is a button that accepts requests from users who have viewed the response text generated by the generation model 30 to revise the response text to something more negative, such as "~I will consider it." or "~I will do my best." When the "Change to Consider" button 502d is pressed, the prompt creation unit 25 creates a revision prompt to revise the response text to something more negative. When the generation model 30 generates a revised response text based on the revision prompt, the acquisition unit 26 acquires the revised response text, and the output unit 27 outputs the revised response text to the user terminal 10.
[0084] An example of a correction prompt that may appear when input is received for the "Change to Consider" button 502d is as follows:
[0085] "As a city employee, I would like to change the conclusion in the response from 'We will implement it' to 'We will consider it.' Please revise the response, including the reasons and premises, to achieve this meaning. Also, responses such as 'Thank you for your question,' 'Understood,' or 'We will do XX' are unnecessary."
[0086] Such correction prompts allow the generation model 30 to rewrite the response text with more backward-looking content.
[0087] Furthermore, if the generation model 30 is to modify the response text, the user may enter the modification policy in text in the input field 502. In this case, the prompt creation unit 25 should create a modification prompt based on the content entered by the user in the input field 502.
[0088] Furthermore, in the response generation process, similar to the question generation process, the system can accept input from the user. The user can input a file as material by operating the material input button 503 and selecting a file stored on the user terminal 10. Alternatively, the user can input a file as material by dragging and dropping the file they wish to use onto the material input button 503.
[0089] (Process to generate additional questions) The process of generating additional questions in step S3 of Figure 5 will be explained in detail. Figure 14 is a flowchart illustrating an example of the operation of the parliamentary response preparation support device 20 in the process of generating additional questions.
[0090] In step S31, the input receiving unit 24 receives input from the user requesting the generation of an additional question. Specifically, the user's request for the generation of an additional question is an operation on the additional question generation button 502b in Figure 10.
[0091] In step S32, the prompt generation unit 25 creates a third prompt that includes an instruction to the generation model to generate an additional question sentence, based on an operation by the user requesting the generation of an additional question sentence.
[0092] Figure 15 shows an example of a third prompt created by the prompt creation unit 25. Figure 15 shows an example of a third prompt when the generation model 30 is instructed to generate additional questions in response to the questions generated by the generation model 30 for the holding of a city council meeting.
[0093] In Figure 15, the answer text generated by the generative model 30 in step S2 of Figure 5 is entered inside the curly braces {} of "Answer text:{}".
[0094] In step S33, the communication unit 22 sends a third prompt to the generation model 30. As a result, the generation model 30 generates an additional question sentence based on the third prompt.
[0095] In step S34, the acquisition unit 26 acquires the additional question sentences generated by the generation model 30.
[0096] In step S35, the output unit 27 outputs an additional question to the user terminal 10. This allows the user to view a screen that includes the additional question generated by the generation model 30.
[0097] Figure 16 shows an example of the parliamentary response creation screen 500, including the additional question text generated by the generation model 30. In the example shown in Figure 16, the message display field 501 now displays message 501d, which includes the additional question text generated by the generation model 30. Note that the parliamentary response creation screen 500 exemplified in Figure 16 is a screen that has changed from the parliamentary response creation screen 500 exemplified in Figures 7, 10, and 13 as the processing progresses.
[0098] In the example shown in Figure 16, the message display area 501 displays two messages: message 501f, which reflects that a request has been received from the user to have the generation model 30 generate an additional question; and message 501g, which contains the additional question generated by the generation model 30. Message 501f is displayed in the message display area 501 when the user operates the additional question generation button 502b in Figure 10. Message 501g is displayed in the message display area 501 when the output unit 27 outputs an additional question.
[0099] This parliamentary response creation screen 500 allows the user to view the additional questions generated by the generation model 30. If the user wants the generation model 30 to generate answers to the additional questions, they should operate the answer generation button 502a.
[0100] (Process to search for examples from other municipalities) The following describes the process when a user inputs an action on the "Search for Examples from Other Municipalities" button 504 in the parliamentary response creation screen 500, such as Figure 10.
[0101] When the input reception unit 24 receives input for an operation on the search button 504 for examples from other municipalities, the search unit 28 searches the World Wide Web for web pages of other municipalities (especially pages containing news releases).
[0102] The output unit 27 then outputs the search results from the search unit 28 to the user terminal 10. Figure 17 shows an example of the search results display screen 600. Figure 17 illustrates a search results display screen 600 that is independent of the parliamentary response document creation screen 500 shown in Figures 7, 8, 10, 13, or 16, but the disclosure is not limited to this, and for example, the search results may be displayed in the message display field of the parliamentary response document creation screen 500.
[0103] In the example shown in Figure 17, the search results display screen 600 includes a search results display field 601, a summary button 602, a summary display field 603, and a copy button 604.
[0104] The search results display area 601 is the area that displays the search results from the search unit 28.
[0105] The summary button 602 is a button that summarizes the content of each web page in the search results.
[0106] The summary display field 603 is a field that displays the summarized content when the user interacts with the summary button 602. The web page summary can be generated, for example, by the prompt creation unit 25 creating a prompt that causes the generation model 30 to generate a summary of the web page.
[0107] The copy button 604 is a button that copies the content displayed in the summary display field 603. Specifically, when the copy button 604 is pressed, the screen display on the user terminal 10 switches from the search results display screen 600 to the parliamentary response document creation screen 500, and the content displayed in the summary display field 603 is copied to the input field 502. As a result, search results related to the content of the question are entered into the input field 502, so the user can easily input a request to generate a question or answer document using the search results as a reference to the generation model 30.
[0108] (A process to select whether or not to reflect the data or search results) The following describes the processing that occurs when a user operates the document submission button 503, the search button for examples from other municipalities 504, or the past minutes reference button 505 on the parliamentary response creation screen 500 shown in Figure 10. Note that the following describes an example of the processing that occurs when the search button for examples from other municipalities 504 is operated, which differs from the example explained in relation to Figure 17.
[0109] When the input receiving unit 24 receives input for the document receiving button 503, the output unit 27 receives data about the document from the user and outputs a screen to the user terminal 10 that allows the user to choose whether or not to reflect the content of the document received from the user in the question or answer text.
[0110] Furthermore, when the input receiving unit 24 receives input for an operation on the search button 504 for other local government case examples, the search unit 28 detects web pages related to other local government case examples that are relevant to the question from among web pages related to other local government case examples that exist on the World Wide Web or on a network to which the parliamentary response document creation support device 20 has access rights. Then, the output unit 27 outputs a reflection / reflection selection screen to the user terminal 10, allowing the user to choose whether or not to reflect a summary of the content of the detected web pages in the question or answer document.
[0111] Furthermore, when the input reception unit 24 receives input for an operation on the past minutes reference button 505, the search unit 28 searches for minutes related to the question from among the past minutes existing on the network to which the parliamentary response document creation support device 20 has access rights. Then, the output unit 27 outputs a reflection / reflection selection screen to the user terminal 10, allowing the user to choose whether or not to reflect the summary of the searched minutes in the question or answer document.
[0112] Figure 18 shows an example of the display of the "Indicate Changes" selection screen 700 that is displayed on the user terminal 10 when the "Search for Examples from Other Municipalities" button 504 is operated. The display of changes selection screen 700 may be a separate screen from the parliamentary response creation screen 500, or it may be a screen that is displayed in front of the parliamentary response creation screen 500, like a pop-up screen.
[0113] In the example shown in Figure 18, the screen 700 for selecting whether to apply or not includes a URL display field 701, a "summarization perspective" display field 702, a re-summarization button 703, a summary display field 704, a "utilize summary results" button 705, a reason input field 706, an accept button 707, and a reject button 708.
[0114] The URL display field 701 is a field that displays the URL of the search result found by the search unit 28. In the example in Figure 18, when a user operates the search button 504 for examples from other municipalities on the parliamentary response creation screen 500, the URL of the web page "Example: Sports DX Project" of an example from another municipality found in response to the question "Regarding DX-related initiatives" is displayed in the URL display field 701.
[0115] The "Summary Criteria" display field 702 is a field where the user enters the criteria they want to use when summarizing the content of a web page. In the initial state of the Reflection / Resolution Selection screen 700, the questions entered by the user in the message display field 501 of the parliamentary response creation screen 500 are transferred to the "Summary Criteria" display field 702. The "Summary Criteria" display field 702 may be configured to allow the user to edit it as needed.
[0116] The re-summarization button 703 is a button that causes the generation model 30 to generate a summary of the web page detected by the search unit 28. When the re-summarization button 703 is operated, the parliamentary response preparation support device 20 sends information about the content of the search unit 28's detection result (web page of an example from another local government) and a prompt for summarization to the generation model 30, and obtains a summary from the generation model.
[0117] The summary display field 704 is a field where, when the user operates the resummarize button 703, a summary of the web page corresponding to the URL in the URL display field 701 is displayed.
[0118] The "Adopt" button 707 is used when the user wants to adopt the summary displayed in the summary display field 704 and incorporate it into the creation of the question or answer. When the user operates the "Adopt" button 707, the screen returns from the "Apply / Not Approved" selection screen 700 to the parliamentary response creation screen 500, and the user can then create the question or answer based on the summary displayed in the summary display field 704. Details regarding what happens after the "Adopt" button 707 is operated and the user returns to the parliamentary response creation screen 500 will be described later.
[0119] The "Use Summary Results" button 705 allows the user to select either "Use Positively" or "Use Negatively." "Use Positively" is selected when the user wants to use the summary displayed in the summary display field 704 in a positive sense when creating the question or answer on the original parliamentary response creation screen 500. "Use Negatively" is selected when the user wants to use the summary displayed in the summary display field 704 in a negative sense when creating the question or answer on the original parliamentary response creation screen 500. Figure 18 shows an example where the user has selected "Use Negatively."
[0120] The reason input field 706 is for entering the reason for using the summary, which will be reflected when the summary is adopted and the generation model 30 generates a question or answer based on the summary. The reason input field 706 can be edited by the user as needed.
[0121] The reject button 708 is used when the summary displayed in the summary display field 704 is not to be used in creating the question or answer. When the reject button 708 is pressed, the parliamentary response creation support device 20 returns the screen display to the original parliamentary response creation screen 500 without reflecting the summary displayed in the summary display field 704.
[0122] Note that the display / rejection selection screen 700 shown in Figure 18 is an example of a screen output by the output unit 27 when the search button 504 for examples from other municipalities is operated on the parliamentary response creation screen 500. The display / rejection selection screen output by the output unit 27 when the document submission button 503 or the past minutes reference button 505 is operated may differ from the example in Figure 18 in at least part of its content.
[0123] In the screen for selecting whether to upload or not to upload documents, which is output to the user terminal 10 in response to the operation of the document submission button 503, a button for accepting document uploads from the user (a button that accepts drag and drop, or a button to select a document on the network that the parliamentary response document creation support device 20 has access to) should be displayed instead of the URL display field 701 in Figure 18. The summary display field should then display a summary of the contents of the document received from the user. In the screen for selecting whether to upload or not to upload documents, which is output to the user terminal 10 in response to the operation of the document submission button 503, other displayed items should be the same as in the example in Figure 18.
[0124] In the screen for selecting whether to reflect the changes, which is output to the user terminal 10 in response to the operation of the past minutes reference button 505, the URL display field 701, similar to that in Figure 18, should display a URL indicating the location of the web page or minutes file corresponding to the past minutes that exists on the network to which the parliamentary response document creation support device 20 has access rights. The summary display field should then display a summary of the past minutes. In the screen for selecting whether to reflect the changes, which is output to the user terminal 10 in response to the operation of the past minutes reference button 505, other displayed items should be the same as in the example in Figure 18.
[0125] Figure 19 shows an example of the parliamentary response creation screen 500 when creating a response based on examples from other municipalities adopted on the reflection / failure selection screen 700. In Figure 19, the message display field 501 shows message 501b, which reflects the content of the question entered by the user, and message 501c, which includes the question text generated by the generation model 30.
[0126] Furthermore, Figure 19 shows the content of other municipality examples, which were displayed and summarized as search results on the application / rejection selection screen 700 illustrated in Figure 18, in a newly added summary display field 502e in the input field 502. At the top of the summary display field 502e, it is indicated whether the search results adopted on the application / rejection selection screen 700 belong to "Documents," "Examples from Other Municipalities," or "Past Meeting Minutes."
[0127] The user reviews the contents of the summary display field 502e and edits it as needed. Then, if the user wants to create an answer using that content, they operate the answer / question creation button 502f in the input field 502. The answer / question creation button 502f is a button that causes the generation model 30 to generate an answer to the question based on the created question and the contents of the summary display field 502e.
[0128] In detail, when the answer / question creation button 502f is operated, the prompt creation unit 25 creates a second prompt that causes the generation model 30 to generate an answer. Figure 20 shows a second example of the second prompt created by the prompt creation unit 25. The prompt shown in Figure 20 is a prompt created by the prompt creation unit 25 in response to the operation of the answer / question creation button 502f, and is another example of the second prompt illustrated in Figure 12.
[0129] In the second example of the second prompt illustrated in Figure 20, the generated "question" (the question displayed in message 501c), the content displayed in the summary display field 502e as "Document 1", the content entered using the "Use of Summary Results" button 705 as "Document Utilization Policy 1" (either positively or negatively), and the content entered in the reason input field 706 as "Reason 1". As a result, the generation model 30 can generate an answer to the question that reflects the content of Document 1 negatively.
[0130] Figure 21 shows an example of the parliamentary response creation screen 500, in which the response text generated by the generation model 30 based on the second example of the second prompt shown in Figure 20 is displayed in the message display field 501.
[0131] In the message display area 501 of Figure 21, a message 501d reflecting the user's operation of the answer / question creation button 502f and a message 501e containing the answer generated by the generation model 30 are displayed. The answer contained in message 501e reflects the content displayed in the summary display area 502e with the nuance specified by the user using the "Utilize Summary Results" button 705.
[0132] Furthermore, if the user is not satisfied with the response generated by the generation model 30, which is displayed as message 501e in Figure 21, they may edit the content of the summary display field 502e and then operate the response / question creation button 502f again. In this case, the generation model 30 will generate a response reflecting the edited content and redisplay it in the message display field 501. Alternatively, the user may directly edit the prompt in the prompt editing field 502g, causing the generation model 30 to recreate the response. When the user operates the template selection button 502h, it will display a pop-up of frequently used prompt templates for the user to select. The prompt template selected by the user will be displayed in the prompt editing field 502g. In this case, the prompt displayed in the prompt editing field 502g may already reflect the created question text or the content of the summary display field 502e.
[0133] If the desired prompt can be created in the prompt editing field 502g, the user operates the prompt execution button 502i. When the prompt execution button 502i is operated, the parliamentary response document creation support device 20 causes the generation model 30 to generate a response document based on the prompt in the prompt editing field 502g. This allows the user to have the generation model 30 generate response documents while changing the prompt until a satisfactory response document is obtained.
[0134] In the example described above, when the document submission button 503, the search button for examples from other municipalities 504, or the past minutes reference button 505 is operated on the parliamentary response creation screen 500 shown in Figure 10, an example was described in which the generation model 30 generates a response by adopting a summary of the document or search results corresponding to the operated button. This disclosure is not limited to this, and it is also possible to have the generation model 30 generate a question using a summary corresponding to the operated button. In this case, for example, when the question items are entered in the message display field 501 as shown in Figure 8, and the user operates the document submission button 503, the search button for examples from other municipalities 504, or the past minutes reference button 505, the reflection / rejection selection screen described above is displayed. When the user operates the adoption button on the reflection / rejection selection screen, the summary generated on the reflection / rejection selection screen is reflected on the parliamentary response creation screen 500, and when the response / question creation button 502f is operated, the generation model 30 generates a question and it is displayed in the message display field 501.
[0135] However, the parliamentary response preparation support device disclosed herein does not need to have a function to create question texts based on summaries generated as a result of operating the document submission button, the search button for examples from other municipalities, or the past minutes reference button on the parliamentary response preparation screen. This is because summaries generated as a result of operating the document submission button, the search button for examples from other municipalities, or the past minutes reference button are particularly useful for generating response texts.
[0136] (Processing of preparing parliamentary response documents) The user can create a parliamentary response using the question, answer, and additional question generated by the generative model 30 in steps S1 to S3 of Figure 5.
[0137] Specifically, users can easily create parliamentary responses with relatively little effort by copying and pasting the question, answer, and additional question generated by the generation model 30 into a document file created on the user terminal 10.
[0138] <Mechanism of action, effect> As described above, the parliamentary response preparation support device 20 according to the embodiment of the present disclosure includes a prompt creation unit 25 that creates a first prompt including an instruction to cause a generation model 30 to generate a question for parliamentary response based on the content of the question in parliament, and a second prompt including an instruction to cause the generation model to generate an answer for parliamentary response in response to the question, and an acquisition unit 26 that acquires the question generated by the generation model based on the first prompt and the answer generated by the generation model based on the second prompt.
[0139] With this configuration, the parliamentary response preparation support device 20 can easily obtain the question, answer, or additional question generated by the generation model 30 simply by having the user input a request for the generation model 30 to generate the content of the question, the question, the answer, or the additional question.
[0140] Furthermore, the parliamentary response document creation support device 20 can present the acquired question text, answer text, or additional question text to the user via the output unit 27. This allows the user to easily create a parliamentary response document with relatively little effort by simply copying and pasting the outputted question text, answer text, or additional question text, or by performing simple editing. For this reason, the parliamentary response document creation support device 20 can effectively support the user in creating a parliamentary response document, and can significantly reduce the burden on the person responsible for creating the parliamentary response document. [Industrial applicability]
[0141] This disclosure is useful for a parliamentary response preparation support device that can assist in the preparation of parliamentary responses. [Explanation of Symbols]
[0142] 100 Parliamentary Response Preparation Support System 10 user terminals 11 processors 12 Control section 13 Display section 14 Communications Department 15 Storage section 20. Support device for preparing parliamentary response documents 21 processors 22 Communications Department 23 Memory section 24 Input Reception Section 25 Prompt Creation Section 26 Acquisition Department 27 Output section 28 Search Section 29 Extraction part 30 Generative Models 40 Networks
Claims
1. A prompt generation unit creates a first prompt that includes an instruction to generate a generation model to generate a question for a parliamentary response based on the content of the question in parliament, and a second prompt that includes an instruction to generate an answer for the parliamentary response to the question, An acquisition unit that acquires the question sentence generated by the generation model based on the first prompt and the answer sentence generated by the generation model based on the second prompt, A device that supports the creation of parliamentary response documents.
2. The prompt generation unit includes in at least one of the first prompt and the second prompt a reference sentence that the generation model uses as a reference when generating the question sentence or the answer sentence. The parliamentary response preparation support device according to claim 1.
3. It further includes an input receiving unit that accepts input from the user, The prompt generation unit generates the first prompt when the input receiving unit receives input of the content of the question. The parliamentary response preparation support device according to claim 2.
4. The acquisition unit further comprises an output unit that outputs at least one of the question text and the answer text acquired by the acquisition unit, The prompt generation unit generates the second prompt when the input receiving unit receives input for an operation to generate the answer sentence for the outputted question sentence. The parliamentary response preparation support device according to claim 3.
5. When the prompt generation unit receives input from the input receiving unit for an operation to create an additional question based on the outputted answer sentence, the prompt generation unit creates a third prompt to cause the generation model to generate the additional question based on the answer sentence. The parliamentary response preparation support device according to claim 4.
6. The prompt generation unit, upon receiving input from the input receiving unit regarding an operation to modify the outputted question sentence or answer sentence, generates a fourth prompt to cause the generation model to perform the modification. The parliamentary response preparation support device according to claim 4.
7. The prompt generation unit, when the input receiving unit receives input of materials that may be used as reference when the generation model generates the question or answer, includes the content of the materials in the first prompt or the second prompt. The parliamentary response preparation support device according to claim 3.
8. The prompt generation unit, when the input receiving unit receives input of past meeting minutes, creates a fifth prompt that causes the generation model to extract sentences related to the content of the question from among the sentences contained in the meeting minutes. The parliamentary response preparation support device according to claim 3.
9. The input receiving unit further comprises a search unit that searches for documents on the World Wide Web related to the content of the question when it receives input requesting a search related to the content of the question. The prompt generation unit includes the search results from the search unit as the reference text in at least one of the first prompt and the second prompt. The parliamentary response preparation support device according to claim 3.
10. The input receiving unit further comprises an extraction unit that performs the extraction when it receives input requesting the extraction of at least one of a question sentence and an answer sentence related to the content of the question from past meeting minutes. The prompt generation unit includes the extraction result of the extraction unit as the reference text in at least one of the first prompt and the second prompt. The parliamentary response preparation support device according to claim 3.
11. A computer-based method for assisting in the preparation of parliamentary responses, The aforementioned computer, A process to create a first prompt that causes a generative model to generate a question for a parliamentary response based on the content of the question in parliament, and a second prompt that causes the generative model to generate an answer for the parliamentary response to the question, A process for obtaining the question sentence generated by the generative model based on the first prompt, and the answer sentence generated by the generative model based on the second prompt, A method for assisting in the preparation of parliamentary responses.
12. On the computer, A process to create a first prompt that causes a generative model to generate a question for a parliamentary response based on the content of the question in parliament, and a second prompt that causes the generative model to generate an answer for the parliamentary response to the question, A process for obtaining the question sentence generated by the generative model based on the first prompt, and the answer sentence generated by the generative model based on the second prompt, A program that executes something.
Citation Information
Patent Citations
Question prediction system, question prediction method, and program recording medium
WO2023119460A1
Response inference system, response inference method, and program recording medium
WO2023119461A1