# US 2021/0287271 A1 · Determining recommended search terms for a user of an online concierge system

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

- Number: US 2021/0287271 A1
- Document ID: US20210287271A1
- Status: Published application
- Kind: A1
- Application number: 16/815,846
- Filed: 2020-03-11
- Published: 2021-09-16
- Earliest claimed: 2020-03-11
- Assignees: Maplebear, Inc.(dba Instacart)
- Applicants: Maplebear, Inc.(dba Instacart)
- Inventors: Shishir Kumar Prasad; Sharath Rao
- Web page: https://patentgrep.com/patent/US20210287271A1

## CPC

- G06Q 30/0625: {by formulating product or service queries, e.g. using keywords or predefined options}
- G06F 16/953: Querying, e.g. by the use of web search engines
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An online concierge system may determine recommended search terms for a user. The online concierge system may receive a request from a user to view a user interface configured to receive a search query. The online concierge system retrieves long-term activity data including previous search terms entered by the user while searching for items to add to an online shopping cart. For each previous search term, the online concierge system retrieves categorical search terms corresponding to one or more categories to which the previous search term was mapped. The online concierge system determines a set of nearby categorical search terms and sends, for display via a client device, the set of nearby categorical search terms as recommended search terms.

## Claims

### Claim 1

A method comprising:
receiving, from a client device, a request to view a user interface, the user interface configured to receive a search query;
retrieving, from a database, historical activity data including previous search terms entered by a user of the client device in an online concierge system;
retrieving, for each previous search term, a set of categorical search terms corresponding to one or more categories to which the previous search term has been mapped;
retrieving a list of items currently in the user's online shopping cart;
scoring each categorical search term by inputting embeddings for items in the list of items and embeddings for the previous search terms to a machine-learned scoring model;
determining a set of nearby categorical search terms based on the scores, wherein the nearby categorical search terms each have a score above a threshold level; and
sending, for display via the client device, the set of nearby categorical search terms as recommended search terms.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
retrieving, for each previous search term in the historical activity data, an embedding describing the previous search term, wherein the embedding comprises a vector that describes the previous search term in a latent space; and
retrieving, for each categorical search term, an embedding describing the categorical search term;
wherein determining the set of nearby categorical search terms is based on the embeddings.

### Claim 3 (depends on 2)

The method of claim 2, wherein determining the set of nearby categorical search terms comprises:
determining a ranked list of categorical search terms based on the scores; and
sending, for display via the client device, a set of the highest ranked categorical search terms in the ranked list.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
receiving, from the machine-learned scoring model, a score for each categorical search term.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
retrieving, from a database, historical recommended search terms for the user;
determining, for each historical recommended search term, a set of previous search terms corresponding to the historical recommended search term, each previous search term associated with a set of categorical search terms;
labelling each historical recommended search term as corresponding to one or more of the previous search terms based on the categorical search terms; and
training the machine-learned scoring model using the labelled historical recommended search terms.

### Claim 6 (depends on 1)

The method of claim 1, wherein determining a set of nearby categorical search terms is further based on user preference information.

### Claim 7 (depends on 1)

The method of claim 1, wherein determining a set of nearby categorical search terms is further based on generic items corresponding to the list of items currently in the user's online shopping cart.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
responsive to receiving user input to the user interface:
modifying the set of nearby categorical search terms to correspond to the user input; and
sending, for display via the client device, the modified set of nearby categorical search terms.

### Claim 9

A non-transitory computer-readable storage medium comprising instructions executable by a processor, the instructions comprising:
instructions for receiving, from a client device, a request to view a user interface, the user interface configured to receive a search query;
instructions for retrieving, from a database, historical activity data including previous search terms entered by a user of the client device in an online concierge system;
instructions for retrieving, for each previous search term, a set of categorical search terms corresponding to one or more categories to which the previous search term has been mapped;
instructions for retrieving a list of items currently in the user's online shopping cart;
instructions for scoring each categorical search term by inputting embeddings for items in the list of items and embeddings for the previous search terms to a machine-learned scoring model;
instructions for determining a set of nearby categorical search terms based on the scores, wherein the nearby categorical search terms each have a score above a threshold level; and
instructions for sending, for display via the client device, the set of nearby categorical search terms as recommended search terms.

### Claim 10 (depends on 9)

The non-transitory computer-readable storage medium of claim 9, the instructions further comprising:
instructions for retrieving, for each previous search term in the historical activity data, an embedding describing the previous search term, wherein the embedding comprises a vector that describes the previous search term in a latent space; and
instructions for retrieving, for each categorical search term, an embedding describing the categorical search term;
wherein determining the set of nearby categorical search terms is based on the embeddings.

### Claim 11 (depends on 10)

The non-transitory computer-readable storage medium of claim 10, wherein the instructions for determining the set of nearby categorical search terms comprise:
instructions for determining a ranked list of categorical search terms based on the scores; and
instructions for sending, for display via the client device, a set of the highest ranked categorical search terms in the ranked list.

### Claim 12 (depends on 9)

The non-transitory computer-readable storage medium of claim 9, wherein the instructions further comprising:
instructions for receiving, from the machine-learned scoring model, a score for each categorical search term.

### Claim 13 (depends on 12)

The non-transitory computer-readable storage medium of claim 12, the instructions further comprising:
instructions for retrieving, from a database, historical recommended search terms for the user;
instructions for determining, for each historical recommended search term, a set of previous search terms corresponding to the historical recommended search term, each previous search term associated with a set of categorical search terms;
instructions for labelling each historical recommended search term as corresponding to one or more of the previous search terms based on the categorical search terms; and
instructions for training the machine-learned scoring model using the labelled historical recommended search terms.

### Claim 14 (depends on 9)

The non-transitory computer-readable storage medium of claim 9, wherein the instructions for determining a set of nearby categorical search terms are further based on user preference information.

### Claim 15 (depends on 9)

The non-transitory computer-readable storage medium of claim 9, wherein the instructions for determining a set of nearby categorical search terms are further based on generic items corresponding to the list of items currently in the user's online shopping cart.

### Claim 16 (depends on 9)

The non-transitory computer-readable storage medium of claim 9, the instructions further comprising:
responsive to receiving user input to the user interface:
instructions for modifying the set of nearby categorical search terms to correspond to the user input; and
instructions for sending, for display via the client device, the modified set of nearby categorical search terms.

### Claim 17

A computer system comprising:
a computer processor; and
a non-transitory computer-readable storage medium storage instructions that when executed by the computer processor perform actions comprising:
receiving, from a client device, a request to view a user interface, the user interface configured to receive a search query;
retrieving, from a database, historical activity data including previous search terms entered by a user of the client device in an online concierge system;
retrieving, for each previous search term, a set of categorical search terms corresponding to one or more categories to which the previous search term has been mapped;
retrieving a list of items currently in the user's online shopping cart;
scoring each categorical search term by inputting embeddings for items in the list of items and embeddings for the previous search terms to a machine-learned scoring model;
determining a set of nearby categorical search terms based on the scores, wherein the nearby categorical search terms each have a score above a threshold level; and
sending, for display via the client device, the set of nearby categorical search terms as recommended search terms.

### Claim 18 (depends on 17)

The computer system of claim 17, the actions further comprising:
retrieving, for each previous search term in the historical activity data, an embedding describing the previous search term, wherein the embedding comprises a vector that describes the previous search term in latent space; and
retrieving, for each categorical search term, an embedding describing the categorical search term;
wherein determining the set of nearby categorical search terms is based on the embeddings.

### Claim 19 (depends on 18)

The computer system of claim 18, wherein the actions for determining the set of nearby categorical search terms comprise:
determining a ranked list of categorical search terms based on the scores; and
sending, for display via the client device, a set of the highest ranked categorical search terms in the ranked list.

### Claim 20 (depends on 17)

The computer system of claim 17, wherein the actions further comprising:
receiving, from the machine-learned scoring model, a score for each categorical search term.
