# US 2026/0087431 A1 · Systems and methods for generating a hierarchical representation of a plurality of products

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

- Number: US 2026/0087431 A1
- Document ID: US20260087431A1
- Status: Published application
- Kind: A1
- Application number: 18/982,862
- Filed: 2024-12-16
- Published: 2026-03-26
- Earliest claimed: 2024-09-26
- Assignees: Palantir Technologies Inc.
- Applicants: Palantir Technologies Inc.
- Inventors: Simon Dobers; Sebastian Münchow; Andy Chen; Leo Razumovsky; Daisy Sellem; Jonas Bernsdorff
- Web page: https://patentgrep.com/patent/US20260087431A1

## CPC

- G06Q 10/06315: {Needs-based resource requirements planning or analysis}
- G06F 40/30: Semantic analysis
- 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

In some examples, systems and methods for generating a hierarchical representation are provided. An example method includes receiving a plurality of purchase orders, generating a plurality of embeddings based on the plurality of purchase orders, clustering the plurality of embeddings into one or more embedding subsets based on a semantic similarity between each embedding of the plurality of embeddings and each other embedding of the plurality of embeddings, and identifying a plurality of labels for the plurality of embedding subsets. In some examples, the method includes generating the hierarchical representation such that the plurality of labels forms a tier in the hierarchical representation. In some examples, subsequent iterations of one or more aspects of the method can be performed to generate additional tiers in the hierarchical representation, where the plurality of labels from a preceding iteration can be used to generate the embeddings for a current iteration.

## Claims

### Claim 1

A method for generating a hierarchical representation of a plurality of products, the method comprising:
(a) receiving a plurality of purchase orders comprising a plurality of descriptions, each purchase order of the plurality of purchase orders comprising at least one description of the plurality of descriptions;
(b) providing the plurality of descriptions of the plurality of purchase orders to a machine-learning model, the machine-learning model being trained to generate a respective embedding for each description of the plurality of descriptions of the plurality of purchase orders;
(c) receiving, from the machine-learning model, a plurality of embeddings, each embedding of the plurality of embeddings corresponding to a respective description of the plurality of descriptions of the plurality of purchase orders;
(d) clustering the plurality of embeddings into one or more embedding subsets based on a semantic similarity between each embedding of the plurality of embeddings and each other embedding of the plurality of embeddings, each embedding subset of the one or more embedding subsets including one or more embeddings of the plurality of embeddings;
(e) identifying, using a large language model, a plurality of labels for the plurality of embedding subsets, each label of the plurality of labels corresponding to a respective embedding subset of the plurality of embedding subsets, and each label of the plurality of labels indicating the respective embedding subset of the plurality of embedding subsets for which the label was identified;
(f) repeating steps (b) through (e) at least once, using the plurality of labels from the latest iteration of step (e) as the plurality of descriptions in step (b); and
(g) generating the hierarchical representation of the plurality of purchase orders, the plurality of labels from the first iteration of steps (b) through (e) forming a first tier in the hierarchical representation, and the plurality of labels from each subsequent iteration of steps (b) through (e) forming a respective other tier in the hierarchical representation,
wherein the method is performed using one or more processors.

### Claim 2 (depends on 1)

The method of claim 1, wherein the description for the each purchase order includes at least one product description and at least one vendor description.

### Claim 3 (depends on 1)

The method of claim 1, wherein the clustering includes:
determining the semantic similarity between each embedding of the plurality of embeddings and each other embedding of the plurality of embeddings;
comparing the semantic similarity between each embedding of the plurality of embeddings and each other embedding of the plurality of embeddings to a predetermined threshold; and
assigning the plurality of embeddings to the one or more embedding subsets based on the comparison of the semantic similarity between each embedding of the plurality of embeddings and each other embedding of the plurality of embeddings to the predetermined threshold.

### Claim 4 (depends on 1)

The method of claim 1, wherein the repeating steps (b) through (e) using the plurality of labels from the latest iteration of step (e) as the plurality of descriptions in step (b) includes repeating steps (b) through (e) until the clustering the plurality of embeddings into the one or more embedding subsets based on the semantic similarity includes clustering the plurality of embeddings into only one embedding subset based on the semantic similarity.

### Claim 5 (depends on 1)

The method of claim 1, wherein the hierarchical representation includes a graph, and wherein the method further comprises causing the graph to be displayed on a user interface.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
identifying a quantity of a type of product ordered, based on a label of the plurality of labels in at least one tier of the hierarchical representation identifying the type of product ordered and how many embeddings corresponding to the plurality of descriptions of the plurality of purchase orders are in the embedding subset encompassed by the label.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
receiving, via a user interface, an indication of a change in price for the type of product ordered;
calculating a cost difference for the quantity of the type of product ordered, based on the change in price; and
outputting the cost difference for the quantity of the type of product ordered.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
selecting the large language model from a plurality of different large language models.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
causing a first user interface based on the hierarchical representation of the plurality of purchase orders to be displayed to a first type of user; and
causing a second user interface based on the hierarchical representation of the plurality of purchase orders to be displayed to a second type of user.

### Claim 10

A system for generating a hierarchical representation of a plurality of purchase orders, the system comprising:
one or more processors; and
one or more memories storing instructions that, when executed by the one or more processors, cause the system to perform a set of operations, the set of operations comprising:
(a) receiving a plurality of purchase orders comprising a plurality of descriptions, each purchase order of the plurality of purchase orders comprising at least one description of the plurality of descriptions;
(b) providing the plurality of descriptions of the plurality of purchase orders to a machine-learning model, the machine-learning model being trained to generate a respective embedding for each description of the plurality of descriptions of the plurality of purchase orders;
(c) receiving, from the machine-learning model, a plurality of embeddings, each embedding of the plurality of embeddings corresponding to a respective description of the plurality of descriptions of the plurality of purchase orders;
(d) clustering the plurality of embeddings into one or more embedding subsets based on a semantic similarity between each embedding of the plurality of embeddings and each other embedding of the plurality of embeddings, each embedding subset of the one or more embedding subsets including one or more embeddings of the plurality of embeddings;
(e) identifying, using a large language model, a plurality of labels for the plurality of embedding subsets, each label of the plurality of labels corresponding to a respective embedding subset of the plurality of embedding subsets, and each label of the plurality of labels indicating the respective embedding subset of the plurality of embedding subsets for which the label was identified;
(f) repeating operations (b) through (e) at least once, using the plurality of labels from the latest iteration of operation (e) as the plurality of descriptions in operation (b); and
(g) generating the hierarchical representation of the plurality of purchase orders, the plurality of labels from the first iteration of operations (b) through (e) forming a first tier in the hierarchical representation, and the plurality of labels from each subsequent iteration of operations (b) through (e) forming a respective other tier in the hierarchical representation.

### Claim 11 (depends on 10)

The system of claim 10, wherein the description for the each purchase order includes at least one product description and at least one vendor description.

### Claim 12 (depends on 10)

The system of claim 10, wherein the clustering includes:
determining the semantic similarity between each embedding of the plurality of embeddings and each other embedding of the plurality of embeddings;
comparing the semantic similarity between each embedding of the plurality of embeddings and each other embedding of the plurality of embeddings to a predetermined threshold; and
assigning the plurality of embeddings to the one or more embedding subsets based on the comparison of the semantic similarity between each embedding of the plurality of embeddings and each other embedding of the plurality of embeddings to the predetermined threshold.

### Claim 13 (depends on 10)

The system of claim 10, wherein the repeating operations (b) through (e) using the plurality of labels from the latest iteration of operation (e) as the plurality of descriptions in operation (b) includes repeating operations (b) through (e) until the clustering the plurality of embeddings into the one or more embedding subsets based on the semantic similarity includes clustering the plurality of embeddings into only one embedding subset based on the semantic similarity.

### Claim 14 (depends on 10)

The system of claim 10, wherein the hierarchical representation includes a graph, and wherein the method further comprises causing the graph to be displayed on a user interface.

### Claim 15 (depends on 10)

The system of claim 10, wherein the set of operations further comprises:
identifying a quantity of a type of product ordered, based on a label of the plurality of labels in at least one tier of the hierarchical representation identifying the type of product ordered and how many embeddings corresponding to the plurality of descriptions of the plurality of purchase orders are in the embedding subset encompassed by the label.

### Claim 16 (depends on 15)

The system of claim 15, wherein the set of operations further comprises:
receiving, via a user interface, an indication of a change in price for the type of product ordered;
calculating a cost difference for the quantity of the type of product ordered, based on the change in price; and
outputting the cost difference for the quantity of the type of product ordered.

### Claim 17 (depends on 10)

The system of claim 10, wherein the set of operations further comprises:
selecting the large language model from a plurality of different large language models.

### Claim 18 (depends on 10)

The system of claim 10, wherein the set of operations further comprises:
causing a first user interface based on the hierarchical representation of the plurality of purchase orders to be displayed to a first type of user; and
causing a second user interface based on the hierarchical representation of the plurality of purchase orders to be displayed to a second type of user.

### Claim 19

A method for generating a hierarchical representation of a plurality of purchase orders, the method comprising:
(a) receiving a plurality of purchase orders comprising a plurality of product descriptions, each purchase order of the plurality of purchase orders comprising at least one product description of the plurality of product descriptions;
(b) generating a plurality of embeddings, each embedding of the plurality of embeddings corresponding to a respective product description of the plurality of product descriptions of the plurality of purchase orders;
(c) clustering the plurality of embeddings into one or more embedding subsets based on a semantic similarity between each embedding of the plurality of embeddings and each other embedding of the plurality of embeddings, each embedding subset of the one or more embedding subsets including one or more embeddings of the plurality of embeddings;
(d) categorizing, using a large language model, each embedding subset of the plurality of embedding subsets into a respective category of a plurality of categories, each category of the plurality of categories corresponding to a respective embedding subset of the plurality of embedding subsets, and each category of the plurality of categories indicating the respective embedding subset encompassed by the category;
(e) repeating steps (b) through (d) at least once, using the plurality of categories from the latest iteration of step (d) as the plurality of descriptions in step (b); and
(f) generating the hierarchical representation of the plurality of purchase orders, the plurality of categories from the first iteration of steps (b) through (d) forming a first tier in the hierarchical representation, and the plurality of categories from each subsequent iteration of steps (b) through (d) forming a respective other tier in the hierarchical representation,
wherein the method is performed using one or more processors.

### Claim 20 (depends on 19)

The method of claim 19, further comprising:
identifying a quantity of a type of product ordered, based on a category of the plurality of categories in at least one tier of the hierarchical representation identifying the type of product ordered and how many embeddings corresponding to the plurality of product descriptions of the plurality of purchase orders are in the embedding subset encompassed by the category;
calculating a cost difference for the quantity of the type of product ordered, based on a price change for the type of product ordered; and
outputting the cost difference for the quantity of the type of product ordered.
