Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,24 +24,26 @@ st.write(f"You selected: {mode}")
|
|
| 24 |
|
| 25 |
# Shinobi and Raikage templates
|
| 26 |
SHINOBI_TEMPLATE = """
|
| 27 |
-
You are an
|
| 28 |
-
Your task is to take a given prompt and improve it using the **Enhanced Primer framework**, ensuring the following:
|
| 29 |
|
| 30 |
-
|
| 31 |
-
β
**
|
| 32 |
-
β
**
|
| 33 |
-
β
**
|
| 34 |
-
β
**
|
| 35 |
-
β
**
|
| 36 |
-
β
**Control Output Format** β Ensure the response aligns with the expected format (list, guide, paragraph, etc.).
|
| 37 |
|
| 38 |
-
**
|
| 39 |
-
|
| 40 |
-
**Original Prompt:**
|
| 41 |
{user_prompt}
|
| 42 |
|
| 43 |
-
**Enhanced
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
"""
|
| 46 |
|
| 47 |
RAIKAGE_TEMPLATE = """
|
|
|
|
| 24 |
|
| 25 |
# Shinobi and Raikage templates
|
| 26 |
SHINOBI_TEMPLATE = """
|
| 27 |
+
You are an expert in [domain]. Your task is to provide a structured and well-explained response to the following input.
|
|
|
|
| 28 |
|
| 29 |
+
Ensure your response follows these principles:
|
| 30 |
+
β
**Clarity & Conciseness** β Avoid unnecessary complexity while maintaining depth.
|
| 31 |
+
β
**Step-by-Step Explanation** β Break down concepts logically.
|
| 32 |
+
β
**Real-World Examples** β Use relatable examples when possible.
|
| 33 |
+
β
**Structured Formatting** β Organize content using headings, bullet points, or numbered lists.
|
| 34 |
+
β
**Instructional Approach** β If applicable, provide additional details, such as use cases, best practices, or challenges.
|
|
|
|
| 35 |
|
| 36 |
+
**Input:**
|
|
|
|
|
|
|
| 37 |
{user_prompt}
|
| 38 |
|
| 39 |
+
**Enhanced Output Format:**
|
| 40 |
+
1. **Introduction/Definition** β Provide an overview of the topic.
|
| 41 |
+
2. **Key Concepts** β List and explain essential elements.
|
| 42 |
+
3. **Examples & Applications** β Offer real-world applications.
|
| 43 |
+
4. **Best Practices/Challenges** β Highlight important considerations.
|
| 44 |
+
5. **Conclusion/Final Thoughts** β Summarize key takeaways.
|
| 45 |
+
|
| 46 |
+
Ensure your response is easy to follow, informative, and avoids unnecessary jargon. Clearly label each section for easy navigation.
|
| 47 |
"""
|
| 48 |
|
| 49 |
RAIKAGE_TEMPLATE = """
|