# US 2025/0209083 A1 · Accounting for item attributes when selecting items satisfying a query based on item embeddings and an embedding for the query

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

- Number: US 2025/0209083 A1
- Document ID: US20250209083A1
- Status: Published application
- Kind: A1
- Application number: 19/078,265
- Filed: 2025-03-12
- Published: 2025-06-26
- Earliest claimed: 2022-02-07
- Assignees: Maplebear Inc.
- Applicants: Maplebear Inc.
- Inventors: Taesik Na; Zhihong Xu; Guanghua Shu; Tejaswi Tenneti; Haixun Wang
- Web page: https://patentgrep.com/patent/US20250209083A1

## CPC

- G06F 16/24573: {using data annotations, e.g. user-defined metadata}
- G06F 16/24578: {using ranking}
- G06F 16/2438: {Embedded query languages}
- G06F 16/248: Presentation of query results
- G06N 3/09: Supervised learning
- G06N 5/01: Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
- G06N 5/022: Knowledge engineering; Knowledge acquisition
- G06N 20/20: Ensemble learning
- G06Q 10/0874: {Inventory fulfillment (shipping G06Q10/083)}
- G06Q 30/015: Providing customer assistance, e.g. assisting a customer within a business location or via helpdesk
- G06Q 30/0623: {by investigating goods or services}
- G06Q 30/0635: {replenishment orders; recurring orders}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- 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

## Abstract

An online system maintains various items and maintains values for different attributes of the items, as well as an item embedding for each item. When the online system receives a query for retrieving one or more items, the online system generates an embedding for the query. Based on measures of similarity between the embedding for the query and item embeddings, the online system selects a set of items. The online system identifies a specific attribute of items and generates a whitelist of values for the specific attribute based on measures of similarity between item embeddings for items in the selected set and the embedding for the query. The online system removes items having values for the selected attribute outside of the whitelist of values from the selected set of items to identify items more likely to be relevant to the query.

## Claims

### Claim 1

A computer-implemented method, comprising:
storing a taxonomy of items that are connected through a hierarchy based on attributes of the items;
receiving, at an online system, a query directed at a search interface;
applying a first neural network, by the online system, to extract an embedding for the query, the embedding for the query representing the query in a latent space of the first neural network, wherein applying the first neural network to extract the embedding for the query comprises:
extracting a query latent vector in a first hidden layer of the first neural network;
applying a second neural network to extract item embeddings for each of a plurality of items maintained in an item database by the online system, each item embedding corresponding to an item offered by the online system and representing the item in the latent space of the second neural network, wherein applying the second neural network to extract an item embedding for an item comprises:
extracting an item latent vector in a second hidden layer of the second neural network;
comparing the embedding for the query to the item embeddings based on the taxonomy of items to identify a set of items; and
generating, as a response to the query directed at the search interface, a query result comprising the set of items.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
ranking items included in the set of items based on corresponding measures of similarity between the embedding for the query and the item embeddings corresponding to each item included in the set of items;
identifying items of the set of items having at least a threshold position in the ranking; and
generating an approved list that includes the items having at least the threshold position in the ranking.

### Claim 3 (depends on 1)

The method of claim 1, wherein comparing the embedding for the query to the item embeddings comprises:
determining distances between the embedding for the query and each item embedding; and
generating the set of items based on the determined distances.

### Claim 4 (depends on 1)

The method of claim 1, wherein receiving, at the online system, a query directed at the search interface comprises:
receiving a request to create an order from a user, the request identifying a warehouse; and
receiving the query to identify one or more items offered by the warehouse satisfying the query.

### Claim 5 (depends on 1)

The method of claim 1, wherein extracting the embedding for the query further comprises:
tokenizing the query into a plurality of terms;
applying the first neural network to transform each term into a respective term vector; and
aggregating the term vectors into the query latent vector using a pooling function.

### Claim 6 (depends on 1)

The method of claim 1, wherein extracting the item embeddings for each of a plurality of items maintained in the item database comprises:
processing item attribute data through an attribute encoder to generate attribute vectors;
applying a transformation function to combine the attribute vectors into a preliminary item latent vector; and
refining the preliminary item latent vector using the second neural network to obtain an item embedding.

### Claim 7 (depends on 1)

The method of claim 1, wherein storing the taxonomy of items comprises:
defining a hierarchical structure with multiple levels of item categories;
associating each item with at least one category within the hierarchical structure; and
maintaining relationships between categories to enable category-based filtering.

### Claim 8 (depends on 1)

The method of claim 1, wherein applying the first neural network to extract an embedding for the query further comprises:
preprocessing the query to remove stop words and normalize text;
applying a sequence-to-vector transformation using the neural network; and
refining the extracted query embedding based on contextual information.

### Claim 9 (depends on 1)

The method of claim 1, wherein applying the second neural network to extract item embeddings further comprises:
training the second neural network on a dataset of item descriptions and associated user interactions;
encoding item attributes as auxiliary features in the item embeddings; and
periodically updating the second neural network to adapt to new items and user preferences.

### Claim 10 (depends on 1)

The method of claim 1, wherein comparing the embedding for the query to the item embeddings based on the taxonomy of items further comprises:
generating an initial candidate list of items using an approximate nearest neighbors search;
determining a confidence score for each candidate item based on historical search relevance; and
filtering out items with confidence scores below a predefined threshold.

### Claim 11

A non-transitory computer-readable medium configured to store code comprising instructions, wherein the instructions, when executed by one or more processors, cause the one or more processors to:
store a taxonomy of items that are connected through a hierarchy based on attributes of the items;
receive, at an online system, a query directed at a search interface;
apply a first neural network, by the online system, to extract an embedding for the query, the embedding for the query representing the query in a latent space of the first neural network, wherein applying the first neural network to extract the embedding for the query comprises:
extracting a query latent vector in a first hidden layer of the first neural network;
apply a second neural network to extract item embeddings for each of a plurality of items maintained in an item database by the online system, each item embedding corresponding to an item offered by the online system and representing the item in the latent space of the second neural network, wherein applying the second neural network to extract an item embedding for an item comprises:
extracting an item latent vector in a second hidden layer of the second neural network;
compare the embedding for the query to the item embeddings based on the taxonomy of items to identify a set of items; and
generate, as a response to the query directed at the search interface, a query result comprising the set of items.

### Claim 12 (depends on 11)

The non-transitory computer-readable medium of claim 11, wherein the instructions, when executed, further cause the one or more processors to:
rank items included in the set of items based on corresponding measures of similarity between the embedding for the query and the item embeddings corresponding to each item included in the set of items;
identify items of the set of items having at least a threshold position in the ranking; and
generate an approved list that includes the items having at least the threshold position in the ranking.

### Claim 13 (depends on 11)

The non-transitory computer-readable medium of claim 11, wherein comparing the embedding for the query to the item embeddings comprises:
determining distances between the embedding for the query and each item embedding; and
generating the set of items based on the determined distances.

### Claim 14 (depends on 11)

The non-transitory computer-readable medium of claim 11, wherein receiving, at the online system, a query directed at the search interface comprises:
receiving a request to create an order from a user, the request identifying a warehouse; and
receiving the query to identify one or more items offered by the warehouse satisfying the query.

### Claim 15 (depends on 11)

The non-transitory computer-readable medium of claim 11, wherein extracting the embedding for the query further comprises:
tokenizing the query into a plurality of terms;
applying the first neural network to transform each term into a respective term vector;
and aggregating the term vectors into the query latent vector using a pooling function.

### Claim 16 (depends on 11)

The non-transitory computer-readable medium of claim 11, wherein extracting the item embeddings for each of a plurality of items maintained in the item database comprises:
processing item attribute data through an attribute encoder to generate attribute vectors;
applying a transformation function to combine the attribute vectors into a preliminary item latent vector; and
refining the preliminary item latent vector using the second neural network to obtain an item embedding.

### Claim 17 (depends on 11)

The non-transitory computer-readable medium of claim 11, wherein storing the taxonomy of items comprises:
defining a hierarchical structure with multiple levels of item categories;
associating each item with at least one category within the hierarchical structure; and
maintaining relationships between categories to enable category-based filtering.

### Claim 18 (depends on 11)

The non-transitory computer-readable medium of claim 11, wherein applying the first neural network to extract an embedding for the query further comprises:
preprocessing the query to remove stop words and normalize text;
applying a sequence-to-vector transformation using the neural network; and
refining the extracted query embedding based on contextual information.

### Claim 19 (depends on 11)

The non-transitory computer-readable medium of claim 11, wherein applying the second neural network to extract item embeddings further comprises:
training the second neural network on a dataset of item descriptions and associated user interactions;
encoding item attributes as auxiliary features in the item embeddings; and
periodically updating the second neural network to adapt to new items and user preferences.

### Claim 20

A system comprising:
one or more processors; and
memory storing code comprising instructions, wherein the instructions, when executed by the one or more processors, cause the one or more processors to:
store a taxonomy of items that are connected through a hierarchy based on attributes of the items;
receive, at an online system, a query directed at a search interface;
apply a first neural network, by the online system, to extract an embedding for the query, the embedding for the query representing the query in a latent space of the first neural network, wherein applying the first neural network to extract the embedding for the query comprises:
extracting a query latent vector in a first hidden layer of the first neural network;
apply a second neural network to extract item embeddings for each of a plurality of items maintained in an item database by the online system, each item embedding corresponding to an item offered by the online system and representing the item in the latent space of the second neural network, wherein applying the second neural network to extract an item embedding for an item comprises:
extracting an item latent vector in a second hidden layer of the second neural network;
compare the embedding for the query to the item embeddings based on the taxonomy of items to identify a set of items; and
generate, as a response to the query directed at the search interface, a query result comprising the set of items.
