Information processing method and device based on large model and electronic equipment
By generating context in the form of text in the large model, the problem of insufficient understanding of multi-modal response content by the large model is solved, and the accuracy of conversational responses is improved.
Patent Information
- Application Number
- CN202410805120.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-15
AI Technical Summary
When large models process multi-modal response content, it is difficult to understand non-text data such as pictures and flow charts, resulting in poor conversational understanding and low response accuracy.
While generating multi-modal response content, context in the form of text for use by the large model is separately generated, and the multi-modal response content is converted into text content by calling multi-modal tools so that it can be understood by the large model.
The conversation understanding ability and response accuracy of the large model are improved, allowing the large model to process user request content more accurately.
Smart Images

Figure CN118779474A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of artificial intelligence technology, in particular to large model technology and human-computer interaction technology, and specifically to an information processing method, device, electronic device, storage medium and computer program product based on large models. Background Art
[0002] Large Language Model (LLM), also known as large model, refers to a deep learning model trained with a large amount of text data, which can generate natural language text or understand the meaning of language text. Large language models can handle a variety of natural language tasks, such as text classification, question-answering, and dialogue, and are an important path to artificial intelligence. Currently, large language models are becoming more and more complex, demonstrating human-like capabilities, and are assisting humans in completing various tasks in daily life. Summary of the invention
[0003] The present disclosure provides a large model-based information processing method, device, electronic device, storage medium and computer program product.
[0004] According to one aspect of the present disclosure, there is provided an information processing method based on a large model, comprising:
[0005] In case of receiving the request content input by the user, configuring the context of the large model according to the request content, the context including the request content;
[0006] By inputting the request content into the big model, calling the target multimodal tool, and processing the request content according to the context, a multimodal response content and a text content are obtained, wherein the text content is generated by calling the target multimodal tool and according to the multimodal response content and the request processing result;
[0007] The context is updated according to the text content, and the updated context includes: the request content and the text content.
[0008] According to another aspect of the present disclosure, there is provided an information processing device based on a large model, comprising:
[0009] A configuration module, configured to configure the context of the large model according to the request content when receiving the request content input by the user, wherein the context includes the request content;
[0010] A processing module, configured to input the request content into a large model, call a target multimodal tool, and process the request content according to the context to obtain multimodal response content and text content, wherein the text content is generated by calling the target multimodal tool and according to the multimodal response content and the request processing result;
[0011] An updating module is used to update the context according to the text content, wherein the updated context includes: the request content and the text content.
[0012] According to another aspect of the present disclosure, there is provided an electronic device, comprising:
[0013] at least one processor; and
[0014] a memory communicatively connected to the at least one processor; wherein,
[0015] 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 so that the at least one processor can execute the large model-based information processing method described in any embodiment of the present disclosure.
[0016] 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 a computer to execute the large model-based information processing method described in any embodiment of the present disclosure.
[0017] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the large model-based information processing method of any embodiment of the present disclosure is implemented.
[0018] According to the technology disclosed in the present invention, while generating multimodal response content, a textual context is separately generated for use by the big model. Compared with directly using the multimodal response content as the context for use by the big model, the textual context provided by the present invention for use by the big model is easier for the big model to understand, can improve the big model's conversation comprehension ability, and enhances the accuracy of conversational responses.
[0019] 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
[0020] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0021] Figure 1ais a flowchart of an information processing method based on a large model according to an embodiment of the present disclosure;
[0022] Figure 1b is a schematic diagram of data flow for information processing based on a large model according to an embodiment of the present disclosure;
[0023] Figure 2a is a flowchart of another information processing method based on a large model according to an embodiment of the present disclosure;
[0024] Figure 2b is a schematic diagram of the result of calling a target multimodal tool to generate multimodal response content and text content according to an embodiment of the present disclosure;
[0025] Figure 3 is a flowchart of another information processing method based on a large model according to an embodiment of the present disclosure
[0026] Figure 4 is a structural schematic diagram of an information processing device based on a large model according to an embodiment of the present disclosure;
[0027] Figure 5 It is a block diagram of an electronic device used to implement the information processing method based on a large model according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] 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 and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0029] In the disclosed solution, when the conversation request content input by the user is processed by the large model, a multimodal tool connected to the large model is usually called, wherein the multimodal tool refers to a tool that can output multimodal response content. Optionally, the multimodal tool can be connected to the large model in the form of a plug-in. In the disclosed solution, the multimodal response content refers to data including at least two modal contents. Exemplarily, the multimodal response content can be a combination of text and pictures, or a combination of text and work cards, or other combinations, which are not listed here. Since the multimodal response content is recorded in a multi-level manner, and the multi-level response content is not convenient for the large model to read and understand, and it is difficult for the large model to understand the pictures, flow charts, work cards, tables and other contents in the multimodal response content, if the multimodal response content is directly used as the context used by the large model, the large model will be unable to accurately understand the pictures, flow charts and other contents in the multimodal response content, resulting in the inability to accurately understand and process the request content input by the user according to the context, and ultimately the large model has a low response accuracy due to poor understanding ability, and affects the conversation effect between the user and the large model. In response to this technical problem, the disclosed solution proposes an information processing method based on a large model. The core idea is to generate a textual context that is easy for the large model to understand based on the output of multi-modal display content. The specific method flow can be seen in the following embodiment.
[0030] Figure 1a is a schematic diagram of an information processing method based on a large model according to an embodiment of the present disclosure, and this embodiment can be applied to process context in a large model conversation scenario. The method can be executed by an information processing device based on a large model, which is implemented in software and / or hardware and configured in an electronic device, which can be a client device or a server device, and the client device can be, for example, a mobile phone, a tablet computer, a vehicle terminal, and a desktop computer.
[0031] like Figure 1a As shown, the method specifically includes the following:
[0032] S101. When receiving a request content input by a user, configure a context of a large model according to the request content, where the context includes the request content.
[0033] In the embodiments of the present disclosure, the big model refers to a big language model for processing conversation tasks, that is, the big model of the present disclosure can be used for human-computer interaction with users. When a user is conversing with the big model, the request content input by the user is obtained; wherein, the request content input by the user can be the content containing the user's intention provided by the user in order to call the big model to implement the required function. The request content input by the user can be text content, audio content, or video content, which is not specifically limited here.
[0034] In the disclosed embodiment, considering that after the user has a conversation with the big model, there will usually be multiple rounds of conversations. In order to improve the big model's ability to more accurately understand the user's request content in subsequent conversations, the context of the big model can be configured according to the request content input by the user, and the context includes the request content. Exemplarily, if the request content is text, the request content can be directly saved as the context used by the big model in the next round of conversation. If the request content is voice, the voice can be converted into corresponding text, and the context used by the big model can be configured according to the converted text.
[0035] S102. By inputting the request content into the big model, calling the target multimodal tool, and processing the request content according to the context, a multimodal response content and a text content are obtained. The text content is generated by calling the target multimodal tool according to the multimodal response content and the request processing result.
[0036] In the disclosed embodiment, the request content input by the user can be sent to the big model, and the big model can be used to identify the intent of the request content input by the user, and the target multimodal tool required to realize the user's intent can be determined from the tool library according to the user's intent. Optionally, the user's intent is matched with the function of each multimodal tool in the tool library, and the target multimodal tool is determined according to the matching result. Furthermore, since certain permissions are required to use the target multimodal tool in the tool library, after matching the target multimodal tool, it can be checked whether the user has the permission to use the target multimodal tool. If so, the target multimodal tool is called, so as to understand and process the request content input by the user based on the called target multimodal tool according to the existing context, and obtain multimodal response content and text content.
[0037] In the disclosed embodiment, the multimodal response content may be at least two of text, picture, table, flowchart, and work card; that is, the multimodal response content may be a combination of different modal contents, for example, the multimodal response content may be a combination of text + picture, or a combination of text + work card. It is understandable that by constructing multimodal response content displayed to the user through a combination of multiple modal contents, the user's conversation experience can be improved.
[0038] In the disclosed embodiment, considering that the large model cannot accurately understand the data such as pictures, flowcharts, work cards, etc. in the multimodal response content, the disclosed solution does not directly use the multimodal response content as the context used by the large model, but generates text content according to the multimodal response content and the request processing result by calling the target multimodal tool, and then uses the generated text content as the context used by the large model; wherein the request processing result is used to characterize whether the target multimodal tool successfully processes the user request and feedbacks the content of the corresponding result, and the request processing result can be in text form. It can be understood that while generating the multimodal response content, generating a textual context that can be understood by the large model separately, rather than directly using the multimodal response content as the context used by the large model, can improve the understanding ability of the large model, so that the subsequent conversation of the large model can accurately understand and process the user request content based on the textual context.
[0039] Optionally, the process of calling the target multimodal tool and generating text content according to the multimodal response content and the request processing result includes: when the multimodal response content includes a picture, obtaining the semantic recognition result of the picture, and generating the text content according to the semantic recognition result and the request processing result; when the multimodal response content includes a link address, generating the text content according to the content description corresponding to the link address and the request processing result. The above steps can make the generated text content more relevant to the multimodal response content, and the subsequent large model can understand the previous response result based on the text content.
[0040] In the disclosed embodiment, the target multimodal tool includes any of the following: article interpretation, conference room reservation, schedule query, weather query, hotel reservation. It is understandable that the tools listed here are just an example, and other tools may also be included, which are not listed here one by one. The target multimodal tool is connected to the big model, which can enrich the functions of the big model so that the big model can better meet user needs.
[0041] S103: Update the context according to the text content, where the updated context includes: the request content and the text content.
[0042] In the embodiment of the present disclosure, after the text content is generated in step S102, the context can be updated according to the text content, that is, the generated text content is saved in the existing context as the context used by the big model, so that the updated context includes the request content and the text content. In this way, in the next round of dialogue, the big model can process the user's new request according to the context including the request content and the text content.
[0043] According to the technology disclosed in the present invention, while generating multimodal response content, a context in text form that is easy to understand is generated separately for the big model. Compared with directly using the multimodal response content as the context for the big model, the text form context provided to the big model by the present invention is easier to understand, which can improve the big model's conversation comprehension ability and thereby improve the accuracy of conversation responses.
[0044] Further, in order to facilitate understanding of the core points of the technical solution disclosed in the present invention, please refer to Figure 1b , which shows a data flow diagram of information processing based on a large model. After the user inputs the request content (such as the user's question content), the user request content is first stored, and then the user request content is used as the model context content used by the large model. After receiving the user request content, the large model (i.e., the LLM model) can perform intent analysis on the user request content, query the data required to solve the user's needs, etc., and determine the target multimodal tool required to solve the user's needs; and then call the target multimodal tool, according to the determined input parameters (input in the figure) to generate the multimodal response content to be displayed to the user (output for show in the figure), and store the multimodal response as a historical session (i.e., the tool answer style storage in the figure). In addition, the target multimodal tool can also be called, and the text content generated according to the multimodal response content and the request processing result is used as the context used by the large model (output for LLM in the figure). In this way, while generating the multimodal response content, it is achieved that an easy-to-understand textual context is generated for the large model separately, rather than directly using the multimodal response content as the context used by the large model.
[0045] Furthermore, the context may also include the multi-round conversation status when the request content is processed based on the large model; wherein the multi-round conversation status includes: user clarification is required, and the conversation is ended. This can enrich the context used by the large model. The subsequent large model can more accurately determine the true intention of the user's questioning in this round based on the context content and conversation status of the user's previous round of conversation, plus the user's question in this round.
[0046] Figure 2a is a flowchart of another information processing method based on a large model according to an embodiment of the present disclosure. This embodiment is to describe in detail the step of "inputting the request content into the large model, calling the target multimodal tool, and processing the request content according to the context to obtain the multimodal response content". Figure 2a As shown, the context management method of the large model specifically includes the following steps:
[0047] S201. When receiving a request content input by a user, configure a context of a large model according to the request content, where the context includes the request content.
[0048] S202: Determine the target multimodal tool to be called by inputting the request content into the large model.
[0049] In the disclosed embodiment, the big model can be used to understand the intent of the request content input by the user, and then determine the target multimodal tool that can achieve the corresponding function according to the user's intent.
[0050] S203: Process the request content according to the context through the large model to generate input parameters required by the target multimodal tool.
[0051] In the embodiment of the present disclosure, the input parameters required by the target multimodal tool can be understood as the necessary data required to call the target multimodal tool. The data can be generated by the large model after understanding the request content input by the user according to the context.
[0052] S204: Generate multimodal response content according to the input parameters by calling the target multimodal tool.
[0053] Optionally, the target multimodal tool generates corresponding multimodal response content according to the input parameters.
[0054] The multimodal response content includes at least two levels, and different levels include different content types and content entities.
[0055] S205: Invoking the target multimodal tool and generating text content according to the multimodal response content and the request processing result.
[0056] In an optional implementation, the multimodal response content and the text content may be output in a preset output style, for example, see Figure 2b , which shows a schematic diagram of the result of calling the target multimodal tool to generate multimodal response content and text content. Among them, the first area records the multimodal response content, and the second area records the text content. Figure 2bIn the example, the multimodal response content includes two levels. The first level includes: the content type is "text", the content entity contents is "Services for personal tax calculation have been found for you", "Please follow the prompts. If you encounter any problems, please feel free to contact me"; the second level includes: the content type is "workflow" (i.e. work card), and the content entity contents is the link address URL: "https / / xxxxx". That is, the multimodal response content consists of two modes: text and the link address of the work card. In the second area, "code: 200" and "msg: success" are the request processing results, which respectively indicate that the multimodal response content has been generated according to the request content and the multimodal response content has been fed back to the user for display. "Date: Successfully generated work card, providing users with personal tax query" represents the summary of the multimodal display content, that is, a description of the content of the page corresponding to the link address.
[0057] It is understandable that all tools in the tool library output the output results corresponding to the user's request content in accordance with the above output style, that is, each tool in the tool library has the same result output style. In this way, when a new tool is connected to the big model later, as long as the output style of the newly connected tool is ensured to be the preset output style, the tool can be quickly connected. In this way, the big model can seamlessly integrate and use a variety of different types of tools to provide users with rich and diverse multimodal tools.
[0058] S206: Update the context according to the text content, where the updated context includes: the request content and the text content.
[0059] In the disclosed embodiment, while generating multimodal response content, a context in text form that is easy for the big model to understand is generated, so that the big model can understand the user request more accurately, thereby improving the accuracy of the conversation response.
[0060] Figure 3 FIG. 1 is a flow chart of another information processing method based on a large model according to an embodiment of the present disclosure. Figure 3 As shown, the information processing method based on the large model specifically includes the following steps:
[0061] S301. When receiving a request content input by a user, configure a context of a large model according to the request content, where the context includes the request content.
[0062] In the embodiment of the present disclosure, the context includes multiple context information blocks, each of which is assigned a context identifier, and different context identifiers are generated in response to the opening of different sessions. It is understandable that each time a new session is opened, a context identifier is generated, and the context identifier can be used to mark the context generated during the session.
[0063] S302: by inputting the request content into the big model, calling the target multimodal tool, and reading the context according to the context identifier corresponding to the current session, and inputting the read context into the big model to process the request content, thereby obtaining the multimodal response content and the text content.
[0064] In the disclosed embodiment, since the existing context includes multiple context information blocks with context identifiers, when reading the context required by the large model, the corresponding context information block is first determined according to the context identifier corresponding to the current session, and then the required context is read from the context information block. Optionally, the reading can be based on the principle of the closest time, for example, the reading can be done in a sliding window manner, and the duration of the sliding window can be preset according to actual needs.
[0065] S303: Update the context according to the text content, where the updated context includes: the request content and the text content.
[0066] In the disclosed embodiment, the most recent and valid context can be selected by the principle of time proximity; and the context identifier can avoid selecting the context of invalid conversations for the large model, which leads to a lower model understanding and affects the accuracy of the response.
[0067] Figure 4 is a schematic diagram of the structure of a large model-based information processing device according to an embodiment of the present disclosure. This embodiment can be applied to process context in a large model conversation scenario. The device can implement the large model-based information processing method described in any embodiment of the present disclosure. Figure 4 As shown, the device 400 specifically includes:
[0068] Configuration module 401, configured to configure the context of the large model according to the request content when receiving the request content input by the user, wherein the context includes the request content;
[0069] The processing module 402 is used to input the request content into the large model, call the target multimodal tool, and process the request content according to the context to obtain multimodal response content and text content, wherein the text content is generated by calling the target multimodal tool and according to the multimodal response content and the request processing result;
[0070] The updating module 403 is used to update the context according to the text content, and the updated context includes: the request content and the text content.
[0071] In an optional implementation, the process of invoking the target multimodal tool and generating text content according to the multimodal response content and the request processing result includes:
[0072] In the case where the multimodal response content includes a picture, obtaining a semantic recognition result of the picture, and generating the text content according to the semantic recognition result and the request processing result;
[0073] In the case where the multimodal response content includes a link address, the text content is generated according to the content description corresponding to the link address and the request processing result.
[0074] In an optional implementation, the processing module 402 is further configured to:
[0075] Determining a target multimodal tool to be called by inputting the request content into a large model;
[0076] Processing the request content according to the context by the large model to generate input parameters required by the target multimodal tool;
[0077] Generate multimodal response content according to the input parameters by calling the target multimodal tool;
[0078] The multimodal response content includes at least two levels, and different levels include different content types and content entities.
[0079] In an optional implementation, the context further includes:
[0080] The multi-round conversation status when the request content is processed based on the large model; wherein the multi-round conversation status includes: user clarification is required and the conversation ends.
[0081] In an optional implementation, the context includes a plurality of context information blocks, each context information block is assigned a context identifier, and different context identifiers are generated in response to the opening of different sessions;
[0082] The processing module 402 is further configured to:
[0083] The context is read according to the context identifier corresponding to the current session, and the request content is processed by inputting the read context into the big model.
[0084] In an optional implementation, the target multimodal tool includes any one of the following: article interpretation, conference room reservation, schedule query, weather query, hotel reservation.
[0085] The above-mentioned product can execute the method provided by any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0086] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure 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.
[0087] 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.
[0088] Figure 5 A schematic block diagram of an example electronic device 500 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 processing, 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.
[0089] like Figure 5 As shown, the device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0090] A number of components in the device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0091] The computing unit 501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 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 that execute machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 501 performs the various methods and processes described above, such as information processing methods based on large models. For example, in some embodiments, the information processing method based on the large model may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 500 via ROM 502 and / or communication unit 509. When the computer program is loaded into RAM 503 and executed by the computing unit 501, one or more steps of the information processing method based on the large model described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform information processing methods based on large models in any other appropriate manner (e.g., by means of firmware).
[0092] 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), complex 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.
[0093] 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.
[0094] 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.
[0095] 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).
[0096] The systems and techniques described herein may be implemented in a computing system that includes backend 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 frontend 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 backend components, middleware components, or frontend 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), a blockchain network, and the Internet.
[0097] 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 between the client and the server is generated by computer programs that are executed on the corresponding computers and have a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services. The server may also be a server of a distributed system, or a server combined with a blockchain.
[0098] Artificial intelligence is a discipline that studies how to use computers to simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.). It includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, machine learning / deep learning technology, big data processing technology, knowledge graph technology, and other major directions.
[0099] Cloud computing refers to a technology system that uses network access to elastically scalable shared physical or virtual resource pools. Resources can include servers, operating systems, networks, software, applications, and storage devices, and can be deployed and managed on demand and in a self-service manner. Cloud computing technology can provide efficient and powerful data processing capabilities for technical applications such as artificial intelligence and blockchain, as well as model training.
[0100] 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 provided by this disclosure can be achieved, and this document does not limit this.
[0101] 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 spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. An information processing method based on a large model, include: In case of receiving the request content input by the user, configuring the context of the large model according to the request content, the context including the request content; By inputting the request content into the big model, calling the target multimodal tool, and processing the request content according to the context, a multimodal response content and a text content are obtained, wherein the text content is generated by calling the target multimodal tool and according to the multimodal response content and the request processing result; The context is updated according to the text content, and the updated context includes: the request content and the text content.
2. The method according to claim 1, in, The process of calling the target multimodal tool and generating text content according to the multimodal response content and the request processing result includes: In the case where the multimodal response content includes a picture, obtaining a semantic recognition result of the picture, and generating the text content according to the semantic recognition result and the request processing result; In the case where the multimodal response content includes a link address, the text content is generated according to the content description corresponding to the link address and the request processing result.
3. The method according to claim 1, in, The step of inputting the request content into the large model, calling the target multimodal tool, and processing the request content according to the context to obtain the multimodal response content includes: Determining a target multimodal tool to be called by inputting the request content into a large model; Processing the request content according to the context by the large model to generate input parameters required by the target multimodal tool; Generate multimodal response content according to the input parameters by calling the target multimodal tool; The multimodal response content includes at least two levels, and different levels include different content types and content entities.
4. The method according to claim 1, wherein the context further comprises: include: The multi-round conversation status when the request content is processed based on the large model; wherein the multi-round conversation status includes: user clarification is required and the conversation ends.
5. The method according to claim 4, in, The context includes a plurality of context information blocks, each of which is assigned a context identifier, and different context identifiers are generated in response to the opening of different sessions; Processing the request content according to the context includes: The context is read according to the context identifier corresponding to the current session, and the request content is processed by inputting the read context into the big model.
6. The method according to claim 1, in, The target multimodal tool includes any one of the following: article interpretation, conference room reservation, schedule query, weather query, and hotel reservation.
7. An information processing device based on a large model, include: A configuration module, configured to configure the context of the large model according to the request content when receiving the request content input by the user, wherein the context includes the request content; A processing module, configured to input the request content into a large model, call a target multimodal tool, and process the request content according to the context to obtain multimodal response content and text content, wherein the text content is generated by calling the target multimodal tool and according to the multimodal response content and the request processing result; An updating module is used to update the context according to the text content, wherein the updated context includes: the request content and the text content.
8. The device according to claim 7, in, The process of calling the target multimodal tool and generating text content according to the multimodal response content and the request processing result includes: In the case where the multimodal response content includes a picture, obtaining a semantic recognition result of the picture, and generating the text content according to the semantic recognition result and the request processing result; In the case where the multimodal response content includes a link address, the text content is generated according to the content description corresponding to the link address and the request processing result.
9. The device according to claim 7, in, The processing module is also used for: Determining a target multimodal tool to be called by inputting the request content into a large model; Processing the request content according to the context by the large model to generate input parameters required by the target multimodal tool; Generate multimodal response content according to the input parameters by calling the target multimodal tool; The multimodal response content includes at least two levels, and different levels include different content types and content entities.
10. The apparatus according to claim 7, wherein the context further comprises: include: The multi-round conversation status when the request content is processed based on the large model; wherein the multi-round conversation status includes: user clarification is required and the conversation ends.
11. The device according to claim 10, in, The context includes a plurality of context information blocks, each of which is assigned a context identifier, and different context identifiers are generated in response to the opening of different sessions; The processing module is also used for: The context is read according to the context identifier corresponding to the current session, and the request content is processed by inputting the read context into the big model.
12. The device according to claim 7, in, The target multimodal tool includes any one of the following: article interpretation, conference room reservation, schedule query, weather query, and hotel reservation.
13. 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 execute the large model-based information processing method according to any one of claims 1 to 6.
14. A non-transitory computer-readable storage medium storing computer instructions, in, The computer instructions are used to enable a computer to execute the large model-based information processing method according to any one of claims 1-6.
15. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the large model-based information processing method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Conversation method and device, equipment and storage medium
CN116150339A
Multi-modal task processing and dialogue task processing method, system and equipment
CN117033585A
Information interaction method and device, terminal equipment and vehicle
CN117093683A
Multi-modal government affair question and answer method based on large model
CN117171314A
Multi-modal model generation method, multi-modal processing method and equipment
CN117216202A
