# US 2026/0093930 A1 · Automated prompt engineering platform

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

- Number: US 2026/0093930 A1
- Document ID: US20260093930A1
- Status: Published application
- Kind: A1
- Application number: 18/898,860
- Filed: 2024-09-27
- Published: 2026-04-02
- Earliest claimed: 2024-09-27
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Laddie Ji Cheng Tan; Kunnan Hong; Wen Yang Tan; Qixing Chen; Zhen Shu; Kang Yee Lim; Zeling Long; Ziyuan Shang; Hu Soon Tan; Junxiang Jia; Alexy Xena Hackmann; Sivakumar Sundaresan; Anil Ranka
- Web page: https://patentgrep.com/patent/US20260093930A1

## CPC

- G06F 40/40: Processing or translation of natural language (natural language analysis G06F40/20; semantic analysis G06F40/30)
- G06F 40/174: Form filling; Merging
- G06F 40/186: Templates
- G06F 40/56: Natural language generation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, systems, and computer-readable storage media for receiving user input defining configuration parameters for a set of prompt templates, providing a configuration file responsive to the user input, processing the configuration file to generate a set of prompts by populating at least one placeholder of each prompt template with at least one input parameter of input parameters groups defined in the configuration file, transmitting the prompts to one or more LLMs, receiving a set of outputs, transmitting a set of metric evaluation prompts to at least one LLM, each metric evaluation prompt being provided using an evaluation prompt template and an output, receiving a set of evaluation results, each evaluation result corresponding to a respective prompt in the set of prompts, and selectively deploying prompt templates in the set of prompt templates for production use in prompting the one or more LLMs.

## Claims

### Claim 1

A computer-implemented method for engineering of prompt templates for prompting large language models (LLMs), the method being executed by one or more processors and comprising:
receiving user input defining configuration parameters for a set of prompt templates;
providing a configuration file responsive to the user input;
processing the configuration file to generate a set of prompts by populating at least one placeholder of each prompt template with at least one input parameter of input parameters groups defined in the configuration file;
transmitting the prompts in the set of prompts to one or more LLMs;
receiving, from the one or more LLMs, a set of outputs;
transmitting a set of metric evaluation prompts to at least one LLM, each metric evaluation prompt being provided using an evaluation prompt template and an output;
receiving, from the at least one LLM, a set of evaluation results, each evaluation result corresponding to a respective prompt in the set of prompts; and
responsive to the set of evaluation results, selectively deploying prompt templates in the set of prompt templates for production use in prompting the one or more LLMs.

### Claim 2 (depends on 1)

The method of claim 1, wherein processing the configuration file to generate a set of prompts comprises:
receiving a message from a messaging queue based on a topic assigned to the message; and
retrieving the configuration file from a database using an identifier provided with the message.

### Claim 3 (depends on 1)

The method of claim 1, wherein each input parameter group defines at least one input value to populate placeholders of the prompt templates.

### Claim 4 (depends on 1)

The method of claim 1, wherein the configuration file defines a set of metrics for evaluation of outputs of the one or more LLMs.

### Claim 5 (depends on 1)

The method of claim 1, wherein the configuration file identifies the one or more LLMs that are to be prompted using the set of prompts and, for each LLM, defines a set of parameters for execution of the LLM, the set of parameters comprising temperature and maximum number of tokens.

### Claim 6 (depends on 1)

The method of claim 1, wherein prompts in the set of prompts comprise one or more of reference-free prompts and reference-based prompts.

### Claim 7 (depends on 1)

The method of claim 1, wherein the configuration file comprises a YAML Ain′t Markup Language (YAML) file.

### Claim 8

A non-transitory computer-readable storage medium coupled to one or more processors and having instructions stored thereon which, when executed by the one or more processors, cause the one or more processors to perform operations for engineering of prompt templates for prompting large language models (LLMs), the operations comprising:
receiving user input defining configuration parameters for a set of prompt templates;
providing a configuration file responsive to the user input;
processing the configuration file to generate a set of prompts by populating at least one placeholder of each prompt template with at least one input parameter of input parameters groups defined in the configuration file;
transmitting the prompts in the set of prompts to one or more LLMs;
receiving, from the one or more LLMs, a set of outputs;
transmitting a set of metric evaluation prompts to at least one LLM, each metric evaluation prompt being provided using an evaluation prompt template and an output;
receiving, from the at least one LLM, a set of evaluation results, each evaluation result corresponding to a respective prompt in the set of prompts; and
responsive to the set of evaluation results, selectively deploying prompt templates in the set of prompt templates for production use in prompting the one or more LLMs.

### Claim 9 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein processing the configuration file to generate a set of prompts comprises:
receiving a message from a messaging queue based on a topic assigned to the message; and
retrieving the configuration file from a database using an identifier provided with the message.

### Claim 10 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein each input parameter group defines at least one input value to populate placeholders of the prompt templates.

### Claim 11 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein the configuration file defines a set of metrics for evaluation of outputs of the one or more LLMs.

### Claim 12 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein the configuration file identifies the one or more LLMs that are to be prompted using the set of prompts and, for each LLM, defines a set of parameters for execution of the LLM, the set of parameters comprising temperature and maximum number of tokens.

### Claim 13 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein prompts in the set of prompts comprise one or more of reference-free prompts and reference-based prompts.

### Claim 14 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein the configuration file comprises a YAML Ain′t Markup Language (YAML) file.

### Claim 15

A system, comprising:
a computing device; and
a computer-readable storage device coupled to the computing device and having instructions stored thereon which, when executed by the computing device, cause the computing device to perform operations for engineering of prompt templates for prompting large language models (LLMs), the operations comprising:
receiving user input defining configuration parameters for a set of prompt templates,
providing a configuration file responsive to the user input,
processing the configuration file to generate a set of prompts by populating at least one placeholder of each prompt template with at least one input parameter of input parameters groups defined in the configuration file,
transmitting the prompts in the set of prompts to one or more LLMs,
receiving, from the one or more LLMs, a set of outputs,
transmitting a set of metric evaluation prompts to at least one LLM, each metric evaluation prompt being provided using an evaluation prompt template and an output,
receiving, from the at least one LLM, a set of evaluation results, each evaluation result corresponding to a respective prompt in the set of prompts, and
responsive to the set of evaluation results, selectively deploying prompt templates in the set of prompt templates for production use in prompting the one or more LLMs.

### Claim 16 (depends on 15)

The system of claim 15, wherein processing the configuration file to generate a set of prompts comprises:
receiving a message from a messaging queue based on a topic assigned to the message; and
retrieving the configuration file from a database using an identifier provided with the message.

### Claim 17 (depends on 15)

The system of claim 15, wherein each input parameter group defines at least one input value to populate placeholders of the prompt templates.

### Claim 18 (depends on 15)

The system of claim 15, wherein the configuration file defines a set of metrics for evaluation of outputs of the one or more LLMs.

### Claim 19 (depends on 15)

The system of claim 15, wherein the configuration file identifies the one or more LLMs that are to be prompted using the set of prompts and, for each LLM, defines a set of parameters for execution of the LLM, the set of parameters comprising temperature and maximum number of tokens.

### Claim 20 (depends on 15)

The system of claim 15, wherein prompts in the set of prompts comprise one or more of reference-free prompts and reference-based prompts.
