# US 2025/0147887 A1 · Multi-tiered cache system

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

- Number: US 2025/0147887 A1
- Document ID: US20250147887A1
- Status: Published application
- Kind: A1
- Application number: 19/012,401
- Filed: 2025-01-07
- Published: 2025-05-08
- Earliest claimed: 2023-08-14
- Assignees: Paypal, Inc.
- Applicants: Paypal, Inc.
- Inventors: Sharmili Srinivasan; Pranav Ashok Dhakras; Soujanya Lanka; Guangsen Wang; Reyha Verma
- Web page: https://patentgrep.com/patent/US20250147887A1

## CPC

- G06F 12/0811: with multilevel cache hierarchies
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06F 16/243: {Natural language query formulation}
- G06F 16/24534: {Query rewriting; Transformation}
- G06F 16/24539: {using cached or materialised query results}
- G06F 16/33295: {in dialogue systems}
- G06F 16/3344: {using natural language analysis}
- G06F 16/90332: {Natural language query formulation or dialogue systems}
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/045: Combinations of networks
- G06N 3/08: Learning methods
- G06N 20/00: Machine learning
- H04L 51/02: using automatic reactions or user delegation, e.g. automatic replies or chatbot-generated messages
- G06F 12/0864: using pseudo-associative means, e.g. set-associative or hashing
- G06F 12/0897: with two or more cache hierarchy levels (with multilevel cache hierarchies G06F12/0811)
- G06F 2212/465: Structured object, e.g. database record
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Methods and systems are presented for providing multi-tiered cache system that works with an artificial intelligence (AI)-based conversation system for facilitating a conversation with users and processing transactions for the users. The multi-tiered cache system includes multiple tiers of cache modules that use different structures for caching and/or querying data. As a new utterance is received, the cache system uses each of the cache modules in sequence to determine whether a cache hit occurs. If a cache miss occurs at a first cache module, the cache system determines if a cache hit occurs at a second cache module. When a response is obtained from one of the cache modules and/or the AI model, the cache system updates the cache modules using the response.

## Claims

### Claim 1

A system comprising:
a non-transitory memory; and
one or more hardware processors coupled with the non-transitory memory and configured to execute instructions from the non-transitory memory to cause the system to:
receive a query from a user device;
provide the query to a multi-tiered cache system associated with an artificial intelligence (AI) model, wherein the multi-tiered cache system comprises a plurality of cache modules that stores pre-generated responses from the AI model;
determine that the query does not result in a first cache hit associated with a first cache module of the plurality of cache modules;
generate embeddings based on the query;
determine whether the query results in a second cache hit associated with a second cache module of the plurality of cache modules based on the embeddings;
obtain a response from one of the second cache module or the AI model; and
update the first cache module based on the response.

### Claim 2 (depends on 1)

The system of claim 1, wherein executing the instructions further causes the system to:
transmit the response to the user device.

### Claim 3 (depends on 1)

The system of claim 1, wherein executing the instructions further causes the system to:
retrieve a set of documents from a data storage based on the query; and
generate a hash value based on the set of documents, wherein determining that the query does not result in the first cache hit associated with the first cache module is further based on the hash value.

### Claim 4 (depends on 3)

The system of claim 3, wherein determining whether the query results in the second cache hit associated with the second cache module is further based on the hash value.

### Claim 5 (depends on 1)

The system of claim 1, wherein the second cache module comprises a plurality of records, wherein each record of the plurality of records is associated with an expiration time.

### Claim 6 (depends on 5)

The system of claim 5, wherein the response is obtained from the second cache module based on the query resulting in the second cache hit associated with the second cache module, and wherein executing the instructions further causes the system to:
update a first expiration time associated with a first record in the second cache module that stores the response based on the second cache hit.

### Claim 7 (depends on 5)

The system of claim 5, wherein executing the instructions further causes the system to:
determine that a second record in the second cache module has expired based on a second expiration time associated with the second record; and
remove the second record from the second cache module.

### Claim 8

A method comprising:
in response to receiving an utterance from a user device, providing, by a computer system, the utterance to a multi-tiered cache system associated with an artificial intelligence (AI) model, wherein the multi-tiered cache system comprises a plurality of cache modules;
determining, by the computer system, a first cache miss for a first cache module in the plurality of cache modules based on the utterance;
generating, by the computer system, embeddings based on the utterance;
in response to determining the cache miss for the first cache module, providing, by the computer system, the utterance to a second cache module in the plurality of cache modules;
obtaining, by the computer system, a response from one of the second cache module or the AI model; and
updating, by the computer system, the first cache module based on the response.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
determining a second cache miss for the second cache module based on the embeddings;
in response to determining the second cache miss, generating a prompt for the AI model, the prompt including the utterance; and
providing the prompt to the AI model, wherein the AI model is configured to generate the response based on the prompt.

### Claim 10 (depends on 8)

The method of claim 8, further comprising:
determining that the utterance comprises data of a particular type; and
modifying the utterance based on removing the data from the utterance, wherein the response is generated based on the modified utterance.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
modifying the response based on incorporating the data into the response; and
providing the modified response to the user device.

### Claim 12 (depends on 8)

The method of claim 8, wherein the updating the first cache module comprises:
storing the response in the first cache module.

### Claim 13 (depends on 8)

The method of claim 8, wherein the response is obtained from the second cache module based on a cache hit with the second cache module, wherein the method further comprises:
updating a first expiration time associated with a first record in the second cache module that stores the response based on the cache hit.

### Claim 14 (depends on 8)

The method of claim 8, further comprising:
determining that a second record in the second cache module has expired based on a second expiration time associated with the second record; and
removing the second record from the second cache module.

### Claim 15

A non-transitory machine-readable medium having stored thereon machine-readable instructions executable to cause a machine to perform operations comprising:
receiving an utterance from a user device;
providing the utterance to a first cache module of a cache system associated with an artificial intelligence (AI) model;
determining that a first cache hit does not occur at the first cache module based on the utterance;
subsequent to the determining that the first cache hit does not occur at the first cache module, providing the utterance to a second cache module of the cache system;
determining whether a second cache hit occurs at a second cache module based on the utterance;
obtaining a response from one of the second cache module or the AI model; and
providing the response to the user device.

### Claim 16 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the operations further comprise:
updating the first cache module based on the response.

### Claim 17 (depends on 16)

The non-transitory machine-readable medium of claim 16, wherein the updating the first cache module comprises:
storing the response in the first cache module.

### Claim 18 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the operations further comprise:
retrieving a set of documents from a data storage based on the utterance; and
generating a hash value based on the set of documents, wherein the determining that the first cache hit does not occur at the first cache module is further based on the hash value.

### Claim 19 (depends on 19)

The non-transitory machine-readable medium of claim 19, wherein the determining whether the second cache hit occurs at the second cache module is further based on the hash value.

### Claim 20 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the operations further comprise:
selecting, from a plurality of computer modules, a particular computer module for performing a transaction based on the utterance;
generating, by the AI model, instructions that cause the particular computer module to perform the transaction for a user of the user device;
generating, by the AI model, based on a result from the particular computer module performing the transaction; and
transmitting the content to the user device.
