Vehicle-mounted question and answer method and device and medium
By building a vehicle knowledge base and using a large language model to generate a large language question and answer library, it solves the problem that the in-vehicle question and answer method cannot generate pictures, videos and control instructions, improves the user experience and ensures the accuracy of vehicle-related fields and general field questions and answers. ability.
Patent Information
- Application Number
- CN202410782258.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-01
AI Technical Summary
Existing in-vehicle question and answer methods cannot generate pictures, videos or control command-type responses based on user input, resulting in poor user experience.
By building a vehicle knowledge base, the trained large language model is used to generate a large language question and answer database, which is matched with the query information input by the user to generate corresponding pictures, videos and vehicle control instructions to improve the user experience.
It realizes responses based on user input of pictures, videos and vehicle control instructions, improves the user experience, and ensures the accuracy of high-frequency questions in vehicle-related fields and comprehensive capabilities in general field question and answer.
Smart Images

Figure CN118733728A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent question-answering technology, and specifically provides an in-vehicle question-answering method, device, and medium. Background Art
[0002] With the rapid development of related technologies such as natural language processing, deep learning, knowledge engineering and knowledge reasoning, in-vehicle intelligent question-answering systems have made significant progress. In-vehicle intelligent question-answering systems are transforming from rule-based question-answering to question-answering based on semantic understanding and machine learning, so that they can provide users with more accurate and intelligent answers by using technologies such as big data and natural language processing. However, most existing in-vehicle question-answering methods can only generate text replies based on user input, and cannot generate replies of the type of pictures, videos or control commands based on user input, which brings a bad user experience.
[0003] Accordingly, the art needs a new in-vehicle question-answering method to solve the above problems. Summary of the invention
[0004] This application aims to solve the above-mentioned technical problem, namely, to solve the problem that the existing in-vehicle question-and-answer method cannot generate picture, video or control command responses based on user input, thereby affecting the user experience.
[0005] In order to achieve the above objectives, in a first aspect, the present application provides an in-vehicle question-answering method, the method comprising the following steps:
[0006] Obtaining inquiry information input by a user, and inputting the inquiry information into a large language question-answer database for retrieval to obtain a text reply corresponding to the inquiry information;
[0007] Matching the text reply corresponding to the inquiry information with the picture knowledge data, the video knowledge data, and the usage information of the vehicle control skill in the large language question and answer database, and generating one of the picture, video, and vehicle control instruction corresponding to the inquiry information according to the matching result;
[0008] The large language question-answer database is obtained in the following manner:
[0009] A vehicle knowledge base is constructed based on the user's vehicle information, and a large language question and answer library is generated based on the vehicle knowledge base through a trained large language model. The vehicle knowledge base includes text knowledge data, image knowledge data, and video knowledge data, and the text knowledge data includes usage information of vehicle control skills.
[0010] In a technical solution of the above-mentioned in-vehicle question-answering method, the generating of a large language question-answering database based on the vehicle knowledge base by using a trained large language model includes:
[0011] The vehicle knowledge base is sequentially cleaned and knowledge structured, wherein the knowledge structured includes matching the text knowledge data with the image knowledge data or the video knowledge data to obtain matching text of the image knowledge data and matching text of the video knowledge data.
[0012] In a technical solution of the above-mentioned in-vehicle question-and-answer method, the step of "matching the text reply corresponding to the query information with the image knowledge data, the video knowledge data and the usage information of the vehicle control skills in the large language question-and-answer library, and generating one of the image, video and vehicle control instruction corresponding to the query information according to the matching result" includes:
[0013] Performing correlation matching on the text reply corresponding to the inquiry information with the matching text of the picture knowledge data, the matching text of the video knowledge data, and the usage information of the vehicle control skill in the large language question and answer database, so as to obtain a first correlation matching result, a second correlation matching result, and a third correlation matching result respectively;
[0014] The first correlation matching result, the second correlation matching result and the third correlation matching result are respectively compared with corresponding correlation preset thresholds, and one of a picture, a video and a vehicle control instruction corresponding to the query information is generated based on the comparison results.
[0015] In a technical solution of the above-mentioned in-vehicle question-answering method, after generating one of a picture, a video and a vehicle control instruction corresponding to the inquiry information according to the matching result, the method further includes:
[0016] When the vehicle control instruction corresponding to the inquiry information is generated, the vehicle control instruction corresponding to the inquiry information is sent to the user for confirmation;
[0017] After receiving the confirmation feedback from the user, the vehicle is controlled to execute the vehicle control instruction corresponding to the inquiry information.
[0018] In a technical solution of the above-mentioned in-vehicle question-answering method, the text knowledge data also includes a user manual, and the method further includes:
[0019] Determining whether the user manual contains the query information;
[0020] When the user manual contains the query information, a corresponding user manual page jump button is generated to jump the user manual to a page containing the query information.
[0021] In a technical solution of the above-mentioned in-vehicle question-answering method, the large language model is trained in the following manner:
[0022] Acquire a training data set, and train a large language model to be trained based on the training data set to obtain a first pre-trained model;
[0023] Fine-tune the instructions of the first pre-trained model based on the prompt template library to obtain a second pre-trained model;
[0024] Performing reinforcement learning on the first pre-trained model based on the reward model and the prompt template library to obtain a first language model;
[0025] An internal test is performed based on the first largest language model, during which internal test user data is collected and supervised fine-tuning / reinforcement learning is performed on the first largest language model based on the internal test user data to obtain a second largest language model.
[0026] In a technical solution of the above-mentioned in-vehicle question-answering method, the method further includes:
[0027] Classifying the inquiry information to obtain a type of the inquiry information, wherein the type of the inquiry information includes a vehicle-related field and a general field;
[0028] When the type of the inquiry information is the vehicle-related field, generating a reply corresponding to the inquiry information based on a preset FAQ system / KBQA system;
[0029] When the type of the inquiry information is the general field, the inquiry information is input into the large language model to generate a voice response to the inquiry information based on a general interface called by a lang chain framework of the large language model.
[0030] In a technical solution of the above-mentioned in-vehicle question-answering method, the method further includes:
[0031] When the preset FAQ system / KBQA system does not generate the reply corresponding to the inquiry information, the inquiry information is input into the large language question and answer database for retrieval to generate one of the pictures, videos and vehicle control instructions corresponding to the inquiry information.
[0032] In a technical solution of the above-mentioned in-vehicle question-answering method, the preset FAQ system includes FAQ question-answer pairs, and the FAQ questions and answers are constructed in the following manner:
[0033] Obtaining manually organized question and answer samples and constructing the FAQ question and answer pairs based on the manually organized question and answer samples and a text generation model;
[0034] And / or, obtaining online question and answer samples and performing text clustering on the online question and answer samples to construct the FAQ question and answer pairs.
[0035] In a second aspect, the present application also provides a computer device, comprising a processor and a storage device, wherein the storage device is suitable for storing multiple program codes, and the program codes are suitable for being loaded and run by the processor to execute any of the above-mentioned in-vehicle question-and-answer methods.
[0036] In a third aspect, the present application also provides a computer-readable storage medium, in which a plurality of program codes are stored, and the program codes are suitable for being loaded and run by a processor to execute any of the above-mentioned in-vehicle question-and-answer methods.
[0037] Solution 1. A vehicle-mounted question-answering method, characterized in that the method comprises the following steps:
[0038] Obtaining inquiry information input by a user, and inputting the inquiry information into a large language question-answer database for retrieval to obtain a text reply corresponding to the inquiry information;
[0039] Matching the text reply corresponding to the inquiry information with the picture knowledge data, the video knowledge data, and the usage information of the vehicle control skill in the large language question and answer database, and generating one of the picture, video, and vehicle control instruction corresponding to the inquiry information according to the matching result;
[0040] The large language question-answer database is obtained in the following manner:
[0041] A vehicle knowledge base is constructed based on the user's vehicle information, and a large language question and answer library is generated based on the vehicle knowledge base through a trained large language model. The vehicle knowledge base includes text knowledge data, image knowledge data, and video knowledge data, and the text knowledge data includes usage information of vehicle control skills.
[0042] Solution 2. The vehicle-mounted question-answering method according to Solution 1 is characterized in that the large language question-answering database is generated based on the vehicle knowledge base by using the trained large language model, comprising:
[0043] The vehicle knowledge base is sequentially cleaned and knowledge structured, wherein the knowledge structured includes matching the text knowledge data with the image knowledge data or the video knowledge data to obtain matching text of the image knowledge data and matching text of the video knowledge data.
[0044] Solution 3. The in-vehicle question-and-answer method according to Solution 2 is characterized in that the step of "matching the text reply corresponding to the inquiry information with the picture knowledge data, the video knowledge data and the usage information of the vehicle control skills in the large language question-and-answer database, and generating one of the picture, video and vehicle control instruction corresponding to the inquiry information according to the matching result" comprises:
[0045] Performing correlation matching on the text reply corresponding to the inquiry information with the matching text of the picture knowledge data, the matching text of the video knowledge data, and the usage information of the vehicle control skill in the large language question and answer database, so as to obtain a first correlation matching result, a second correlation matching result, and a third correlation matching result respectively;
[0046] The first correlation matching result, the second correlation matching result and the third correlation matching result are respectively compared with corresponding correlation preset thresholds, and one of a picture, a video and a vehicle control instruction corresponding to the query information is generated based on the comparison results.
[0047] Solution 4. The vehicle-mounted question-and-answer method according to Solution 1 is characterized in that, after generating one of a picture, a video, and a vehicle control instruction corresponding to the query information according to the matching result, the method further includes:
[0048] When the vehicle control instruction corresponding to the inquiry information is generated, the vehicle control instruction corresponding to the inquiry information is sent to the user for confirmation;
[0049] After receiving the confirmation feedback from the user, the vehicle is controlled to execute the vehicle control instruction corresponding to the inquiry information.
[0050] Solution 5. The in-vehicle question-answering method according to Solution 1 is characterized in that the text knowledge data also includes a user manual, and the method further includes:
[0051] Determining whether the user manual contains the query information;
[0052] When the user manual contains the query information, a corresponding user manual page jump button is generated to jump the user manual to a page containing the query information.
[0053] Solution 6. The in-vehicle question-answering method according to Solution 1 is characterized in that the large language model is trained in the following manner:
[0054] Acquire a training data set, and train a large language model to be trained based on the training data set to obtain a first pre-trained model;
[0055] Fine-tune the instructions of the first pre-trained model based on the prompt template library to obtain a second pre-trained model;
[0056] Performing reinforcement learning on the first pre-trained model based on the reward model and the prompt template library to obtain a first language model;
[0057] An internal test is performed based on the first largest language model, during which internal test user data is collected and supervised fine-tuning / reinforcement learning is performed on the first largest language model based on the internal test user data to obtain a second largest language model.
[0058] Solution 7. The in-vehicle question-and-answer method according to Solution 1, characterized in that the method further comprises:
[0059] Classifying the inquiry information to obtain a type of the inquiry information, wherein the type of the inquiry information includes a vehicle-related field and a general field;
[0060] When the type of the inquiry information is the vehicle-related field, generating a reply corresponding to the inquiry information based on a preset FAQ system / KBQA system;
[0061] When the type of the inquiry information is the general field, the inquiry information is input into the large language model to generate a voice response to the inquiry information based on a general interface called by a lang chain framework of the large language model.
[0062] Solution 8. The in-vehicle question-and-answer method according to Solution 7, characterized in that the method further comprises:
[0063] When the preset FAQ system / KBQA system does not generate the reply corresponding to the inquiry information, the inquiry information is input into the large language question and answer database for retrieval to generate one of the pictures, videos and vehicle control instructions corresponding to the inquiry information.
[0064] Solution 9. The in-vehicle question-and-answer method according to Solution 7 is characterized in that the preset FAQ system includes FAQ question-and-answer pairs, and the FAQ questions and answers are constructed in the following manner:
[0065] Obtaining manually organized question and answer samples and constructing the FAQ question and answer pairs based on the manually organized question and answer samples and a text generation model;
[0066] And / or, obtaining online question and answer samples and performing text clustering on the online question and answer samples to construct the FAQ question and answer pairs.
[0067] Solution 10. A computer device comprising a processor and a storage device, wherein the storage device is suitable for storing multiple program codes, and is characterized in that the program codes are suitable for being loaded and run by the processor to execute the in-vehicle question-and-answer method described in any one of Solutions 1 to 9.
[0068] Solution 11. A computer-readable storage medium storing a plurality of program codes, characterized in that the program codes are suitable for being loaded and run by a processor to execute the in-vehicle question-and-answer method described in any one of Solutions 1 to 9.
[0069] Those skilled in the art can understand that, in one technical solution of the present application, the query information input by the user is obtained, and the query information is input into the large language question and answer database for retrieval to obtain a text reply corresponding to the query information; the text reply corresponding to the query information is matched with the image knowledge data, video knowledge data and vehicle control skill usage information in the large language question and answer database, and one of the images, videos and vehicle control instructions corresponding to the query information is generated according to the matching result. Among them, the large language question and answer database is obtained in the following manner: a vehicle knowledge base is constructed based on the user's vehicle information, and a large language question and answer database is generated based on the vehicle knowledge base through a trained large language model, the vehicle knowledge base includes text knowledge data, image knowledge data and video knowledge data, and the text knowledge data includes vehicle control skill usage information. Through the above implementation, any one of the image type reply, video type reply or vehicle control instruction type reply can be output based on the user's query information, thereby improving the user experience.
[0070] In another technical solution of the present application, the inquiry information can be classified to obtain the type of inquiry information, wherein the types of inquiry information include vehicle-related fields and general fields; when the type of inquiry information is vehicle-related, a reply corresponding to the inquiry information is generated based on the preset FAQ system / KBQA system; when the type of inquiry information is general, the inquiry information is input into the large language model, and a voice reply to the inquiry information is generated based on a general interface called by the lang chain framework of the large language model. Such a setting can reply to user queries in vehicle-related fields through the preset FAQ system / KBQA system to ensure the accuracy and stability of high-frequency questions; when the type of user query is general, the corresponding voice reply is generated based on the general interface called by the lang chain framework of the large language model, which can reduce the investment cost of general field question and answer, and also make the question and answer system have comprehensive general capabilities. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] The disclosure of the present application will become more easily understood with reference to the accompanying drawings. It is easy for those skilled in the art to understand that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present application. In addition, similar numbers in the drawings are used to represent similar components, among which:
[0072] Figure 1 is a flowchart of the main steps of the in-vehicle question-and-answer method according to an embodiment of the present application;
[0073] Figure 2 It is a detailed flow chart of steps for generating corresponding pictures, videos or vehicle control instructions based on a large language model according to an embodiment of the present application;
[0074] Figure 3 is a flowchart of the main steps of training a large language model according to an embodiment of the present application;
[0075] Figure 4 is a flowchart of detailed steps for training a large language model according to an embodiment of the present application;
[0076] Figure 5 is an overall schematic diagram of a BERT classification model according to an embodiment of the present application;
[0077] Figure 6 It is a flowchart of the main steps of generating a reply corresponding to a user query based on a preset FAQ system according to an embodiment of the present application;
[0078] Figure 7 This is a schematic diagram of the main steps of constructing a knowledge graph by a preset KBQA system according to an embodiment of the present application;
[0079] Figure 8 It is a flowchart of the main steps of generating a reply corresponding to the query information based on a preset KBQA system according to an embodiment of the present application;
[0080] Fig. 9 is a flowchart of the main steps of the in-vehicle question-answering method according to another embodiment of the present application;
[0081] Fig.10 It is a main structural diagram of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION
[0082] Some embodiments of the present application are described below with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present application and are not intended to limit the protection scope of the present application.
[0083] In the description of the present application, "module" and "processor" may include hardware, software or a combination of the two. A module may include hardware circuits, various suitable sensors, communication ports, memory, and may also include software parts, such as program code, or a combination of software and hardware. The processor may be a central processing unit, a microprocessor, an image processor, a digital signal processor or any other suitable processor. The processor has data and / or signal processing functions. The processor may be implemented in software, hardware or a combination of the two. Non-temporary computer-readable storage media include any suitable medium that can store program code, such as a disk, a hard disk, an optical disk, a flash memory, a read-only memory, a random access memory, etc. The term "A and / or B" means all possible combinations of A and B, such as only A, only B or A and B. The term "at least one A or B" or "at least one of A and B" has a similar meaning to "A and / or B" and may include only A, only B or A and B. The singular terms "one" and "the" may also include plural forms.
[0084] As described in the background technology section, in order to address the problem that existing in-vehicle question-and-answer methods cannot generate picture, video or control command responses based on user input, thereby affecting the user's experience, the present application provides an in-vehicle question-and-answer method.
[0085] See attached Figure 1 , Figure 1 1 is a flow chart of the main steps of the vehicle-mounted question-answering method according to an embodiment of the present application, wherein the vehicle-mounted question-answering method can be executed by the vehicle, can also be executed by the server, or can also be executed by the server and the vehicle together. Figure 1 As shown, the vehicle-mounted question-answering method of the present application includes the following steps:
[0086] Step S101: obtaining inquiry information input by a user, and inputting the inquiry information into a large language question-and-answer database for retrieval to obtain a text reply corresponding to the inquiry information.
[0087] First, the large language question and answer database is explained.
[0088] In an embodiment of the present application, a large language question-answer database can be obtained in the following manner:
[0089] A vehicle knowledge base is constructed based on the user's vehicle information, and a large language question and answer library is generated based on the vehicle knowledge base through a trained large language model. The vehicle knowledge base includes text knowledge data, image knowledge data, and video knowledge data. The text knowledge data includes usage information of vehicle control skills.
[0090] Large Language Model (LLM) is a deep learning model trained on massive text data, designed to understand and generate human language. They are trained on large-scale text corpora and contain billions or even more parameters, so that they can perform a wide range of tasks, such as text summarization, translation, sentiment analysis, question and answer, dialogue, etc. In this application, generating a large language question and answer library based on a vehicle knowledge base through a trained large language model can mainly include: generating commonly used query information (i.e., user-asked questions) based on a vehicle knowledge base through a trained large language model; after completing the generation of commonly used query information, performing knowledge enhancement optimization on the vehicle knowledge base and the generated commonly used query information through a trained large language model, thereby generating multiple optional answers for commonly used query information and optimizing relatively simple query information in the vehicle knowledge base.
[0091] For example, the detailed flow chart of the steps for generating corresponding pictures, videos or vehicle control instructions based on the large language model in this application is as follows: Figure 2 Specifically, the vehicle information may include vehicle FAQ (frequently-asked questions) operation platform QA (Question-Answer) pair resources, vehicle knowledge base QA pair resources, and vehicle knowledge base knowledge point resources, etc., so that the vehicle knowledge base can be constructed based on the vehicle FAQ operation platform QA pair resources, vehicle knowledge base QA pair resources, and vehicle knowledge base knowledge point resources; further, the vehicle knowledge base knowledge point resources may also include user manuals, vehicle machine version information, and vehicle model version information, etc.
[0092] The type settings included in the vehicle information described above are only for illustrative purposes and can be selected according to actual needs in actual applications.
[0093] The following describes a method for obtaining a text reply corresponding to the inquiry information.
[0094] After obtaining the query information input by the user, the query information is classified and pre-processed, and the classified query information and the pre-processed query information are input into the large language question and answer database. Further, the query information is input into the large language question and answer database for retrieval to obtain the text reply corresponding to the query information, which mainly includes the following steps:
[0095] Step S1011: input the query information into the large language model for retrieval to recall multiple blocks of knowledge corresponding to the query information.
[0096] Specifically, there are two main ways of recall in this application. One is QQ recall (Query-Question Matching), which matches the query information with the existing questions in the large language question-answering database to find the most relevant existing answers; the other is QD recall (Query-Document Matching), which matches the query information with the documents in the large language question-answering database to find documents related to the query information. The query information can be represented by Query.
[0097] Step S1012: performing a reverse search on the pre-processed query information based on multiple block knowledge, and after completing the reverse search, performing multi-way fusion on the search results to obtain multiple knowledge texts after multi-way fusion.
[0098] Specifically, Blocking is a technology for dealing with sequence problems. Its core idea is to divide the sequence into several segments (blocks), and then manage and query these blocks. The advantage of this method is that when the interval to be processed or queried contains a block, the information of the block can be maintained within a very small time complexity; for the interval that does not contain the block, it is directly updated by force. Inverted Indexing is a common technology in information retrieval. Unlike traditional forward indexing, inverted indexing is not based on documents, but on words or phrases in documents. In this way, when querying a keyword, the system can directly locate the document containing the keyword, greatly improving the retrieval efficiency. When performing inverted retrieval, the present application first performs word segmentation on the pre-processed query information, thereby decomposing it into independent words or phrases; establishes a vocabulary list, that is, collects all words or phrases appearing in the query information to form a vocabulary list; constructs an inverted index, that is, creates a list for each word or phrase in the query information, which includes all document IDs containing the word or phrase in multiple block knowledge and the position information of the word or phrase in the query information (such as the starting position, the ending position, etc.).
[0099] Step S1013: reorder the multiple knowledge texts obtained by multi-way fusion to obtain multiple rearranged knowledge.
[0100] Specifically, the Rerank model can be used to re-rank multiple knowledge texts obtained by multi-way fusion. The Rerank model re-ranks multiple knowledge texts obtained by multi-way fusion to improve their semantic match with the query information, thereby optimizing the ranking results. The core of this model is to evaluate the degree of correlation between the query information and each knowledge text obtained by multi-way fusion, and to sort them based on this correlation, so that the knowledge texts that are more relevant to the query information are ranked higher.
[0101] Step S1014: The large language model performs reading comprehension based on the query information and the plurality of rearranged knowledge to obtain a text response corresponding to the query information.
[0102] Specifically, the reading comprehension ability of a large language model refers to the model's ability to understand and analyze the content of a text, extract key information from it, and answer relevant questions or make inferences and judgments based on it. In terms of reading comprehension, large language models are usually trained based on deep learning and large-scale corpora. By learning a large amount of text data, they gradually master the structure and rules of the language, so that they can parse and understand new texts. When performing a reading comprehension task, a large language model receives a piece of text and one or more questions. The model then parses the text and extracts key information from it, such as entities, events, relationships, etc. Next, the model searches for information related to the question in the text according to the requirements of the question, makes inferences and judgments, and finally generates one or more answers.
[0103] For example, the detailed flow chart of the steps for generating corresponding pictures, videos or vehicle control instructions based on the large language model in this application is as follows: Figure 2 As shown. Specifically, the query information can be classified into types related to the model / platform / version and types unrelated to the model / platform / version; the types related to the model / platform / version can be further divided into vehicle use-fault type, vehicle use-software inquiry type and vehicle use-hardware inquiry type; and the types unrelated to the model / platform / version can be further divided into vehicle brand-related-product and community operation type, vehicle brand-related-personnel organization type, vehicle brand-related-car enterprise competitor product opinion type and vehicle brand-related-voice assistant boutique type, etc. At the same time, pre-processing the query information may include rewriting low-quality query information and replacing the vocabulary of part of the query information. Furthermore, the Rerank model in this application may be a bge-reranker model. The bge-reranker model is one of the series of models released by BAAI (Beijing Academy of Artificial Intelligence, Beijing Zhiyuan Artificial Intelligence Research Institute), including Embedding, Rerank series models, etc.; the bge-reranker model is open source on HuggingFace, and there are two versions of the model: base and large.
[0104] The query information classification method, query information pre-processing method, and Rerank model type setting described above are only for illustrative purposes and can be selected according to actual needs in actual applications.
[0105] Step S102: Match the text reply corresponding to the inquiry information with the image knowledge data, video knowledge data and vehicle control skill usage information in the large language question and answer database, and generate one of the images, videos and vehicle control instructions corresponding to the inquiry information according to the matching result.
[0106] Specifically, the existing in-vehicle question-and-answer method can only respond to the user's inquiry information in the form of voice or text, while the in-vehicle question-and-answer method in the present application can, on the basis of voice response to inquiry information, add one of the following: picture response, video response and vehicle control command response, thereby improving the user experience.
[0107] Based on the above steps S101 to S102, the present application obtains the inquiry information input by the user, and inputs the inquiry information into the large language question and answer database for retrieval to obtain the text reply corresponding to the inquiry information; matches the text reply corresponding to the inquiry information with the image knowledge data, video knowledge data and the usage information of the vehicle control skills, and generates one of the images, videos and vehicle control instructions corresponding to the inquiry information according to the matching results. Such a setting can output any one of the image type reply, video type reply or vehicle control instruction type reply based on the inquiry information, which improves the user experience.
[0108] In some embodiments, when a large language question and answer database is generated based on a vehicle knowledge base through a trained large language model, the vehicle knowledge base can be sequentially cleaned and knowledge structured, wherein the knowledge structured includes matching text knowledge data with image knowledge data or video knowledge data to obtain matching text for the image knowledge data and matching text for the video knowledge data.
[0109] Specifically, data cleaning is a key step in data preprocessing, and formatted data cleaning is a part of it. The purpose of formatted data cleaning is to ensure that the data format in the data set is unified and correct, so as to facilitate subsequent data processing and analysis. Formatted data cleaning usually involves three aspects: time and date formatting, numerical formatting, and text formatting; at the same time, when performing formatted data cleaning, it is also necessary to pay attention to retaining the information of the original data to avoid data distortion or loss due to the cleaning process. Furthermore, knowledge structuring includes segmenting text knowledge data, thereby matching the segmented text knowledge data with image knowledge data or video knowledge data to obtain matching text of image knowledge data and matching text of video knowledge data.
[0110] In some embodiments, matching a text reply corresponding to the user's query information with the picture knowledge data, the video knowledge data, and the usage information of the vehicle control skill, and generating one of the picture, the video, and the vehicle control instruction corresponding to the query information according to the matching result includes the following steps:
[0111] Step S201: Perform correlation matching on the text reply corresponding to the inquiry information, the matching text of the picture knowledge data, the matching text of the video knowledge data, and the usage information of the vehicle control skills to obtain a first correlation matching result, a second correlation matching result, and a third correlation matching result, respectively.
[0112] Step S202: Compare the first correlation matching result, the second correlation matching result and the third correlation matching result with the corresponding correlation preset thresholds respectively, and generate one of the pictures, videos and vehicle control instructions corresponding to the query information based on the comparison results.
[0113] Specifically, the text reply corresponding to the user's inquiry information is relevance matched with the matching text of the picture knowledge data to obtain a first relevance matching result; the text reply corresponding to the inquiry information is relevance matched with the matching text of the video knowledge data to obtain a second relevance matching result; the text reply corresponding to the inquiry information is relevance matched with the usage information of the vehicle control skill to obtain a third relevance matching result. The first relevance matching result is compared with the preset threshold of picture relevance, the second relevance matching result is compared with the preset threshold of video relevance, and the third relevance matching result is compared with the preset threshold of instruction relevance. If the first relevance matching result is greater than or equal to the preset threshold of picture relevance, a picture corresponding to the inquiry information is generated; or, if the second relevance matching result is greater than or equal to the preset threshold of video relevance, a video corresponding to the inquiry information is generated; or, if the third relevance matching result is greater than or equal to the preset threshold of instruction relevance, a vehicle control instruction corresponding to the inquiry information is generated.
[0114] In some embodiments, after generating one of a picture, a video, and a vehicle control instruction corresponding to the user's query information according to the matching result, the method further includes the following steps:
[0115] Step S301: When a vehicle control instruction corresponding to the user's query information is generated, the vehicle control instruction corresponding to the user query is sent to the user for confirmation.
[0116] Step S302: After receiving the user's confirmation feedback, the vehicle is controlled to execute the vehicle control instruction corresponding to the inquiry information.
[0117] Specifically, when generating a vehicle control instruction corresponding to the inquiry information, the vehicle control instruction needs to be executed after obtaining the user's confirmation, which can ensure the security of the instruction execution and further enhance the user experience.
[0118] In some embodiments, the textual knowledge data further includes a user manual, and the method further includes the following steps:
[0119] Step S401: Determine whether the user manual contains the user's inquiry information.
[0120] Step S402: When the user manual contains query information, a corresponding user manual page jump button is generated to jump the user manual to a page containing the query information.
[0121] Specifically, when the user manual involves the user's inquiry information, the user manual will jump to the page containing the inquiry information, so that the user can check it carefully; at this time, it has nothing to do with which response method is generated, but only with the content of the inquiry information.
[0122] See attached Figure 3 , Figure 3 1 is a flow chart of the main steps of training a large language model according to an embodiment of the present application. In some embodiments, the large language model can be trained based on the following steps:
[0123] Step S501: Obtain a training data set, and train a large language model to be trained based on the training data set to obtain a first pre-trained model.
[0124] Step S502: fine-tune the instructions of the first pre-trained model based on the prompt template library to obtain a second pre-trained model.
[0125] Step S503: Perform reinforcement learning on the first pre-trained model based on the reward model and the prompt template library to obtain a first language model.
[0126] Step S504: Perform an internal test based on the first large language model, collect internal test user data during the internal test, and perform supervised fine-tuning / reinforcement learning on the first large language model based on the internal test user data to obtain a second large language model. The second large language model is the large language model to be used when generating a large language question and answer database in the aforementioned method embodiment.
[0127] Specifically, the prompt template refers to the input text or query given to the large language model, which is used to guide the model to generate the expected output or response. Therefore, using the prompt template library to fine-tune the instructions of the first pre-trained model has two main manifestations: one is that the model output can be optimized, that is, the generation of the model can be fine-tuned by using different prompt templates to meet specific needs; the second is that the conversation style can be changed, that is, the prompt template library usually contains a variety of styles of conversation templates, such as formal, informal, friendly, serious, etc. These templates can be selected and adjusted as needed. By modifying the language and expression in the template, the conversation style of the model can be changed to meet different needs. The prompt template library in this application can be constructed and updated by collecting internal test user data during internal testing; at the same time, the prompt template library will also guide or influence the input and feedback of internal test users.
[0128] Furthermore, RLHF is performed on the first pre-trained model based on the reward model and the prompt template library to obtain the first large language model. RLHF (Reinforcement Learning from Human Feedback) mainly consists of three stages. First, it starts with a pre-trained large language model; second, a reward model needs to be created for reinforcement learning. In order to train the reward model, a dataset of texts generated by the large language model marked as quality must be created; then, the evaluators are asked to rank the generated texts from best to worst to train the reward model to predict the score of the large language model text. The last step is to create a reinforcement learning loop, that is, the large language model takes several prompts from the training dataset and generates text; then the output of the large language model is passed to the reward model, which provides a score to evaluate its consistency with human preferences; based on the evaluation, the large language model is updated to create an output that scores higher in the reward model.
[0129] Furthermore, in the internal test, internal test user data is collected and SFT / RLHF is performed on the first large language model based on the internal test user data to obtain a large language model. SFT (Supervised Fine-tuning) is a method of training a model that involves fine-tuning the parameters of a pre-trained model using a labeled dataset; this process usually occurs after the model has been trained on a large amount of data through unsupervised learning (such as pre-training).
[0130] For example, the detailed flow chart of the steps for training the large language model of the present application can be as follows: Figure 4 As shown. Figure 4In the process, an online public text dataset, a vehicle internal dataset, and data captured from vehicle usage scenarios are obtained, wherein the vehicle internal dataset includes user manuals and exclusive service groups, and the data captured from vehicle usage scenarios include vehicle usage knowledge and road knowledge, etc.; the obtained online public text dataset, vehicle internal dataset, and data captured from vehicle usage scenarios are screened and labeled to generate a training dataset. A large language model is selected from a set of open source models that have undergone large-scale Chinese pre-training, and then a pre-trained model base is determined; the pre-trained model base is trained based on the training dataset to obtain a first pre-trained model. Alternatively, a corresponding code dataset may be obtained, such as a Github code dataset, so that the pre-trained model base is trained based on the training dataset and the corresponding code dataset to obtain a first pre-trained model. Alternatively, the pre-trained model base may be directly used as the first pre-trained model, thereby eliminating the pre-training process of the pre-trained model base. Furthermore, the large language model may specifically be a GPT model, that is, Figure 4 nomiGPT in .
[0131] The above-mentioned setting method of the training data set, the acquisition method of the first pre-training model, and the type setting of the large language model are only for exemplary descriptions. In actual applications, they can be selected according to actual needs.
[0132] In some embodiments, after obtaining the query information input by the user, the method further includes the following steps:
[0133] Step S601: classify the user's inquiry information to obtain the type of inquiry information, wherein the type of inquiry information includes vehicle-related fields and general fields.
[0134] Step S602: When the type of inquiry information is vehicle-related, a reply corresponding to the inquiry information is generated based on a preset FAQ system / KBQA system.
[0135] In some embodiments, when the preset FAQ system / KBQA system does not generate a response corresponding to the query information, the query information is input into a large language question and answer database for retrieval to generate one of a picture, a video, and a vehicle control instruction corresponding to the query information.
[0136] Step S603: When the type of the inquiry information is a general field, the inquiry information is input into the large language model to generate a voice response to the inquiry information based on a general interface called by the lang chain framework of the large language model.
[0137] Specifically, the inquiry information is classified to divide the inquiry information into vehicle-related fields and general fields; when the type of inquiry information is vehicle-related, the preset FAQ system or the preset KBQA system (Knowledge Base Question Answering, that is, a question and answer system based on a knowledge graph) is preferentially used for replying to ensure the accuracy and stability of high-frequency questions; if the preset FAQ system / KBQA system does not contain the answer to the current inquiry information, the inquiry information is input into the large language question and answer library for retrieval, that is, the user query is replied with one of pictures, videos and vehicle control instructions based on the trained large language model; when the type of inquiry information is general, the inquiry information is directly input into the trained large language model to call various general interfaces for voice reply through the lang chain idea of the large language model, or voice reply can be directly based on the large language model.
[0138] For example, when classifying inquiry information, a text classification model based on BERT can be used for classification, wherein the reference structure of the BERT (Bidirectional Encoder Representations from Transformers) model can be as follows: Figure 5 As shown. The BERT model converts each word in the text into a one-dimensional vector by querying the word vector table as the model input; the model output is the vector representation after integrating the semantic information of the whole text corresponding to the input words. And for the text classification task, the BERT model inserts a [CLS] symbol before the text, and uses the output vector corresponding to the symbol as the semantic representation of the entire text for text classification. In the present application, the classification labels can be divided according to the hierarchy. For example, the classification labels can include primary classification and secondary classification. The classification based on the example sentences of the query information can be shown in Table 1, so that when the primary classification of the query information is any one of vehicle use, vehicle brand related and TASK, the type of the query information is set to the vehicle-related field; when the primary classification of the query information is any one of nonsense, encyclopedia, small skills and small chat, the type of the query information is set to the general field.
[0139] Table 1
[0140] The above-mentioned settings of the classification model and the classification method are only for illustrative purposes and can be selected according to actual needs in actual applications.
[0141] In some embodiments, after obtaining the query information input by the user and before classifying the query information, the method further includes the following steps:
[0142] Step S701: Match the query information input by the user with the query information in the manual question and answer library. If the match is successful, output the corresponding answer in the manual question and answer library.
[0143] Step S702: If the match is unsuccessful, determine whether it is necessary to reply to the inquiry information input by the user. If it is necessary to reply to the inquiry information input by the user, classify the inquiry information input by the user.
[0144] Specifically, the manual question-and-answer database is constructed manually. After obtaining the query information input by the user, the query information input by the user is first preprocessed simply, which includes cleaning punctuation, uppercase and lowercase, spaces, and simple query information error correction; cleaning ending words and modal particles, such as: yeah, wow, etc.; replacing keywords and synonyms with standard expressions, such as replacing wiper water with glass water, replacing roof lights with reading lights, etc.; cleaning beginning words, such as: ask, hinomi, etc. After completing the simple preprocessing of the query information input by the user, the query information input by the user is matched with the query information in the manual question-and-answer database to determine whether the manual question-and-answer database contains the corresponding answer to the query information input by the user.
[0145] If the query information entered by the user does not match the query information string in the manual question-and-answer database, it means that the manual question-and-answer database does not contain the corresponding answer to the query information entered by the user. At this time, it is necessary to determine whether it is necessary to reply to the query information entered by the user. If the query information entered by the user is immoral or illegal, controversial or politically sensitive, or affects the development and reputation of the vehicle brand, then choose not to reply to the query information entered by the user, and then end the current question-and-answer session; otherwise, it is necessary to reply to the query information entered by the user, and then continue to classify the query information entered by the user.
[0146] In some embodiments, the preset FAQ system includes FAQ question-answer pairs, and the FAQ question-answer pairs are constructed by following steps S801 and / or S802:
[0147] Step S801: Obtain manually organized question and answer samples and construct FAQ question and answer pairs based on the manually organized question and answer samples and a text generation model.
[0148] Step S802: Obtain online question and answer samples and perform text clustering on the online question and answer samples to construct FAQ question and answer pairs.
[0149] Specifically, the main steps of generating a response corresponding to the query information input by the user based on the preset FAQ system can be shown in the attached figure. Figure 6 Obtain manually organized question and answer samples and construct FAQ question and answer pairs based on the manually organized question and answer samples and the text generation model, that is, Figure 6 Generate new business data in; obtain online question and answer samples and perform text clustering on online question and answer samples to construct FAQ question and answer pairs, that is, Figure 6 However, the FAQ question-answer pairs generated by these two methods are not fluent or have semantic changes, so they need to be manually checked to see if they match the corresponding topic before being added to the FAQ operation system. By constructing FAQ question-answer pairs through the above two methods, it is expected that each topic will obtain about 100 query information, greatly expanding the semantic coverage of the topic; and when there is a missed call problem online, the corresponding query information can be added to the corresponding topic of the FAQ operation system for quick repair.
[0150] The FAQ operation system is saved to the Mysql database, and the data in the Mysql database is synchronized to the ES search engine library and the Faiss vector retrieval library; after obtaining the query information input by the user, the query information can be pre-processed based on keywords, synonyms, etc.; after completing the FAQ preprocessing, text recall and vector recall are performed from the ES search engine library and the Faiss vector retrieval library respectively based on the recall module to obtain multiple recall results of the query information; the multiple recall results of the obtained query information are sorted to output the corresponding answers to the query information.
[0151] See attached Figure 7 , Figure 7 1 is a schematic diagram of the main steps of constructing a knowledge graph using a preset KBQA system according to an embodiment of the present application. Figure 7 As shown, in some embodiments, the construction of the knowledge graph of the preset KBQA system mainly includes: data integration based on a third-party database and structured data; knowledge extraction of semi-structured data and unstructured data, knowledge extraction including entity extraction, relationship extraction and attribute extraction; entity alignment, ontology construction and quality assessment of the structured data after data integration and the semi-structured data and unstructured data after knowledge extraction, and finally storing them in the knowledge base.
[0152] See attached Figure 8 , Figure 8 FIG. 1 is a flow chart of the main steps of generating a response corresponding to the query information input by the user based on the preset KBQA system according to an embodiment of the present application. Figure 8As shown, in some embodiments, generating a response corresponding to the query information based on a preset KBQA system includes: performing natural language understanding on the query information, wherein the natural language understanding includes type recognition, intent recognition, and entity extraction; performing entity linking on the query information that completes NLU based on edit distance, character inclusion, and alias table; performing intent correction on the query information after completing the entity linking, and after completing the intent correction, performing query reasoning in the knowledge base based on structured retrieval, NLU reasoning, and intent linking to obtain a response corresponding to the query information.
[0153] See attached Fig. 9 , Fig. 9 FIG. 1 is a flow chart of the main steps of the vehicle-mounted question-answering method according to another embodiment of the present application, wherein the vehicle-mounted question-answering method can be executed by the vehicle, can also be executed by the server, or can also be executed by the server and the vehicle together. Fig. 9 As shown, the vehicle-mounted question-answering method of the present application includes the following steps:
[0154] Step S901: Obtain inquiry information input by the user.
[0155] Step S902: Match the query information input by the user with the query information in the manual question and answer library. If the match is successful, output the corresponding answer in the manual question and answer library.
[0156] Step S903: If the match is unsuccessful, determine whether it is necessary to reply to the inquiry information input by the user. If it is necessary to reply to the inquiry information input by the user, classify the inquiry information input by the user.
[0157] Step S904: When the type of inquiry information input by the user is in the vehicle-related field, a reply corresponding to the inquiry information is generated based on the preset FAQ system / KBQA system.
[0158] Step S905: When the preset FAQ system / KBQA system does not generate a response corresponding to the query information input by the user, the query information is input into the trained large language model to generate a corresponding picture, video, and one of the vehicle control instructions. That is, a vehicle knowledge base is constructed based on the user's vehicle information, and a large language question and answer library is generated based on the vehicle knowledge base through the trained large language model; the query information is input into the large language question and answer library for retrieval to obtain a text reply corresponding to the query information; the text reply corresponding to the query information is matched with the picture knowledge data, video knowledge data, and the use information of the vehicle control skills, and one of the pictures, videos, and vehicle control instructions corresponding to the query information is generated according to the matching result.
[0159] Step S906: When the type of the inquiry information input by the user is a general field, a judgment is made on whether the security compliance of the inquiry information is met.
[0160] Step S907: If the security compliance of the query information input by the user is passed, the query information is input into the trained large language model to generate a voice response to the query information. That is, the lang chain idea of the large language model is used to call various general interfaces to make voice responses, or voice responses are made directly based on the large language model. If the security compliance of the user query is not passed, a fallback response or warning is generated.
[0161] Step S908: Determine whether the voice response to the inquiry information input by the user, generated by the large language model, is safe and compliant. If it is compliant, the generated voice response to the inquiry information is output; otherwise, a fallback response or warning is generated.
[0162] It should be noted that the query information involved in the embodiments of the present disclosure is data authorized by the user or fully authorized by all parties. The actions such as obtaining the query information involved in the embodiments of the present disclosure are all performed after being authorized by the user or the object or fully authorized by all parties.
[0163] It should be noted that, although the various steps are described in a specific order in the above embodiments, those skilled in the art can understand that, in order to achieve the effect of the present application, different steps do not have to be performed in such an order, and they can be performed simultaneously (in parallel) or in other orders, and these changes are within the scope of protection of the present application. At the same time, all the above-mentioned embodiments can be combined in any way to form optional embodiments of the present application, which will not be described one by one here.
[0164] Furthermore, the present application also provides a computer device.
[0165] See attached Fig.10 , Fig.10 1 is a schematic diagram of the main structure of a computer device according to an embodiment of the present application. Fig.10 As shown, the computer device in the embodiment of the present application mainly includes a storage device 11 and a processor 12. The storage device 11 can be configured to store a program for executing the vehicle-mounted question-and-answer method of the above method embodiment, and the processor 12 can be configured to execute the program in the storage device, which includes but is not limited to the program for executing the vehicle-mounted question-and-answer method of the above method embodiment. For ease of explanation, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application.
[0166] In the embodiment of the present application, the computer device may be a control device device including various electronic devices. In some possible implementations, the computer device may include multiple storage devices 11 and multiple processors 12. The program for executing the in-vehicle question and answer method of the above method embodiment may be divided into multiple subprograms, each of which may be loaded and run by a processor to execute different steps of the in-vehicle question and answer method of the above method embodiment. Specifically, each subprogram may be stored in different storage devices 11, respectively, and each processor 12 may be configured to execute programs in one or more storage devices 11 to jointly implement the in-vehicle question and answer method of the above method embodiment, that is, each processor 12 executes different steps of the in-vehicle question and answer method of the above method embodiment, respectively, to jointly implement the in-vehicle question and answer method of the above method embodiment.
[0167] The above-mentioned multiple processors 12 may be processors deployed on the same device. For example, the above-mentioned computer device may be a high-performance device composed of multiple processors, and the above-mentioned multiple processors 12 may be processors configured on the high-performance device. In addition, the above-mentioned multiple processors 12 may also be processors deployed on different devices. For example, the above-mentioned computer device may be a server cluster, and the above-mentioned multiple processors 12 may be processors on different servers in the server cluster.
[0168] Furthermore, the present application also provides a computer-readable storage medium. In a computer-readable storage medium embodiment according to the present application, the computer-readable storage medium can be configured to store a program for executing the in-vehicle question-and-answer method of the above-mentioned method embodiment, and the program can be loaded and run by the processor to implement the above-mentioned in-vehicle question-and-answer method. For ease of explanation, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application. The computer-readable storage medium can be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present application is a non-temporary computer-readable storage medium.
[0169] Further, it should be understood that since the setting of each module is only for illustrating the functional units of the device of the present application, the physical devices corresponding to these modules may be the processor itself, or a part of the software in the processor, a part of the hardware, or a part of the combination of software and hardware. Therefore, the number of each module in the figure is only schematic.
[0170] It is understood by those skilled in the art that each module in the device can be adaptively split or merged. Such splitting or merging of specific modules will not cause the technical solution to deviate from the principle of the present application, and therefore, the technical solutions after splitting or merging will fall within the protection scope of the present application.
[0171] The relevant user personal information that may be involved in the various embodiments of this application is strictly in accordance with the requirements of laws and regulations, following the principles of legality, legitimacy and necessity, based on the reasonable purposes of business scenarios, to process the personal information that users actively provide during the use of products / services or generated due to the use of products / services, as well as the personal information obtained with the user's authorization.
[0172] The user personal information processed by this application will vary depending on the specific product / service scenario, and shall be based on the specific scenario in which the user uses the product / service, and may involve the user's account information, device information, driving information, vehicle information or other related information. This application will treat the user's personal information and its processing with a high degree of diligence.
[0173] This application attaches great importance to the security of user personal information and has taken reasonable and feasible security protection measures that meet industry standards to protect user information and prevent personal information from being accessed, disclosed, used, modified, damaged or lost without authorization.
[0174] So far, the technical solutions of the present application have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments. Without departing from the principles of the present application, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present application.
Claims
1. A vehicle-mounted question-answering method, characterized in that: The method comprises the following steps: Obtaining inquiry information input by a user, and inputting the inquiry information into a large language question-answer database for retrieval to obtain a text reply corresponding to the inquiry information; Matching the text reply corresponding to the inquiry information with the picture knowledge data, the video knowledge data, and the usage information of the vehicle control skill in the large language question and answer database, and generating one of the picture, video, and vehicle control instruction corresponding to the inquiry information according to the matching result; The large language question-answer database is obtained in the following manner: A vehicle knowledge base is constructed based on the user's vehicle information, and a large language question and answer library is generated based on the vehicle knowledge base through a trained large language model. The vehicle knowledge base includes text knowledge data, image knowledge data, and video knowledge data, and the text knowledge data includes usage information of vehicle control skills.
2. The vehicle-mounted question-answering method according to claim 1, characterized in that: The generating of a large language question-answer database based on the vehicle knowledge base by using the trained large language model includes: The vehicle knowledge base is sequentially cleaned and knowledge structured, wherein the knowledge structured includes matching the text knowledge data with the image knowledge data or the video knowledge data to obtain matching text of the image knowledge data and matching text of the video knowledge data.
3. The vehicle-mounted question-answering method according to claim 2, characterized in that: The step of "matching the text reply corresponding to the inquiry information with the picture knowledge data, the video knowledge data and the usage information of the vehicle control skill in the large language question and answer library, and generating one of the picture, video and vehicle control instruction corresponding to the inquiry information according to the matching result" includes: Performing correlation matching on the text reply corresponding to the inquiry information with the matching text of the picture knowledge data, the matching text of the video knowledge data, and the usage information of the vehicle control skill in the large language question and answer database, so as to obtain a first correlation matching result, a second correlation matching result, and a third correlation matching result respectively; The first correlation matching result, the second correlation matching result and the third correlation matching result are respectively compared with corresponding correlation preset thresholds, and one of a picture, a video and a vehicle control instruction corresponding to the query information is generated based on the comparison results.
4. The vehicle-mounted question-answering method according to claim 1, characterized in that: After generating one of a picture, a video, and a vehicle control instruction corresponding to the query information according to the matching result, the method further includes: When the vehicle control instruction corresponding to the inquiry information is generated, the vehicle control instruction corresponding to the inquiry information is sent to the user for confirmation; After receiving the confirmation feedback from the user, the vehicle is controlled to execute the vehicle control instruction corresponding to the inquiry information.
5. The vehicle-mounted question-answering method according to claim 1, characterized in that: The text knowledge data also includes a user manual, and the method further includes: Determining whether the user manual contains the query information; When the user manual contains the query information, a corresponding user manual page jump button is generated to jump the user manual to a page containing the query information.
6. The vehicle-mounted question-answering method according to claim 1, characterized in that: The large language model is trained in the following way: Acquire a training data set, and train a large language model to be trained based on the training data set to obtain a first pre-trained model; Fine-tune the instructions of the first pre-trained model based on the prompt template library to obtain a second pre-trained model; Performing reinforcement learning on the first pre-trained model based on the reward model and the prompt template library to obtain a first language model; An internal test is performed based on the first largest language model, during which internal test user data is collected and supervised fine-tuning / reinforcement learning is performed on the first largest language model based on the internal test user data to obtain a second largest language model.
7. The vehicle-mounted question-answering method according to claim 1, characterized in that: The method further comprises: Classifying the inquiry information to obtain a type of the inquiry information, wherein the type of the inquiry information includes a vehicle-related field and a general field; When the type of the inquiry information is the vehicle-related field, generating a reply corresponding to the inquiry information based on a preset FAQ system / KBQA system; When the type of the inquiry information is the general field, the inquiry information is input into the large language model to generate a voice response to the inquiry information based on a general interface called by a lang chain framework of the large language model.
8. The vehicle-mounted question-answering method according to claim 7, characterized in that: The method further comprises: When the preset FAQ system / KBQA system does not generate the reply corresponding to the inquiry information, the inquiry information is input into the large language question and answer database for retrieval to generate one of the pictures, videos and vehicle control instructions corresponding to the inquiry information.
9. The vehicle-mounted question-answering method according to claim 7, characterized in that: The preset FAQ system includes FAQ question and answer pairs, and the FAQ questions and answers are constructed in the following manner: Obtaining manually organized question and answer samples and constructing the FAQ question and answer pairs based on the manually organized question and answer samples and a text generation model; And / or, obtaining online question and answer samples and performing text clustering on the online question and answer samples to construct the FAQ question and answer pairs.
10. A computer device comprising a processor and a storage device, wherein the storage device is suitable for storing a plurality of program codes, characterized in that: The program code is suitable for being loaded and run by the processor to execute the in-vehicle question-and-answer method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Question answering device and method for vehicles
CN107169105A
Automobile question-answer interaction system and interaction method based on artificial intelligence
CN110727776A
Knowledge question and answer method, device and equipment and storage medium
CN116561277A
Question answer recommendation method, storage medium and electronic equipment
CN116662522A
Image generation method and device, electronic equipment and storage medium
CN116843795A
Cited By
Intelligent system based on civil aviation large language model
CN118964529A
Question and answer method and system
CN119396954A
Control method and apparatus
WO2026148580A1
