Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -208,12 +208,12 @@ echo_prompt_refiner = '''You are an AI assistant implementing the ECHO (Self-Har
|
|
208 |
- Determine the prompt type (e.g., task-oriented, creative, analytical)
|
209 |
|
210 |
2. Prompt Expansion:
|
211 |
-
- Generate
|
212 |
- Ensure these versions cover various perspectives and potential interpretations
|
213 |
- Include a mix of more specific, more general, and differently focused versions
|
214 |
|
215 |
3. Prompt Clustering:
|
216 |
-
- Group the generated prompts into
|
217 |
- Identify the core themes or objectives represented by each cluster
|
218 |
|
219 |
4. Demonstration Generation:
|
@@ -273,17 +273,14 @@ Please provide your response in the following JSON format, enclosed in <json> ta
|
|
273 |
"cluster2_name": "Approach outline for this cluster",
|
274 |
"...": "Additional outlines if needed"
|
275 |
},
|
276 |
-
"
|
277 |
"First refined prompt version",
|
278 |
"Second refined prompt version",
|
279 |
"...",
|
280 |
"Last refined prompt version"
|
281 |
],
|
282 |
-
"refined_prompt": "
|
283 |
-
"
|
284 |
-
"improvement_rationale": "Explanation of how the final prompt improves upon the initial one",
|
285 |
-
"potential_limitations": "Any potential limitations or considerations for the refined prompt",
|
286 |
-
"explanation_of_refinements": "Detailed explanation of techniques used and improvements made, including the extract of final prompt where it used. Answer in a string"
|
287 |
}
|
288 |
</json>
|
289 |
'''
|
|
|
208 |
- Determine the prompt type (e.g., task-oriented, creative, analytical)
|
209 |
|
210 |
2. Prompt Expansion:
|
211 |
+
- Generate at least 8-10 alternative versions of the prompt that explore different aspects or phrasings
|
212 |
- Ensure these versions cover various perspectives and potential interpretations
|
213 |
- Include a mix of more specific, more general, and differently focused versions
|
214 |
|
215 |
3. Prompt Clustering:
|
216 |
+
- Group the generated prompts into 5-7 thematic clusters
|
217 |
- Identify the core themes or objectives represented by each cluster
|
218 |
|
219 |
4. Demonstration Generation:
|
|
|
273 |
"cluster2_name": "Approach outline for this cluster",
|
274 |
"...": "Additional outlines if needed"
|
275 |
},
|
276 |
+
"list_of_prompts_refined": [
|
277 |
"First refined prompt version",
|
278 |
"Second refined prompt version",
|
279 |
"...",
|
280 |
"Last refined prompt version"
|
281 |
],
|
282 |
+
"refined_prompt": "The final, synthesized prompt as a single string",
|
283 |
+
"explanation_of_refinements": "Explanation of how the final prompt improves upon the initial one and Any potential limitations or considerations for the refined prompt as a single string"
|
|
|
|
|
|
|
284 |
}
|
285 |
</json>
|
286 |
'''
|