# US 2026/0093735 A1 · Computing confidence scores for large language model-based retrieval augmentation tools

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0093735 A1
- Document ID: US20260093735A1
- Status: Published application
- Kind: A1
- Application number: 18/901,107
- Filed: 2024-09-30
- Published: 2026-04-02
- Earliest claimed: 2024-09-30
- Assignees: GM Global Technology Operations LLC
- Applicants: GM Global Technology Operations LLC
- Inventors: Arun Adiththan; Ramesh Sethu; Prakash M. Peranandam; Azeem Sarwar; Howard J. Carver; Eshan Dixit; Mihir Gupte; Muhammad Tayyab
- Web page: https://patentgrep.com/patent/US20260093735A1

## CPC

- G06F 16/3344: {using natural language analysis}
- G06F 16/3347: {using vector based model}
- G06F 40/30: Semantic analysis
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system for computing confidence scores for large language model (LLM) based retrieval augmentation (RAG) tools includes a host device having a controller. The controller executing programmatic control logic including an algorithm for computing confidence scores for LLM based RAG tools (CLR application). The CLR application receives an input to the LLM from a user and engages an ensemble retriever. The ensemble retriever determines a similarity between the input and predetermined data in the one or more databases. The ensemble retriever generates an output and an output confidence score. The CLR application then causes a human validator to prioritize and review the output in accordance with the output confidence score, where the output is a command to one or more systems of the host device. The system progressively reduces computational resource utilization, progressively increases computational efficiency, and progressively reduces reliance on the human validator over time.

## Claims

### Claim 1

A system for computing confidence scores for large language model (LLM) based retrieval augmentation (RAG) tools, the system comprising:
a host device having a controller, the controller having a processor, a memory, and input/output (I/O) ports, the I/O ports in communication with a human-machine interface (HMI) and one or more databases, the processor executing programmatic control logic stored in the memory, the programmatic control logic including an algorithm for computing confidence scores for LLM based RAG tools (CLR application), the CLR application comprising:
a first control logic that receives an input to the LLM from a host device user;
a second control logic that engages an ensemble retriever, wherein the ensemble retriever that determines a similarity between the input and predetermined data in the one or more databases stored in the memory;
a third control logic that causes the ensemble retriever to generate an output and an output confidence score; and
a fourth control logic that causes a human validator to prioritize and review the output in accordance with the output confidence score, wherein the output is a command to one or more systems of the host device, and wherein the system progressively reduces computational resource utilization, progressively increases computational efficiency, and progressively reduces reliance on the human validator over time.

### Claim 2 (depends on 1)

The system of claim 1 wherein the first control logic further comprises:
control logic for receiving the input via the human-machine interface (HMI) of the host device.

### Claim 3 (depends on 1)

The system of claim 1 wherein the second control logic further comprises:
engaging a semantic tool that extracts semantic information from the input; and
wherein the semantic tool converts extracted semantic information from the input into a vector in vector space such that the vector defines a mathematical, graphical, vectorized representation of semantic information within the input.

### Claim 4 (depends on 3)

The system of claim 3, wherein the semantic tool further comprises:
control logic for accessing a text vector database stored in memory, wherein the text vector database contains a plurality of predefined semantic text vectors defining mathematical, graphical, vectorized representations of predefined semantic inputs that the host device is programmed to accept and respond to; and
control logic for comparing predefined semantic text vectors in the text vector database to vectorized extracted semantic information from the input.

### Claim 5 (depends on 4)

The system of claim 4, wherein the semantic tool further comprises:
control logic for using ranked fusion to calculate a semantic similarity score according to:
a retrieved context Ci1, a vector similarity score, Si, and eliminating context Ci when a similarity score of Ci is such that the vector similarity score Si is less than a threshold T;
fusing “high quality” contexts defined based on an importance score where importance weight is calculated based on a count of context, Ci, in different retrievers, CCi, a rank of a context, Ci, in different retrievers, RCi, and an importance score of a context, Ci, is given as, ICi=f(CCi, RCi); and
ranking context based on the importance score ICi according to:
Ret
_a
=
[
(
C_a1
,
S_a1
)
,
(
C_a2
,
S_a2
)
,
…
⁡
(
C
an
,
S
an
)
]
Ret
_b
=
[
(
C_b1
,
S_b1
)
,
(
C_b2
,
S_b2
)
,
…
⁡
(
C
bn
,
S
bn
)
]
Ret
_c
=
[
(
C_c1
,
S_c1
)
,
(
C_c2
,
S_c2
)
,
…
⁡
(
C
cn
,
S
cn
)
]
where, context {Cij}, j≥1 is ranked based on similarity score, i.e.: Si1>Si2 . . . >Sin, wherein “low quality” contexts have vector similarity scores Si less than the threshold T, while “high quality” contexts have importance scores ICi indicating that the input is closely related to or directly implicates critical host device functions.

### Claim 6 (depends on 5)

The system of claim 5, further comprising:
engaging a syntactic tool that extracts syntactic information from the input; and
wherein the syntactic tool converts extracted syntactic information from the input into an input raw text vector in vector space such that the vector defines a mathematical, graphical, vectorized representation of syntactic information within the input.

### Claim 7 (depends on 6)

The system of claim 6, further comprising:
control logic for accessing a raw text database stored in memory, wherein the raw text database contains a plurality of predefined raw text vectors defining mathematical, graphical, vectorized representations of predefined raw text inputs that the host device is programmed to accept and respond to; and
control logic for comparing predefined raw text vectors in the raw text database to vectorized extracted syntactic information from the input.

### Claim 8 (depends on 7)

The system of claim 7, further comprising:
control logic for calculating a syntactic similarity score according to a Jaccard index and a Levenshtein distance between the vectorized extracted syntactic information from the input and the plurality of predefined raw text vectors in the raw text database.

### Claim 9 (depends on 8)

The system of claim 8 further comprising:
control logic for computing the output confidence score using a normalized weighted sum of the semantic similarity score and the syntactic similarity score according to:
C
out
=
Z
⁡
(
w
i
*
Score
sem
+
w
j
*
Score
syn
)
where Z ( . . . ) is a normalization function, and Wi, Wj are weights, the semantic similarity score is: Scoresem=f(rank fusion score), and the syntactic similarity score is: Scoresyn=f(Jaccard Index, Levenshtein Distance, . . . ).

### Claim 10 (depends on 9)

The system of claim 9, wherein the third control logic further comprises:
control logic for assigning the output confidence score to the output, wherein the output commands one or more actuators of the host device to adjust performance of relevant host device systems;
control logic that causes the human validator to prioritize and review the output according to the output confidence score and a ranked context; and
causing the human validator to selectively update one or more of the text vector database and the raw text database with new data obtained from the input, the output, and the output confidence score, and
wherein the host device comprises a vehicle and output commands to the one or more actuators of the vehicle alter functionality of the vehicle in accordance with inputs received from the user.

### Claim 11

A method for computing confidence scores for large language model (LLM) based retrieval augmentation (RAG) tools, the method comprising:
executing, by a processor of a controller of a vehicle, programmatic control logic stored within memory of the controller, the controller further having input/output (I/O) ports in communication with a human-machine interface (HMI) of the vehicle, the programmatic control logic including an algorithm for computing confidence scores for LLM based RAG tools (CLR application), the CLR application comprising control logic for:
receiving an input to the LLM from a vehicle user via the HMI;
engaging an ensemble retriever, wherein the ensemble retriever that determines a similarity between the input and predetermined data in one or more databases stored in the memory;
causing the ensemble retriever to generate an output and an output confidence score; and
prioritizing and reviewing the output in accordance with the output confidence score, wherein the output is a command to one or more systems of the vehicle, and wherein the method progressively reduces computational resource utilization, progressively increases computational efficiency, and progressively reduces reliance on a human validator over time.

### Claim 12 (depends on 11)

The method of claim 11 further comprising:
engaging a semantic tool that extracts semantic information from the input; and
wherein the semantic tool converts extracted semantic information from the input into a vector in vector space such that the vector defines a mathematical, graphical, vectorized representation of semantic information within the input.

### Claim 13 (depends on 12)

The method of claim 12, further comprising:
accessing a text vector database stored in memory, wherein the text vector database contains a plurality of predefined semantic text vectors defining mathematical, graphical, vectorized representations of predefined semantic inputs that the vehicle is programmed to accept and respond to; and
comparing predefined semantic text vectors in the text vector database to vectorized extracted semantic information from the input.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
using ranked fusion to calculate a semantic similarity score according to:
a retrieved context Ci1, a vector similarity score, Si, and eliminating context Ci when a similarity score of Ci is such that the vector similarity score Si is less than a threshold T;
fusing “high quality” contexts defined based on an importance score where importance weight is calculated based on a count of context, Ci, in different retrievers, CCi, a rank of a context, Ci, in different retrievers, RCi, and an importance score of a context, Ci, is given as, ICi=f(CCi, RCi); and
ranking context based on the importance score ICi according to:
Ret
_a
=
[
(
C_a1
,
S_a1
)
,
(
C_a2
,
S_a2
)
,
…
⁡
(
C
an
,
S
an
)
]
Ret
_b
=
[
(
C_b1
,
S_b1
)
,
(
C_b2
,
S_b2
)
,
…
⁡
(
C
bn
,
S
bn
)
]
Ret
_c
=
[
(
C_c1
,
S_c1
)
,
(
C_c2
,
S_c2
)
,
…
⁡
(
C
cn
,
S
cn
)
]
where, context {Cij}, j≥1 is ranked based on similarity score, i.e.: Si1>Si2 . . . >Sin, wherein “low quality” contexts have vector similarity scores Si less than the threshold T, while “high quality” contexts have importance scores ICi indicating that the input is closely related to or directly implicates critical host device functions.

### Claim 15 (depends on 14)

The method of claim 14, further comprising:
engaging a syntactic tool that extracts syntactic information from the input; and
wherein the syntactic tool converts extracted syntactic information from the input into an input raw text vector in vector space such that the vector defines a mathematical, graphical, vectorized representation of syntactic information within the input.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
accessing a raw text database stored in memory, wherein the raw text database contains a plurality of predefined raw text vectors defining mathematical, graphical, vectorized representations of predefined raw text inputs that the vehicle is programmed to accept and respond to; and
comparing predefined raw text vectors in the raw text database to vectorized extracted syntactic information from the input.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
calculating a syntactic similarity score according to a Jaccard index and a Levenshtein distance between the vectorized extracted syntactic information from the input and the plurality of predefined raw text vectors in the raw text database.

### Claim 18 (depends on 17)

The method of claim 17 further comprising:
computing the output confidence score using a normalized weighted sum of the semantic similarity score and the syntactic similarity score according to:
C
out
=
Z
⁡
(
w
i
*
Score
sem
+
w
j
*
Score
syn
)
where Z ( . . . ) is a normalization function, and Wi, Wj are weights, the semantic similarity score is: Scoresem=f(rank fusion score), and the syntactic similarity score is: Scoresyn=f(Jaccard Index, Levenshtein Distance, . . . ).

### Claim 19 (depends on 18)

The method of claim 18, further comprising:
assigning the output confidence score to the output, wherein the output commands one or more actuators of the vehicle to adjust performance of relevant vehicle systems; and
prioritizing and reviewing, by the human validator, the output according to the output confidence score and a ranked context; and
selectively updating, by the human validator, one or more of the text vector database and the raw text database with new data obtained from the input, the output, and the output confidence score, and
wherein output commands to the one or more actuators of the vehicle alter functionality of the vehicle in accordance with inputs received from the user.

### Claim 20

A method for computing confidence scores for large language model (LLM) based retrieval augmentation (RAG) tools, the method comprising:
executing, by a processor of a controller of a vehicle, programmatic control logic stored within memory of the controller, the controller further having input/output (I/O) ports in communication with a human-machine interface (HMI) of the vehicle, the programmatic control logic including an algorithm for computing confidence scores for LLM based RAG tools (CLR application), the CLR application comprising control logic for:
receiving an input to the LLM from a vehicle user via the HMI;
engaging an ensemble retriever, wherein the ensemble retriever that determines a similarity between the input and predetermined data in one or more databases stored in the memory;
causing the ensemble retriever to generate an output and an output confidence score;
prioritizing and reviewing the output in accordance with the output confidence score, wherein the output is a command to one or more systems of the vehicle, and wherein the method progressively reduces computational resource utilization, progressively increases computational efficiency, and progressively reduces reliance on a human validator over time;
engaging a semantic tool that extracts semantic information from the input; and
wherein the semantic tool converts extracted semantic information from the input into a vector in vector space such that the vector defines a mathematical, graphical, vectorized representation of semantic information within the input;
accessing a text vector database stored in memory, wherein the text vector database contains a plurality of predefined semantic text vectors defining mathematical, graphical, vectorized representations of predefined semantic inputs that the vehicle is programmed to accept and respond to; and
comparing predefined semantic text vectors in the text vector database to vectorized extracted semantic information from the input;
using ranked fusion to calculate a semantic similarity score according to:
a retrieved context Ci1, a vector similarity score, Si, and eliminating context Ci when a similarity score of Ci is such that the vector similarity score Si is less than a threshold T;
fusing “high quality” contexts defined based on an importance score where importance weight is calculated based on a count of context, Ci, in different retrievers, CCi, a rank of a context, Ci, in different retrievers, RCi, and an importance score of a context, Ci, is given as, ICi=f(CCi, RCi); and
ranking context based on the importance score ICi according to:
Ret
_a
=
[
(
C_a1
,
S_a1
)
,
(
C_a2
,
S_a2
)
,
…
⁡
(
C
an
,
S
an
)
]
Ret
_b
=
[
(
C_b1
,
S_b1
)
,
(
C_b2
,
S_b2
)
,
…
⁡
(
C
bn
,
S
bn
)
]
Ret
_c
=
[
(
C_c1
,
S_c1
)
,
(
C_c2
,
S_c2
)
,
…
⁡
(
C
cn
,
S
cn
)
]
where, context {Cij}, j≥1 is ranked based on similarity score, i.e.: Si1>Si2 . . . >Sin, wherein “low quality” contexts have vector similarity scores Si less than the threshold T, while “high quality” contexts have importance scores ICi indicating that the input is closely related to or directly implicates critical host device functions;
engaging a syntactic tool that extracts syntactic information from the input; and
wherein the syntactic tool converts extracted syntactic information from the input into an input raw text vector in vector space such that the vector defines a mathematical, graphical, vectorized representation of syntactic information within the input;
accessing a raw text database stored in memory, wherein the raw text database contains a plurality of predefined raw text vectors defining mathematical, graphical, vectorized representations of predefined raw text inputs that the vehicle is programmed to accept and respond to; and
comparing predefined raw text vectors in the raw text database to vectorized extracted syntactic information from the input;
calculating a syntactic similarity score according to a Jaccard index and a Levenshtein distance between the vectorized extracted syntactic information from the input and the plurality of predefined raw text vectors in the raw text database;
computing the output confidence score using a normalized weighted sum of the semantic similarity score and the syntactic similarity score according to:
C
out
=
Z
⁡
(
w
i
*
Score
sem
+
w
j
*
Score
syn
)
where Z ( . . . ) is a normalization function, and Wi, Wj are weights, the semantic similarity score is: Scoresem=f(rank fusion score), and the syntactic similarity score is: Scoresyn=f(Jaccard Index, Levenshtein Distance, . . . );
assigning the output confidence score to the output, wherein the output commands one or more actuators of the vehicle to adjust performance of relevant vehicle systems; and
prioritizing and reviewing, by the human validator, the output according to the output confidence score and a ranked context; and
selectively updating, by the human validator, one or more of the text vector database and the raw text database with new data obtained from the input, the output, and the output confidence score, and
wherein output commands to the one or more actuators of the vehicle alter functionality of the vehicle in accordance with inputs received from the user.
