LLM Recipe Refinement With Context and Feedback Loops

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing online concierge systems struggle to generate high-quality recipes at scale due to the lack of context and validation in automatically generated content, leading to recipes that lack appeal and accuracy.

Innovation Solution

An online concierge system utilizes a large language model (LLM) to generate initial recipe content, followed by refining it with contextual information and feedback mechanisms to enhance the quality and authenticity of the recipes.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If recipes are automatically generated using language models without context or validation, then recipe generation speed and scale are improved, but recipe quality and accuracy deteriorate

Engineering Contradiction:
Improverecipe generation speedVSAvoidrecipe quality
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The system performs preliminary actions by generating initial recipe content through the language model before refinement. The multi-step process includes initial generation, quality assessment, and iterative refinement, where each step prepares the content for the next level of processing. This preliminary structuring enables efficient automation while maintaining quality control through staged validation.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system implements feedback mechanisms where generated recipe content is evaluated against quality criteria and contextual information. The assessment module provides feedback on the initial generation, triggering iterative refinement cycles. This closed-loop feedback ensures that recipes meet quality standards while maintaining automated generation capabilities at scale.

Inventive Principle:
Principle #23Feedback

2Productivity

If recipes are generated without contextual information, then generation efficiency is improved, but recipe appeal and usefulness deteriorate

Engineering Contradiction:
Improvegeneration efficiencyVSAvoidrecipe appeal
Core Design Contradiction:
ProductivityVSEase of operation

Solution Approach 1:

The system segments the recipe generation process into distinct functional modules: initial content generation, contextual information retrieval, quality assessment, and iterative refinement. Each segment handles specific tasks independently, allowing efficient parallel processing while ensuring comprehensive integration of contextual information at appropriate stages. This segmentation maintains productivity while enhancing recipe quality through specialized processing.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system performs preliminary retrieval and integration of contextual information (ingredients, cooking techniques, dietary requirements) before final recipe assembly. This preliminary preparation ensures that appealing and useful contextual elements are incorporated efficiently without compromising generation speed, as the context is prepared in advance for rapid integration.

Inventive Principle:
Principle #10Preliminary action

3Device complexity

If a single-step generation process is used, then system complexity is reduced, but content accuracy and completeness deteriorate

Engineering Contradiction:
Improvesystem complexityVSAvoidcontent accuracy
Core Design Contradiction:
Device complexityVSManufacturing precision

Solution Approach 1:

The system segments the generation process into modular components (generation module, assessment module, refinement module) that interact through standardized interfaces. This segmentation improves content accuracy through specialized processing at each stage while keeping system complexity manageable through clear module boundaries and reusable components. Each module can be independently optimized and validated.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system applies partial refinement iterations based on assessed quality thresholds. Rather than always performing complete multi-stage refinement, the system applies refinement actions proportionally to the detected quality deficiencies. This approach achieves necessary accuracy improvements while avoiding excessive processing complexity for already high-quality content.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS12468894B2Using language model to generate recipe with refined content
Publication Date: 2025.11.11 MAPLEBEAR INC
  • US12468894B2 patent drawing
  • US12468894B2 patent drawing
  • US12468894B2 patent drawing

AI summary

Embodiments relate to utilizing a language model to automatically generate a novel recipe with refined content, which can be offered to a user of an online system. The online system generates a first prompt for input into a large language model (LLM), the first prompt including a plurality of task requests for generating initial content of a recipe. The online system requests the LLM to generate, based on the first prompt input into the LLM, the initial content of the recipe. The online system generates a second prompt for input into the LLM, the second prompt including the initial content of the recipe and contextual information about the recipe. The online system requests the LLM to generate, based on the second prompt input into the LLM, refined content of the recipe. The online system stores the recipe with the refined content in a database of the online system.