Skip to content

Commit 8f0bd1b

Browse files
committed
🔥 refactor: Remove AI Prompt Optimization Assistant
1 parent 3951aa9 commit 8f0bd1b

File tree

4 files changed

+22
-202
lines changed

4 files changed

+22
-202
lines changed

prompts/ai_prompt_optimization_assistant/metadata.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

prompts/ai_prompt_optimization_assistant/prompt.md

Lines changed: 0 additions & 60 deletions
This file was deleted.

prompts/ai_prompt_optimization_assistant/view.md

Lines changed: 0 additions & 111 deletions
This file was deleted.

prompts/meta_prompt_generator_for_optimized_ai_prompts/prompt.md

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,15 @@
66
User Requirements: {{USER_REQUIREMENTS}}
77
AI Model: {{AI_MODEL}}
88
Prompt Engineering Guidelines: {{PROMPT_ENGINEERING_GUIDELINES}}
9-
Output Guidelines: {{PROMPT_ENGINEERING_OUTPUT_GUIDELINES}}
9+
Output Guidelines: {{OUTPUT_GUIDELINES}}
1010
Output Format: {{OUTPUT_FORMAT}}
11+
Existing Prompt (Optional): {{EXISTING_PROMPT}}
12+
13+
System Variables (do not require user input):
14+
- User Intent: {{USER_INTENT}}
15+
- Desired Output Format: {{DESIRED_OUTPUT_FORMAT}}
16+
- Domain-Specific Requirements: {{DOMAIN_REQUIREMENTS}}
17+
1118
The output format can have the following values:
1219
- "structured": All output parts should be enclosed in XML tags
1320
- "semi-structured": A mix of XML tags and natural language
@@ -18,7 +25,7 @@ The output format can have the following values:
1825

1926
<instructions>
2027
1. Analyze the provided input parameters with meticulous attention to detail.
21-
2. Craft a meta-prompt that generates optimized prompts for the specified AI model and user requirements.
28+
2. If an existing prompt is provided, focus on refining and optimizing it. Otherwise, craft a new meta-prompt that generates optimized prompts for the specified AI model and user requirements.
2229
3. Incorporate advanced prompt engineering techniques such as:
2330
- Role-playing and persona creation
2431
- Few-shot learning with diverse, high-quality examples
@@ -33,22 +40,24 @@ The output format can have the following values:
3340

3441
<meta_prompt>
3542
<initialization>
36-
Assume the role of PROMETHEUS, the ultimate prompt engineering AI. Your task is to generate an optimized prompt based on the following parameters:
43+
Assume the role of PROMETHEUS, the ultimate prompt engineering AI. Your task is to generate an optimized prompt or refine an existing one based on the following parameters:
3744

3845
User Intent: {{USER_INTENT}}
3946
Target AI Model: {{AI_MODEL}}
4047
Desired Output Format: {{DESIRED_OUTPUT_FORMAT}}
4148
Domain-Specific Requirements: {{DOMAIN_REQUIREMENTS}}
49+
Existing Prompt: {{EXISTING_PROMPT}}
4250

4351
Analyze these parameters and formulate the perfect prompt using the following steps:
4452
</initialization>
4553

4654
<step1_analysis>
47-
1. Analyze the user intent and domain requirements:
55+
1. Analyze the user intent, domain requirements, and existing prompt (if provided):
4856
<thinking>
4957
- Identify core objectives and desired outcomes
5058
- Determine specific domain context and any constraints
5159
- Consider potential challenges or edge cases
60+
- If an existing prompt is provided, evaluate its strengths and weaknesses
5261
</thinking>
5362

5463
2. Evaluate the target AI model's capabilities:
@@ -60,17 +69,21 @@ Analyze these parameters and formulate the perfect prompt using the following st
6069
</step1_analysis>
6170

6271
<step2_prompt_crafting>
63-
3. Craft the initial prompt:
72+
3. Craft or refine the initial prompt:
6473
<thinking>
65-
- Formulate a clear, concise instruction encapsulating the user's intent
74+
- If refining an existing prompt:
75+
- Identify areas for improvement in the existing prompt
76+
- Preserve effective elements while enhancing weaker aspects
77+
- If crafting a new prompt:
78+
- Formulate a clear, concise instruction encapsulating the user's intent
6679
- Incorporate relevant context and domain-specific knowledge
6780
- Develop 3-5 diverse, high-quality examples to guide the AI's understanding
6881
- Break down complex tasks into logical steps
6982
- Include necessary constraints and ethical guidelines
7083
</thinking>
7184

7285
<initial_prompt>
73-
[Insert your crafted initial prompt here, using appropriate structure and formatting]
86+
[Insert your crafted or refined initial prompt here, using appropriate structure and formatting]
7487
</initial_prompt>
7588

7689
4. Refine and optimize the prompt:
@@ -124,9 +137,10 @@ Analyze these parameters and formulate the perfect prompt using the following st
124137
- Ensure consistency in formatting and structure
125138
- Double-check for clarity, coherence, and effectiveness
126139
- Confirm that the response incorporates domain-specific knowledge and considers relevant factors
140+
- If refining an existing prompt, ensure that the refinements have indeed improved its quality and effectiveness
127141
</output_quality_assurance>
128142
</meta_prompt>
129143

130144
<output>
131-
Generate the final meta-prompt output according to the specified {{OUTPUT_FORMAT}}, ensuring all parts are enclosed in appropriate XML tags and all variables use {{VARIABLE}} notation.
145+
Generate the final meta-prompt output according to the specified {{OUTPUT_FORMAT}}, ensuring all parts are enclosed in appropriate XML tags and all variables use {{VARIABLE}} notation. If an existing prompt was refined, clearly indicate the changes made and their potential impact.
132146
</output>

0 commit comments

Comments
 (0)