Display device and task processing method based on large language model

By implementing a task processing method based on a large language model in the display device, the problem that the large language model cannot directly call application tools is solved, simplifying user operations and improving user experience.

CN118586501APending Publication Date: 2024-09-03VIDAA (NETHERLANDS) INT HLDG BV
View PDF 0 Cites 6 Cited by

Patent Information

Application Number
CN202410782593.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

The large language model cannot directly call the application tools of the display device, resulting in complicated and cumbersome user operations and affecting the user experience.

Method used

By implementing a task processing method based on a large language model in the display device, the question and answer instructions input by the user are obtained, the large language model is used to identify the semantics of the instructions, and the corresponding application tools are called based on the semantic recognition results to generate replies or perform tool operations.

Benefits of technology

The large language model is implemented to directly call the application tools of the display device, simplifying the user operation process and improving user experience and interaction efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586501A
    Figure CN118586501A
Patent Text Reader

Abstract

Some embodiments of the invention provide a display device and a task processing method based on a large language model, the method can obtain a question and answer instruction input by a user, input the question and answer instruction into the large language model, and utilize the large language model to identify semantics of the question and answer instruction, the large language model is a deep learning model trained based on a knowledge data set and a tool use data set; querying an application tool needing to be called by the question and answer instruction according to the semantic recognition result, and sending a calling request to the application tool, so that the display equipment runs the application tool; and obtaining a tool operation result returned by the application tool, and inputting the tool operation result into the large language model to generate a reply language based on the question and answer instruction. The method can utilize a large language model to call an application tool of display equipment based on a question and answer instruction, and generate a reply language according to a tool operation result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of display devices, and in particular to a display device and a task processing method based on a large language model. Background Art

[0002] The big language model is a deep learning model trained on text data. It can generate natural language text, understand the meaning of text, and process natural language tasks. It can be applied to technical fields such as voice interaction control of display devices and image recognition. The big language model can send corresponding replies to users based on their questions. For example, if a user needs the big language model to recommend movie titles similar to movie A, the big language model first extracts feature information such as the movie title, genre, actors, directors, and ratings of movie A, and then applies the recommendation algorithm to match movie titles with high similarity to movie A from the knowledge base, and based on this, generates a reply containing the recommended movie title.

[0003] Since the training data of the large language model is text data, rather than command data for controlling the display device, the large language model does not have the ability to control the device. When a user needs to watch a movie recommended by the large language model, he needs to use the remote control to open the video application control of the display device and search for the movie name again in the video application control, which makes the operation process complicated and cumbersome, affecting the user experience. Summary of the invention

[0004] Some embodiments of the present application provide a display device and a task processing method based on a large language model to solve the problem that the large language model cannot directly call an application tool in the display device.

[0005] In a first aspect, some embodiments of the present application provide a display device, comprising: a display and a controller. The display is configured to display a user interface; the controller is configured to:

[0006] Acquire a question-and-answer instruction input by a user, wherein the question-and-answer instruction is used to instruct the display device to generate a reply language through a large language model and / or call a built-in application tool;

[0007] Inputting the question-answering instruction into a large language model, and using the large language model to identify the semantics of the question-answering instruction, wherein the large language model is a deep learning model trained based on a knowledge dataset and a tool usage dataset, wherein the knowledge dataset is used for knowledge expansion of the large language model, and the tool usage dataset is used for establishing a mapping relationship between the question-answering instruction and the application tool;

[0008] Querying the application tool that needs to be called by the question-and-answer instruction according to the semantic recognition result, and sending a call request to the application tool so that the display device runs the application tool;

[0009] The tool running result returned by the application tool is obtained, and the tool running result is input into the large language model to generate a reply language based on the question and answer instruction.

[0010] In a second aspect, some embodiments of the present application further provide a task processing method based on a large language model, which is applied to the display device provided in the first aspect, the display device comprising: a display and a controller, and the method comprising:

[0011] Acquire a question-and-answer instruction input by a user, wherein the question-and-answer instruction is used to instruct the display device to generate a reply language through a large language model and / or call a built-in application tool;

[0012] Inputting the question-answering instruction into a large language model, and using the large language model to identify the semantics of the question-answering instruction, wherein the large language model is a deep learning model trained based on a knowledge dataset and a tool usage dataset, wherein the knowledge dataset is used for knowledge expansion of the large language model, and the tool usage dataset is used for establishing a mapping relationship between the question-answering instruction and the application tool;

[0013] Querying the application tool that needs to be called by the question-and-answer instruction according to the semantic recognition result, and sending a call request to the application tool so that the display device runs the application tool;

[0014] The tool running result returned by the application tool is obtained, and the tool running result is input into the large language model to generate a reply language based on the question and answer instruction.

[0015] As can be seen from the above technical solutions, some embodiments of the present application provide a display device and a task processing method based on a large language model, the method can obtain a question-and-answer instruction input by a user, the question-and-answer instruction is used to instruct the display device to generate a reply through a large language model and / or call a built-in application tool; and the question-and-answer instruction is input into the large language model, and the semantics of the question-and-answer instruction is recognized by the large language model, wherein the large language model is a deep learning model trained based on a knowledge data set and a tool usage data set, the knowledge data set is used for knowledge expansion of the large language model, and the tool usage data set is used to establish a mapping relationship between the question-and-answer instruction and the application tool; and the application tool that needs to be called by the question-and-answer instruction is queried according to the semantic recognition result, and a call request is sent to the application tool so that the display device runs the application tool; and the tool running result returned by the application tool is obtained, and the tool running result is input into the large language model to generate a reply based on the question-and-answer instruction. The method can use the large language model to call the application tool of the display device based on the question-and-answer instruction, and generate a reply based on the tool running result returned by the application tool. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0017] Figure 1 A schematic diagram of an operation scenario between a display device and a control device provided in some embodiments of the present application;

[0018] Figure 2 A schematic diagram of the hardware configuration of a display device provided in some embodiments of the present application;

[0019] Figure 3 A schematic diagram of software configuration of a display device provided in some embodiments of the present application;

[0020] Figure 4 A flowchart of a task processing method based on a large language model provided in some embodiments of the present application;

[0021] Figure 5 A schematic diagram of a process for performing pre-training on a large language model provided in some embodiments of the present application;

[0022] Figure 6 A schematic diagram of a process for executing tool call training on a large language model provided in some embodiments of the present application;

[0023] Figure 7 A schematic diagram of a process for performing knowledge association training on a large language model provided in some embodiments of the present application;

[0024] Figure 8 A schematic diagram of a recommendation chain generated by a large language model provided in some embodiments of the present application;

[0025] Fig. 9 A schematic diagram of a process for generating associated corpus using a large language model provided in some embodiments of the present application;

[0026] Fig.10 A schematic diagram of a process for generating auxiliary learning corpus using a large language model provided in some embodiments of the present application;

[0027] Fig.11 An example diagram of a vector association relationship provided in some embodiments of the present application;

[0028] Fig.12 A schematic diagram of a process for performing self-learning update training on a large language model provided in some embodiments of the present application;

[0029] Fig.13 A flowchart of a large language model calling application tool provided in some embodiments of the present application. DETAILED DESCRIPTION

[0030] The following embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following embodiments do not represent all implementations consistent with the present application. They are only examples of systems and methods consistent with some aspects of the present application as detailed in the claims.

[0031] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their ordinary and common meanings.

[0032] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances.

[0033] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.

[0034] The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.

[0035] In the embodiment of the present application, the display device 200 generally refers to a device with image display and data processing capabilities. For example, the display device 200 includes but is not limited to a smart TV, a mobile terminal, a computer, a monitor, an advertising screen, a wearable device, a virtual reality device, an augmented reality device, etc.

[0036] Figure 1 This is a schematic diagram of an operation scenario between a display device and a control device provided in some embodiments of the present application. Figure 1 As shown in FIG. 1 , a user can operate the display device 200 through touch operation, the mobile terminal 300 and the control device 100. The control device 100 is used to receive operation instructions input by the user and convert the operation instructions into control instructions that can be recognized and responded to by the display device 200. For example, the control device 100 can be a remote controller, a stylus pen, a handle, etc.

[0037] The mobile terminal 300 can be used as a control device for performing human-computer interaction between the user and the display device 200. The mobile terminal 300 can also be used as a communication device for establishing a communication connection with the display device 200 and performing data interaction. In some embodiments, the mobile terminal 300 can install software applications with the display device 200, and achieve connection and communication through a network communication protocol to achieve the purpose of one-to-one control operation and data communication. The audio and video content displayed on the mobile terminal 300 can also be transmitted to the display device 200 to achieve a synchronous display function.

[0038] In some embodiments, the mobile terminal 300 or other electronic devices may also simulate the functions of the control device 100 by running an application program for controlling the display device 200 .

[0039] like Figure 1 As also shown in FIG. 4 , the display device 200 also communicates data with the server 400 through various communication methods. The display device 200 may be allowed to communicate and connect through a local area network (LAN), a wireless local area network (WLAN), and other networks.

[0040] The display device 200 may provide a broadcast receiving television function, and may also additionally provide an intelligent network television function with a computer support function, including but not limited to network television, smart television, Internet Protocol television (IPTV), and the like.

[0041] Figure 2 Some embodiments of the present application provide Figure 1 2 is a block diagram of the hardware configuration of the display device 200.

[0042] In some embodiments, the display device 200 may include at least one of a tuner 210, a communication device 220, a detector 230, a device interface 240, a controller 250, a display 260, an audio output device 270, a memory, a power supply, and a user input interface.

[0043] In some embodiments, the detector 230 is used to collect signals of the external environment or external interaction. For example, the detector 230 includes a light receiver, a sensor for collecting the intensity of ambient light; or, the detector 230 includes an image collector, such as a camera, which can be used to collect external environment scenes, user attributes or user interaction gestures; or, the detector 230 includes a sound collector, such as a microphone, etc., for receiving external sounds.

[0044] In some embodiments, the display 260 includes a display function component for presenting a picture, and a driving component for driving an image display. The display 260 is used to receive an image signal output from the controller 250 for display. For example, the display 260 can be used to display video content, image content, and components of a menu control interface and a user control UI interface.

[0045] In some embodiments, the communication device 220 is a component for communicating with an external device or server 400 according to various communication protocol types. The display device 200 may be provided with a plurality of communication devices 220 according to different supported communication modes. For example, when the display device 200 supports wireless network communication, the display device 200 may be provided with a communication device 220 including a WiFi function. When the display device 200 supports Bluetooth connection communication, the display device 200 needs to be provided with a communication device 220 including a Bluetooth function.

[0046] The communication device 220 can enable the display device 200 to communicate with the external device or server 400 by wireless or wired connection. Among them, the wired connection can connect the display device 200 with the external device through components such as data cables and interfaces. The wireless connection can connect the display device 200 with the external device through wireless signals or wireless networks. The display device 200 can establish a connection relationship with the external device directly, or indirectly establish a connection relationship through a gateway, a router, a connection device, etc.

[0047] In some embodiments, the controller 250 may include at least one of a central processing unit, a video processor, an audio processor, a graphics processor, and a power processor, and a first interface to an nth interface for input / output. The controller 250 controls the operation of the display device and responds to the user's operation through various software control programs stored in the memory. The controller 250 controls the overall operation of the display device 200.

[0048] In some embodiments, the controller 250 and the tuner-demodulator 210 may be located in different separate devices, that is, the tuner-demodulator 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.

[0049] In some embodiments, the user may input a user command through a graphical user interface (GUI) displayed on the display 260 , and the user input interface receives the user input command through the graphical user interface (GUI).

[0050] In some embodiments, the audio output device 270 may be a local speaker of the display device 200, or may be an external audio output device of the display device 200. In particular, for the external audio output device of the display device 200, the display device 200 may also be provided with an external audio output terminal, and the audio output device may be connected to the display device 200 through the external audio output terminal to output the sound of the display device 200.

[0051] In some embodiments, the user input interface 280 may be used to receive instructions from a user.

[0052] In order to perform user interaction, in some embodiments, the display device 200 may run an operating system. The operating system is a computer program for managing and controlling hardware resources and software resources in the display device 200. The operating system can control the display device to provide a user interface, for example, the operating system can directly control the display device to provide a user interface, or provide a user interface by running an application program. The operating system also allows the user to interact with the display device 200.

[0053] It should be noted that the operating system may be a native operating system based on a specific operating platform, or a third-party operating system deeply customized based on a specific operating platform, or an independent operating system specially developed for the display device.

[0054] The operating system can be divided into different modules or layers according to the functions implemented, for example Figure 3 As shown, in some embodiments, the system is divided into four layers, from top to bottom, namely, the application layer (Applications) layer (referred to as "application layer"), the application framework layer (Application Framework) layer (referred to as "framework layer"), the system library layer and the kernel layer.

[0055] In some embodiments, the application layer is used to provide services and interfaces for applications so that the display device 200 can run applications and interact with users based on the applications. At least one application can be run in the application layer, and these applications can be window programs, system settings programs, clock programs, etc. that come with the operating system; they can also be applications developed by third-party developers. In specific implementations, the application packages in the application layer are not limited to the above examples.

[0056] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications. The application framework layer includes some predefined functions. The application framework layer is equivalent to a processing center that determines the actions that applications in the application layer take. Through the API interface, applications can access system resources and obtain system services during execution.

[0057] like Figure 3 As shown, Figure 3 A software configuration diagram of a display device provided for some embodiments of the present application. In some embodiments, the system of the display device 200 can be divided into three layers, namely, an application layer, a middleware layer, and a hardware layer from top to bottom.

[0058] The application layer mainly includes applications on the TV and the application framework. Among them, applications are mainly applications developed based on the browser, such as HTML5 APPs and native applications.

[0059] The Application Framework is a complete program model that has all the basic functions required by standard application software, such as file access, data exchange, etc., as well as the user interfaces of these functions (toolbars, status bars, menus, dialog boxes).

[0060] Native apps can support online or offline, message push or local resource access.

[0061] The middleware layer includes various TV protocols, multimedia protocols, system components and other middleware. The middleware can use the basic services (functions) provided by the system software to connect various parts of the application system or different applications on the network, and can achieve the purpose of resource sharing and function sharing.

[0062] The hardware layer mainly includes HAL interface, hardware and driver. Among them, HAL interface is the unified interface for all TV chips to connect, and the specific logic is implemented by each chip. Drivers mainly include: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power driver, etc.

[0063] It should be noted that the above example is only a simple division of the operating system functions and does not constitute a limitation on the specific operating system form of the display device 200 in the embodiment of the present application. Depending on factors such as the function of the display device and the type of operating system, the number of levels and specific level types contained in the operating system may be expressed in other forms.

[0064] In some embodiments, the display device 200 uses a large language model to recognize the user's voice commands and generates a reply to interact with the user. Among them, the large language model (LLM) is a deep learning model trained based on text data, which can generate highly readable and credible natural language text, and can deeply understand the meaning of the text, and realize intelligent processing and analysis of the text, including the theme, emotion and intention of the text. By combining the display device 200 with the large language model, it is possible to interact with the user in a natural and smooth dialogue, understand the user's intentions and needs, and give corresponding replies and suggestions.

[0065] In order to improve the performance of large language models in natural language processing tasks, it is necessary to use a large amount of text data to train large language models so that large language models can provide more accurate, natural and smooth interactive experience. In the process of training large language models, it is first necessary to collect large-scale data sets as training data for the model. The size of the data set has a direct impact on the language ability of the large language model. The larger the data set, the stronger the language ability of the large language model. The data set can include general data and professional data to meet the needs of different large language models in terms of training type distribution. Among them, general data includes web pages, news articles and novels, and professional data includes multilingual data, scientific data and code.

[0066] Before inputting the dataset into the large language model, the data in the dataset needs to be preprocessed, including deleting useless characters, building a vocabulary, and splitting the text into words or subword units to convert the original text into a format that the large language model can process, thereby reducing data noise and unifying the text's presentation. In addition, data preprocessing also includes data cleaning, such as removing web page tags, processing missing data, removing duplicate samples, etc., in order to improve the quality of the dataset.

[0067] Use the preprocessed dataset to train the large language model and optimize the model parameters by minimizing the loss function of the model on the training data. After the large language model training is completed, the model needs to be evaluated and tuned. For example, the performance of the model can be evaluated by the quality and perplexity of the generated samples, and based on the evaluation results, the model's hyperparameters or data processing process can be adjusted to improve the performance of the large language model in processing tasks.

[0068] In some embodiments, the large language model includes a system role (System), an assistant role (Assistant) and a user role (User), and these three roles have different roles and functions in the large model. The system role is used to prompt the assistant role the background environment in which the conversation takes place, and to prompt the assistant role's main tasks; the assistant role is used to communicate directly with the user and generate user replies; the user role is the user itself.

[0069] In some embodiments, the display device 200 can provide a movie recommendation service to the user through a large language model. For example, a user sends a message to the display device 200, "Recommend a movie similar to movie A", and the display device 200 generates a reply containing the name of the recommended movie using the large language model.

[0070] In order to improve the accuracy of the large language model in recommending movies, it is necessary to build a dataset containing multiple modal information such as text and vision, and input these datasets into the large language model so that the large language model can extract useful feature labels from the dataset and calculate the similarity between movies, so that the large language model can recommend movies similar to the user's interests based on the user's viewing history and preferences, for example: recommending movie B based on movie A. Since the large language model requires a large dataset during training, and these datasets are collected before the model is trained, the knowledge base is fixed after the model training is completed. As knowledge is constantly updated, the dataset used for training cannot accurately reflect the current situation or knowledge in a timely manner. Therefore, when the large language model generates recommended answers, it will provide inaccurate information based on outdated datasets, affecting the user experience.

[0071] Moreover, for knowledge-intensive questions that require professional knowledge and information to solve, the answers given by the large language model are less accurate than those given by search engines, which affects the user experience. Since knowledge-intensive questions require in-depth professional knowledge, technical understanding, and information in specific fields to be correctly understood and answered, and involve complex technical concepts and multiple disciplines, when a user inputs a knowledge-intensive question on the display device 200, for example, the user specifically requires a movie of a certain type and year, the recommended answer generated by the large language model may be inaccurate, and a movie that does not match the year may be given.

[0072] In some application scenarios, the display device 200 uses a large language model to recommend multiple movies to the user, and the user inputs a voice command of "please play the second movie", but because the training data of the large language model is text data, rather than command data for controlling the display device, the large language model does not have the ability to control the device. When the user needs to watch a movie recommended by the large language model, he needs to use a remote control to open the video application control of the display device and search for the movie name again in the video application control, which makes the operation process complicated and cumbersome, affecting the user experience.

[0073] Some embodiments of the present application provide a display device 200, which directly calls an application tool in the display device 200 by using a large language model by executing a task processing method based on a large language model. The display device 200 includes a display 260 and a controller 250. The display 260 is configured to display a user interface.

[0074] like Figure 4 As shown, the controller 250 is configured to execute a task processing method based on a large language model, including the following contents:

[0075] S100: Obtaining a question-and-answer instruction input by a user.

[0076] The display device 200 can receive multiple different control instructions during operation, among which some control instructions are used to instruct the display device 200 to generate reply words through a large language model, call built-in application tools, and generate reply words based on the results returned by calling the application tools. These control instructions are called question-and-answer instructions.

[0077] In some embodiments, the question-and-answer instruction may be input by the user based on the buttons on the control device 100 , or the user voice data may be acquired by using the built-in audio collector of the display device 200 and converted into the question-and-answer instruction.

[0078] Exemplarily, the user inputs a question-and-answer instruction of “Please recommend similar movies to Movie A”, the display device 200 obtains the question-and-answer instruction, and generates a reply containing similar movies to Movie A through a large language model.

[0079] Exemplarily, the user inputs a question and answer instruction of "Please play the second recommended movie", the display device 200 obtains the question and answer instruction, and calls the video playback application built into the display device 200 through the large language model to play the second movie in the recommendation list.

[0080] Exemplarily, the user inputs the question and answer instruction "What time is it now?", the display device 200 obtains the question and answer instruction, and calls the built-in clock tool of the display device 200 through the large language model to query the current time and generate a reply containing the current time.

[0081] S200: Input the question-answering instruction into the large language model, and use the large language model to recognize the semantics of the question-answering instruction.

[0082] In some embodiments, the display device 200 inputs the question-and-answer instruction into a large language model, and the large language model applies natural language processing (NLP) technology to analyze the semantic structure of the question-and-answer instruction, including part-of-speech tagging, named entity recognition (NER), and dependency parsing, so as to understand the structure and meaning of the text. In the process of part-of-speech tagging, the text is first segmented, stop words and punctuation marks are removed, and a predefined part-of-speech tagging set is selected, including nouns, verbs, and adjectives, etc., to assign part-of-speech tags to the text after segmentation. In the process of named entity recognition, feature information, such as part-of-speech tags, contextual information, etc., is extracted from the text after segmentation, and then the named entity recognition model is used to identify entities with specific meanings in the text, such as names of people, places, and organizations. In dependency syntactic analysis, we first define the types of dependency relationships between words, such as subject-predicate relationship, verb-object relationship, etc., and then use the dependency syntactic analysis model to identify the interdependencies between words in the text, and represent the identified dependencies in the form of a tree or graphical structure.

[0083] In some embodiments, the large language model is a deep learning model trained based on a knowledge dataset and a tool usage dataset, wherein the knowledge dataset is used to expand the knowledge of the large language model, and the tool usage dataset is used to establish a mapping relationship between question-and-answer instructions and application tools.

[0084] Exemplarily, the knowledge dataset can be a public dataset, such as data from codes, academic papers, ×× encyclopedias, and scientific literature. The knowledge dataset contains data from different sources and topics, and the big language model can collect and organize the knowledge dataset according to specific needs and fields.

[0085] For example, the tool usage data set may be the name and function of an application tool, for example, a video player application may be used to play videos; an audio player application may be used to play music; a browser application may be used to browse web pages, etc. The tool usage data set is used to establish a mapping relationship between question-and-answer instructions and application tools. When the question-and-answer instruction input by the user needs to call an application tool, the name of the application tool to be called is queried according to the tool usage data set.

[0086] In some embodiments, pre-training is performed on the large language model so that the large language model can generate accurate responses based on the question-answering instructions. Figure 5As shown, the display device 200 performs tool calling training (S501) on the large language model, so that the large language model analyzes the application tools that need to be called based on the question and answer instructions; and performs knowledge association training (S502) on the large language model, so that the large language model recognizes the semantics of the question and answer instructions, and generates replies based on the question and answer instructions; and then performs self-learning update training (S503) on the large language model to update and iterate the large language model.

[0087] In some embodiments, tool call training can help the large language model establish the correlation between tasks and tools, and the large language model can determine whether to call the application tool in the display device 200 according to the question and answer instruction input by the user. Figure 6 As shown, in the process of performing tool call training on the large language model, the tool information in the display device 200 is first obtained (S601), and then a tool usage data set is generated based on the tool information (S602), and the tool usage data set is input into the large language model, and the tool call training is performed on the large language model using the tool usage data set (S603). The tool information includes the name and function of the application tool, and the tool usage data set includes a corpus describing the application tool usage scenario.

[0088] In some embodiments, the display device 200 records a function registration file, which records the tool names and tool functions installed in the display device 200. By querying the function registration file, the application tool information of the display device 200 is obtained, and a tool usage dataset is generated based on the tool information.

[0089] For example, a tool usage dataset may be a corpus containing application tool usage scenarios, such as: "As a language model, I cannot perceive the current time, but I can get the current time through a clock tool." "Translation tools can be used to translate one language into another." "Interface tools can be used to query various information that I don't know, for example, movie interface tools can be used to query movies." "Setting tools can be used to change related settings such as volume and brightness."

[0090] By inputting the tool usage data set into the large language model and performing tool call training on the large language model, the large language model can determine whether it is necessary to call the application tool of the display device 200 according to the question-answer instruction, and generate a request to call the application tool. The request to call the application tool includes: the application tool name and call parameters.

[0091] In some embodiments, the display device 200 performs knowledge association training on the large language model so that the large language model recognizes the semantics of the question-answering instruction and generates a reply based on the question-answering instruction. Figure 7As shown, the display device 200 obtains a new knowledge data set and inputs the new knowledge data set into the large language model to obtain associated corpus (S701). Based on the associated corpus, an auxiliary learning corpus is generated (S702); the auxiliary learning corpus is then input into the large language model, and the auxiliary learning corpus is used to perform knowledge association training on the large language model (S703). Among them, the auxiliary learning corpus is used to represent the logical reasoning steps of establishing an association between the new knowledge and the historical knowledge, and the associated corpus is used to represent the association relationship between the new knowledge and the historical knowledge, and the historical knowledge is the knowledge already existing in the large language model.

[0092] In order to improve the accuracy of the large language model in processing question-answering tasks, it is necessary to perform knowledge association training on the large language model so that the large language model can learn new knowledge and achieve better performance in understanding question-answering instructions, generating responses, and reasoning. By establishing a vector association between new knowledge and historical knowledge, an associated corpus is generated, and the knowledge base of the large language model is expanded through the associated corpus.

[0093] Exemplarily, in order to enable the large language model to recommend more accurate movies to users, the display device 200 needs to obtain a new movie dataset and input the new movie dataset into the large language model so that the large language model generates an associated corpus that represents the association between new movies and old movies.

[0094] In the above process, the new movie dataset contains movie data that was released after the training time of the large language model and does not exist in the prior knowledge of the large language model. The movie data includes the movie title, introduction, type and plot, etc. The display device 200 inputs the new movie dataset into the large language model, and the large language model generates a recommendation chain and recommendation reasons from the new movie to the old movie based on the known old movie knowledge and the new movie knowledge.

[0095] For example, a recommendation chain from a new movie to an old movie is as follows: Figure 8 As shown, based on the new movie A, old movie 1 and old movie 2 are recommended; based on the new movie B, old movie 1, old movie 3 and old movie 4 are recommended; based on the new movie C, old movie 2 and old movie 5 are recommended.

[0096] The display device 200 traverses all the old movies in the recommendation chain and finds one or more recommendation chains for each old movie. Figure 8Based on old movie 1, get two recommendation chains "Recommend old movie 1 based on new movie A" and "Recommend old movie 1 based on new movie B"; based on old movie 2, get two recommendation chains "Recommend old movie 2 based on new movie A" and "Recommend old movie 2 based on new movie C"; based on old movie 3, get one recommendation chain "Recommend old movie 3 based on new movie B"; based on old movie 4, get one recommendation chain "Recommend old movie 4 based on new movie B"; based on old movie 5, get one recommendation chain "Recommend old movie 5 based on new movie C".

[0097] The display device 200 inputs one or more recommendation chains of old movies into the large language model, and the large language model summarizes and learns the recommendation chains to generate associated corpus representing the association relationship between old movies and new movies.

[0098] In some embodiments, the display device 200 generates associated corpus using the large language model, and performs knowledge association training on the large language model using the associated corpus. Fig. 9 As shown, the display device 200 obtains feature vectors of newly added knowledge and historical knowledge (S901); calculates the attention weights between the feature vectors (S902), and generates an association chain of newly added knowledge and historical knowledge according to the attention weights (S903); and then inputs the association chain into the large language model (S904) to train the large language model to generate an associated corpus. Among them, the attention weight is used to characterize the connection relationship between the newly added knowledge and the historical knowledge.

[0099] Constructing an association chain of new knowledge and historical knowledge is the process of expanding knowledge of the large language model. When the display device 200 performs knowledge association training on the large language model, the QKV matrix in the self-attention mechanism model (Transformer) architecture is used to establish a connection between the encoder output and the decoder input, so that the large language model can pay attention to the relevant information in the input sequence when generating the output, thereby capturing the connection between the new knowledge and historical knowledge. Among them, the Transformer architecture includes an encoder and a decoder. The encoder is stacked with multiple identical layers, each of which includes a self-attention layer and a feedforward neural network. The self-attention layer is used to help the large language model pay attention to words at other positions in the input sequence when processing words at a certain position, thereby capturing the dependency relationship between words. The decoder includes multiple identical layers, and each decoding layer is a self-attention layer (used to process the sequence before the current position), an encoder-decoder attention layer (used to process the output of the encoder), and a feedforward neural network stacked in sequence.

[0100] The QKV matrix includes a query matrix (Query, Q matrix), a key matrix (Key, K matrix) and a value matrix (Value, V matrix). Among them, the Q matrix is ​​obtained by transforming the current state of the decoder through the weight matrix corresponding to the Q matrix. The K matrix is ​​obtained by transforming the hidden vector output by the encoder through the weight matrix corresponding to the K matrix. The V matrix is ​​obtained by transforming the hidden vector output by the encoder through the weight matrix corresponding to the V matrix.

[0101] Exemplarily, the display device 200 obtains the feature vector A of the newly added knowledge and the feature vector B of the historical knowledge, generates an input sequence based on the feature vector A and the feature vector B, and maps the input sequence to the Q matrix, the K matrix, and the V matrix respectively. The length of the input sequence is n, and the dimension is d_model, then the dimension of each Q matrix, K matrix, and V matrix is ​​n×d_model. By multiplying the Q matrix and the transposed matrix of the K matrix, the attention weight matrix is ​​obtained, and then the attention weight matrix is ​​multiplied by the V matrix to obtain the output matrix. The output matrix is ​​calculated using the following formula:

[0102]

[0103] Among them, softmax indicates that the attention weights are normalized so that the sum of the attention weights is 1; sqrt(d_k) indicates the scaling of the attention weights to avoid overly complex calculations due to the large vector dimension; T indicates that the matrix is ​​transposed. The display device 200 generates an association chain of the newly added knowledge and the historical knowledge by calculating the attention weights, and inputs the association chain into the large language model to train the large language model to generate an associated corpus.

[0104] In some embodiments, the display device 200 generates auxiliary learning corpus based on the associated corpus, and inputs the auxiliary learning corpus into the large language model to perform knowledge association training on the large language model. Fig.10 As shown, in the process of generating auxiliary learning corpus by the display device 200, firstly, segmentation is performed on the associated corpus (S1001) to obtain the segmentation result; then, keywords are extracted from the segmentation result according to the preset word library (S1002); and prompt words are generated based on the keywords (S1003); and the prompt words are input into the large language model (S1004), so that the large language model generates the auxiliary learning corpus. Among them, the prompt words are used to guide the large language model to understand the user instructions.

[0105] The display device 200 uses the auxiliary learning corpus to train the large language model to improve the accuracy of the large language model in establishing the association between the newly added knowledge and the historical knowledge. Among them, the auxiliary learning corpus contains the logical reasoning steps of associating the newly added knowledge with the historical knowledge. The display device 200 performs word segmentation on the associated corpus (S1001), and matches the word segmentation result with the words in the preset vocabulary to extract the keywords (S1002). The display device 200 generates prompt words that associate the newly added knowledge with the historical knowledge based on the keywords (S1003), and inputs the prompt words into the large language model (S1004), and trains the large language model to generate auxiliary learning corpus containing the association logic of the newly added knowledge and the historical knowledge.

[0106] For example, Fig.11 As shown in the figure, in the process of establishing association between vector A and vector B, by using vector C and vector D as additional vectors, the attention weight of vector A and vector B can be increased, thereby accelerating the establishment of the association relationship between vector A and vector B. That is, vector C and vector D are prompt words, and the large language model can generate auxiliary learning corpus that associates vector A and vector B according to the prompt words.

[0107] In some embodiments, the display device 200 inputs the associated corpus and the auxiliary learning corpus into the large language model together, which can train the large language model to more accurately establish the association between the new knowledge and the historical knowledge, so that the large language model can give richer and more accurate replies based on question-and-answer instructions in the recommendation task.

[0108] For example, the user inputs a question-and-answer instruction "Are there any movies similar to Movie A?" The display device 200 obtains the question-and-answer instruction and generates a reply using the large language model: "Movie A is a fantasy story about superheroes, which contains elements related to fantasy, adventure, fighting, and friendship. Movies with similar elements include Movie B, Movie C, and Movie D, etc."

[0109] In some embodiments, the display device 200 performs self-learning update training on the large language model to update the iterative large language model. Fig.12 As shown, the display device 200 extracts similarity vectors of historical knowledge and newly added knowledge based on the associated corpus (S1201); and inputs the similarity vectors into the large language model (S1202), so that the large language model generates an associative corpus; and then uses the large language model to generate an answer corpus based on the associative corpus (S1203), so as to perform self-learning update training on the large language model. The associative corpus includes the question corpus generated according to the similarity vector.

[0110] The display device 200 performs self-learning update training on the large language model to keep the prior knowledge of the large language model updated. By inputting the prompt words of the newly added knowledge, the large language model generates questions and answers based on the newly added knowledge text, and then trains the large language model to self-learn and update. However, since the direction of the questions generated by the large language model is basically the same, the format of the answers generated by the model is fixed. Therefore, the display device 200 extracts the similarity vectors of historical knowledge and newly added knowledge based on the associated corpus, and inputs the similarity vectors into the large language model, so that the large language model can summarize the similarity vectors and generate associative corpus. The large language model asks questions and generates answers in the process of generating associative corpus, which can improve the effect of self-learning update training.

[0111] In some embodiments, after the display device 200 performs knowledge association training on the large language model, it is also necessary to perform fine-tuning training on the large language model so that the large language model can output more concise replies based on question-answering instructions. The display device 200 deletes the prompt words in the large language model to reduce the proportion of auxiliary learning corpus in the large language model; and sets the dialogue roles in the large language model; and sets the dialogue structure in the large language model so that the large language model can generate formatted replies based on question-answering instructions. Among them, the dialogue roles include user roles, assistant roles, system roles, analysis modules, call modules, and return modules; the dialogue structure includes dialogue roles, connection symbols, and replies.

[0112] After the display device 200 performs knowledge association training on the large language model, the new knowledge of the large language model is expanded, and the association relationship between the new knowledge and the historical knowledge is established. Then, fine-tuning training is performed on the large language model to remove auxiliary vectors that are irrelevant between the new knowledge and the historical knowledge, and remove the reasoning logic process. By deleting the prompt words in the large language model, the proportion of auxiliary learning corpus is reduced to improve the accuracy of the response language generated by the large language model.

[0113] In some embodiments, the display device 200 sets the dialogue roles in the large language model to distinguish between expression and thinking during task processing. In addition to the common system roles, assistant roles and user roles in the large language model, an analysis module, a call module and a return module are added, and the dialogue structure in the large language model is set to distinguish between the content input to the outside and the content of internal thinking of the large language model. Among them, the analysis module is used to analyze the user's intention, determine whether it is necessary to call the application tool in the display device 200, and confirm the name of the application tool to be called. The calling module is used to generate a tool call request containing call parameters according to the analysis results, and send the tool call request to the display device 200 to request the display device 200 to run the application tool and generate the tool running results. The return module is used to obtain the tool running results and send the tool running results to the analysis module so that the analysis module generates a reply based on the question and answer instructions.

[0114] In some embodiments, each round of dialogue in the dialogue structure includes a dialogue role and dialogue content. The display device 200 marks the dialogue role as a special token and marks the dialogue content as a common token to distinguish the dialogue content from the dialogue role. Among them, the token is a token or identifier associated with a specific role or identity. The role token represents the identity and authority of the role and is used for subsequent requests and session management. Optionally, special symbols can be added to the token to distinguish the dialogue roles.

[0115] For example, the content in the question-and-answer instruction may have the same name as the role name. For example, if the user inputs the question-and-answer instruction "Who is A's assistant?" and the name of the large language model is also "Assistant", an error may occur during task processing. The display device 200 marks the user role as the first special token, the assistant role as the second special token, the system role as the third special token, the analysis module as the fourth special token, the calling module as the fifth special token, and the return module as the sixth special token to distinguish the dialogue content and the dialogue role.

[0116] For example, the language communication between the user and the large language model is enclosed by "[" and "]" as connecting symbols to distinguish the dialogue content of different roles. And "assistant" is used as the name of the large language model to communicate with the user.

[0117] S300: Querying the application tool that needs to be called by the question-and-answer instruction according to the semantic recognition result, and sending a calling request to the application tool so that the display device 200 runs the application tool.

[0118] In some embodiments, the display device 200 inputs the question-answering instruction into the large language model, and the large language model determines whether it is necessary to call the application tool in the display device 200 to generate a reply language based on the semantics of the question-answering instruction. Fig.13 As shown, if the large language model determines that a tool needs to be called, a tool request language is generated to request the display device to run the application tool; if the large language model determines that a tool does not need to be called, a reply language based on the question and answer instruction is directly generated.

[0119] For example, the user inputs a question-and-answer instruction "Please introduce the working principle of the laser radar", and the large language model generates a semantic recognition result based on the question-and-answer instruction, determines that the question-and-answer instruction is a knowledge-intensive task, and queries the browser application in the display device 200 based on the mapping relationship between the question-and-answer instruction and the application tool. The calling module in the large language model sends a call request to the browser application of the display device 200, so that the display device 200 runs the browser application and queries the working principle of the laser radar in the browser.

[0120] For example, the user inputs the question-and-answer instruction "Please recommend me a good novel", and the large language model determines based on the semantic recognition result that there is no need to call the application tool in the display device 200, and directly generates the reply "The recently very popular novel is "xxx"".

[0121] S400: Obtaining a tool running result returned by the application tool, and inputting the tool running result into a large language model to generate a reply language based on the question-answering instruction.

[0122] In some embodiments, the display device 200 uses an analysis module to identify the semantics of question and answer instructions to generate a semantic recognition result; and uses a calling module to send a calling request to the display device 200, the calling request includes an application tool and a request parameter, and the calling request is used to request the display device 200 to run the application tool and return the tool running result; and uses a return module to obtain the tool running result, and sends the tool running result to the analysis module, so that the analysis module generates a reply based on the tool running result.

[0123] In some embodiments, the analysis module needs to identify the semantics of the question-and-answer instruction through the Chain of Thought (CoT) model and generate a semantic recognition result. Among them, the Chain of Thought model is a method of decomposing complex problems into simple sub-problems, and each thinking step in the chain of thought is interconnected and has a logical relationship. After the analysis module analyzes the application tool that needs to be called, the calling module is used to generate a call request that can be recognized by the display device 200. For example, the call request can be in json format. After calling the application tool, the return module is used to obtain the running result of the application tool, and the analysis module is used to perform analysis on the running result through the Chain of Thought model to generate a reply based on the question-and-answer instruction, and then the assistant role returns the reply to the user.

[0124] In some embodiments, the large language model processes tasks and generates reply words through a standard processing flow. When a user request sent by a user role is obtained, the analysis module determines whether it is necessary to call an application tool. If the analysis module determines that an application tool needs to be called, the calling module is connected after the analysis module, and the calling module is used to send a calling request. The return module is connected after the calling module, and the return module obtains the running result of the application tool. After the return module, the assistant role is connected to output the reply words. That is, the connection relationship of the standard processing flow is: user role-analysis module-calling module-return module-assistant role. If the analysis module determines that there is no need to call an application tool, the reply words are directly generated by the assistant role. That is, the connection relationship of the standard processing flow is: user role-analysis module-assistant role.

[0125] It should be noted that in the above standard processing flow, the analysis module needs to be connected to the calling module or assistant role, the calling module needs to be connected to the return module, and the assistant role needs to be connected to the user role.

[0126] Exemplarily, the task processing method based on a large language model of the present application is introduced through the following interactive examples:

[0127] User: [What time is it now? ]

[0128] Analysis module: If a user wants to query the current time and the analyst does not know the current time, he can use the clock tool.

[0129] Call module: {"tools":"clock.get",params:{}}

[0130] Return module: 2024-2-20 14:25:16

[0131] Analysis module: From the results returned by the clock tool, we can see that it is now February 10, 2024, 2:25:16 pm.

[0132] Assistant: [It is 2:25 PM now. Is there anything I can help you with? ]

[0133] User: [Do you know what day it is 4 days from now? ]

[0134] Assistant: [In 4 days it will be February 14th, Valentine's Day. This is a good day to prepare a surprise for your partner.]

[0135] User: [But I don’t know what surprise to prepare.]

[0136] Assistant: [You can prepare surprises for your partner on Valentine's Day in the following ways: 1. Prepare flowers; 2. Prepare a candlelight dinner]

[0137] User: [Then please remind me to order a candlelight dinner that evening.]

[0138] Analysis module: If users want to set an alarm, they can use the clock tool.

[0139] Call module: {"tools":"clock.set",params:{"datetime":"2024-02-14 12:00","event":"Order candlelight dinner"}}

[0140] Return module: success.

[0141] Analysis module: From the returned results, we can see that the alarm is set successfully.

[0142] Assistant: [An alarm reminder for 12:00 noon on February 14 has been successfully created for you.]

[0143] It should be understood that in the above process, the display device 200 completed the task-based dialogue of setting the alarm based on the large language model, and also completed the question-answering dialogue of Valentine's Day suggestions, and generated a reply based on the question-answering instructions. The output content of the analysis module, the calling module, and the return module is the thinking process of the large language model calling the display device 200, and the display device 200 can be set not to display the thinking process.

[0144] As can be seen from the above technical solutions, some embodiments of the present application provide a display device and a task processing method based on a large language model, the method can obtain a question-and-answer instruction input by a user, the question-and-answer instruction is used to instruct the display device to generate a reply through a large language model and / or call a built-in application tool; and the question-and-answer instruction is input into the large language model, and the semantics of the question-and-answer instruction is recognized by the large language model, wherein the large language model is a deep learning model trained based on a knowledge data set and a tool usage data set, the knowledge data set is used for knowledge expansion of the large language model, and the tool usage data set is used to establish a mapping relationship between the question-and-answer instruction and the application tool; and the application tool that needs to be called by the question-and-answer instruction is queried according to the semantic recognition result, and a call request is sent to the application tool so that the display device runs the application tool; and the tool running result returned by the application tool is obtained, and the tool running result is input into the large language model to generate a reply based on the question-and-answer instruction. The method can use the large language model to call the application tool of the display device based on the question-and-answer instruction, and generate a reply based on the tool running result returned by the application tool.

[0145] Based on the above display device 200, some embodiments of the present application further provide a task processing method based on a large language model, including:

[0146] Obtaining a question-and-answer instruction input by a user, where the question-and-answer instruction is used to instruct the display device to generate a reply language through a large language model and / or call a built-in application tool;

[0147] Input the question-answering instructions into a large language model, and use the large language model to recognize the semantics of the question-answering instructions. The large language model is a deep learning model trained based on a knowledge dataset and a tool usage dataset. The knowledge dataset is used to expand the knowledge of the large language model, and the tool usage dataset is used to establish a mapping relationship between the question-answering instructions and the application tools.

[0148] Querying the application tool that needs to be called by the question-answering instruction according to the semantic recognition result, and sending a call request to the application tool so that the display device runs the application tool;

[0149] The tool running results returned by the application tool are obtained, and the tool running results are input into the large language model to generate a reply language based on the question-answering instruction.

[0150] The same and similar parts between the various embodiments in this specification can be referenced to each other and will not be described again here.

[0151] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention or certain parts of the embodiments.

[0152] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0153] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.

Claims

1. A display device, characterized in that: include: a display configured to display a user interface; The controller is configured as: Acquire a question-and-answer instruction input by a user, wherein the question-and-answer instruction is used to instruct the display device to generate a reply language through a large language model and / or call a built-in application tool; Inputting the question-answering instruction into a large language model, and using the large language model to identify the semantics of the question-answering instruction, wherein the large language model is a deep learning model trained based on a knowledge dataset and a tool usage dataset, wherein the knowledge dataset is used for knowledge expansion of the large language model, and the tool usage dataset is used for establishing a mapping relationship between the question-answering instruction and the application tool; Querying the application tool that needs to be called by the question-and-answer instruction according to the semantic recognition result, and sending a call request to the application tool so that the display device runs the application tool; The tool running result returned by the application tool is obtained, and the tool running result is input into the large language model to generate a reply language based on the question and answer instruction.

2. The display device according to claim 1, characterized in that The controller is also configured to: Performing tool calling training on the large language model so that the large language model analyzes the application tool to be called based on the question-answering instruction; Performing knowledge association training on the large language model so that the large language model recognizes the semantics of the question-answering instruction and generates a reply based on the question-answering instruction; A self-learning update training is performed on the large language model to update and iterate the large language model.

3. The display device according to claim 2, characterized in that The controller executes tool call training on the large language model, and is further configured to: Acquire tool information in the display device, wherein the tool information includes the name and function of the application tool; generating a tool usage dataset based on the tool information, wherein the tool usage dataset includes corpus describing a usage scenario of an application tool; The tool usage dataset is input into the large language model, and tool call training is performed on the large language model using the tool usage dataset.

4. The display device according to claim 2, characterized in that The controller performs knowledge association training on the large language model, and is further configured to: Acquire a new knowledge data set, and input the new knowledge data set into the large language model to obtain associated corpus, wherein the associated corpus is used to characterize the association relationship between the new knowledge and historical knowledge, wherein the historical knowledge is knowledge already stored in the large language model; Generate auxiliary learning corpus based on the associated corpus, where the auxiliary learning corpus is used to represent the logical reasoning steps for establishing association between the newly added knowledge and the historical knowledge; The auxiliary learning corpus is input into the large language model, and knowledge association training is performed on the large language model using the auxiliary learning corpus.

5. The display device according to claim 4, characterized in that The controller executes inputting the newly added knowledge data set into the large language model to obtain associated corpus, and is further configured to: Acquire feature vectors of the newly added knowledge and the historical knowledge; Calculating the attention weights between the feature vectors, where the attention weights are used to characterize the connection relationship between the newly added knowledge and the historical knowledge; Generating an association chain between the newly added knowledge and the historical knowledge according to the attention weight; The association chain is input into the large language model to train the large language model to generate associated corpus.

6. The display device according to claim 4, characterized in that The controller generates auxiliary learning corpus based on the associated corpus, and is further configured to: Performing word segmentation on the associated corpus to obtain a word segmentation result; Extracting keywords from the word segmentation results according to a preset word library; Generate a prompt word based on the keyword, where the prompt word is used to guide the large language model to understand the user instruction; The prompt word is input into the large language model so that the large language model generates the auxiliary learning corpus.

7. The display device according to claim 4, characterized in that The controller performs self-learning update training on the large language model, and is further configured to: Based on the associated corpus, extracting similarity vectors between the historical knowledge and the newly added knowledge; Inputting the similarity vector into the large language model so that the large language model generates an associative corpus, wherein the associative corpus includes a question corpus generated according to the similarity vector; The large language model is used to generate answer corpus based on the association corpus, so as to perform self-learning update training on the large language model.

8. The display device according to claim 6, characterized in that After executing knowledge association training on the large language model, the controller is further configured to perform fine-tuning training on the large language model, including: Deleting the prompt words in the large language model to reduce the proportion of auxiliary learning corpus in the large language model; Setting the dialogue roles in the large language model, wherein the dialogue roles include a system role, an assistant role, a user role, an analysis module, a calling module, and a return module; The dialogue structure in the large language model is set so that the large language model generates a formatted reply based on the question-answer instruction, wherein the dialogue structure includes the dialogue roles, connecting symbols and the reply.

9. The display device according to claim 8, characterized in that The controller is also configured to: Using the analysis module to identify the semantics of the question-answer instruction to generate the semantic recognition result; Using the calling module to send a calling request to the display device, the calling request includes an application tool and a request parameter, and the calling request is used to request the display device to run the application tool and return a tool running result; The tool operation result is obtained by utilizing the return module, and the tool operation result is sent to the analysis module, so that the analysis module generates a reply based on the tool operation result.

10. A task processing method based on a large language model, characterized in that: Applied to the display device according to any one of claims 1 to 9, the method comprising: Acquire a question-and-answer instruction input by a user, wherein the question-and-answer instruction is used to instruct the display device to generate a reply language through a large language model and / or call a built-in application tool; Inputting the question-answering instruction into a large language model, and using the large language model to identify the semantics of the question-answering instruction, wherein the large language model is a deep learning model trained based on a knowledge dataset and a tool usage dataset, wherein the knowledge dataset is used for knowledge expansion of the large language model, and the tool usage dataset is used for establishing a mapping relationship between the question-answering instruction and the application tool; Querying the application tool that needs to be called by the question-and-answer instruction according to the semantic recognition result, and sending a call request to the application tool so that the display device runs the application tool; The tool running result returned by the application tool is obtained, and the tool running result is input into the large language model to generate a reply language based on the question and answer instruction.

Citation Information

Cited By

  • Task answering method and device, equipment and medium

    CN119293211A

  • Agricultural disease question consulting and answering method and device and electronic equipment

    CN119494400A

  • Dialogue generation method and device based on application tool, electronic equipment and medium

    CN119621224A

  • Voice interaction method and device, computer program product and electronic equipment

    CN120340484A

  • Large language model-based information search system, smart glasses and information search method

    WO2026103435A1