# US 2025/0165230 A1 · Playbook generation using controlled causal language modeling

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

- Number: US 2025/0165230 A1
- Document ID: US20250165230A1
- Status: Published application
- Kind: A1
- Application number: 18/514,472
- Filed: 2023-11-20
- Published: 2025-05-22
- Earliest claimed: 2023-11-20
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Mehant Kammakomati; Prince Kumar; Ashok Pon Kumar Sree Prakash; Srikanth Govindaraj Tamilselvam; Padmanabha Venkatagiri Seshadri
- Web page: https://patentgrep.com/patent/US20250165230A1

## CPC

- G06F 8/35: model driven
- G06F 40/205: Parsing
- G06F 40/30: Semantic analysis
- G06F 40/40: Processing or translation of natural language (natural language analysis G06F40/20; semantic analysis G06F40/30)
- G06N 3/08: Learning methods
- G06N 20/00: Machine learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Methods and systems for generating a playbook include parsing a prompt and playbook context to identify modules. Names of identified modules are added to the prompt to create a modified prompt. A document relevant to the playbook context and the modified prompt is identified based on a semantic search. A schema is determined based on the document. An automatic completion of the prompt is generated in accordance with the schema using a trained model.

## Claims

### Claim 1

A method of generating a playbook, comprising:
parsing a prompt and playbook context to identify modules;
adding names of identified modules to the prompt to create a modified prompt;
identifying a document relevant to the playbook context and the modified prompt based on a semantic search;
determining a schema based on the document; and
generating an automatic completion of the prompt in accordance with the schema using a trained model.

### Claim 2 (depends on 1)

The method of claim 1, wherein identifying the document includes searching a set of documentation for the modules.

### Claim 3 (depends on 2)

The method of claim 2, wherein the document defines the schema to include a format for using a respective module in a playbook.

### Claim 4 (depends on 1)

The method of claim 1, wherein generating the automatic completion is further performed in accordance with a constraint.

### Claim 5 (depends on 4)

The method of claim 4, wherein the constraint is selected from the group consisting of a default constraint, a constraint of a value to a corresponding set, a constraint of a value to a particular type, and a required field.

### Claim 6 (depends on 1)

The method of claim 1, wherein the context includes a partially defined playbook and the prompt includes a description of a function to be implemented by the automatic completion.

### Claim 7 (depends on 1)

The method of claim 1, wherein identifying the document is performed using an encoder-only transformer-based neural network model.

### Claim 8 (depends on 7)

The method of claim 7, wherein the encoder-only transformer-based neural network model is trained on a dataset made up of triplets that each include a query, a positive passage, and a negative passage using a multiple negative ranking loss function.

### Claim 9 (depends on 1)

The method of claim 1, wherein generating the automatic completion is performed using a decoder-only neural network model for causal language modeling.

### Claim 10 (depends on 9)

The method of claim 9, wherein the decoder-only model is trained on a dataset made up of pairs that each include a module name and a combination of a prompt and a context.

### Claim 11

A system for generating a playbook, comprising:
a hardware processor; and
a memory that stores a computer program which, when executed by the hardware processor, causes the hardware processor to:
parse a prompt and playbook context to identify modules;
add names of identified modules to the prompt to create a modified prompt;
identify a document relevant to the playbook context and the modified prompt based on a semantic search;
determine a schema based on the document; and
generate an automatic completion of the prompt in accordance with the schema using a trained model.

### Claim 12 (depends on 11)

The system of claim 11, wherein identifying the document includes searching a set of documentation for the modules.

### Claim 13 (depends on 12)

The system of claim 12, wherein the document defines the schema to include a format for using a respective module in a playbook.

### Claim 14 (depends on 11)

The system of claim 11, wherein generating the automatic completion is further performed in accordance with a constraint.

### Claim 15 (depends on 14)

The system of claim 14, wherein the constraint is selected from the group consisting of a default constraint, a constraint of a value to a corresponding set, a constraint of a value to a particular type, and a required field.

### Claim 16 (depends on 11)

The system of claim 11, wherein the context includes a partially defined playbook and the prompt includes a description of a function to be implemented by the automatic completion.

### Claim 17 (depends on 11)

The system of claim 11, wherein identifying the document is performed using an encoder-only transformer-based neural network model.

### Claim 18 (depends on 17)

The system of claim 17, wherein the encoder-only transformer-based neural network model is trained on a dataset made up of triplets that each include a query, a positive passage, and a negative passage using a multiple negative ranking loss function.

### Claim 19 (depends on 11)

The system of claim 11, wherein generating the automatic completion is performed using a decoder-only neural network model for causal language modeling, trained on a dataset made up of pairs that each include a module name and a combination of a prompt and a context.

### Claim 20

A computer program product for generating a playbook, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions being executable by a hardware processor to cause the hardware processor to:
parse a prompt and playbook context to identify modules;
add names of identified modules to the prompt to create a modified prompt;
identify a document relevant to the playbook context and the modified prompt based on a semantic search;
determine a schema based on the document; and
generate an automatic completion of the prompt in accordance with the schema using a trained model.
