AI Prompt Gateway for Language Model Optimization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Creating effective prompts for machine-learned language models is challenging due to their complexity, making it difficult to elicit relevant and direct responses.

Innovation Solution

An online system with a gateway that intercepts and evaluates prompts, using feedback from users and information from the system to optimize prompts, and a second machine-learned language model to generate recommendations for improving prompts.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If a large and complex language model with billions of parameters is used, then the model's capability for natural language understanding and generation is improved, but the difficulty of creating effective prompts increases

Engineering Contradiction:
Improvelanguage model capabilityVSAvoidprompt creation complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

A second machine-learned language model is introduced as an intermediary to generate prompt recommendations. This mediator analyzes user prompts and translates them into optimized versions that are more likely to elicit desired responses from the first language model, thereby reducing the complexity of direct prompt creation while maintaining the sophisticated capabilities of the large language model

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system implements a feedback cycle where user responses and conversation outcomes are monitored and fed back into the second language model. This feedback mechanism enables the prompt recommendation model to continuously learn from actual usage patterns and improve its prompt generation capabilities, making the system adaptive to evolving language dynamics and application-specific needs

Inventive Principle:
Principle #23Feedback

2Ease of operation

If prompt optimization is performed manually, then the ease of operation is improved, but the productivity decreases

Engineering Contradiction:
Improveprompt optimization easeVSAvoidprompt creation efficiency
Core Design Contradiction:
Ease of operationVSProductivity

Solution Approach 1:

The system enables self-service prompt optimization by automatically generating prompt recommendations without requiring manual intervention. The second language model autonomously analyzes user inputs and conversation contexts, then generates optimized prompts that users can directly use, eliminating the need for manual prompt engineering while maintaining high effectiveness

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system performs preliminary action by pre-generating optimized prompt recommendations before the user needs to interact with the language model. The second language model proactively creates improved prompts based on the user's initial input and intended goals, so that when the user receives the response, the optimization has already been done, saving time and effort

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS20250173606A1Automated machine-learned language model prompt recommendations
Publication Date: 2025.05.29 MAPLEBEAR INC
  • US20250173606A1 patent drawing
  • US20250173606A1 patent drawing
  • US20250173606A1 patent drawing

AI summary

An online system may receive a registration of an application for a language model gateway configured as an intermediary between users and a first machine-learned language model. The online system may monitor a conversation associated with the application using the language model gateway. The conversation is between a user of the application and the first machine-learned language model and includes a prompt from the user directed toward the first machine-learned language model. The online system may extract the prompt and compile an input for a second machine-learned language model that is fine-tuned to improve prompts. The input may be the prompt and one or more criteria to improve the prompt. The online system may provide the input to the second machine-learned language model. The online system may determine a suggested improvement to the prompt using the second machine-learned language model and provide the suggested improvement to the user.