Multi-round dialogue method and device, equipment and storage medium

By contextually rewriting and multi-modal large model processing of the target image interrogation information in traditional image recognition products, the problem of traditional image recognition products being unable to support multiple rounds of dialogue is solved, improving user intent understanding and interaction efficiency, and reducing The occurrence of hallucinations.

CN118708682APending Publication Date: 2024-09-27BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD

Patent Information

Application Number
CN202410693410.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Traditional image recognition products cannot support multiple rounds of dialogue, making it difficult for users to interact in depth. The system cannot accurately understand user intentions, which increases user operation costs and may cause hallucinations.

Method used

By determining the original content of the questioning information of the target image, rewriting it based on the context, generating optimized content, and using a multi-modal large model and a large question and answer language model to conduct multiple rounds of dialogue, the system can improve the system's understanding of the user's intention and the accuracy of the answer.

Benefits of technology

It achieves a more accurate understanding of user intentions, reduces the delay of multiple rounds of dialogue, improves interaction efficiency and content rationality, and provides a more natural and smooth user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708682A
    Figure CN118708682A
Patent Text Reader

Abstract

The invention provides a multi-round dialogue method and device, equipment and a storage medium, and relates to the technical field of artificial intelligence, in particular to the technical fields of computer vision, multi-round dialogue generation and the like. The specific implementation scheme is as follows: determining the question information original content of a target image; determining a query context based on the query information original content; rewriting the original content of the query information based on the query context to obtain optimized content of the query information; and generating session content of the query information original content based on the query information optimization content. In the embodiment of the invention, by optimizing the inquiry information of the target image input by the user, the system can better understand the intention of the user, and the generated content of multiple rounds of dialogues is more natural and reasonable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of artificial intelligence technology, and in particular to technical fields such as computer vision and multi-round dialogue generation. Background Art

[0002] Traditional image recognition products in related technologies do not support multiple rounds of dialogue and cannot meet user needs. Taking shopping applications as an example, the image recognition function is limited to finding similar images. If you want to learn more about the image information, you need to exit the function. In AI (Artificial Intelligence) dialogue product image recognition, AI image recognition not only consumes resources, but may also produce hallucinations, making it difficult to recognize the user's input intentions. Summary of the invention

[0003] The present disclosure provides a multi-round dialogue method, apparatus, device and storage medium.

[0004] According to one aspect of the present disclosure, a multi-round dialogue method is provided, comprising:

[0005] Determine the original content of the query information of the target image;

[0006] Determine the context of the inquiry based on the original content of the inquiry information;

[0007] Rewrite the original content of the follow-up information based on the context of the follow-up information to obtain optimized content of the follow-up information;

[0008] The conversation content of the original content of the follow-up information is generated based on the optimized content of the follow-up information.

[0009] According to another aspect of the present disclosure, a multi-round dialogue device is provided, comprising:

[0010] A first determination module is used to determine the original content of the query information of the target image;

[0011] A second determination module is used to determine the question context based on the original content of the question information;

[0012] A rewriting module, used to rewrite the original content of the follow-up information based on the context of the follow-up information to obtain optimized content of the follow-up information;

[0013] The generation module is used to generate the conversation content of the original content of the follow-up information based on the optimized content of the follow-up information.

[0014] According to another aspect of the present disclosure, there is provided an electronic device, comprising:

[0015] at least one processor; and

[0016] a memory communicatively connected to the at least one processor; wherein,

[0017] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute any method in the embodiments of the present disclosure.

[0018] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any method according to the embodiments of the present disclosure.

[0019] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, which implements any method according to the embodiments of the present disclosure when executed by a processor.

[0020] In the disclosed embodiment, by optimizing the follow-up information of the target image input by the user, the system can better understand the user's intention, reduce the time delay of multiple rounds of dialogue, and make the generated content of multiple rounds of dialogue more reasonable.

[0021] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0023] Figure 1 is a flowchart of a multi-round dialogue method according to an embodiment of the present disclosure;

[0024] Figure 2 is a flow chart of determining a question context based on original content of question information according to an embodiment of the present disclosure;

[0025] Figure 3 is a flow chart of selecting a corresponding model to generate a dialogue content according to a user's intention according to an embodiment of the present disclosure;

[0026] Figure 4 It is a schematic diagram of an interface for selecting required copy fragments from multiple rounds of historical conversations to generate new copy according to an embodiment of the present disclosure;

[0027] Figure 5 is a schematic diagram of an interface for generating a new copy based on user evaluation according to an embodiment of the present disclosure;

[0028] Figure 6 is a schematic diagram of the overall process of a multi-round dialogue method according to an embodiment of the present disclosure;

[0029] Figure 7 is a flowchart of a training method for a multimodal large model according to an embodiment of the present disclosure;

[0030] Figure 8 is a schematic diagram of a processing target image of a multimodal large model according to an embodiment of the present disclosure;

[0031] Fig. 9 A schematic diagram of the structure of a multi-round dialogue device according to an embodiment of the present disclosure;

[0032] Fig.10 The block diagram is a block diagram of an electronic device used to implement the multi-round dialogue method of the embodiment of the present disclosure. DETAILED DESCRIPTION

[0033] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0034] The terms "first", "second", etc. in this disclosure are used to distinguish similar objects, and are not necessarily used to describe a specific order or precedence. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, including a series of steps or units. The method, system, product or device is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0035] Traditional image recognition products can identify images through retrieval technology and can generate intent and accurately guess words, but for complex needs, they can only conduct a single round of dialogue and cannot meet the in-depth needs of users. If users need to refine their needs, they often need to perform text searches. At this time, the search lacks image recognition information, resulting in low user search efficiency and poor results.

[0036] Traditional image recognition products have the following main problems:

[0037] (1) Lack of contextual understanding:

[0038] In a one-time conversation, the system often cannot understand the user's previous conversation content. If the user raises new requirements or modifies previous requirements during the conversation, the system may not be able to accurately understand and respond, resulting in poor conversation results.

[0039] (2) Deep interaction is not possible:

[0040] Traditional image recognition products can only conduct single-round conversations, and cannot conduct in-depth interactions, and cannot meet the in-depth needs of users. For example, users may need to obtain more detailed information through multiple rounds of conversations, or require the system to provide more personalized services.

[0041] (3) Low user search efficiency:

[0042] Since it is impossible to conduct multiple rounds of dialogue, users may need to input commands repeatedly, which increases the user's operating costs. At the same time, the system cannot provide a smooth and natural dialogue experience, which may make users feel dissatisfied; traditional image recognition products can only solve some simple needs, and may not be able to meet complex problems, such as those that require the system to reason or solve multiple related problems; since it is impossible to conduct multiple rounds of dialogue, the system may not be able to accurately understand the user's needs, resulting in inaccurate information extraction and inability to provide accurate services.

[0043] In addition to traditional image recognition products, there are also conversational image recognition products. However, AI conversational image recognition products can produce hallucinations. Hallucinations refer to the model fabricating and outputting some seemingly reasonable texts, which may contain fictitious content, numbers, or quotations. The reason for the model's hallucination phenomenon is that the model has a certain degree of initiative, and it pays more attention to the correct expression or writing and outputting content in a suitable style, so accuracy is secondary.

[0044] In view of this, the embodiment of the present disclosure proposes a multi-round dialogue method, which is applicable to multi-round dialogues on images. When the user has follow-up questions about the image, the method can optimize the follow-up questions in combination with the context, so as to fully understand the user's questions and give reasonable answers. The optimized follow-up questions can be applied to both traditional image recognition products and AI dialogue models. Figure 1 As shown, the multi-round dialogue method provided by the embodiment of the present disclosure includes the following contents:

[0045] S101, determining the original content of the query information of the target image.

[0046] Among them, follow-up information refers to questions added by the user after at least one round of description of the target image is produced. For example, the input target image includes a plant. The first round of dialogue can help users understand simple information about the plant, such as its name and main characteristics. If the user wants to grow the plant, he can ask "how to grow it". For another example, the user continues to ask "generate a text describing its performance" or "where to buy it".

[0047] The original content of the follow-up information is the original text of the user's question. Since it is a multi-round dialogue scenario for the target image, the original content of the user's follow-up information is often incomplete or inaccurate. Continuing with the above example, the question "how to raise" lacks a subject, and it is unclear what the user is asking simply from the original content of the follow-up information. Therefore, the original content of the follow-up information needs to be optimized.

[0048] S102: Determine the question context based on the original content of the question information.

[0049] S103, rewriting the original content of the follow-up question information based on the follow-up question context to obtain optimized content of the follow-up question information.

[0050] In the disclosed embodiment, the original content of the follow-up information is rewritten based on the principle of clear description and logical order. Thus, the content of the obtained follow-up information is optimized to clearly express the user's demands.

[0051] S104: Generate conversation content of the original content of the follow-up question information based on the optimized content of the follow-up question information.

[0052] Take the original content of the user's follow-up information "How much is this?" as an example. The original content of the follow-up information needs to be associated based on the context, that is, it lacks the necessary subject information. In order to enable the user to interact deeply with the system after entering the target image, for example, when the previous content of the original content of the follow-up information is a bicycle picture, the original content of the follow-up information will be rewritten to obtain the optimized content of the follow-up information: "How much is this bicycle?" Then, for the original content of the follow-up information "How much is this", the answer is generated based on the optimized content of the follow-up information "How much is this bicycle?"

[0053] In the disclosed embodiment, by determining the original content of the follow-up information of the target image, and then determining the context of the follow-up information based on this content, the system can more accurately understand the user's intentions and needs through understanding and analyzing the context of the follow-up information. By rewriting the original content to optimize the follow-up information, the ambiguity of the original content of the follow-up information can be reduced and the accuracy of the answer can be improved. The generated conversation content is more in line with natural language habits and can provide a smoother interactive experience. Generating conversation content of the original content of the follow-up information based on the optimized content of the follow-up information can reduce the number of interactions so that user needs can be met more quickly and the efficiency of multiple rounds of dialogue can be improved.

[0054] In some embodiments, the query context is determined based on the original content of the query information, such as Figure 2 As shown, the following steps are included:

[0055] S201, obtaining a specified amount of conversation content from the conversation history before the original content of the follow-up information.

[0056] S202, sorting the acquired conversation content and original content of the follow-up question information according to the conversation time to obtain the follow-up question context.

[0057] For example, when there are many conversation histories, or when the conversation histories are less relevant to the original content of the follow-up information, a portion of the conversation is obtained from the conversation history before the original content of the follow-up information.

[0058] In one possible implementation, n historical conversations adjacent to the original content of the follow-up information are obtained. Since conversations are generally continuous, and the latest follow-up questions are often related to the above content, the latest n historical conversations can be obtained. In the case that the number of historical conversations in all conversations for the target image is less than n, the target image and all historical conversations are obtained as context.

[0059] In another possible implementation, a specified number of conversation contents with a high correlation with the original content of the current follow-up information can be obtained from all conversation histories. During implementation, the features of the original content of the follow-up information and each historical conversation can be extracted respectively, and the correlation between each historical conversation and the original content of the follow-up information can be determined based on the feature similarity. Among them, the intention recognition model can be pre-trained, and the intention recognition model includes a feature extraction module and a binary classification module. Through this model, different descriptions of the same intention can be mapped to the same or similar feature space, and the gap between the feature expressions of different intentions can be increased. Therefore, in the case where the user cannot clearly express his or her own questions, the user may continue to ask questions from different description methods. Through similarity, different questions of users for the same intention can be summarized to facilitate the sorting out of users' demands and improve the quality of rewriting.

[0060] It is understandable that in another possible implementation, it is possible to obtain both the n conversations closest to the original content of the follow-up information and different questioning methods with the same intention.

[0061] After the system sorts the acquired conversation content according to the chronological order of the conversation history, it associates it with the original content of the question information to obtain the question context. Of course, the acquired conversation content can also be classified and summarized, and different questioning methods with the same intention can be summarized into different descriptions of the question, and then sorted according to the chronological order of each type of conversation to obtain the question context.

[0062] In the disclosed embodiments, by obtaining and sorting the previous conversation content and follow-up information, the history and background of the conversation can be better understood, so as to answer questions or provide help more accurately. Arranging the conversation content in chronological order can make the conversation more coherent and smooth, and enhance the interactive experience between the user and the system. By viewing the complete conversation history, the user's intentions and needs can be more accurately grasped to avoid misunderstandings or missing important information. Arranging the conversation content in chronological order can help both parties review and understand previous discussions and promote more effective communication and exchanges.

[0063] In order to make the multi-round dialogue more natural and smooth, in the embodiment of the present disclosure, the first prompt information can be constructed based on the question context; the first prompt information is input into the rewriting large language model to obtain the optimized content of the question information output by the rewriting large language model.

[0064] If the obtained follow-up context content is "Q: Does it support voice? A: It supports voice function. Q: How to respond to voice". The first prompt information constructed based on the follow-up context at least includes the follow-up context. This first prompt information is input into the rewritten large language model for optimization. The rewritten large language model may return optimization content similar to this: "In a smart home, what steps does the voice recognition system usually go through to understand and respond to the user's voice commands? Please explain this process, including key links such as voice collection, preprocessing, voice recognition, semantic understanding and execution feedback."

[0065] In the disclosed embodiment, by first constructing the first prompt information and then inputting it into the rewritten large language model for optimization, the prompt engineering can help the rewritten large language model to clarify the task and complete the reasoning process. By optimizing the follow-up questions with the help of the rewritten large language model, it is possible to fully utilize the powerful knowledge background and logical reasoning ability of the rewritten large language model, give a more accurate description, and make it easier for the multi-round dialogue question-and-answer model to reply to the expression method to realize the follow-up questions. At the user level, the dialogue is natural and smooth, and more in line with human language habits. At the computer level, by rewriting the large language model, the follow-up questions are more in line with the description of the machine's habits, so that the content of the answer is more accurate and relevant.

[0066] In the disclosed embodiment, multiple rounds of conversations are conducted around the target image. After the user inputs the target image, an image recognition result for the target image will be generated. The user can then initiate at least one round of follow-up questions based on the image recognition result and / or the target image. In some embodiments, in order to guide the user to better initiate follow-up questions, when the optimized content of the follow-up information is the first round of follow-up questions, a second prompt information is constructed based on the target image and the optimized content of the follow-up information; the second prompt information is input into the multimodal large model to obtain the conversation content of the original content of the follow-up information output by the multimodal large model.

[0067] At this time, the constructed follow-up context includes the target image, the first round of replies, and the first round of follow-up questions. At this time, a multimodal large language model is used to process the prompt information, and the answer is completed based on the image understanding of the target image and the user's current round of follow-up questions.

[0068] In the disclosed embodiment, the second prompt information is constructed by combining the target image and the optimized content of the follow-up information, and various forms of information (images and text) can be fully utilized to understand and answer the follow-up questions. By inputting the second prompt information into the multimodal large model, the image recognition ability and generative reasoning ability of the multimodal large model can be used to complete the detailed answer to the follow-up question. Through the answer of the multimodal large model, the user can be inspired to initiate the next round of questioning, thereby improving the intelligence level.

[0069] The multimodal large model may produce hallucinations, and its complexity is high, and the response delay is high in resource occupation cost. In order to accurately feedback the user's follow-up questions and improve the feedback efficiency, the embodiment of the present disclosure uses the multimodal large model to answer the first round of follow-up questions. When the optimized content of the follow-up information is the follow-up questions after the first round, the third prompt information is constructed based on the optimized content of the follow-up information; the third prompt information is input into the question-answering large language model to obtain the conversation content of the original content of the follow-up information output by the question-answering large language model.

[0070] For example, if the target image describes a certain scenic spot and the user wants to know more about it, there is no need for the multimodal large model to continue processing the target image. Instead, a large question-and-answer language model that simply processes text content can be used to sort out more content about the scenic spot and generate a reply.

[0071] In the disclosed embodiment, by inputting the third prompt information into the question-answering large language model, compared with the multimodal large model, the model is more efficient in resource utilization and can provide the user with the expected answer based on the content of the previous round of conversation. The use of the question-answering large language model can save resources and reduce latency.

[0072] In some other possible embodiments, for each round of questions, not only can the aforementioned generative approach be used to answer, but some questions may also be suitable for traditional technical answers that can obtain precise answers. Therefore, in order to balance the efficiency and cost of generative mode answers and traditional image recognition model answers, Figure 3 As shown, the following steps are included:

[0073] S301, optimizing content based on follow-up information and determining the intention of the follow-up question.

[0074] S302, filtering out a target model that matches the questioning intention from the model set.

[0075] The model set includes smaller question-answering models and generative question-answering models. For example, to check the weather, you can use a weather query model with high accuracy and low resource consumption, which does not require the reasoning ability of a large model. For questions that require creative ability, you can use the generative ability of a large model.

[0076] S303, using the target model to process the optimized content of the follow-up question information to obtain the conversation content of the original content of the follow-up question information.

[0077] For example, if the optimized content of the follow-up information is "What is the flower in this picture?", the system determines that the intention of the follow-up question is cognitive, uses the knowledge query model to retrieve short entity words, and recalls relevant search results to meet the user's cognitive needs.

[0078] If the optimized content of the follow-up information is "Can you find pictures similar to this one?", the intention of the follow-up question is determined to be an image search type. The image search type small model is used to provide high-definition pictures, sets of pictures, and supporting pictures through a similar picture retrieval strategy.

[0079] If the optimized content of the follow-up question is "Can you translate the text in the picture?", the intention of the follow-up question is determined to be text, translation, and problem-solving requirements, and the text extraction model is used to recognize the text information in the picture.

[0080] When the query information optimization content is multi-subject and complex, based on generative technology, a multimodal large model or a large language model is used to output a detailed long description of the image content, analyze user needs based on the image description, and provide multiple related rhetorical prompts to guide users to clarify their needs. This can achieve the minimum cost to create the maximum benefit without affecting other existing satisfaction.

[0081] In the disclosed embodiments, by determining the questioning intent and finding a target model that matches it, it is possible to ensure that the most relevant and accurate answer is provided for a specific question. Providing customized answers based on the questioning intent through the corresponding model can greatly improve the user experience, make the conversation more fluent and natural, and make it easier for users to obtain information, which helps to improve the accuracy and efficiency of the conversation.

[0082] In some embodiments, when the original content of the inquiry information requires the execution of a copywriting creation task, the target object is guided to filter out the required copywriting fragments from multiple rounds of historical conversations; and new copywriting is generated based on the filtered copywriting fragments and the target image.

[0083] like Figure 4As shown in the figure, a product promotion copy is generated for the original content of the user's inquiry information: "The newly launched [product name] is designed for modern life and combines high technology with convenient functions. It has [product feature 1], [product feature 2] and [product feature 3], which can help you easily cope with various challenges in a fast-paced life. Whether you are at home or on the road, [product name] can be your right-hand man. Experience this revolutionary product now and make your life easier and more enjoyable!" After the copy is generated, the target object will be guided to filter out the required copy fragments in multiple rounds of historical conversations, such as "Please customize the copy optimization strategy." Users can customize and select part of the content in the generated copy. When the user selects the copy, the system pops up options such as retain, delete, and optimize it for the user to choose. After the user performs the operation, the system continues to ask questions, such as "I want to keep the selected content. Can I regenerate the promotional copy for [product name] based on this?"; "I want to delete the selected content. Can I regenerate the promotional copy for [product name] based on this?" (not shown in the figure). The system will generate new copy based on the copy fragments and target images selected by the user, that is, retain the part of the content selected by the user and optimize the remaining part of the copy, such as "[Product name], an innovator of modern life, is a product that combines cutting-edge technology with humanized design. It not only has [Product Feature 1], allowing you to easily cope with daily challenges, but also places special emphasis on [Product Feature 2], bringing you unprecedented convenience experience. Whether you are at home or on the road, [Product Name] can be your right-hand man. Experience this revolutionary product now to make your life easier and more enjoyable!".

[0084] In the disclosed embodiment, when the original content of the follow-up information requires the execution of a copywriting creation task, by guiding the target object to filter out the required copywriting fragments in multiple rounds of historical conversations, it can help the system better understand and meet the needs of users, ensure that the generated copywriting is consistent with the target image and the original content of the user's follow-up information, thereby improving the quality and effect of the copywriting.

[0085] In some embodiments, when the original content of the inquiry information requires the execution of a copywriting creation task, the target object is guided to evaluate the generated copywriting content to be optimized to obtain an evaluation result; and a new copywriting is generated based on the copywriting content to be optimized and the evaluation result.

[0086] Let’s continue with the example of generating a product promotion copy based on the original content of the user’s inquiry information. By guiding the user and evaluating its content, such as Figure 5Based on user comments, for example: "I think this copy is too general and does not highlight the uniqueness of [product name]. Can you help me regenerate a copy?"; "I want to see more specific descriptions of [product feature 2]. Can you help me regenerate a copy?"; "I think this copy does not really convey the value of the product. Can you help me regenerate a copy?". The system generates new copy based on the evaluation results, such as "[Product name], an innovator of modern life, is a product that combines cutting-edge technology with user-friendly design. It not only has [Product Feature 1], allowing you to easily cope with daily challenges, but also places special emphasis on [Product Feature 2], bringing you unprecedented convenience. Whether it is daily chores at home or unknown adventures on the road, [Product name] is your trustworthy partner. Explore this epoch-making product now and let [Product name] add more fun and convenience to your life!" When regenerating new promotional copy, the system will ask the user's opinion again, such as "It has been regenerated for you. Are you dissatisfied with this copy?", in order to meet the user's evaluation until the user is satisfied with the generated copy.

[0087] In the disclosed embodiment, when the original content of the inquiry information requires the execution of a copywriting task, by guiding the target object to evaluate the generated copywriting content to be optimized, more specific feedback and suggestions can be obtained to understand which parts of the copywriting need to be improved or strengthened. Based on the evaluation results, the copywriting content can be further optimized and adjusted to make it more in line with the needs and expectations of the user and improve the quality of the copywriting.

[0088] In other embodiments, when the original content of the inquiry information requires the execution of a copywriting creation task, after the copy to be optimized is generated, the target object is guided to filter out the copy segments that need to be retained from the generated copy to be optimized and evaluate the remaining copy content, so as to generate a new copy.

[0089] For example, a product promotion copy has been generated for the original content of the user's follow-up information. When the user is making an evaluation, the user input is "I want to keep the specific description of [product features], but this copy does not really convey the value of the product. It needs to further convey the value of the product. Can you help me regenerate a copy?", so as to regenerate a new promotional copy.

[0090] In summary, when users take photos or upload pictures, the intent judgment technology is used to judge the possible user demand types based on the picture information, and then distributes them to the corresponding strategy solutions. When it belongs to the field of traditional image recognition, the traditional image recognition technology is used first to generate the recognition results of the target image; when the traditional image recognition technology has no results, the generative technology is used, and according to the different scenarios, short entity description words of less than 10 words are generated in cognitive scenarios, and long description sentences of about 20 to 30 words are generated in scenarios with unclear needs, and rhetorical / follow-up question recommendations are provided based on the long description to guide or stimulate users to ask further questions to express clear intentions.

[0091] like Figure 6 As shown in the figure, when starting a new multi-round dialogue, the system allows the user to input a target image, and performs a preliminary intent recognition on the image input by the user. When it is recognized that the user's intent can be solved using traditional image recognition technology, the traditional image recognition technology is used first. If the user does not ask further questions, the dialogue ends; if the user asks further questions, the generative technology is called.

[0092] When it is recognized that the user's intention needs to use generative technology, a multimodal large model is used to complete the image recognition task and obtain the recognition result of the target image. Then, the user can initiate the first round of follow-up questions. By constructing the first prompt information from the original content of the user's follow-up information and inputting it into the rewriting large language model, the rewriting large language model will optimize the original content of the user's follow-up information to obtain the optimized content of the user's follow-up information. For example, the problem of incoherent sentences in the original content can be optimized so that the final sentence has a natural word order, the sentences in the original content of the user's follow-up information that are declarative sentences can be changed to rhetorical questions, and the sentences in the original content of the user's follow-up information that lack subjects can be supplemented with subjects in the context, so as to obtain the optimized content of the follow-up information. After obtaining the optimized content of the follow-up information, the multimodal large model can be used first to provide rich content to meet user needs. In subsequent conversations, the question-and-answer large language model can be used for conversations. In addition, you can also classify the content based on the optimization of the follow-up information, determine which model in the model set to use to answer the user's follow-up information, and generate the conversation content of the original content of the follow-up information. During this process, the system will detect whether each round of dialogue is related to the dialogue history. If there is no connection, end this round of dialogue and start a new round of dialogue.

[0093] In the disclosed embodiment, the multimodal large model can be trained based on the following methods:

[0094] The multimodal large model includes a feature extraction model and a large language model. The training method is as follows: Figure 7 As shown, including the following:

[0095] S701, inputting a first sample image into a feature extraction model to be optimized to obtain image features of the first sample image.

[0096] The feature extraction module to be optimized is used to extract image features including global features and fine-grained features of the first sample image.

[0097] Among them, the global features of the first sample image are used to represent the overall features of the first sample image, and the fine-grained features of the first sample image are used to represent the features of the local area of ​​the first sample image, which are used as supplementary content to the global features, so that the finally generated image features are more suitable for completing the image recognition task.

[0098] S702, constructing prompt information of a large language model based on image features of the first sample image and the target image recognition task.

[0099] It can be understood that the prompt information at least includes the image features of the first sample image and the target image recognition task. The image features of the first sample image are used by the large language model to understand the image content, and the target image recognition task is used by the large language model to understand its own task requirements.

[0100] The prompt information can also include some examples for the large language model to refer to for reasoning.

[0101] In addition, the prompt information may also include a chain of ideas, which guides the large language model to complete reasoning by providing some reasoning processes.

[0102] S703: Input the prompt information into the large language model to obtain prediction information corresponding to the first sample image.

[0103] S704: Compare the predicted information with the annotation information of the first sample image corresponding to the target image recognition task to determine a first loss value.

[0104] The annotation information corresponds to the image recognition task, and different image recognition tasks have different annotation information. In this way, the same sample image can be used to train different image recognition tasks.

[0105] For example, when the first sample image includes a table and a book on the table, its annotation information may be that there is a book on the table. The disclosed embodiment can achieve refined image description. For example, not only can it be described that there is a book on the table, but also the type of the book can be described, such as that it is a Chinese book, and even the publisher of the Chinese book, the main knowledge points, etc. can be further described.

[0106] For another example, for a skin care product, the refined description in the embodiments of the present disclosure is not limited to describing a bottle of skin care product, but can further identify refined information such as the brand, main ingredients, main effects, etc. of the skin care product.

[0107] Refined image descriptions are obtained by training a large multimodal model, thereby improving the image recognition capabilities of the large multimodal model.

[0108] S705, adjusting the feature extraction model to be optimized based on the first loss value, and obtaining a multimodal large model when a convergence condition is met.

[0109] That is, the model parameters of the large language model are fixed, and only the parameters of the feature extraction model are adjusted, thereby obtaining the required multimodal large model.

[0110] The convergence condition may be that the first loss value tends to be stable and / or a preset number of iterations is met.

[0111] In the disclosed embodiment, by extracting image features, the large language model can better understand the image content on this basis and complete the reasoning task. In the entire process, guided by the target image recognition task, through feature extraction and large model reasoning, the image content is gradually digested and understood, and finally the image recognition task is completed, guiding the multimodal large model to give appropriate image recognition results. Therefore, the multimodal large model trained by this solution can improve the efficiency and accuracy of image recognition to meet the diverse image recognition needs.

[0112] In some embodiments, in order to improve the image understanding ability, the feature extraction model to be optimized includes a feature extraction module to be optimized and a multimodal fusion module to be optimized. On this basis, extracting the image features of the first sample image can be implemented as follows:

[0113] Step B1: input the first sample image into the feature extraction module to be optimized to obtain the global features and fine-grained features of the first sample image.

[0114] In some embodiments, extracting the global features and fine-grained features of the first sample image may be implemented as steps B11 and B12:

[0115] Step B11, inputting the first sample image into the first image encoder to be optimized in the feature extraction module to be optimized to obtain the global feature.

[0116] The first image encoder to be optimized is obtained based on a pre-trained model, and then fine-tuned to make it suitable for a multimodal large model. During implementation, the pre-trained model is an initial image-text comparison model, which is pre-trained by contrastive learning of image-text pairs. The model includes an initial first image encoder and an initial text encoder, and the pre-training method includes steps C1 to C3:

[0117] Step C1, input the first sample pair into the initial image-text contrast model to obtain the global features of the second sample image in the first sample pair output by the initial first image encoder in the initial image-text contrast model, and the text features of the text information in the first sample pair output by the initial text encoder in the image-text contrast model.

[0118] The initial image-text contrast model may be CLIP (Contrastive Language-Image Pre-Training).

[0119] Step C2: determining a first contrastive learning loss based on the global features of the second sample image and the text features of the text information.

[0120] Step C3, adjusting the model parameters of the initial image-text contrast model based on the first contrastive learning loss, and determining the initial first image encoder as the first image encoder to be optimized when a convergence condition is met.

[0121] The convergence condition may be that the first contrastive learning loss tends to be stable, and / or the iteration meets a preset number of times.

[0122] It is understandable that when the scale of the initial first image encoder is large, the scale of the initial first image encoder can be reduced through distillation technology to improve the image recognition efficiency of the multimodal large model.

[0123] In an embodiment of the present disclosure, a first sample pair including a sample image and text information is used to train an image-text comparison model. Based on this method, the first image encoder in the image-text comparison model can extract global features, and then fine-tuned using the method of the present disclosure to obtain a first image encoder suitable for image recognition tasks.

[0124] Step B12: input the first sample image into the second image encoder to be optimized of the feature extraction module to be optimized to obtain fine-grained features.

[0125] The second image encoder to be optimized is also obtained through pre-training. In this case, a computer vision model including two image encoders can be used to complete the pre-training task. In this pre-training task, positive sample pairs and negative sample pairs can be constructed, and the two images in the positive sample pair are similar. The two images in the negative sample pair are not similar. During implementation, the second image encoder to be optimized is obtained based on the following method:

[0126] Step D1, input the third sample image in the second sample pair into the initial second image encoder of the initial image processing model, and input the fourth sample image in the second sample pair into the initial third image encoder of the initial image processing model, to obtain the fifth image feature output by the initial second image encoder, and the sixth image feature output by the initial third image encoder.

[0127] The second sample pair is a general term for training samples, and may include a positive sample pair or a negative sample pair.

[0128] During implementation, a positive sample pair can be obtained based on the following method, including: performing a preset process on the initial sample image to obtain a remodeled sample image; wherein the preset process can be at least one of the following processes: cropping, color conversion, occlusion, rotation, etc. Thus, the remodeled sample image and the initial sample image are constructed as a positive sample pair. It can be understood that different remodeled sample images obtained by the preset process of the same initial sample image can also construct a positive sample pair. For example, two remodeled sample images obtained by rotating the initial sample image by 30 degrees and 90 degrees respectively can construct a positive sample pair.

[0129] When the second sample pair is a negative sample pair, the third sample image and the fourth sample image may be two different images, or may be images obtained by performing preset processing on two different images, which is not limited in the embodiments of the present disclosure.

[0130] Step D2, determining a second contrastive learning loss based on the fifth image feature and the sixth image feature;

[0131] Step D3, adjusting the model parameters of the initial image processing model based on the second contrastive learning loss, and determining the initial second image encoder as the second image encoder to be optimized when a convergence condition is met;

[0132] Among them, the second contrastive learning loss is used to reduce the gap between positive sample pairs and increase the gap between negative sample pairs.

[0133] Similarly, it should be noted that the size of the second image encoder can also be reduced through distillation technology.

[0134] In the disclosed embodiment, a dual-pass image encoder is adopted so that the final second image encoder is more focused on the image details, so as to train an encoder capable of extracting fine-grained features of the image.

[0135] It should be noted that the execution order of the aforementioned step B11 and step B12 is not limited.

[0136] In the disclosed embodiment, based on the pre-trained first image encoder to be optimized in the feature extraction module to be optimized and the second image encoder to be optimized in the feature extraction module to be optimized, global features and local features can be extracted respectively. The two image encoders perform their respective functions and can accurately obtain image features suitable for image recognition tasks.

[0137] After obtaining the global features and fine-grained features, in order to adapt to the reasoning requirements of the large language model and improve the reasoning ability of the large language model, in the embodiment of the present disclosure, in step B2, the global features and fine-grained features are input into the multimodal fusion module to be optimized to obtain the image features of the first sample image.

[0138] Among them, the multimodal fusion module to be optimized is used to map global features and fine-grained features into image features that can be processed by the large language model.

[0139] In the disclosed embodiment, global features and fine-grained features are mapped based on the multimodal fusion module to be optimized to obtain image features that are easier for the large model to process and understand, thereby improving the image recognition capability of the multimodal large model.

[0140] During implementation, the global features and fine-grained features are input into the multimodal fusion module to be optimized to obtain image features of the first sample image, including:

[0141] Step E1, inputting the global feature into the self-attention module to be optimized of the multimodal fusion module to be optimized to obtain the third feature.

[0142] Step E2, inputting the fine-grained features into the convolution module to be optimized of the multimodal fusion module to be optimized to obtain the fourth feature.

[0143] It should be noted that the execution order of steps E1 and E2 is not limited.

[0144] Step E3: fusing the third feature and the fourth feature to obtain the image feature of the first sample image.

[0145] In one embodiment, fusing the third feature and the fourth feature to obtain the image feature of the first sample image can be implemented as follows: splicing the third feature and the fourth feature to obtain the image feature of the first sample image, so as to retain more original feature information for inference by the large language model. The size of the third feature is smaller than the size of the global feature, and the size of the fourth feature is smaller than the size of the fine-grained feature. Thus, through the multimodal fusion module, not only can the extracted features be converted to adapt to the large language model, but also key features can be further extracted for use by the large language model.

[0146] In the disclosed embodiment, the global features are processed using the self-attention module to be optimized of the multimodal fusion module to be optimized to obtain the third feature, and the fine-grained features are processed using the convolution module to be optimized of the multimodal fusion module to be optimized to obtain the fourth feature. The corresponding channel is automatically called for processing each feature, and then fused to obtain image features that can be processed by the large model. The gradual image processing can enable the trained multimodal large model to better complete the image recognition task.

[0147] It can be understood that during the training of the multimodal large model, the parameters of the large language model are fixed, and the training is completed by adjusting the model parameters of the first image encoder to be optimized, the second image encoder to be optimized, the self-attention module and the convolution module of the feature extraction model.

[0148] After training a large multimodal model, it processes the target image as follows: Figure 8 As shown: the multimodal large model may include a feature extraction module, a multimodal fusion module and a large language model. Among them, the feature extraction module includes a first image encoder and a second image encoder; the multimodal fusion module includes a self-attention module and a convolution module. When the input is a target image, the first image encoder is used to extract the global features of the target image, and the second image encoder is used to extract the fine-grained features of the target image. The global features are input into the self-attention module of the multimodal fusion module to obtain the first features; and the fine-grained features are input into the convolution module of the multimodal fusion module to obtain the second features. The first feature and the second feature are fused to obtain the image features of the target image. Based on the image features and the expected image recognition task of the target image, prompt information is constructed and input into the large language model; the prompt information is input into the large language model to obtain the recognition result of the target image.

[0149] Among them, the expected image recognition task represents the image recognition task that the target object most expects to complete for the target image. During implementation, the probability of each candidate image recognition task can be predicted for the target image, and the image recognition task with the highest probability can be selected as the expected image recognition task. In other embodiments, an intention recognition model for the image can also be used to analyze the target object's image recognition needs for the target image to obtain the expected image recognition task.

[0150] The target image is processed based on the intention recognition technology to obtain the expected image recognition task of the target object for the target image. The intention recognition technology is implemented using a neural network model with a relatively small scale relative to the large model. When the expected image recognition task is determined, the model type corresponding to the expected image recognition task can be further determined. In some embodiments, it can be implemented as follows: searching the mapping relationship table between the expected image recognition task and the adaptation model to obtain the model type corresponding to the expected image recognition task.

[0151] In the disclosed embodiment, based on the mapping relationship table between the expected image recognition task and the adaptation model, when the expected image recognition task is obtained, the model adapted to the task can be quickly obtained. This method is simple to operate and easy to implement.

[0152] In some embodiments, specifically, the mapping relationship table between the expected image recognition task and the adaptation model may include:

[0153] (1) When the expected image recognition task is to recognize the image subject, the corresponding model type is a cognitive model;

[0154] (2) When the desired image recognition task is to search for images, the corresponding model type is the image search model;

[0155] (3) When the expected image recognition task is to recognize the text in the image, the corresponding model type is the character recognition problem-solving model; that is, the character recognition problem-solving model is used to complete the character recognition and even further complete the problem-solving operation;

[0156] (4) When the expected image recognition task is to describe complex image content, the corresponding model type is a large language model (that is, a multimodal large model is used to complete the image recognition task). For example, in the case of multiple subjects, it is difficult to determine the image recognition needs of the target object. A multimodal large model can be used to further clarify the needs of the target object and clarify the final expected image recognition task.

[0157] Based on the same technical concept, the embodiment of the present disclosure also provides a multi-round dialogue device, such as Fig. 9 As shown, including:

[0158] The first determination module 901 is used to determine the original content of the query information of the target image;

[0159] A second determination module 902 is used to determine the question context based on the original content of the question information;

[0160] A rewriting module 903, configured to rewrite the original content of the follow-up information based on the context of the follow-up information to obtain optimized content of the follow-up information;

[0161] The generating module 904 is used to generate the conversation content of the original content of the follow-up information based on the optimized content of the follow-up information.

[0162] In some embodiments, the second determining module is used to:

[0163] Get a specified amount of conversation content from the conversation history before the original content of the follow-up message;

[0164] The obtained conversation content and original content of the follow-up information are sorted in chronological order according to the conversation time to obtain the follow-up context.

[0165] In some embodiments, the rewrite module is used to:

[0166] Constructing the first prompt information based on the question context;

[0167] The first prompt information is input into the rewritten large language model to obtain optimized content of the follow-up information output by the rewritten large language model.

[0168] In some embodiments, the generating module is used to:

[0169] In the case where the optimized content of the follow-up information is the first round of follow-up questions, constructing the second prompt information based on the target image and the optimized content of the follow-up information;

[0170] The second prompt information is input into the multimodal large model to obtain the conversation content of the original content of the follow-up information output by the multimodal large model.

[0171] In some embodiments, the generating module is used to:

[0172] In the case where the optimized content of the follow-up question information is a follow-up question after the first round, constructing third prompt information based on the optimized content of the follow-up question information;

[0173] The third prompt information is input into the question-answering large language model to obtain the conversation content of the original content of the follow-up question information output by the question-answering large language model.

[0174] In some embodiments, the generating module is used to:

[0175] Optimize content based on follow-up information and determine the intention of the follow-up;

[0176] In the model collection, select the target model that matches the questioning intention;

[0177] The target model is used to process the optimized content of the follow-up information to obtain the conversation content of the original content of the follow-up information.

[0178] In some embodiments, the system further includes a first copywriting generation module for:

[0179] When the original content of the information is asked to perform a copywriting task, the target object is guided to select the required copywriting fragments from multiple rounds of historical conversations;

[0180] Generate new copy based on the filtered copy fragments and target images.

[0181] In some embodiments, a second copywriting generation module is further included, which is used to:

[0182] In the case of asking for the original content of the information and requiring the execution of a copywriting creation task, the target object is guided to evaluate the generated copywriting content to be optimized and obtain the evaluation results;

[0183] Generate new copy based on the content of the copy to be optimized and the evaluation results.

[0184] For the description of specific functions and examples of each module and submodule of the device in the embodiment of the present disclosure, reference can be made to the relevant description of the corresponding steps in the above method embodiment, which will not be repeated here.

[0185] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0186] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0187] Fig.10 A schematic block diagram of an example electronic device 1000 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0188] like Fig.10 As shown, the device 1000 includes a computing unit 1001, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1002 or a computer program loaded from a storage unit 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the device 1000 can also be stored. The computing unit 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0189] A number of components in the device 1000 are connected to the I / O interface 1005, including: an input unit 1006, such as a keyboard, a mouse, etc.; an output unit 1007, such as various types of displays, speakers, etc.; a storage unit 1008, such as a disk, an optical disk, etc.; and a communication unit 1009, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1009 allows the device 1000 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0190] The computing unit 1001 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1001 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1001 performs the various methods and processes described above, such as the multi-round dialogue method. For example, in some embodiments, the multi-round dialogue method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 1008. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1000 via the ROM 1002 and / or the communication unit 1009. When the computer program is loaded into the RAM 1003 and executed by the computing unit 1001, one or more steps of the multi-round dialogue method described above may be performed. Alternatively, in other embodiments, the computing unit 1001 may be configured to execute the multi-round dialogue method in any other appropriate manner (eg, by means of firmware).

[0191] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0192] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0193] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0194] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0195] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0196] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0197] Based on the aforementioned electronic device, the present disclosure also provides a vehicle, which may include electronic devices, and may also include communication components, a display screen for realizing a human-machine interface, and an information collection device for collecting surrounding environment information, etc. The communication components, the display screen, the information collection device and the electronic device are communicatively connected.

[0198] According to the embodiments of the present disclosure, the electronic device may be integrated with the communication component, the display screen and the information collection device, or may be separately provided with the communication component, the display screen and the information collection device.

[0199] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0200] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the principles of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A multi-round dialogue method, include: Determine the original content of the query information of the target image; Determining a question context based on the original content of the question information; Rewriting the original content of the follow-up information based on the follow-up context to obtain optimized content of the follow-up information; The conversation content of the original content of the follow-up information is generated based on the optimized content of the follow-up information.

2. The method according to claim 1, in, The determining of the question context based on the original content of the question information includes: Obtaining a specified amount of conversation content from the conversation history before the original content of the follow-up information; The acquired conversation content and the original content of the follow-up question information are sorted in chronological order according to the conversation time to obtain the follow-up question context.

3. The method according to claim 1 or 2, in, The rewriting of the original content of the follow-up information based on the follow-up context to obtain optimized content of the follow-up information includes: Constructing first prompt information based on the question context; The first prompt information is input into the rewritten large language model to obtain the optimized content of the follow-up information output by the rewritten large language model.

4. The method according to any one of claims 1 to 3, in, The generating the conversation content of the original content of the follow-up information based on the optimized content of the follow-up information includes: In the case where the optimized content of the follow-up question information is a first-round follow-up question, constructing second prompt information based on the target image and the optimized content of the follow-up question information; The second prompt information is input into the multimodal large model to obtain the conversation content of the original content of the follow-up information output by the multimodal large model.

5. The method according to claim 4, in, The generating the conversation content of the original content of the follow-up information based on the optimized content of the follow-up information includes: In the case where the optimized content of the follow-up question information is a follow-up question after the first round, constructing third prompt information based on the optimized content of the follow-up question information; The third prompt information is input into the question-answering large language model to obtain the conversation content of the original content of the follow-up question information output by the question-answering large language model.

6. The method according to any one of claims 1 to 3, in, The generating the conversation content of the original content of the follow-up information based on the optimized content of the follow-up information includes: Optimizing content based on the follow-up information to determine the intention of the follow-up question; In the model set, a target model matching the questioning intention is selected; The target model is used to process the optimized content of the follow-up question information to obtain the conversation content of the original content of the follow-up question information.

7. The method according to claim 1, further comprising: include: In the case where the original content of the follow-up information requires the execution of a copywriting task, guiding the target object to select the required copywriting fragments from multiple rounds of historical conversations; A new copy is generated based on the filtered copy fragments and the target image.

8. The method according to claim 1, further comprising: include: In the case where the original content of the inquiry information requires the execution of a copywriting creation task, guiding the target object to evaluate the generated copywriting content to be optimized to obtain an evaluation result; Generate a new copy based on the copy content to be optimized and the evaluation result.

9. A multi-round dialogue device, include: A first determination module is used to determine the original content of the query information of the target image; A second determination module is used to determine the question context based on the original content of the question information; A rewriting module, used for rewriting the original content of the follow-up information based on the follow-up context to obtain optimized content of the follow-up information; A generating module is used to generate the conversation content of the original content of the follow-up information based on the optimized content of the follow-up information.

10. The device according to claim 9, in, The second determining module is used to: Obtaining a specified amount of conversation content from the conversation history before the original content of the follow-up information; The acquired conversation content and the original content of the follow-up question information are sorted in chronological order according to the conversation time to obtain the follow-up question context.

11. The device according to claim 9 or 10, in, The rewriting module is used for: Constructing first prompt information based on the question context; The first prompt information is input into the rewritten large language model to obtain the optimized content of the follow-up information output by the rewritten large language model.

12. The device according to any one of claims 9 to 11, in, The generating module is used for: In the case where the optimized content of the follow-up question information is a first-round follow-up question, constructing second prompt information based on the target image and the optimized content of the follow-up question information; The second prompt information is input into the multimodal large model to obtain the conversation content of the original content of the follow-up information output by the multimodal large model.

13. The device according to claim 12, in, The generating module is further used for: In the case where the optimized content of the follow-up question information is a follow-up question after the first round, constructing third prompt information based on the optimized content of the follow-up question information; The third prompt information is input into the question-answering large language model to obtain the conversation content of the original content of the follow-up question information output by the question-answering large language model.

14. The device according to any one of claims 9 to 11, in, The generating module is used for: Optimizing content based on the follow-up information to determine the intention of the follow-up question; In the model set, a target model matching the questioning intention is selected; The target model is used to process the optimized content of the follow-up question information to obtain the conversation content of the original content of the follow-up question information.

15. The device according to claim 9, further comprising a first copywriting generation module, configured to: In the case where the original content of the follow-up information requires the execution of a copywriting task, guiding the target object to select the required copywriting fragments from multiple rounds of historical conversations; A new copy is generated based on the filtered copy fragments and the target image.

16. The device according to claim 9, further comprising a second copywriting generation module, configured to: In the case where the original content of the inquiry information requires the execution of a copywriting creation task, guiding the target object to evaluate the generated copywriting content to be optimized to obtain an evaluation result; Generate a new copy based on the copy content to be optimized and the evaluation result.

17. An electronic device, include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.

18. A non-transitory computer-readable storage medium storing computer instructions, in, The computer instructions are used to cause the computer to execute the method according to any one of claims 1-8.

19. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Multi-round question and answer method, device and equipment

    CN114547274A

  • Image processing method and device based on artificial intelligence, equipment and storage medium

    CN116975336A

  • Information processing method and device based on large language model, equipment and storage medium

    CN117521675A

  • Electric muscle stimulation belt

    KR1020220058390A

Cited By

  • Intelligent question answering method, device and equipment based on large model, intelligent agent and medium

    CN119740668A

  • Intelligent question and answer method, device and equipment based on large model, intelligent agent and medium

    CN119740668B

  • Information processing method and system, electronic equipment, storage medium and program product

    CN120996213A