# US 2025/0094439 A1 · Large language model response optimization for data pipeline generation

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

- Number: US 2025/0094439 A1
- Document ID: US20250094439A1
- Status: Published application
- Kind: A1
- Application number: 18/827,034
- Filed: 2024-09-06
- Published: 2025-03-20
- Earliest claimed: 2023-09-19
- Assignees: Palantir Technologies Inc.
- Applicants: Palantir Technologies Inc.
- Inventors: Morten Telling; Alexander Bailey; Richard Burdish; Ankit Shankar; Matthew Hawes; Codrut Lemeni; Nanwei Cai; Tiffany Wang; Joseph Rafidi; Kamran Khan
- Web page: https://patentgrep.com/patent/US20250094439A1

## CPC

- G06F 16/258: {Data format conversion from or to a database}
- G06F 16/243: {Natural language query formulation}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system may use a large language model (“LLM”) to generate a data pipeline. The system can receive a natural language query and a selection of a plurality of data sets for generating a data pipeline and generate a prompt comprising at least: the natural language query, indications of the plurality of data sets, an indication of a format of a first computer language, and an indication of available data transformations. The system can transmit the prompt to an LLM and receive, from the LLM, a response to the prompt in the format of the first computer language. The system can parse the response in the first computer language to identify at least an indication of one or more recommended data transformations. The system can generate, based on the indication of the one or more recommended data transformations, the data pipeline using a second computer language.

## Claims

### Claim 1

A computer-implemented method for generating a data pipeline using a large language model, the method comprising:
receiving, via a user interface, a natural language query and a selection of a plurality of data sets for generating a data pipeline;
generating a prompt comprising at least: the natural language query, indications of the plurality of data sets, an indication of a format of a first computer language, and an indication of available data transformations;
transmitting the prompt to a large language model (“LLM”);
receiving, from the LLM, a response to the prompt in the format of the first computer language;
parsing the response in the first computer language to identify at least an indication of one or more recommended data transformations to be performed in the data pipeline; and
generating, based on the indication of the one or more recommended data transformations, the data pipeline using a second computer language.

### Claim 2 (depends on 1)

The method of claim 1, wherein the user interface comprises a graphical user interface, and wherein the natural language prompt and the selection of a plurality of data sets are received via the graphical user interface.

### Claim 3 (depends on 2)

The method of claim 2, wherein receiving the selection of the plurality of data sets comprises receiving, via the graphical user interface, user selection of indications of the plurality of data sets.

### Claim 4 (depends on 3)

The method of claim 3, further comprising generating, in response to the user selection of the indications of the plurality of data sets, a prompt selector within the graphical user interface.

### Claim 5 (depends on 4)

The method of claim 4, wherein receiving the natural language prompt comprises receiving user input via the prompt selector.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
receiving, via the user interface, a second user selection of at least one of the plurality of data sets and of a second natural language prompt related to a function of at least one of the one or more recommended data transformations associated with the data pipeline;
transmitting at least a portion of second query to the LLM, the second query comprising the second natural language prompt and an indication of the at least one of the plurality of data sets;
receiving, from the LLM, a second response to the at least the portion of the second query; and
generating, based on the second response, an indication of the function of the at least one of the one or more recommended data transformations associated with the data pipeline.

### Claim 7 (depends on 6)

The method of claim 6, wherein generating the indication of the function of the at least one of the one or more recommended transforms associated with the data pipeline comprises displaying, within the user interface, the indication of the function of the at least one of the one or more transforms.

### Claim 8 (depends on 1)

The method of claim 1, wherein the indication of the format of the first computer language and the indication of available data transformations are received via the user interface.

### Claim 9 (depends on 1)

The method of claim 1, wherein the indication of the format of the first computer language comprises an indication of a plurality of acceptable natural language terms.

### Claim 10 (depends on 9)

The method of claim 9, wherein each of the plurality of acceptable natural language terms comprise a common root term each having a different spelling, a different capitalization, and/or a different punctuation from another of the plurality of acceptable natural language terms.

### Claim 11 (depends on 1)

The method of claim 1, wherein the indication of the format comprises an indication of a grammar of the first computer language.

### Claim 12 (depends on 1)

The method of claim 1, wherein parsing the response in the first computer language further comprises identifying an indication of a new data set, and wherein the data pipeline comprises the new data set.

### Claim 13 (depends on 12)

The method of claim 12, wherein generating the data pipeline comprises displaying, within the user interface, indications of:
nodes each corresponding to respective of the plurality of data sets and the new data set; and
at least one connector between at least one of the plurality of data sets and the new data set.

### Claim 14 (depends on 12)

The method of claim 12, further comprising generating, based on the parsing of the response and the identified second query, a second data pipeline using the second computer language, the second data pipeline comprising the new data set.

### Claim 15 (depends on 13)

The method of claim 13, further comprising parsing the response in the first computer language to further identify: an indication of a second one or more recommended data transformations and an indication of a second new data set.

### Claim 16 (depends on 12)

The method of claim 12, further comprising:
displaying, within the user interface, the data pipeline comprising the new data set.

### Claim 17 (depends on 1)

The method of claim 1, further comprising:
displaying, within the user interface, indications of the plurality of data sets, wherein receiving the selection of the plurality of data sets comprises receiving user selection of graphical representations of the plurality of data sets.

### Claim 18 (depends on 1)

The method of claim 1, wherein:
the indication of the available data transformations comprises at least one of: a textual list of the available transformations, one or more explanations of the available transformations, one or more examples of the available transformations, or formatting of the available transformations according to the first computer languages;
the indication of the format of the first computer language comprises at least one of: a grammar, a list of available terms, examples of acceptable instructions, or a schema for responding to the prompt; and
the prompt further comprises an indication of a schema.

### Claim 19 (depends on 1)

A system comprising:
one or more computer-readable storage mediums comprising program instructions; and
one or more processors configured to execute the program instructions to cause the system to perform the computer-implemented method of claim 1.

### Claim 20 (depends on 1)

One or more computer-readable storage mediums comprising program instructions, the program instructions executable by one or more processors to cause the one or more processors to perform the computer-implemented method of claim 1.
