# US 2026/0236713 A1 · Model-agnostic generation of refined prompts based on pre-processed task descriptions and expected output structures

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

- Number: US 2026/0236713 A1
- Document ID: US20260236713A1
- Status: Published application
- Kind: A1
- Application number: 19/051,586
- Filed: 2025-02-12
- Published: 2026-08-13
- Earliest claimed: 2025-02-12
- Assignees: Bold Limited
- Applicants: Bold Limited
- Inventors: Durgesh GUPTA; Nilesh Kumar SRIVASTAVA; Shailesh KRISHNA; Mohit Kumar GOEL
- Web page: https://patentgrep.com/patent/US20260236713A1

## CPC

- G06F 40/40: Processing or translation of natural language (natural language analysis G06F40/20; semantic analysis G06F40/30)
- G06F 40/56: Natural language generation
- G06F 40/186: Templates
- G06F 40/20: Natural language analysis (semantic analysis of natural language G06F40/30)
- G06F 40/216: using statistical methods
- G06F 40/30: Semantic analysis
- G06F 40/35: Discourse or dialogue representation
- G06F 40/44: Statistical methods, e.g. probability models
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Certain aspects of the disclosure provide a method for generating modified prompts. In aspects, the method includes receiving input; generating, using a context processing component, a first prompt by incorporating the input into a prompt template corresponding to an input type associated with the input, wherein the first prompt is configured to cause a language model to generate a pre-processed task description associated with the input; providing the first prompt to a language model for generating the pre-processed task description associated with the input; receiving the pre-processed task description from the language model; generating a second prompt by incorporating the pre-processed task description and the input into a second prompt template, wherein the second prompt is configured to cause the language model to generate a modified prompt; providing the second prompt to the language model; and returning the modified prompt to the user.

## Claims

### Claim 1

A method for generating modified prompts, comprising:
receiving input comprising one of a target prompt or a preliminary task description from a user;
generating, using a context processing component, a first prompt by incorporating the input into a prompt template corresponding to an input type associated with the input, wherein the first prompt is configured to cause a language model to generate a pre-processed task description associated with the input;
providing the first prompt to a language model for generating the pre-processed task description associated with the input;
receiving the pre-processed task description from the language model;
generating a second prompt by incorporating the pre-processed task description and the input into a second prompt template, wherein the second prompt is configured to cause the language model to generate a modified prompt based on the pre-processed task description and the input;
providing the second prompt to the language model for generating the modified prompt;
receiving the modified prompt from the language model; and
returning the modified prompt to the user.

### Claim 2 (depends on 1)

The method of claim 1 further comprising receiving, from the user, an expected output structure for the input.

### Claim 3 (depends on 2)

The method of claim 2, wherein the first prompt is generated by further incorporating the expected output structure for the input.

### Claim 4 (depends on 1)

The method of claim 1, wherein the pre-processed task description associated with the input comprises one or more of a description of an objective, a step for achieving the objective, and an expected outcome.

### Claim 5 (depends on 4)

The method of claim 4, wherein the pre-processed task description associated with the input further comprises instructions for one or more anticipated challenges based on the one or more of the description of the objective, the step for achieving the objective, and the expected outcome.

### Claim 6 (depends on 1)

The method of claim 1, wherein the first prompt further causes the language model to remove noise and ambiguous language from the input.

### Claim 7 (depends on 4)

The method of claim 4, wherein the second prompt is generated further based on the one or more of the description of the objective, the step for achieving the objective, and the expected outcome from the pre-processed task description.

### Claim 8 (depends on 1)

The method of claim 1, wherein the input is associated with a first compatibility score below for a language model type corresponding to the language model.

### Claim 9 (depends on 8)

The method of claim 8, wherein the modified prompt is associated with a second compatibility score for the language model type corresponding to the language model, the second compatibility score being greater than the first compatibility score and above a predetermined compatibility threshold.

### Claim 10 (depends on 1)

The method of claim 1, wherein the pre-processed task description further comprises one or more proposed supplemental resources for enhancing a quality of generated outputs associated with the received input.

### Claim 11

A processing system, comprising:
one or more memories comprising computer-executable instructions; and
one or more processors configured to execute the computer-executable instructions causing the processing system to:
receive input comprising one of a target prompt or a preliminary task description from a user;
generate, using a context processing component, a first prompt by incorporating the input into a prompt template corresponding to an input type associated with the input, where the first prompt is configured to cause a language model to generate a pre-processed task description associated with the input;
provide the first prompt to a language model for generating the pre-processed task description associated with the input;
receive the pre-processed task description from the language model;
generate a second prompt by incorporating the pre-processed task description and the input into a second prompt template, wherein the second prompt is configured to cause the language model to generate a modified prompt based on the pre-processed task description and the input;
provide the second prompt to the language model for generating the modified prompt
receive the modified prompt from the language model; and
return the modified prompt to the user.

### Claim 12 (depends on 11)

The processing system of claim 11, wherein the one or more processors are further configured to cause the processing system to receive, from the user, an expected output structure for the input.

### Claim 13 (depends on 12)

The processing system of claim 12, wherein the first prompt is generated by further incorporating the expected output structure for the input.

### Claim 14 (depends on 11)

The processing system of claim 11, wherein the pre-processed task description associated with the input comprises one or more of a description of an objective, a step for achieving the objective, and an expected outcome.

### Claim 15 (depends on 14)

The processing system of claim 14, wherein the pre-processed task description associated with the input further comprises instructions for one or more anticipated challenges based on the one or more of the description of the objective, the step for achieving the objective, and the expected outcome.

### Claim 16 (depends on 11)

The processing system of claim 11, wherein the first prompt further causes the language model to remove noise and ambiguous language from the input.

### Claim 17 (depends on 14)

The processing system of claim 14, wherein the second prompt is generated further based on the one or more of the description of the objective, the step for achieving the objective, and the expected outcome from the pre-processed task description.

### Claim 18 (depends on 11)

The processing system of claim 11, wherein the input is associated with a first compatibility score below for a language model type corresponding to the language model.

### Claim 19 (depends on 18)

The processing system of claim 18, wherein the modified prompt is associated with a second compatibility score for the language model type corresponding to the language model, the second compatibility score being greater than the first compatibility score and above a predetermined compatibility threshold.

### Claim 20 (depends on 11)

The processing system of claim 11, wherein the pre-processed task description further comprises one or more proposed supplemental resources for enhancing a quality of generated outputs associated with the received input.
