# US 2025/0156632 A1 · System and Method for Proactively Reducing Hallucinations in Generative Artificial Intelligence (AI) Model Responses

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

- Number: US 2025/0156632 A1
- Document ID: US20250156632A1
- Status: Published application
- Kind: A1
- Application number: 18/508,470
- Filed: 2023-11-14
- Published: 2025-05-15
- Earliest claimed: 2023-11-14
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Prabhakaran Sethuraman; Srishty Saha
- Web page: https://patentgrep.com/patent/US20250156632A1

## CPC

- G06F 40/20: Natural language analysis (semantic analysis of natural language G06F40/30)
- G06F 40/30: Semantic analysis
- G06N 3/045: Combinations of networks
- G06N 3/0475: Generative networks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method, computer program product, and computing system for processing a prompt for a target generative AI model and a corresponding response generated by the target generative AI model for the prompt. The prompt and the corresponding response from the generative AI model are compared to a plurality of predefined verified prompt-response pairs. In response to determining at least a threshold similarity between the prompt and the corresponding response and a predefined verified prompt-response pair, the corresponding response from the target generative AI model is provided to a source of the prompt.

## Claims

### Claim 1

A computer-implemented method, executed on a computing device, comprising:
processing a prompt for a target generative AI model and a corresponding response generated by the target generative AI model for the prompt;
comparing the prompt and the corresponding response from the generative AI model to a plurality of predefined verified prompt-response pairs; and
in response to determining at least a threshold similarity between the prompt and the corresponding response and a predefined verified prompt-response pair, providing the corresponding response from the target generative AI model to a source of the prompt.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising:
in response to providing the corresponding response from the target generative AI model to the source of the prompt, processing feedback concerning the corresponding response;
comparing the prompt and the corresponding response from the generative AI model to the plurality of predefined verified prompt-response pairs; and
in response to determining at least a threshold similarity between the prompt and the corresponding response and a predefined verified prompt-response pair, applying the feedback to the target generative AI model.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, in response to determining at least the threshold similarity between the correspond response and the prompt and a predefined verified prompt-response pair from the plurality of predefined verified prompt-response pairs, preventing negative feedback from being applied to the target generative AI model.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein comparing the prompt and the corresponding response to the plurality of predefined verified prompt-response pairs includes:
generating embeddings representative of the prompt;
performing a vector similarity search for the prompt from the plurality of predefined verified prompt-response pairs using the embeddings representative of the prompt;
identifying a threshold number of most similar prompts from the plurality of predefined verified prompt-response pairs;
obtaining the corresponding responses for the threshold number of most similar prompts from the plurality of predefined verified prompt-response pairs;
generating embeddings representative of each corresponding response for the threshold number of most similar prompts; and
performing a vector similarity search for the corresponding responses from the plurality of predefined verified prompt-response pairs using the embeddings representative of the prompt.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, further comprising:
in response to determining less than at least the threshold similarity between the prompt and the corresponding response and any of the plurality of predefined verified prompt-response pairs, providing a default response from the target generative AI model.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, further comprising:
in response to determining less than at least the threshold similarity between the prompt and the corresponding response and any of the plurality of predefined verified prompt-response pairs, providing a most similar predefined verified response from the plurality of predefined verified prompt-response pairs.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, further comprising:
generating the plurality of predefined verified prompt-response pairs by:
extracting each paragraph of content from a verified document;
generating a prompt for each extracted paragraph; and
generating a corresponding response to each prompt by processing the prompt and a corresponding extracted paragraph.

### Claim 8

A computing system comprising:
a memory; and
a processor configured to process feedback concerning a response generated by a target generative AI model for a prompt, to compare the response from the generative AI model and the prompt to a plurality of predefined verified prompt-response pairs, and, in response to determining at least a threshold similarity between the response and the prompt and a predefined verified prompt-response pair from a plurality of predefined verified prompt-response pairs, to apply positive feedback to the target generative AI model.

### Claim 9 (depends on 8)

The computing system of claim 8, wherein the processor is further configured to:
in response to determining at least the threshold similarity between the response and the prompt and a predefined verified prompt-response pair from a plurality of predefined verified prompt-response pairs, preventing negative feedback from being applied to the generative AI model.

### Claim 10 (depends on 8)

The computing system of claim 8, wherein the processor is further configured to:
process the prompt for the target generative AI model and the response generated by the target generative AI model for the prompt;
compare the prompt and the response from the generative AI model to the plurality of predefined verified prompt-response pairs; and
in response to determining at least a threshold similarity between the prompt and the response and a predefined verified prompt-response pair, provide the response from the target generative AI model to a source of the prompt.

### Claim 11 (depends on 9)

The computing system of claim 9, in response to determining less than at least the threshold similarity between the prompt and the corresponding response and any of the plurality of predefined verified prompt-response pairs, providing a default response from the target generative AI model.

### Claim 12 (depends on 8)

The computing system of claim 8, wherein comparing the prompt and the response to the plurality of predefined verified prompt-response pairs includes:
generating embeddings representative of the prompt;
performing a vector similarity search for the prompt from the plurality of predefined verified prompt-response pairs using the embeddings representative of the prompt;
identifying a threshold number of most similar prompts from the plurality of predefined verified prompt-response pairs;
obtaining the corresponding responses for the threshold number of most similar prompts from the plurality of predefined verified prompt-response pairs;
generating embeddings representative of each corresponding response for the threshold number of most similar prompts; and
performing a vector similarity search for the corresponding responses from the plurality of predefined verified prompt-response pairs using the embeddings representative of the prompt.

### Claim 13 (depends on 8)

The computing system of claim 8, wherein the processor is further configured to:
in response to determining less than at least the threshold similarity between the prompt and the corresponding response and any of the plurality of predefined verified prompt-response pairs, preventing positive feedback from being applied to the generative AI model.

### Claim 14 (depends on 8)

The computing system of claim 8, wherein the processor is further configured to:
in response to determining less than at least the threshold similarity between the prompt and the corresponding response and any of the plurality of predefined verified prompt-response pairs, applying negative feedback to the target generative AI model.

### Claim 15

A computer program product residing on a non-transitory computer readable medium having a plurality of instructions stored thereon which, when executed by a processor, cause the processor to perform operations comprising:
processing a prompt for a target generative AI model and a corresponding response generated by the target generative AI model for the prompt;
comparing the prompt and the corresponding response from the generative AI model to a plurality of predefined verified prompt-response pairs;
in response to determining at least a threshold similarity between the prompt and the corresponding response and a predefined verified prompt-response pair, providing the corresponding response from the target generative AI model to a source of the prompt;
processing feedback concerning the corresponding response;
comparing the prompt and the corresponding response from the generative AI model to the plurality of predefined verified prompt-response pairs; and
in response to determining at least a threshold similarity between the prompt and the corresponding response and a predefined verified prompt-response pair, applying the feedback to the target generative AI model.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein comparing the prompt and the corresponding response to the plurality of predefined verified prompt-response pairs includes:
generating embeddings representative of the prompt;
performing a vector similarity search for the prompt from the plurality of predefined verified prompt-response pairs using the embeddings representative of the prompt;
identifying a threshold number of most similar prompts from the plurality of predefined verified prompt-response pairs;
obtaining the corresponding responses for the threshold number of most similar prompts from the plurality of predefined verified prompt-response pairs;
generating embeddings representative of each corresponding response for the threshold number of most similar prompts; and
performing a vector similarity search for the corresponding responses from the plurality of predefined verified prompt-response pairs using the embeddings representative of the prompt.

### Claim 17 (depends on 15)

The computer program product of claim 15, wherein the operations further comprise:
generating the plurality of predefined verified prompt-response pairs by:
extracting each paragraph of content from a verified document;
generating a prompt for each extracted paragraph; and
generating a corresponding response to each prompt by processing the prompt and a corresponding extracted paragraph.

### Claim 18 (depends on 15)

The computer program product of claim 15, wherein the operations further comprise:
in response to determining less than at least the threshold similarity between the prompt and the corresponding response and any of the plurality of predefined verified prompt-response pairs, providing a most similar predefined verified response from the plurality of predefined verified prompt-response pairs.

### Claim 19 (depends on 15)

The computer program product of claim 15, wherein processing the feedback includes determining that the feedback is one of positive and negative.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein the operations further comprise:
in response to determining less than at least the threshold similarity between the prompt and the corresponding response and any of the plurality of predefined verified prompt-response pairs:
marking positive feedback as a false positive; and
marking negative feedback as a false negative.
