Skip to content
TheChatArchiveThe Chat Archive
gpt-4o-mini-2024-07-18· OpenAIAi2 WildChat-4.8M (AI2)

As an expert in prompt engineering, your task is to optimize the following prompt for…

  1. User

    As an expert in prompt engineering, your task is to optimize the following prompt for clarity, effectiveness, and precision. Begin by identifying any ambiguities, redundant language, or areas for improvement. Refactor the prompt using advanced prompt engineering techniques, such as:

    • Role Assignment: Specify an appropriate role or perspective for the model to adopt.
    • Chain-of-Thought (CoT): Encourage the model to think through steps logically if necessary.
    • Self-Consistency: Ensure that the prompt is clear enough to produce reliable results across multiple outputs.
    • Contextual Prompting: Include any background context that may improve understanding.

    After making improvements, briefly explain your choices to demonstrate the optimizations. Here is the prompt to optimize:

    ---prompt-start---

    The main problem in the code is the inconsistency between the display of the product header and the features of the product. Create a roadmap to address this issue. First, determine how products are currently displayed and identify any differences. Try to understand how the entire comparison table functions internally. Additionally, work to align the product change mechanism. After creating a step-by-step roadmap, begin with the first step. Once I approve it, you may proceed to the next step. ---prompt-end---

  2. Assistant

    Optimized Prompt:


    Role Assignment: As a software development consultant, analyze the inconsistencies in the product header display versus the product features.

    Contextual Prompting: Currently, users have reported discrepancies in how product headers are presented compared to their features within the comparison table of our application.

    Task: Create a detailed, step-by-step roadmap to resolve the issue.

    1. Initial Analysis:

      • First, assess the current display mechanism for the products.
      • Identify and document any inconsistencies between the product header and its features.
    2. Functionality Understanding:

      • Investigate how the comparison table operates internally.
      • Note any interconnected components that might affect product display.
    3. Alignment Process:

      • Suggest methods to unify the product change mechanism in line with the product display.

    After outlining the roadmap, begin detailing the first step. Once I review and approve this step, you may proceed to the subsequent tasks.


    Explanation of Optimizations:

    1. Role Assignment: By specifying the model's role as a "software development consultant," it aligns the perspective, making the response more focused and appropriate for the context.

    2. Contextual Prompting: Adding context clarifies the problem by establishing the user's perspective and driving the urgency for a solution, which aids in understanding the importance of the task.

    3. Structured Task Breakdown: Formatting the roadmap into clearly numbered steps helps the model logically progress through the problem, facilitating a systematic approach to solving the issues.

    4. Clarity and Precision: The revised prompt uses straightforward language, ensuring that each step and requirement is unambiguous and easy to follow. This thoroughness promotes self-consistency in outputs, as it provides a clear structure for the model to generate reliable responses.

    5. Progressive Output Design: By instructing the model to present the first step before proceeding, it encourages careful examination and feedback, enhancing the interactive nature of the task.