Environment configuration method of natural language model, electronic equipment and storage medium

By determining and importing target topic tags in the image forming device to configure the environment of the natural language model, the problem of users requiring frequent dialogue guidance is solved, efficiency and intelligence are improved, and a faster image forming process is achieved.

CN118779433APending Publication Date: 2024-10-15ZHUHAI PANTUM ELECTRONICS CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411005171.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In the image forming device, the natural language model cannot trace back and store historical conversations, causing the user to need conversation guidance every time to obtain the desired reply, which wastes time and reduces efficiency.

Method used

By determining the target topic tag from multiple topic tags and importing a natural language model based on the tag to configure the environment, users can get the desired reply with just a simple conversation, improving efficiency.

Benefits of technology

It reduces the user's investment time, improves the efficiency of image formation, and enhances the intelligence and user experience of the natural language model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779433A_ABST
    Figure CN118779433A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an environment configuration method of a natural language model, electronic equipment and a storage medium. The method comprises the following steps: determining a target theme tag from a plurality of theme tags; determining target dialogue content according to the target theme label; and importing the target dialogue content into a natural language model, so that the natural language model completes configuration of the target environment according to the target dialogue content. In the embodiment of the invention, the user firstly completes the configuration of the target environment corresponding to the image forming operation, so that the user can obtain expected reply only by performing simple dialogue with the natural language model, the input time of the user is reduced, and the image forming efficiency is also improved at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image formation technology, and in particular to an environment configuration method, electronic device and storage medium of a natural language model. Background Art

[0002] With the rapid development of artificial intelligence (AI) and Internet technology, natural language models (such as chatGPT or Wenxinyiyan, etc.) have also developed rapidly. The application of natural language models is very extensive. They can be used as a chat model to answer users' questions, or as a virtual assistant to provide services to users. Specifically, when the natural language model is applied to an image forming device, the image forming content (for example, a notice of closure or a research report, etc.) can be generated through communication between the user and the natural language model, and the image forming format (for example, color printing, single-sided printing, and paper size, etc.) can also be determined through communication between the user and the natural language model.

[0003] In the prior art, when a natural language model is used to control an image forming device to perform an image forming operation, the image forming content and the corresponding image forming format can be determined by the user communicating with the natural language model on the image forming device. In the process of determining the image forming content and the image forming format, since the answer returned by the natural language model is difficult to meet the user's needs at one time, the user needs to guide the dialogue according to the answer returned by the natural language model, so that the answer returned by the natural language model is answered in a direction that meets the user's expectations.

[0004] However, since the natural language model applied to the image forming device cannot trace back and store historical conversations, in order to obtain the desired answer, the user needs to conduct a conversation with the natural language model on the image forming device every time. This not only wastes the user's time, but also reduces the efficiency of image formation.

[0005] It should be pointed out that the information disclosed in the background technology section of this application is only intended to deepen the understanding of the general background technology of this application, and should not be regarded as an admission or suggestion in any form that the information constitutes prior art already known to those skilled in the art. Summary of the invention

[0006] In view of this, the present application provides an environmental configuration method, an electronic device and a storage medium for a natural language model in an image forming device, so as to solve the problem in the prior art that in order to obtain the desired answer, the user is required to conduct a dialogue with the natural language model on the image forming device every time, thereby wasting the user's time and reducing the image forming efficiency.

[0007] In a first aspect, an embodiment of the present application provides an environment configuration method for a natural language model in an image forming device, comprising:

[0008] Determining a target topic tag from a plurality of topic tags, each of the topic tags corresponding to a historical conversation content in a natural language model;

[0009] Determine a target conversation content according to the target topic tag, wherein the target conversation content is the historical conversation content corresponding to the target topic tag;

[0010] The target dialogue content is imported into the natural language model, so that the natural language model completes the configuration of the target environment according to the target dialogue content.

[0011] In the embodiment of the present application, before performing an image formation operation, the target topic label related to the current image formation operation is determined, and then the target conversation content corresponding to the target topic label is determined; then, the target conversation content is imported into the natural language model, so that the natural language model completes the configuration of the target environment according to the target conversation content. It can be understood that since the user first completes the configuration of the target environment corresponding to the image formation operation, the user only needs to have a simple conversation with the natural language model to obtain the desired answer, which reduces the user's investment time and also improves the image formation efficiency.

[0012] In a possible implementation, determining a target topic tag from a plurality of topic tags includes:

[0013] In response to the current conversation content input by the user, a target topic tag matching the current conversation content is determined.

[0014] In the embodiment of the present application, the natural language model can determine the corresponding target topic tag according to the current conversation content input by the user. In the present application, the intelligence level of the natural language model is improved, which is more convenient for users to use.

[0015] In a possible implementation, the determining, in response to the current conversation content input by the user, a target topic tag matching the current conversation content includes:

[0016] In response to the current conversation content input by the user, collecting the voiceprint information corresponding to the user;

[0017] Matching the collected voiceprint information with a voiceprint information database to determine the user authority corresponding to the voiceprint information, wherein the voiceprint information database includes a plurality of voiceprint information and the user authority corresponding to each voiceprint information;

[0018] When the user authority corresponding to the voiceprint information meets the preset authority requirement, a target topic tag matching the current conversation content is determined.

[0019] In an embodiment of the present application, before determining the target topic tag, it is first determined whether the user authority of the current user meets the preset authority requirements, thereby preventing attacks by impersonating the user to issue jobs, thereby improving device security and information security to a certain extent.

[0020] In a possible implementation, the determining, in response to the current conversation content input by the user, a target topic tag matching the current conversation content includes:

[0021] In response to the current conversation content input by the user, predict and output N predicted topic tags matching the current conversation content, where N≥1;

[0022] In response to a determination operation triggered by a user, one of the N predicted topic tags is determined as a target topic tag.

[0023] In the embodiment of the present application, after receiving the current conversation content input by the user, the natural language model can predict and output all topic tags that match the current conversation content; the user can manually select the most matching topic tag as the target topic tag. It can be understood that since the target topic tag is determined by the user, the determined target topic tag can be made more accurate, thereby configuring a more accurate target environment for the natural language model.

[0024] In one possible implementation,

[0025] In response to the current conversation content input by the user, predicting and outputting N predicted topic tags matching the current conversation content includes:

[0026] In response to the current conversation content input by the user, predict N predicted topic tags matching the current conversation content;

[0027] Outputting M user accounts corresponding to the N predicted topic tags according to the N predicted topic tags, where M≤N;

[0028] The step of determining, in response to a determination operation triggered by a user, one of the N predicted topic tags as a target topic tag comprises:

[0029] In response to a target user account determination operation triggered by a user, a target user account is determined and logged in from the output M user accounts;

[0030] The predicted topic tag corresponding to the target user account is determined as the target topic tag.

[0031] In actual applications, an image forming device may be used by multiple people, and different users may name the same tag. In order to more accurately determine the target topic tag required by the user, the target user account can be determined before determining the target topic tag. In an embodiment of the present application, based on the N predicted topic tags, M user accounts corresponding to the N predicted topic tags are output; in response to the target user account determination operation triggered by the user, the target user account is determined and logged in from the output M user accounts; the predicted topic tag corresponding to the target user account is determined as the target topic tag. It can be understood that by first determining the target user account and then determining the target topic tag corresponding to the target user account, the determined target topic tag is made more accurate, thereby making the natural language model configured with a more accurate target environment.

[0032] In a possible implementation, determining the predicted topic tag corresponding to the target user account as the target topic tag includes:

[0033] When the target user account corresponds to a plurality of the predicted topic tags, outputting the plurality of the predicted topic tags;

[0034] In response to a target topic tag determination operation triggered by a user, one of the plurality of predicted topic tags is determined as a target topic tag.

[0035] In an embodiment of the present application, when a target user account corresponds to multiple predicted topic tags, multiple predicted topic tags are output; in response to a target topic tag determination operation triggered by a user, one of the multiple predicted topic tags is determined as the target topic tag. It is understandable that when a target user account corresponds to multiple predicted topic tags, the user manually selects the most matching topic tag as the target topic tag, so that the determined target topic tag is more accurate, thereby configuring a more accurate target environment for the natural language model.

[0036] In a possible implementation manner, after importing the target dialogue content into the natural language model, the method further includes:

[0037] Determining a target image forming instruction according to the current conversation content and the target conversation content;

[0038] An image forming job is executed according to the target image forming instruction.

[0039] In the embodiment of the present application, after the target conversation content is imported into the natural language model, the natural language model will determine the target image formation instruction according to the current conversation content and the target conversation content; finally, the image forming device performs the image formation operation according to the image formation instruction. It can be understood that after the environment configuration of the natural language model is completed, the natural language model can quickly perform the image formation operation according to the current conversation content output by the user, thereby improving the efficiency of the image formation operation.

[0040] In a possible implementation, after importing the target dialogue content into the natural language model, the method further includes:

[0041] The historical conversation content corresponding to the target topic tag is updated so that the updated historical conversation content includes the current conversation content and the target conversation content.

[0042] In the embodiment of the present application, after the target conversation content is imported into the natural language model, the historical conversation content corresponding to the target topic label is updated, so that the updated historical conversation content includes the current conversation content and the target conversation content. Through the above process, the historical conversation corresponding to the target topic label can be made richer, so that when the target topic is applied next time, the current conversation content input by the user is reduced, making it more convenient for the user to use.

[0043] In a possible implementation, updating the historical conversation content corresponding to the target topic tag includes:

[0044] Output update prompt information;

[0045] In response to the update confirmation information triggered by the user, the historical conversation content corresponding to the target topic tag is updated.

[0046] In the embodiment of the present application, the natural language model first outputs update prompt information; then, in response to the update confirmation information triggered by the user, the historical conversation content corresponding to the target topic is updated. By outputting the update prompt information, the user can judge whether to update the historical content corresponding to the target topic label according to actual needs, which improves the accuracy of the historical content corresponding to the target topic label to a certain extent, thereby configuring a more accurate target environment for the natural language model.

[0047] In a possible implementation, determining a target topic tag from a plurality of topic tags includes:

[0048] In response to a target topic tag determination operation triggered by a user, a target topic tag is determined from a plurality of topic tags.

[0049] In the embodiment of the present application, in response to the target topic tag determination operation triggered by the user, the target topic tag is determined from multiple topic tags. It can be understood that the user directly selecting the topic tag can make the determined topic tag more accurate, thereby configuring a more accurate target environment for the natural language model.

[0050] In a possible implementation, in response to the target topic tag determination operation triggered by the user, determining the target topic tag from multiple topic tags includes:

[0051] In response to an account login operation triggered by a user, logging into a target user account, wherein the user account corresponds to at least one of the topic tags;

[0052] Outputting the topic tag corresponding to the target user account;

[0053] In response to a target topic tag determination operation triggered by a user, a target topic tag is determined from the output topic tags.

[0054] Normally, different user accounts correspond to different topic tags. Therefore, in an embodiment of the present application, the user account is first logged in, and then the natural language model outputs the topic tag corresponding to the user account. In response to the target topic tag determination operation triggered by the user, the target topic tag is determined from the output topic tags, thereby making the determined topic tag more accurate, and ultimately configuring a more accurate target environment for the natural language model.

[0055] In a possible implementation manner, after importing the target dialogue content into the natural language model, the method further includes:

[0056] Determining a target image forming instruction according to the current conversation content input by the user and the historical conversation content corresponding to the target topic tag;

[0057] An image forming job is executed according to the target image forming instruction.

[0058] In the embodiment of the present application, after the target conversation content is imported into the natural language model, the natural language model will determine the target image formation instruction according to the current conversation content and the target conversation content; finally, the image forming device performs the image formation operation according to the image formation instruction. It can be understood that after the environment configuration of the natural language model is completed, the natural language model can quickly perform the image formation operation according to the current conversation content output by the user, thereby improving the efficiency of the image formation operation.

[0059] In a possible implementation, determining the target image forming instruction according to the current conversation content input by the user and the historical conversation content corresponding to the target topic tag includes:

[0060] In response to the current conversation content input by the user, collecting the voiceprint information corresponding to the user;

[0061] Matching the collected voiceprint information with a voiceprint information database to determine the user authority corresponding to the voiceprint information, wherein the voiceprint information database includes a plurality of voiceprint information and the user authority corresponding to each voiceprint information;

[0062] When the target user authority corresponding to the voiceprint information meets the preset authority requirement, the target image formation instruction is determined according to the current conversation content input by the user and the historical conversation content corresponding to the target topic tag.

[0063] In an embodiment of the present application, before determining the target image formation instruction, it is first determined whether the user authority of the current user meets the preset authority requirements, thereby preventing attacks by impersonating the user to issue jobs, thereby improving device security and information security to a certain extent.

[0064] In a possible implementation, determining the target image forming instruction according to the current conversation content input by the user and the historical conversation content corresponding to the target topic tag includes:

[0065] In response to the current conversation content input by the user, determining the relevance between the current conversation content and the target topic tag, wherein the relevance is used to characterize the repetition of the keywords corresponding to the current conversation content input by the user and the target topic tag;

[0066] When the correlation between the current conversation content and the target topic tag is greater than or equal to a preset correlation, a target image forming instruction is determined according to the current conversation content input by the user and the historical conversation content corresponding to the target topic tag.

[0067] In the embodiment of the present application, when the user inputs the current conversation content, the correlation between the current conversation content and the target topic label is determined; when the correlation between the current conversation content and the target topic label is greater than or equal to the preset correlation, the target image formation instruction is generated according to the current conversation content and the target conversation content. It can be understood that the target image formation instruction is generated only when the correlation between the current conversation content input by the user and the target topic is high, which avoids the situation where the generated target image formation instruction does not meet the user's needs because the current conversation content input by the user does not match the determined target topic label.

[0068] In a possible implementation, the method further includes:

[0069] When the correlation between the current conversation content and the target topic tag is less than a preset correlation, determining the correlation between the current conversation content and other topic tags;

[0070] The topic tag having a relevance greater than or equal to a preset relevance and the highest relevance to the current conversation content is used as the target topic tag.

[0071] In the embodiment of the present application, when the correlation between the current conversation content and the target topic tag is less than the preset correlation, the correlation between the current conversation content and other topic tags is determined; the topic tag with the highest correlation degree greater than or equal to the preset correlation degree and the highest correlation degree is used as the target topic tag. It can be understood that using the topic tag with the highest correlation degree as the target topic tag improves the accuracy of the target topic tag to a certain extent, thereby improving the accuracy of the target environment configuration of the natural language model.

[0072] In a possible implementation, taking the topic tag having a relevance greater than or equal to a preset relevance and the greatest relevance to the current conversation content as the target topic tag includes:

[0073] When there is a topic tag whose relevance to the current conversation content is greater than or equal to a preset relevance, outputting target topic tag change prompt information, wherein the target topic tag change prompt information is used to prompt the user whether to change the target topic tag;

[0074] In response to the target topic tag change confirmation information input by the user, the topic tag having a relevance greater than or equal to a preset relevance with the current conversation content and having the greatest relevance is used as the target topic tag.

[0075] In an embodiment of the present application, when there is a topic tag whose relevance to the current conversation content is greater than or equal to a preset relevance, a target topic tag change prompt information is output; in response to the target topic tag change confirmation information input by the user, the topic tag whose relevance to the current conversation content is greater than or equal to a preset relevance and has the highest relevance is used as the target topic tag. It can be understood that when the target topic tag needs to be changed, the target topic tag change prompt information is sent to the user, so that the user can determine whether to change the target topic tag according to actual needs, which improves the accuracy of the target topic tag to a certain extent, thereby improving the accuracy of the target environment configuration of the natural language model.

[0076] In a possible implementation manner, after importing the target dialogue content into the natural language model, the method further includes:

[0077] The historical conversation content corresponding to the target topic tag is updated so that the updated historical conversation content includes the current conversation content and the target conversation content.

[0078] In the embodiment of the present application, after the target conversation content is imported into the natural language model, the historical conversation content corresponding to the target topic label is updated, so that the updated historical conversation content includes the current conversation content and the target conversation content. Through the above process, the historical conversation corresponding to the target topic label can be made richer, so that when the target topic is applied next time, the current conversation content input by the user is reduced, making it more convenient for the user to use.

[0079] In a second aspect, an embodiment of the present application provides an electronic device, including:

[0080] processor;

[0081] Memory;

[0082] And a computer program, wherein the computer program is stored in the memory, and the computer program includes instructions, and when the instructions are executed by the processor, the electronic device executes any one of the methods described in the first aspect.

[0083] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the methods described in the first aspect.

[0084] It is understandable that the electronic device provided in the second aspect and the computer-readable storage medium provided in the third aspect are both used to execute the method provided in the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0085] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0086] Figure 1A A schematic diagram of an application scenario provided for an embodiment of the present application.

[0087] Figure 1B A schematic diagram of another application scenario provided for an embodiment of the present application.

[0088] Figure 2A A schematic diagram of a display interface of a natural language model provided in an embodiment of the present application.

[0089] Figure 2B A schematic diagram of a display interface of another natural language model provided in an embodiment of the present application.

[0090] Figure 2C A schematic diagram of a display interface of another natural language model provided in an embodiment of the present application.

[0091] Figure 2D A schematic diagram of a display interface of another natural language model provided in an embodiment of the present application.

[0092] Figure 2E A schematic diagram of a display interface of another natural language model provided in an embodiment of the present application.

[0093] Figure 2F A schematic diagram of a display interface of another natural language model provided in an embodiment of the present application.

[0094] Figure 2G A schematic diagram of a display interface of another natural language model provided in an embodiment of the present application.

[0095] Figure 3 An embodiment of the present application provides an environment configuration method for a natural language model in an image forming device.

[0096] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0097] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0098] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0099] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0100] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0101] With the rapid development of artificial intelligence technology and Internet technology, natural language models have also developed rapidly. The application of natural language models is very extensive. They can be used as a chat model to answer users' questions or as a virtual assistant to provide services to users. Of course, natural language models can also be applied to image forming devices. For ease of understanding, the following first illustrates specific application scenarios.

[0102] First, the natural language model is loaded into the image forming device.

[0103] See also Figure 1A , is a schematic diagram of an application scenario provided by an embodiment of the present application. Figure 1A As shown, the application scenario includes: an image forming device 101. As shown in the figure, the image forming device also includes a display panel 1011. In order to clearly display the content on the display panel, the display interface of the display panel 1011, that is, the display interface 1012, is also shown in FIG1. ​​Specifically, when the natural language model is applied to the image forming device, an image forming instruction can be generated through communication between the user and the natural language model; then, the image forming device performs an image forming operation according to the image forming instruction. It should be pointed out that the image forming instruction includes image forming content and image forming format.

[0104] It can be understood that the conversation content between the user and the natural language model is displayed on the display interface 1012, so that the user can better guide the natural language model to modify the file. Of course, the "display interface" described above is only a way for the user of this application to interact with the natural language model. Those skilled in the art can also design other ways to enable the user to interact with the natural language model according to actual needs, such as voice broadcast, etc., and this application does not make specific restrictions on this.

[0105] Second, the natural language model is loaded into a server that is communicatively connected to the image forming apparatus.

[0106] See also Figure 1B , is a schematic diagram of another application scenario provided by the embodiment of the present application. Figure 1B As shown, the application scenario includes: an image forming device 103 and a server 102 loaded with a chat model, wherein the image forming device 103 and the server 102 loaded with a chat model are interconnected through a wired or wireless communication network to transmit information. During the image forming process, the server 102 loaded with a chat model generates a corresponding target image forming instruction according to user requirements, and sends the target image forming instruction to the image forming device 103, and the image forming device 103 performs the image forming operation.

[0107] Specifically, on the server 102 loaded with the chat model, an image forming instruction can be generated through communication between the user and the natural language model; then, the server 102 loaded with the chat model sends the image forming instruction to the image forming device 103; finally, the image forming device performs the image forming operation according to the image forming instruction.

[0108] in addition, Figure 1A as well as Figure 1B The image forming device 101, image forming device 103 and server 102 loaded with a chat model shown in the figure are only exemplary descriptions and should not be used as a limitation on the scope of protection of this application. For example, the image forming device 101 and the image forming device 103 include but are not limited to printers, copiers, fax machines, multi-function image making and copying devices, electrostatic printing devices and any other similar devices; the server 102 loaded with a chat model includes but is not limited to computers, mobile phones, tablet computers, enterprise internal servers, cloud servers and other electronic devices that can communicate with the image forming device 103.

[0109] In the prior art, when a natural language model is used to control an image forming device to perform an image forming operation, the image forming content and the corresponding image forming format can be determined by the user communicating with the natural language model on the image forming device. In the process of determining the image forming content and the image forming format, since the answer returned by the natural language model is difficult to meet the user's needs at one time, the user needs to guide the dialogue according to the answer returned by the natural language model, so that the answer returned by the natural language model is answered in a direction that meets the user's expectations.

[0110] For ease of understanding, this application also provides a conversation between a user and a natural language model, as follows.

[0111] User: Make a market research report on Product A.

[0112] Natural Language Models: …

[0113] User: The word count requirement is 10,000 words.

[0114] Natural Language Models: …

[0115] User: First, give a detailed introduction to Product A; then analyze the user market of Product A; then analyze the alternative products of Product A; then, based on the alternative products, analyze the advantages and disadvantages of Product A; finally, based on the disadvantages of Product A, provide a solution.

[0116] Natural Language Models: …

[0117] User: Print the "Market Research Report of Product A" generated above on one side.

[0118] Natural language model: The "market research report on product A" generated above is used as the image formation content, and "single-sided printing" is used as the image formation format, and is sent to the image forming device to perform the image formation job.

[0119] It should be pointed out that the “…” in the above text refers to the “market research report on product A” that is continuously adjusted by the natural language model according to user needs. For the sake of simplicity, it is not shown in the figure.

[0120] However, since the natural language model applied to the image forming device cannot trace back and store historical conversations, in order to obtain the desired answer, the user needs to conduct a conversation with the natural language model on the image forming device every time. This not only wastes the user's time, but also reduces the efficiency of image formation.

[0121] In view of the above problems, in an embodiment of the present application, before performing an image formation operation, the target topic label related to the current image formation operation is determined, and then the target conversation content corresponding to the target topic label is determined; then, the target conversation content is imported into the natural language model, so that the natural language model completes the configuration of the target environment according to the target conversation content. It can be understood that since the user first completes the configuration of the target environment corresponding to the image formation operation, the user only needs to have a simple conversation with the natural language model to obtain the desired answer, which reduces the user's investment time and also improves the image formation efficiency. Specifically, it is described in detail in conjunction with the accompanying drawings and specific embodiments below.

[0122] In order to facilitate understanding of this solution, the implementation process of this application is first described in its entirety in conjunction with the accompanying drawings (2A-2G) and specific embodiments. For ease of description, the subject tags stored in the corresponding user account B at this time are: the first market research report, paper modification, patent search, and the second market research report.

[0123] Application scenario 1: The user logs in locally.

[0124] It is understandable that when a user logs in locally, the topic tags corresponding to the user account and the historical conversation content corresponding to the topic tags are stored in the local login device. At this time, the natural language model can automatically match the corresponding target topic tags based on the current conversation content output by the user and the historical conversation content stored locally.

[0125] Specifically, see Figure 2A , is a schematic diagram of a display interface of a natural language model provided in an embodiment of the present application. Figure 2AAs shown, the user first inputs "make a market research report on product B" through voice dialogue. In the process of the user inputting the dialogue content, the user's voiceprint information is first collected. Then, based on the collected voiceprint information, it is determined whether the user's authority meets the preset authority requirements. When the user's authority meets the preset authority requirements, the natural language model will retrieve N topic tags corresponding to the current dialogue content "make a market research report on product B", namely, the first market research report, the second market research report, market research, research report, and research report on the market. Then, the user account corresponding to the topic tag is output. Since the user account corresponding to "market research" is user account A, the user account corresponding to "the first market research report" and "the second market research report" is user account B, the user account corresponding to "research report" is user account C, and the user account corresponding to "research report on the market" is user account D, the output user accounts are user account A, user account B, user account C, and user account D, as shown in FIG. Figure 2B shown.

[0126] See also Figure 2B , is a schematic diagram of another display interface of a natural language model provided in an embodiment of the present application. Figure 2B As shown in the figure on the left, multiple user accounts are displayed on the display interface. The user selects his own account and clicks the relevant account area, which will display Figure 2B The interface corresponding to the right picture in the middle shows that the target account is being logged in.

[0127] When the account is logged in, if there are multiple topic tags, the topic tags will be output for the user to determine. Figure 2C , is a schematic diagram of another display interface of a natural language model provided in an embodiment of the present application. Figure 2C As shown in the left figure, multiple topic tags are displayed on the display interface. The user selects a topic tag that matches the current conversation content and clicks on the relevant topic tag area, which will display Figure 2C The interface corresponding to the right side of the picture is now configuring the target environment corresponding to the first market research report.

[0128] Of course, when there is only one topic tag, the target environment corresponding to the topic tag is directly configured without displaying the topic tag for user selection.

[0129] See also Figure 2D , is a schematic diagram of another display interface of a natural language model provided in an embodiment of the present application. Figure 2D As shown in the figure, at this point, the configuration of the target environment has been completed, that is, the historical conversation content corresponding to the topic label is imported into the natural language model. Figure 2DAs shown in the left figure in the figure, when the user pulls down the scroll bar on the right, the display interface changes accordingly. At the last position, there is the current conversation content entered by the user at the beginning, and the "Market Research Report on Product B" generated by the natural language model based on the historical conversation content.

[0130] Application scenario 2: The user logs in online.

[0131] It is understandable that when the user logs in online, the local login device does not store the topic tags corresponding to the user account and the historical conversation content corresponding to the topic tags. Therefore, it is necessary to first log in to the user account, obtain the topic tags and the historical conversation content corresponding to the topic tags, and then select the topic tags that match the current conversation content to complete the configuration of the target environment. It is understandable that at this time, the topic tags corresponding to the user account and the historical conversation content corresponding to the topic tags are stored in other servers, and the server can exchange information with the local login device.

[0132] Of course, in application scenario 1, when no user account matching the current conversation content input by the user is found, the user can also be selected to log in online.

[0133] Specifically, see Figure 2E , is a schematic diagram of another display interface of a natural language model provided in an embodiment of the present application. Figure 2E As shown in the left picture, after the user enters the account number and password corresponding to account B and clicks the login button on the display area, the Figure 2E The interface corresponding to the right picture in the figure, at this time, user account B is logging in.

[0134] After logging into the user account, a topic tag selection page will pop up. For details, see Figure 2F , is a schematic diagram of another display interface of a natural language model provided in an embodiment of the present application. Figure 2F As shown, the user can configure the corresponding target environment by clicking the corresponding topic label.

[0135] Of course, when a corresponding topic tag needs to be created, the user can click the "+" area to create a new topic tag.

[0136] It should be noted that when the user account is not logged in locally, after logging in to the user account, the login device obtains the subject tag corresponding to the account from the corresponding server. Among them, the login device and the corresponding server are interconnected through a wired or wireless communication network to transmit information. The communication network can be a local area network or a wide area network transferred by a relay device. When the communication network is a local area network, illustratively, the communication network can be a short-range communication network such as a Wi-Fi hotspot network, a Wi-Fi P2P network, a Bluetooth network, a ZigBee network, or a near field communication (NFC) network. When the communication network is a wide area network, exemplarily, the communication network can be a third-generation mobile communication technology (3G) network, a fourth-generation mobile communication technology (4G) network, a fifth-generation mobile communication technology (5G) network, a future evolved public land mobile network (PLMN) or the Internet, etc.

[0137] When the user clicks on “The first market research report”, the natural language model configures the target dialogue environment based on the historical dialogue content corresponding to the “first market research report”.

[0138] See also Figure 2G , which is a schematic diagram of the display interface of another natural language model provided in an embodiment of the present application. As shown in the figure, at this time, the user voice inputs "make a market research report on product B". At this time, while the user is inputting the content of the conversation, the user's voiceprint information is collected. Then, based on the collected voiceprint information, it is determined whether the user's authority meets the preset authority requirements. When the user's authority meets the preset authority requirements, the natural language model generates a "market research report on product B" according to the configured target environment.

[0139] The specific implementation method of the above embodiment will be described in detail below with reference to the accompanying drawings and specific steps.

[0140] See also Figure 3 , is a method for configuring an environment of a natural language model provided in an embodiment of the present application. The method can be applied to the application scenarios described above, such as Figure 3 As shown, it mainly includes the following steps.

[0141] Step S301: determining a target topic tag from a plurality of topic tags.

[0142] In the embodiment of the present application, a target topic tag is determined from a plurality of topic tags, wherein each topic tag corresponds to a historical conversation content in a natural language model. It can be understood that the historical conversation content corresponding to the target topic tag is the required target environment.

[0143] In the first aspect, a topic tag matching the input current conversation content can be retrieved. At this time, in a possible implementation, the user can first input the current conversation content, and then the local login device automatically determines the target topic tag matching the current conversation content. Specifically, in response to the current conversation content input by the user, the target topic tag matching the current conversation content is determined.

[0144] It should be noted that the local login device can represent an image forming device or a server loaded with a chat model. It is understandable that, regardless of the image forming device or the server loaded with a chat model, it pre-stores a plurality of topic tags and each topic tag corresponds to a historical conversation content in the natural language model.

[0145] It should be pointed out that in order to avoid unnecessary waste of local storage space, we can use the natural language model's ability to refine the content of the conversation, extract and condense the key information of the conversation, and then save it locally, thereby reducing local memory usage.

[0146] The current conversation content input by the user described above is a new requirement in the scenario of the historical conversation content corresponding to the target topic tag. Exemplarily, when the historical conversation content corresponding to the target topic tag is the conversation content described above, the details are as follows.

[0147] User: Make a market research report on Product A.

[0148] Natural Language Models: …

[0149] User: The word count requirement is 10,000 words.

[0150] Natural Language Models: …

[0151] User: First, give a detailed introduction to Product A; then analyze the user market of Product A; then analyze the alternative products of Product A; then, based on the alternative products, analyze the advantages and disadvantages of Product A; finally, based on the disadvantages of Product A, provide a solution.

[0152] Natural Language Models: …

[0153] User: Print the "Market Research Report of Product A" generated above on one side.

[0154] Natural language model: The "market research report on product A" generated above is used as the image formation content, and "single-sided printing" is used as the image formation format, and is sent to the image forming device to perform the image formation job.

[0155] It should be pointed out that the “…” in the above text refers to the “market research report on product A” that is continuously adjusted by the natural language model according to user needs. For the sake of simplicity, it is not shown in the figure.

[0156] At this time, the current conversation content input by the user can be "make a market research report on product B", and the natural language model will output a market research report on product B that first introduces product B, then analyzes the user market of product B, then analyzes the alternative products of product B, then analyzes the advantages and disadvantages of product B based on the alternative products, and finally, based on the disadvantages of product B, provides a solution, and the word count is 10,000. Similarly, the current conversation content input by the user can also be "make a market research report on product B with 5,000 words", and the natural language model will output a market research report on product B that first introduces product B, then analyzes the user market of product B, then analyzes the alternative products of product B, then analyzes the advantages and disadvantages of product B based on the alternative products, and finally, based on the disadvantages of product B, provides a solution, and the word count is 5,000.

[0157] It can be understood that the "target topic tag that matches the current conversation content" mentioned above means that the determined topic tag has the highest correlation with the current conversation content. Among them, the correlation is used to characterize the repetition of keywords in the current conversation content input by the user and the target conversation content corresponding to the target topic tag. For example, when the topic tag is "the first market research report", the keywords corresponding to the topic tag are market, research and report. When it is detected that the current conversation content input by the user "make a market research report on product B" contains keywords such as market, research and report, it means that the current conversation content has a high correlation with the topic tag. Of course, those skilled in the art can also set other methods according to actual needs to determine the correlation between the topic tag and the current conversation content, and this application does not make specific restrictions on this.

[0158] In the embodiment of the present application, the natural language model can determine the corresponding target topic tag according to the current conversation content input by the user. In the present application, the intelligence level of the natural language model is improved, which is more convenient for users to use.

[0159] In actual use, multiple topic tags matching the current conversation content input by the user may be detected. In order to more accurately determine the target topic tag, the user may select and determine it. In a possible implementation, in response to the current conversation content input by the user, N predicted topic tags matching the current conversation content are predicted and output; in response to the determination operation triggered by the user, one of the N predicted topic tags is determined as the target topic tag. Where N≥1.

[0160] Exemplarily, after the user inputs the current conversation content, that is, inputs "make a market research report on product B", in response to the current conversation content input by the user, the predicted topic tags matching the current conversation content are predicted and output, that is, the first market research report, the second market research report, thesis modification, and patent search. In response to the determination operation triggered by the user, one of the predicted topic tags among the first market research report, the second market research report, thesis modification, and patent search is determined as the target topic tag.

[0161] In the embodiment of the present application, after receiving the current conversation content input by the user, the natural language model can predict and output all topic tags that match the current conversation content; the user can manually select the most matching topic tag as the target topic tag. It can be understood that since the target topic tag is determined by the user, the determined target topic tag can be made more accurate, thereby configuring a more accurate target environment for the natural language model.

[0162] In actual applications, one image forming device may be used by multiple people, and different users may name the same tag. In order to more accurately determine the target topic tag required by the user, the target user account may be determined before determining the target topic tag.

[0163] Specifically, in a possible implementation, in response to the current conversation content input by the user, N predicted topic tags matching the current conversation content are predicted; based on the N predicted topic tags, M user accounts corresponding to the N predicted topic tags are output; in response to the target user account determination operation triggered by the user, a target user account is determined and logged in from the output M user accounts; and the predicted topic tag corresponding to the target user account is determined as the target topic tag. Wherein, M≤N.

[0164] For example, both user account A and user account B have a topic tag named "Market Research Report". When the user enters the current conversation content, the natural language conversation model will first output the user account corresponding to the predicted topic tag; in response to the target user account determination operation triggered by the user, the target user account is determined and logged in from the output user accounts; and the predicted topic tag corresponding to the target user account is determined as the target topic tag.

[0165] In an embodiment of the present application, by first determining the target user account and then determining the target topic tag corresponding to the target user account, the determined target topic tag is made more accurate, thereby configuring a more accurate target environment for the natural language model.

[0166] In a possible implementation, when the target user account corresponds to a plurality of the predicted topic tags, a plurality of predicted topic tags are output; and in response to a target topic tag determination operation triggered by the user, one of the plurality of predicted topic tags is determined as the target topic tag.

[0167] Exemplarily, when the predicted topic tags are the first market research report and the second market research report, and both correspond to user account B, the first market research report and the second market research report are output, and then in response to the target topic tag determination operation triggered by the user, one of the predicted topic tags in the first market research report and the second market research report is determined as the target topic tag.

[0168] In an embodiment of the present application, when a target user account corresponds to multiple predicted topic tags, the user manually selects the most matching topic tag as the target topic tag, so that the determined target topic tag is more accurate, thereby configuring a more accurate target environment for the natural language model.

[0169] In actual use, there may be a scenario where someone impersonates a user to issue an image forming job, which may seriously affect the safety of device use and the user's information security. To address the above issues, a natural language model and a voiceprint recognition system can be used to take security precautions against the voice issued by the user, thereby preventing the problem of impersonating a user and maliciously frequently issuing jobs. Specifically, a detailed description is given below in conjunction with a specific embodiment.

[0170] In a possible implementation, in response to the current conversation content input by the user, the voiceprint information corresponding to the user is collected; the collected voiceprint information is matched with the voiceprint information library to determine the user authority corresponding to the voiceprint information; when the user authority corresponding to the voiceprint information meets the preset authority requirements, the target topic tag matching the current conversation content is determined. The voiceprint information library includes multiple voiceprint information and the user authority corresponding to each voiceprint information.

[0171] It should be noted that voiceprint information is information used to describe the characteristics of a user's voice. It is understandable that, usually, different users have different voiceprint information.

[0172] It should be noted that the "user authority" mentioned above indicates whether the user corresponding to the current voiceprint information is allowed to perform image formation. Exemplarily, when the user corresponding to the current voiceprint information is allowed to perform image formation, a target topic tag matching the current conversation content is determined; when the user corresponding to the current voiceprint information is not allowed to perform image formation, a user non-compliant prompt message is output.

[0173] Of course, in a possible implementation, "user rights" may also include multiple levels of rights. Exemplarily, user rights may include: administrator users, common users, and unfamiliar users. Among them, unfamiliar users are users who are restricted in the number and frequency of job issuance; common users are users who are not restricted in the number and frequency of job issuance; administrator users are not restricted in the number and frequency of job issuance, and can add or delete common users.

[0174] Exemplarily, the voiceprint information library is shown in Table 1. In response to the current conversation content input by the user, the voiceprint information corresponding to the user is collected as voiceprint information A; the collected voiceprint information A is matched with the voiceprint information library, and the user authority corresponding to the voiceprint information is determined to be an administrator user. At this time, the user is not restricted in the number and frequency of issuing jobs, and can add or delete common users.

[0175] Similarly, in response to the current conversation content input by the user, the voiceprint information corresponding to the user is collected as voiceprint information C; the collected voiceprint information C is matched with the voiceprint information library, and the user authority corresponding to the voiceprint information is determined to be a common user. At this time, the user is not restricted in the number and frequency of issuing jobs.

[0176] Similarly, in response to the current conversation content input by the user, the voiceprint information corresponding to the user is collected as voiceprint information H; the collected voiceprint information H is matched with the voiceprint information database, and it is determined that the user authority corresponding to the voiceprint information is a stranger user. At this time, the user is restricted in the number and frequency of issuing jobs.

[0177] Table 1:

[0178]

[0179] In an embodiment of the present application, before determining the target topic tag, it is first determined whether the user authority of the current user meets the preset authority requirements, thereby preventing attacks by impersonating the user to issue jobs, thereby improving device security and information security to a certain extent.

[0180] Of course, in actual applications, in addition to collecting voiceprint information to identify whether a user is a stranger, other methods can also be used to identify whether a user is a stranger. For example, by detecting the sentence pattern input by the user (for example, conversation habits, sentence inversion habits, and statement methods, etc.) to determine whether the user is a stranger, or by detecting the user's familiarity with the image forming device (for example, repeatedly creating the same topic tag, asking about the parameters of the print setting, asking about the functions supported by the image forming device) to determine whether the user is a stranger. This application does not make specific restrictions on this.

[0181] On the second aspect, no topic tag matching the input current conversation content is retrieved. At this time, in a possible implementation, in response to a target topic tag determination operation triggered by a user, a target topic tag is determined from a plurality of topic tags.

[0182] Specifically, the natural language model directly outputs all topic tags, and then determines a target topic tag from multiple topic tags in response to a target topic tag determination operation triggered by a user.

[0183] In the embodiment of the present application, in response to the target topic tag determination operation triggered by the user, the target topic tag is determined from multiple topic tags. It can be understood that the user directly selecting the topic tag can make the determined topic tag more accurate, thereby configuring a more accurate target environment for the natural language model.

[0184] Of course, in actual applications, when the target topic tag is stored locally, there may still be topic tags with the same name as the target topic tag; when the target topic tag is not stored locally but exists on a server, even if all topic tags are output, the target topic tag cannot be determined. For example, when the stored user accounts A, B, and C all have topic tags named "market research report", in one possible implementation, the natural language model directly outputs all topic tags, which may include three topic tags named "market research report". At this time, the user cannot accurately determine which topic tag is the target topic tag.

[0185] Since the topic label corresponding to the target account can be obtained through the user account, and the topic label names corresponding to a user account are often not the same, to address the above problem, you can log in to the user account first.

[0186] Specifically, in the embodiment of the present application, in response to the account login operation triggered by the user, the target user account is logged in; the topic tag corresponding to the target user account is output; in response to the target topic tag determination operation triggered by the user, the target topic tag is determined from the output topic tags. Wherein, the user account corresponds to at least one topic tag.

[0187] Exemplarily, the subject tags corresponding to the target user account B include: the first market research report, the second market research report, paper modification, and patent search. In response to the account login operation triggered by the user, the target user account B is logged in; the subject tags corresponding to the target user account B are output, namely, the first market research report, the second market research report, paper modification, and patent search; in response to the target subject tag determination operation triggered by the user, the target subject tag is determined from the output subject tags, namely, the first market research report.

[0188] In an embodiment of the present application, a user account is first logged in, and then the natural language model outputs the topic tag corresponding to the user account. In response to a target topic tag determination operation triggered by the user, the target topic tag is determined from the output topic tags, thereby making the determined topic tag more accurate, and ultimately configuring a more accurate target environment for the natural language model.

[0189] Step S302: Determine the target conversation content according to the target topic tag.

[0190] In the embodiment of the present application, the target conversation content is determined according to the target topic label. It can be understood that since each topic label corresponds to a historical conversation content in the natural language model, and the target topic label is determined from the topic label, the target topic label also corresponds to a historical conversation content in the natural language model, and the conversation content is the target conversation content.

[0191] In one possible implementation, topic tags and historical conversation contents are stored in a table format. Of course, those skilled in the art may also use other methods to store topic tags and historical conversation contents according to actual needs, and this application does not impose any specific restrictions on this.

[0192] Exemplarily, the relationship table between topic tags and historical conversations is shown in Table 2. It can be understood that when the target topic tag is topic tag A, the corresponding target conversation content is historical conversation content A; similarly, when the target topic tag is topic tag C, the corresponding target conversation content is historical conversation content C; and so on, which will not be described in detail in the embodiment of the present application.

[0193] Table 2:

[0194] Hashtags Historical dialogue content Topic Tag A Historical dialogue content A Topic Tag B Historical dialogue content B Topic Tag C Historical dialogue content C Topic Tag D Historical dialogue content D Topic Tag E Historical dialogue content E

[0195] Step S303: Import the target conversation content into the natural language model.

[0196] In the embodiment of the present application, the target conversation content is imported into the natural language model, so that the natural language model completes the configuration of the target environment according to the target conversation content. It can be understood that the target environment is to continue the conversation with the natural language model under the target conversation content.

[0197] In conjunction with the first aspect described above, the topic tags are stored on the image forming device.

[0198] In one possible implementation, after the target conversation content is imported into the natural language model so that the natural language model completes the configuration of the target environment according to the target conversation content, it also includes: determining the target image formation instruction according to the current conversation content and the target conversation content; and executing the image formation operation according to the target image formation instruction.

[0199] Exemplarily, the target conversation content corresponding to the target topic tag is as follows.

[0200] User: Adjust the format of paper A so that the font size of the main text is size 12pt.

[0201] Natural Language Models: …

[0202] User: Leave two spaces at the beginning of each paragraph

[0203] Natural Language Models: …

[0204] User: The paper title and subheadings should be in bold, and the font size of the paper title should be size 4.

[0205] Natural Language Models: …

[0206] User: Print the paper generated above on both sides.

[0207] Natural language model: The modified paper A in the above text is used as the image formation content, and "double-sided printing" is used as the image formation format, and is sent to the image forming device to perform the image formation job.

[0208] It should be noted that the "Paper A" input by the user in the above text is the actual content of Paper A, which is not shown in the figure for the sake of simplicity. The "..." output by the natural language model in the above text is the actual content of Paper A that is continuously adjusted by the natural language model according to user needs, which is not shown in the figure for the sake of simplicity.

[0209] The current conversation content input by the user may be "Paper B". At this time, the target image formation instruction is determined according to the current conversation content and the target conversation content. The target image formation instruction includes the image formation content of Paper B, the font size of the main text is 4-point, two spaces are left at the beginning of each paragraph, the title of the paper and the subtitle are in bold, and the font size of the title of the paper is 4-point, and the image formation format is double-sided printing. Then the image forming device executes the image formation job according to the target image formation instruction.

[0210] In an embodiment of the present application, after completing the environment configuration of the natural language model, the natural language model can quickly perform image formation operations according to the current conversation content output by the user, thereby improving the efficiency of the image formation operation.

[0211] In a possible implementation, the historical conversation content corresponding to the target topic tag is updated so that the updated historical conversation content includes the current conversation content and the target conversation content.

[0212] Exemplarily, the target conversation content corresponding to the target topic tag is as follows.

[0213] User: Adjust the format of paper A so that the font size of the main text is size 12pt.

[0214] Natural Language Models: …

[0215] User: Leave two spaces at the beginning of each paragraph

[0216] Natural Language Models: …

[0217] User: The paper title and subheadings should be in bold, and the font size of the paper title should be size 4.

[0218] Natural Language Models: …

[0219] User: Print the paper generated above on both sides.

[0220] It should be noted that the "Paper A" input by the user in the above text is the actual content of Paper A, which is not shown in the figure for the sake of simplicity. The "..." output by the natural language model in the above text is the actual content of Paper A that is continuously adjusted by the natural language model according to user needs, which is not shown in the figure for the sake of simplicity.

[0221] The current dialogue content input by the user is: adjust the format of paper B and center the paper title. The determined image formation content is: the font size of the main text is 11pt, two spaces are left at the beginning of each paragraph, the paper title is centered, the paper title and subheadings are in bold, and the font size of the paper title is 11pt.

[0222] Then, the historical conversation content corresponding to the target topic label is updated according to the current conversation content and the target conversation content. When the user sets the historical conversation content corresponding to the target topic label as the target conversation content again, and the current conversation content input is "adjust the format of paper C", the determined image formation content is: the font size of the main text is 4 points, two spaces are left at the beginning of each paragraph, the paper title is centered, the paper title and subheadings are in bold, and the font size of the paper title is 4 points.

[0223] In an embodiment of the present application, through the above process, the historical conversations corresponding to the target topic tag can be enriched, so that when the target topic is applied next time, the current conversation content input by the user is reduced, making it more convenient for the user to use.

[0224] However, in actual use, when the current conversation content input this time is only a special case, updating the historical conversation content corresponding to the target topic label according to the current conversation content and the target conversation content may make the image formation instruction determined later inaccurate. For example, the target conversation content corresponding to the target topic label is as follows.

[0225] User: Adjust the format of paper A so that the font size of the main text is size 12pt.

[0226] Natural Language Models: …

[0227] User: Leave two spaces at the beginning of each paragraph

[0228] Natural Language Models: …

[0229] User: The paper title and subheadings should be in bold, and the font size of the paper title should be size 4.

[0230] Natural Language Models: …

[0231] User: Print the paper generated above on both sides.

[0232] It should be noted that the "Paper A" input by the user in the above text is the actual content of Paper A, which is not shown in the figure for the sake of simplicity. The "..." output by the natural language model in the above text is the actual content of Paper A that is continuously adjusted by the natural language model according to user needs, which is not shown in the figure for the sake of simplicity.

[0233] The current dialogue content input by the user is: adjust the format of paper B, whether there is a space at the beginning of each paragraph of the text, and the determined image formation content is: the font size of the text part is 4 points, whether there is a space at the beginning of each paragraph, the paper title and subtitles are in bold, and the font size of the paper title is 4 points. At this time, the output of paper B in accordance with the requirements of the current dialogue is whether there is a space at the beginning of each paragraph of the text, which may be just a special requirement. Later, when the paper is modified again, two spaces are left at the beginning of each paragraph, so no update is required.

[0234] In response to the above problem, in an embodiment of the present application, update prompt information is first output; then in response to the update confirmation information triggered by the user, the historical conversation content corresponding to the target topic tag is updated, so that the updated historical conversation content includes the current conversation content and the target conversation content.

[0235] In the embodiment of the present application, the natural language model first outputs update prompt information; then, in response to the update confirmation information triggered by the user, the historical conversation content corresponding to the target topic is updated. By outputting the update prompt information, the user can judge whether to update the historical content corresponding to the target topic label according to actual needs, which improves the accuracy of the historical content corresponding to the target topic label to a certain extent, thereby configuring a more accurate target environment for the natural language model.

[0236] In a possible implementation, after the target conversation content is imported into the natural language model so that the natural language model completes the configuration of the target environment according to the target conversation content, the method further includes: determining a target image formation instruction according to the current conversation content and the target conversation content; and executing an image formation operation according to the target image formation instruction. Specifically, refer to the embodiments described above, and this application will not elaborate on them here.

[0237] In actual applications, in order to prevent the problem of impersonating users and maliciously issuing jobs frequently, before determining the target image formation instruction based on the current conversation content and the target conversation content, the user permissions of the voiceprint information corresponding to the current conversation content can be judged first, thereby preventing attacks by impersonating users to issue jobs, which improves device security and information security to a certain extent.

[0238] Specifically, in a possible implementation, in response to the current conversation content input by the user, the voiceprint information corresponding to the user is collected; the collected voiceprint information is matched with the voiceprint information library to determine the user authority corresponding to the voiceprint information; when the target user authority corresponding to the voiceprint information meets the preset authority requirements, the target image formation instruction is determined according to the current conversation content input by the user and the historical conversation content corresponding to the target topic tag. Specifically, refer to the embodiments described above, and this application will not be repeated here.

[0239] In an embodiment of the present application, before determining the target image formation instruction, it is first determined whether the user authority of the current user meets the preset authority requirements, thereby preventing attacks by impersonating the user to issue jobs, thereby improving device security and information security to a certain extent.

[0240] In actual applications, the current conversation content input by the user may not be highly correlated with the target topic label. At this time, continuing to determine the target image formation instruction may cause the final generated image to not meet the user's needs. To address the above problem, in an embodiment of the present application, after the user inputs the current conversation content, the correlation between the current conversation content and the target topic label can be determined. When the correlation is high enough, the target image formation instruction can be determined. Specifically, this will be described in detail below with reference to the accompanying drawings.

[0241] In one possible implementation, in response to the current conversation content input by the user, the correlation between the current conversation content and the target topic tag is determined; when the correlation between the current conversation content and the target topic tag is greater than or equal to a preset correlation, the target image formation instruction is determined based on the current conversation content input by the user and the historical conversation content corresponding to the target topic tag.

[0242] Among them, the correlation is used to characterize the repetition of keywords in the current conversation content input by the user and the target conversation content corresponding to the target topic tag. For example, when the topic tag is "the first market research report", the keywords corresponding to the topic tag are market, research and report. When it is detected that the current conversation content input by the user "make a market research report on product B" contains keywords such as market, research and report, it means that the current conversation content has a high correlation with the topic tag. Of course, those skilled in the art can also set other methods according to actual needs to determine the correlation between the topic tag and the current conversation content, and this application does not make specific restrictions on this.

[0243] In a possible implementation, the present application determines the correlation between the current conversation content and the target topic tag as 0%-100% according to the correlation degree. When the current conversation content and the target topic tag are irrelevant to each other, the correlation between the current conversation content and the target topic tag is 0%; when the current conversation content and the target topic tag correspond to each other, the correlation between the current conversation content and the target topic tag is 100%.

[0244] It can be understood that the preset correlation is a reasonable correlation determined by those skilled in the art based on a large amount of experimental data. When the correlation between the current conversation content and the target topic tag is greater than or equal to the preset correlation, the current conversation content can be regarded as corresponding to the target topic tag; when the correlation between the current conversation content and the target topic tag is less than the preset correlation, the current conversation content can be regarded as irrelevant to the target topic tag.

[0245] Exemplarily, the preset correlation is 80%. In response to the current conversation content input by the user, when it is determined that the correlation between the current conversation content and the target topic tag is 85%, since 85% is greater than or equal to 80%, that is, the correlation between the current conversation content and the target topic tag is greater than or equal to the preset correlation, at this time, according to the current conversation content input by the user and the historical conversation content corresponding to the target topic tag, the target image formation instruction is determined.

[0246] In an embodiment of the present application, a target image formation instruction is generated only when the current conversation content input by the user has a high correlation with the target topic, thereby avoiding the situation where the generated target image formation instruction does not meet the user's needs due to the current conversation content input by the user not being consistent with the determined target topic label.

[0247] In one possible implementation, when the correlation between the current conversation content and the target topic tag is less than a preset correlation, the correlation between the current conversation content and other topic tags is determined; and the topic tag with a correlation greater than or equal to the preset correlation and the largest correlation with the current conversation content is used as the target topic tag.

[0248] Exemplarily, the preset correlation is 80%. In response to the current conversation content input by the user, when it is determined that the correlation between the current conversation content and the target topic tag is 75%, since 75% is less than 80%, that is, the correlation between the current conversation content and the target topic tag is less than the preset correlation, the correlation between the current conversation content and other topic tags is determined at this time; the topic tag with a correlation greater than or equal to the preset correlation and the largest correlation with the current conversation content is used as the target topic tag.

[0249] In an embodiment of the present application, the topic tag with the greatest correlation is used as the target topic tag, which improves the accuracy of the target topic tag to a certain extent, thereby improving the accuracy of the target environment configuration of the natural language model.

[0250] In actual applications, users may want to use the historical content corresponding to the topic tag to determine the image content, so sometimes it is impossible to determine the target topic tag based on the correlation. In response to the above problem, in an embodiment of the present application, a prompt message for changing the target topic tag can be sent to the user first, and then whether to change the target topic tag can be determined based on the user's reply.

[0251] Specifically, in a possible implementation, when there is a topic tag with a relevance greater than or equal to a preset relevance to the current conversation content, target topic tag change prompt information is output; in response to target topic tag change confirmation information input by the user, a topic tag with a relevance greater than or equal to a preset relevance to the current conversation content and the highest relevance is used as the target topic tag. The target topic tag change prompt information is used to prompt the user whether to change the target topic tag.

[0252] In an embodiment of the present application, when the target topic label needs to be changed, a target topic label change prompt message is sent to the user, so that the user can determine whether to change the target topic label according to actual needs, thereby improving the accuracy of the target topic label to a certain extent, and further improving the accuracy of the target environment configuration of the natural language model.

[0253] In a possible implementation, after the target conversation content is imported into the natural language model, it further includes: outputting update prompt information; in response to the update confirmation information triggered by the user, updating the historical conversation content corresponding to the target topic tag, so that the updated historical conversation content includes the current conversation content and the target conversation content. Specifically, refer to the embodiments described above, and this application will not be repeated here.

[0254] In the embodiment of the present application, before performing an image formation operation, the target topic label related to the current image formation operation is determined, and then the target conversation content corresponding to the target topic label is determined; then, the target conversation content is imported into the natural language model, so that the natural language model completes the configuration of the target environment according to the target conversation content. It can be understood that since the user first completes the configuration of the target environment corresponding to the image formation operation, the user only needs to have a simple conversation with the natural language model to obtain the desired answer, which reduces the user's investment time and also improves the image formation efficiency.

[0255] Corresponding to the above embodiments, the present application also provides an electronic device.

[0256] See also Figure 4 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, the electronic device 400 may include: a processor 401, a memory 402 and a communication unit 403. These components communicate through one or more buses. Those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation on the embodiment of the present invention. It can be a bus structure or a star structure, and can also include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0257] The communication unit 403 is used to establish a communication channel so that the electronic device can communicate with other devices, receive user data sent by other devices or send user data to other devices.

[0258] The processor 401 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It runs or executes software programs, instructions, and / or modules stored in the memory 402, and calls data stored in the memory to perform various functions of the electronic device and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 401 can only include a central processing unit (CPU). In the embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.

[0259] The memory 402 is used to store the execution instructions of the processor 401. The memory 402 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0260] When the execution instructions in the memory 402 are executed by the processor 401 , the electronic device 400 is enabled to execute part or all of the steps in the embodiment shown in FIG. 1 .

[0261] In a specific implementation, the present invention further provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment of the simulation scene generation method provided by the present invention. The storage medium may be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0262] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0263] Those of ordinary skill in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0264] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0265] In several embodiments provided in the present application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.

[0266] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.

Claims

1. A method for configuring an environment for a natural language model. It is characterized in that include: Determining a target topic tag from a plurality of topic tags, each of the topic tags corresponding to a historical conversation content in a natural language model; Determine a target conversation content according to the target topic tag, wherein the target conversation content is the historical conversation content corresponding to the target topic tag; The target dialogue content is imported into the natural language model, so that the natural language model completes the configuration of the target environment according to the target dialogue content.

2. The method according to claim 1, It is characterized in that The step of determining a target topic tag from a plurality of topic tags comprises: In response to the current conversation content input by the user, a target topic tag matching the current conversation content is determined.

3. The method according to claim 2, It is characterized in that The step of determining a target topic tag matching the current conversation content in response to the current conversation content input by the user comprises: In response to the current conversation content input by the user, collecting the voiceprint information corresponding to the user; Matching the collected voiceprint information with a voiceprint information database to determine the user authority corresponding to the voiceprint information, wherein the voiceprint information database includes a plurality of voiceprint information and the user authority corresponding to each voiceprint information; When the user authority corresponding to the voiceprint information meets the preset authority requirement, a target topic tag matching the current conversation content is determined.

4. The method according to claim 2, It is characterized in that The step of determining a target topic tag matching the current conversation content in response to the current conversation content input by the user comprises: In response to the current conversation content input by the user, predict and output N predicted topic tags matching the current conversation content, where N≥1; In response to a determination operation triggered by a user, one of the N predicted topic tags is determined as a target topic tag.

5. The method according to claim 4, It is characterized in that The step of predicting and outputting N predicted topic tags matching the current conversation content in response to the current conversation content input by the user includes: In response to the current conversation content input by the user, predict N predicted topic tags matching the current conversation content; Outputting M user accounts corresponding to the N predicted topic tags according to the N predicted topic tags, where M≤N; The step of determining, in response to a determination operation triggered by a user, one of the N predicted topic tags as a target topic tag comprises: In response to a target user account determination operation triggered by a user, a target user account is determined and logged in from the output M user accounts; The predicted topic tag corresponding to the target user account is determined as the target topic tag.

6. The method according to claim 5, It is characterized in that The step of determining the predicted topic tag corresponding to the target user account as the target topic tag includes: When the target user account corresponds to a plurality of the predicted topic tags, outputting the plurality of the predicted topic tags; In response to a target topic tag determination operation triggered by a user, one of the plurality of predicted topic tags is determined as a target topic tag.

7. The method according to claim 2, It is characterized in that After importing the target dialogue content into the natural language model, the method further includes: A target image forming instruction is determined according to the current conversation content and the target conversation content, wherein the target image forming instruction is used to instruct an image forming device to execute an image forming job.

8. The method according to claim 1, It is characterized in that The step of determining a target topic tag from a plurality of topic tags comprises: In response to a target topic tag determination operation triggered by a user, a target topic tag is determined from a plurality of topic tags.

9. The method according to claim 8, It is characterized in that The step of determining a target topic tag from a plurality of topic tags in response to a target topic tag determination operation triggered by a user includes: In response to an account login operation triggered by a user, logging into a target user account, wherein the user account corresponds to at least one of the topic tags; Outputting the topic tag corresponding to the target user account; In response to a target topic tag determination operation triggered by a user, a target topic tag is determined from the output topic tags.

10. The method according to claim 8, It is characterized in that After importing the target dialogue content into the natural language model, the method further includes: According to the current conversation content input by the user and the historical conversation content corresponding to the target topic tag, a target image forming instruction is determined, wherein the target image forming instruction is used to instruct an image forming device to execute an image forming job.

11. The method according to claim 10, It is characterized in that The step of determining the target image forming instruction according to the current conversation content input by the user and the historical conversation content corresponding to the target topic tag includes: In response to the current conversation content input by the user, collecting the voiceprint information corresponding to the user; Matching the collected voiceprint information with a voiceprint information database to determine the user authority corresponding to the voiceprint information, wherein the voiceprint information database includes a plurality of voiceprint information and the user authority corresponding to each voiceprint information; When the target user authority corresponding to the voiceprint information meets the preset authority requirement, the target image formation instruction is determined according to the current conversation content input by the user and the historical conversation content corresponding to the target topic tag.

12. The method according to claim 10, It is characterized in that The step of determining the target image forming instruction according to the current conversation content input by the user and the historical conversation content corresponding to the target topic tag includes: In response to the current conversation content input by the user, determining the relevance between the current conversation content and the target topic tag, wherein the relevance is used to characterize the repetition of the keywords corresponding to the current conversation content input by the user and the target topic tag; When the correlation between the current conversation content and the target topic tag is greater than or equal to a preset correlation, a target image forming instruction is determined according to the current conversation content input by the user and the historical conversation content corresponding to the target topic tag.

13. The method according to claim 12, It is characterized in that Also includes: When the correlation between the current conversation content and the target topic tag is less than a preset correlation, determining the correlation between the current conversation content and other topic tags; The topic tag having a relevance greater than or equal to a preset relevance and the highest relevance to the current conversation content is used as the target topic tag.

14. The method according to claim 13, It is characterized in that The step of taking the topic tag having a relevance greater than or equal to a preset relevance and the greatest relevance to the current conversation content as the target topic tag includes: When there is a topic tag whose relevance to the current conversation content is greater than or equal to a preset relevance, outputting target topic tag change prompt information, wherein the target topic tag change prompt information is used to prompt the user whether to change the target topic tag; In response to the target topic tag change confirmation information input by the user, the topic tag having a relevance greater than or equal to a preset relevance with the current conversation content and having the greatest relevance is used as the target topic tag.

15. The method according to claim 2 or 10, It is characterized in that After importing the target dialogue content into the natural language model, the method further includes: Output update prompt information; In response to the update confirmation information triggered by the user, the historical conversation content corresponding to the target topic tag is updated, so that the updated historical conversation content includes the current conversation content and the target conversation content.

16. An electronic device, It is characterized in that include: processor; Memory; And a computer program, wherein the computer program is stored in the memory, and the computer program includes instructions, and when the instructions are executed by the processor, the electronic device executes the method according to any one of claims 1 to 15.

17. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 15.

Citation Information

Patent Citations

  • Intention recognition method and device for few-sample multi-round dialogues

    CN115617975A

  • Context construction method based on large language model

    CN116821309A

  • Question and answer method and system with traceability based on multi-source knowledge base

    CN117874190A

  • Conversation processing method and device, electronic equipment and storage medium

    CN117932036A