Dialogue systems using knowledge bases and language models for automotive systems and applications
Abstract
In various examples, systems and methods that use dialogue systems associated with various machine systems and applications are described. For instance, the systems and methods may receive text data representing speech, such as a question associated with a vehicle or other machine type. The systems and methods then use a retrieval system(s) to retrieve a question/answer pair(s) associated with the text data and/or contextual information associated with the text data. In some examples, the contextual information is associated with a knowledge base associated with or corresponding to the vehicle. The systems and methods then generate a prompt using the text data, the question/answer pair(s), and/or the contextual information. Additionally, the systems and methods determine, using a language model(s) and based at least on the prompt, an output associated with the text data.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 23 · Forward citations: 0.
Claims (22 — 3 Independent, 19 Dependent)
- Claim 1Independent Claim
A method comprising: receiving, using one or more microphones of a machine, audio data representative of a question associated with the machine; generating, based at least on the audio data, a first embedding representative of the question associated with the machine; determining, based at least on the first embedding and one or more second embeddings associated with one or more question-and-answer pairs, at least one or more scores indicating one or more similarities of the one or more question-and-answer pairs to the question; determining, based at least on the first embedding and one or more third embeddings associated with a manual corresponding to the machine, contextual information that includes one or more portions of the manual that are relevant to the question; generating prompt data for one or more language models that is representative of at least first text associated with the question, second text associated with the one or more question-and-answer pairs that are arranged based at least on the one or more scores, and third text associated with the contextual information; applying the prompt data to the one or more language models; generating, based at least on the one or more language models processing the prompt data, output data corresponding to a response associated with the question; and outputting, using one or more components of the machine, content associated with the response.
- Claim 2Depends on #1
The method of claim 1, wherein the one or more language models include at least one of a large language model (LLM), a generative language model, a generative pre-trained transformer model, or a generative transformer model.
- Claim 3Depends on #1
The method of claim 1, wherein the manual includes at least a portion of a knowledge base corresponding to the machine.
- Claim 4Depends on #3
The method of claim 3, wherein the one or more language models comprise one or more fixed language models, and the knowledge base comprises a live knowledge base.
- Claim 5Depends on #1
The method of claim 1, wherein the determining the at least the one or more scores indicating the one or more similarities of the one or more question-and-answer pairs to the question comprises: analyzing the first embedding with respect to the one or more second embeddings associated with the one or more question-and-answer pairs; determining, based at least on the analyzing, the one or more similarities between the first embedding and the one or more second embeddings; and determining the one or more scores based at least on the one or more similarities.
- Claim 6Depends on #1
The method of claim 1, wherein the prompt data is generated based at least on an order associated with the first text associated with the question, the second text associated with the one or more question-and-answer pairs, and the third text associated with the contextual information.
- Claim 7Depends on #1
The method of claim 1, wherein: the prompt data represents a prompt; a first portion of the prompt includes the third text associated with the contextual information; a second portion of the prompt includes the second text associated with the one or more question-and-answer pairs, the second portion of the prompt being after the first portion of the prompt; and a third portion of the prompt includes the first text associated with the question, the third portion of the prompt being after the second portion in the prompt.
- Claim 8Depends on #1
The method of claim 1, further comprising: prior to the generating the output data, determining, using the one or more language models and based at least on a second question associated with the machine, second output data associated with the second question, wherein the determining the response associated with the question is further based at least on the one or more language models processing the second output data.
- Claim 9Depends on #1
The method of claim 1, wherein: the question is associated with at least one of a component of the machine, a feature of the machine, or maintenance associated with the machine; and the response is representative of information associated with the at least one of the component of the machine, the feature of the machine, or the maintenance associated with the machine.
- Claim 10Depends on #1
The method of claim 1, further comprising: determining that at least a first score of the one or more scores is associated with a first question-and-answer pair of the one or more question-and-answer pairs, the first score indicating a first similarity between the question and the first question-and-answer pair; and determining that at least a second score of the one or more scores is associated with a second question-and-answer pair of the one or more question-and-answer pairs, the second score indicating a second similarity between the question and the second question-and-answer pair, wherein the prompt data represents the second question-and-answer pair followed by the first question-and-answer pair based at least on the first score and the second score.
- Claim 11Depends on #1
The method of claim 1, wherein the determining the contextual information comprises: analyzing the first embedding with respect to the one or more third embeddings associated with the manual; determining, based at least on the analyzing, that the first embedding is similar to the one or more third embeddings; and determining the one or more portions of the manual to include as part of the contextual information based at least on the first embedding being similar to the one or more third embeddings.
- Claim 12Independent Claim
A system comprising: one or more processors to: generate, based at least on audio data representative of a question associated with a machine, a first embedding representative of the question associated with the machine; determine, based at least on the first embedding and one or more second embeddings associated with one or more question-and-answer pairs, at least one or more scores indicating one or more similarities of the one or more question-and-answer pairs to the question; determine, based at least on the first embedding and one or more third embeddings associated with a manual corresponding to the machine, contextual information that includes one or more portions of the manual that are relevant to the question; generate prompt data for one or more language models, the prompt data representative of at least first text associated with the question, second text associated with the one or more question-and-answer pairs that are arranged based at least on the one or more scores, and third text associated with the contextual information; apply the prompt data to one or more language models; generate, based at least on the one or more language models processing the prompt data, output data representing a response associated with the question; and output, using one or more components of the machine, content associated with the response.
- Claim 13Depends on #12
The system of claim 12, wherein the manual corresponding to the machine includes one or more of: an operator manual associated with the machine; or one or more operator manuals associated with one or more other machines.
- Claim 14Depends on #12
The system of claim 12, wherein the contextual information is determined, at least, by: determining, based at least on analyzing the first embedding with respect to the one or more third embeddings, that at least a third embedding of the one or more third embeddings is similar to the first embedding; and determining that the third embedding is associated with a portion of the one or more portions of the manual, the portion of the manual corresponding to the contextual information.
- Claim 15Depends on #12
The system of claim 12, wherein: a first portion of a prompt represented by the prompt data includes the third text associated with the contextual information; a second portion of the prompt includes the second text associated with the one or more question-and-answer pairs; a third portion of the prompt includes the first text associated with the question; and the prompt is generated based at least on an order associated with the first portion, the second portion, and the third portion.
- Claim 16Depends on #12
The system of claim 12, wherein the one or more processors are further to: prior to the output data being generated, determine, using the one or more language models and based at least on a second question associated with the machine, second output data associated with the second question, wherein the output data is further generated based at least on the second output data.
- Claim 17Depends on #12
The system of claim 12, wherein: the question is associated with at least one of a component of the machine, a feature of the machine, or maintenance associated with the machine; and the response includes information associated with the at least one of the component of the machine, the feature of the machine, or the maintenance associated with the machine.
- Claim 18Depends on #12
The system of claim 12, wherein the system is comprised in at least one of: a control system for an autonomous or semi-autonomous machine; a perception system for an autonomous or semi-autonomous machine; a system for performing simulation operations; a system for performing digital twin operations; a system for performing real-time streaming; a system for generating or presenting virtual reality (VR) content; a system for generating or presenting augmented reality (AR) content; a system for generating or presenting mixed reality (MR) content; a system for performing light transport simulation; a system for performing collaborative content creation for 3D assets; a system for performing deep learning operations; a system implemented using an edge device; a system implemented using a robot; a system for performing conversational AI operations; a system for generating synthetic data; a system incorporating one or more virtual machines (VMs); a system implemented at least partially in a data center; or a system implemented at least partially using cloud computing resources.
- Claim 19Depends on #12
The system of claim 12, wherein the one or more processors are further to determine an order for arranging the one or more question-and-answer pairs based at least on the one or more scores.
- Claim 20Independent Claim
One or more processors comprising: processing circuitry to: generate, based at least on audio data representative of a question associated with a machine, a first embedding that represents the question associated with the machine; determine, based at least on the first embedding and one or more second embeddings associated with one or more question-and-answer pairs, at least one or more scores associated with indicating one or more similarities of one or more question-and-answer pairs to the question; determine, based at least on the first embedding and one or more third embeddings associated with a manual corresponding to the machine, contextual information that includes one or more portions of the manual that are relevant to the question; generate prompt data for one or more language models, the prompt data representative of at least first text associated with the question, second text associated with the one or more question-and-answer pairs that are arranged based at least on the one or more scores, and third text associated with the contextual information; apply the prompt data to one or more language models; generate, based at least on the one or more language models processing the prompt data, a response associated with the question; and output the response using one or more components of the machine.
- Claim 21Depends on #20
The processor of claim 20, wherein the one or more processors are comprised in at least one of: a control system for an autonomous or semi-autonomous machine; a perception system for an autonomous or semi-autonomous machine; a system for performing simulation operations; a system for performing digital twin operations; a system for performing real-time streaming; a system for generating or presenting virtual reality (VR) content; a system for generating or presenting augmented reality (AR) content; a system for generating or presenting mixed reality (MR) content; a system for performing light transport simulation; a system for performing collaborative content creation for 3D assets; a system for performing deep learning operations; a system implemented using an edge device; a system implemented using a robot; a system for performing conversational AI operations; a system for generating synthetic data; a system incorporating one or more virtual machines (VMs); a system implemented at least partially in a data center; or a system implemented at least partially using cloud computing resources.
- Claim 22Depends on #20
The one or more processors of claim 20, wherein: the question is associated with at least one of a component of the machine, a feature of the machine, or maintenance associated with the machine; and the response includes information associated with the at least one of the component of the machine, the feature of the machine, or the maintenance associated with the machine.
Technical Overview & Description
BACKGROUND Vehicles may be equipped with digital or conversational assistants that can perform various tasks, such as providing information to passengers upon request. For a conversational assistant to operate within a vehicle, the conversational assistant may be preloaded with a set of answers to a set of questions that are commonly asked by passengers. For example, the questions and answers may be determined using an original equipment manufacturer (OEM) manual associated with a model of the vehicle. For example, in anticipation of a driver or passenger(s) asking about a recommended tire pressure for the vehicle, the conversational assistant may be preloaded with question/answer pairs, i.e., specific answers that are mapped to questions. One example may be the question “ What tire pressure should I use for the front tires ” or “ What is the recommended tire pressure. ” In such an example, the conversational assistant may respond with a pre-mapped answer such as “ The recommended tire pressure is thirty-six pounds per square inch, ” where this answer is taken from the OEM manual and/or created using the OEM manual. However, since these conversational assistants are preloaded with specific question/answer pairs, various issues may arise. For a first example, a conversational assistant may be unable to correctly interpret a question being asked by a passenger and/or may provide an incorrect answer if the question from the passenger does not match closely enough to one of the preloaded questions. For instance, and using the example above, the conversational assistant may be unable to interpret a question asked by the passenger if the question is “ Do you need to keep the tires at a recommended tire pressure? ” since this question may not have been preloaded for the conversational assistant. Additionally, since these conversational assistants are preloaded with questions and answers associated with an OEM manual, vehicle manufacturers may be required to generate questi
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (23)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Lewis, et al.;
- “
- Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks,
- ”
- arXiv: 2005.11401, Apr. 12, 2021, 19 pgs.
- Liu, et al.;
- “
- Multi-Stage Prompting for Knowledgeable Dialogue Generation,
- ”
- arXiv: 2203.08745, Mar. 16, 2022, 21 pgs.