# US 2025/0156453 A1 · Database systems and methods for automated conversational responses

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

- Number: US 2025/0156453 A1
- Document ID: US20250156453A1
- Status: Published application
- Kind: A1
- Application number: 18/505,988
- Filed: 2023-11-09
- Published: 2025-05-15
- Earliest claimed: 2023-11-09
- Assignees: Salesforce, Inc.
- Applicants: Salesforce, Inc.
- Inventors: John Conway
- Web page: https://patentgrep.com/patent/US20250156453A1

## CPC

- G06F 16/3329: Natural language query formulation
- G06F 16/338: Presentation of query results
- G06F 40/30: Semantic analysis
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Database systems and methods are provided for managing usage of large language models (LLMs). One method involves determining a numerical representation of a conversational input to a user interface, identifying a semantically similar subset of prior conversational inputs based at least in part on the numerical representation of the conversational input, and determining numerical representations of respective conversational responses generated by a language model responsive to the respective prior conversational input of the semantically similar subset. When the numerical representations of the respective conversational responses satisfy a semantic similarity threshold, the method automatically generates an automated response to the conversational input based at least in part on one or more prior conversational responses and automatically provides the automated response to the user interface responsive to the conversational input.

## Claims

### Claim 1

A method comprising:
determining a numerical representation of a conversational input to a user interface;
identifying, based at least in part on the numerical representation of the conversational input, a semantically similar subset of prior conversational inputs from a plurality of prior conversational inputs having associated conversational responses maintained at a database system, wherein a respective prior conversational input of the semantically similar subset has a respective conversational response generated by a language model responsive to the respective prior conversational input associated therewith, resulting an associated subset of prior conversational responses;
determining numerical representations of the respective conversational responses of the associated subset of prior conversational responses; and
when the numerical representations of the respective conversational responses satisfy a semantic similarity threshold:
automatically generating an automated response to the conversational input based at least in part on one or more prior conversational responses of the associated subset of prior conversational responses; and
automatically providing the automated response to the user interface responsive to the conversational input.

### Claim 2 (depends on 1)

The method of claim 1, further comprising removing personal identifying information from the conversational input prior to determining the numerical representation of the conversational input.

### Claim 3 (depends on 2)

The method of claim 2, further comprising supplementing the automated response with the personal identifying information prior to automatically providing the automated response to the user interface.

### Claim 4 (depends on 1)

The method of claim 1, wherein:
the language model comprises a large language model-based (LLM-based) service;
the semantically similar subset of prior conversational inputs comprises a subset of prior input prompts previously sent to the LLM-based service; and
the associated subset of prior conversational responses comprises conversational responses provided by the LLM-based service in response to receiving respective ones of the subset of prior input prompts.

### Claim 5 (depends on 1)

The method of claim 1, wherein identifying the semantically similar subset of prior conversational inputs comprises identifying a subset of prior input prompts previously sent to the language model having respective numerical representations within a threshold similarity of the numerical representation of the conversational input.

### Claim 6 (depends on 1)

The method of claim 1, wherein identifying the semantically similar subset of prior conversational inputs comprises identifying a cluster group of prior input prompts previously sent to the language model having respective numerical representations semantically similar to the numerical representation of the conversational input.

### Claim 7 (depends on 1)

The method of claim 1, further comprising filtering the semantically similar subset of prior conversational inputs based at least in part on contextual information associated with the conversational input prior to identifying the associated subset of prior conversational responses.

### Claim 8 (depends on 7)

The method of claim 7, wherein the contextual information includes at least one of an identifier associated with a user providing the conversational input and a database object type associated with the conversational input.

### Claim 9

At least one non-transitory machine-readable storage medium that provides instructions that, when executed by at least one processor, are configurable to cause the at least one processor to perform operations comprising:
determining a numerical representation of a conversational input to a user interface;
identifying, based at least in part on the numerical representation of the conversational input, a semantically similar subset of prior conversational inputs from a plurality of prior conversational inputs having associated conversational responses maintained at a database system, wherein a respective prior conversational input of the semantically similar subset has a respective conversational response generated by a language model responsive to the respective prior conversational input associated therewith, resulting an associated subset of prior conversational responses;
determining numerical representations of the respective conversational responses of the associated subset of prior conversational responses; and
when the numerical representations of the respective conversational responses satisfy a semantic similarity threshold:
automatically generating an automated response to the conversational input based at least in part on one or more prior conversational responses of the associated subset of prior conversational responses; and
automatically providing the automated response to the user interface responsive to the conversational input.

### Claim 10 (depends on 9)

The at least one non-transitory machine-readable storage medium of claim 9, wherein the instructions are configurable to cause the at least one processor to remove personal identifying information from the conversational input prior to determining the numerical representation of the conversational input.

### Claim 11 (depends on 10)

The at least one non-transitory machine-readable storage medium of claim 10, wherein the instructions are configurable to cause the at least one processor to supplement the automated response with the personal identifying information prior to automatically providing the automated response to the user interface.

### Claim 12 (depends on 9)

The at least one non-transitory machine-readable storage medium of claim 9, wherein:
the language model comprises a large language model-based (LLM-based) service;
the semantically similar subset of prior conversational inputs comprises a subset of prior input prompts previously sent to the LLM-based service; and
the associated subset of prior conversational responses comprises conversational responses provided by the LLM-based service in response to receiving respective ones of the subset of prior input prompts.

### Claim 13 (depends on 9)

The at least one non-transitory machine-readable storage medium of claim 9, wherein the semantically similar subset of prior conversational inputs comprises a subset of prior input prompts previously sent to the language model having respective numerical representations within a threshold similarity of the numerical representation of the conversational input.

### Claim 14 (depends on 9)

The at least one non-transitory machine-readable storage medium of claim 9, wherein the instructions are configurable to cause the at least one processor to identify a cluster group of prior input prompts previously sent to the language model having respective numerical representations semantically similar to the numerical representation of the conversational input.

### Claim 15 (depends on 9)

The at least one non-transitory machine-readable storage medium of claim 9, wherein the instructions are configurable to cause the at least one processor to filter the semantically similar subset of prior conversational inputs based at least in part on contextual information associated with the conversational input prior to identifying the associated subset of prior conversational responses.

### Claim 16 (depends on 15)

The at least one non-transitory machine-readable storage medium of claim 15, wherein the contextual information includes at least one of an identifier associated with a user providing the conversational input and a database object type associated with the conversational input.

### Claim 17

A computing system comprising:
at least one non-transitory machine-readable storage medium that stores software; and
at least one processor, coupled to the at least one non-transitory machine-readable storage medium, to execute the software that implements a large language model (LLM) management service and that is configurable to perform operations comprising:
determining a numerical representation of a conversational input to a user interface;
identifying, based at least in part on the numerical representation of the conversational input, a semantically similar subset of prior conversational inputs from a plurality of prior conversational inputs having associated conversational responses maintained at a database system, wherein a respective prior conversational input of the semantically similar subset has a respective conversational response generated by an LLM-based service responsive to the respective prior conversational input associated therewith, resulting an associated subset of prior conversational responses;
determining numerical representations of the respective conversational responses of the associated subset of prior conversational responses; and
when the numerical representations of the respective conversational responses satisfy a semantic similarity threshold:
automatically generating an automated response to the conversational input based at least in part on one or more prior conversational responses of the associated subset of prior conversational responses; and
automatically providing the automated response to the user interface responsive to the conversational input.

### Claim 18 (depends on 17)

The computing system of claim 17, wherein:
the semantically similar subset of prior conversational inputs comprises a subset of prior input prompts previously sent to the LLM-based service; and
the associated subset of prior conversational responses comprises conversational responses provided by the LLM-based service in response to receiving respective ones of the subset of prior input prompts.

### Claim 19 (depends on 18)

The computing system of claim 18, wherein the LLM management service is configurable to:
remove personal identifying information from the conversational input prior to determining the numerical representation of the conversational input; and
supplement the automated response with the personal identifying information prior to automatically providing the automated response to the user interface.

### Claim 20 (depends on 18)

The computing system of claim 18, wherein the LLM management service is configurable to filter the semantically similar subset of prior conversational inputs based at least in part on contextual information associated with the conversational input prior to identifying the conversational responses provided by the LLM-based service in response to receiving respective ones of a filtered semantically similar subset of prior conversational inputs.
