Annotated LLM Prompting for Consistent Multi-Instruction Text Revision

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing ML-based text revision services limit user input to general instructions, process each editing instruction in isolation, leading to inefficiencies and inconsistencies, and do not allow for specific stylistic instructions, resulting in poor model performance and inconsistent text revisions.

Innovation Solution

A technical solution that enables multiple text-editing instructions to be included in a single prompt to a large language model (LLM), providing contextual information and improving computational efficiency, cohesiveness, and relevance of the generated text.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If multiple editing instructions are processed in isolation by ML-based services, then each instruction can be handled individually, but computational efficiency deteriorates and inconsistencies arise in the revised text

Engineering Contradiction:
Improveconsistency of text revisionsVSAvoidcomputational efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent combines multiple editing instructions into a single prompt that is processed by the large language model in one operation. This merging approach eliminates the need to process instructions sequentially in isolation, thereby improving computational efficiency while ensuring that all instructions are applied consistently to generate a cohesive revised text output.

Inventive Principle:
Principle #5Merging (Combining)

2Adaptability or versatility

If general instructions are provided for text revision, then the system can process a broader range of editing tasks, but the ability to provide specific stylistic instructions is lost

Engineering Contradiction:
Improverange of editing tasksVSAvoidspecificity of stylistic instructions
Core Design Contradiction:
Adaptability or versatilityVSEase of operation

Solution Approach 1:

The patent enables users to provide specific stylistic instructions for different portions of text while maintaining the ability to handle various editing tasks. The system accepts both general editing instructions and specific stylistic directives, allowing users to tailor the revision process to their needs with greater precision and ease of operation.

Inventive Principle:
Principle #3Local quality

3Manufacturing precision

If multiple prompts are processed sequentially, then each instruction can be applied step-by-step, but processing time increases and model performance deteriorates

Engineering Contradiction:
Improvequality of text revisionVSAvoidprocessing time
Core Design Contradiction:
Manufacturing precisionVSLoss of time

Solution Approach 1:

The patent merges multiple editing instructions into a single comprehensive prompt that is processed by the large language model in one operation. This approach reduces processing time significantly compared to sequential processing of multiple prompts, while the model's ability to understand and apply all instructions simultaneously ensures high quality text revision output.

Inventive Principle:
Principle #5Merging (Combining)

4Ease of operation

If the user interface provides limited editing options, then the system is easier to operate, but the intuitiveness and user satisfaction deteriorate

Engineering Contradiction:
Improvesimplicity of interfaceVSAvoidintuitiveness of editing options
Core Design Contradiction:
Ease of operationVSAdaptability or versatility

Solution Approach 1:

The patent implements a user interface that provides versatile editing options while maintaining ease of operation. The system offers multiple editing instructions and stylistic options that users can select from, making the interface intuitive and adaptable to different user needs, while still being simple enough for easy operation.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS20250356111A1Methods and systems for prompting large language model to process inputs from multiple user elements
Publication Date: 2025.11.20 SHOPIFY INC
  • US20250356111A1 patent drawing
  • US20250356111A1 patent drawing
  • US20250356111A1 patent drawing

AI summary

Methods and systems for prompting a large language model (LLM) to process inputs from multiple user elements to generate a revised block of text are described. One or more text-editing instructions related to respective one or more selected text portions in a block of text are received. A prompt is generated for a LLM to generate a revised block of text, the prompt including at least a portion of an annotated block of text, the annotated block of text including each text-editing instruction inserted into the block of text relative to each respective selected text portion. The prompt is provided to the LLM and a revised block of text is received and outputted.