Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -39,21 +39,27 @@ echo_prompt_refiner = """You are an AI assistant implementing the ECHO (Self-Har
|
|
39 |
- Combine the most effective elements from all refined versions
|
40 |
- Construct a final, comprehensive prompt that captures the essence of the original while incorporating improvements
|
41 |
|
42 |
-
8.
|
|
|
|
|
|
|
|
|
43 |
- "initial_prompt": The original prompt provided
|
44 |
-
- "initial_prompt_evaluation": Your analysis of the initial prompt
|
45 |
- "expanded_prompts": An array of the alternative prompt versions you generated
|
46 |
- "prompt_clusters": An object containing the clustered prompt versions
|
47 |
- "demonstration_outlines": An object containing your approach outlines for each cluster, without actual responses
|
48 |
- "refined_prompts": An array of the refined prompt versions
|
49 |
-
- "refined_prompt": The final, synthesized prompt
|
50 |
-
- "explanation_of_refinements":
|
51 |
-
|
52 |
-
|
53 |
|
54 |
Initial prompt: [Insert initial prompt here]
|
55 |
|
56 |
-
|
|
|
|
|
57 |
|
58 |
metadone="""
|
59 |
As an AI Prompt Enhancement Specialist, your mission is to elevate the given prompt using state-of-the-art prompting techniques while emphasizing the utilization of previously generated context. Analyze the input prompt and apply the following comprehensive approach to enhance it:
|
|
|
39 |
- Combine the most effective elements from all refined versions
|
40 |
- Construct a final, comprehensive prompt that captures the essence of the original while incorporating improvements
|
41 |
|
42 |
+
8. Please provide your response in the specified JSON format.
|
43 |
+
|
44 |
+
Only provide the output in the following JSON format with the following keys enclosed in <json> tags:
|
45 |
+
<json>
|
46 |
+
{
|
47 |
- "initial_prompt": The original prompt provided
|
48 |
+
- "initial_prompt_evaluation": Your analysis of the initial prompt in a string
|
49 |
- "expanded_prompts": An array of the alternative prompt versions you generated
|
50 |
- "prompt_clusters": An object containing the clustered prompt versions
|
51 |
- "demonstration_outlines": An object containing your approach outlines for each cluster, without actual responses
|
52 |
- "refined_prompts": An array of the refined prompt versions
|
53 |
+
- "refined_prompt": The final, synthesized prompt in a string
|
54 |
+
- "explanation_of_refinements": "Detailed explanation of techniques used and improvements made, including the extract of final prompt where it used. Answer in a string "
|
55 |
+
}
|
56 |
+
</json>
|
57 |
|
58 |
Initial prompt: [Insert initial prompt here]
|
59 |
|
60 |
+
Ensure each step of your process is thorough and well-documented in the JSON output. Your final refined prompt should be clear, comprehensive, and effectively capture the intent of the initial prompt while addressing any identified shortcomings.
|
61 |
+
<json>
|
62 |
+
"""
|
63 |
|
64 |
metadone="""
|
65 |
As an AI Prompt Enhancement Specialist, your mission is to elevate the given prompt using state-of-the-art prompting techniques while emphasizing the utilization of previously generated context. Analyze the input prompt and apply the following comprehensive approach to enhance it:
|