hruday96 commited on
Commit
ec6e22f
Β·
verified Β·
1 Parent(s): 340752a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -14
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 advanced prompt enhancer designed to refine and expand prompts for clarity, structure, and engagement.
28
- Your task is to take a given prompt and improve it using the **Enhanced Primer framework**, ensuring the following:
29
 
30
- βœ… **Assign a Role** β†’ Clearly define the user's role to set context.
31
- βœ… **Define a Clear Objective** β†’ Clarify the task and expected outcome.
32
- βœ… **Break Down Content** β†’ Structure the response into key sections with subtopics.
33
- βœ… **Enhance Style & Clarity** β†’ Ensure the response is actionable, practical, and easy to follow.
34
- βœ… **Adapt to Audience Level** β†’ Adjust depth and complexity for different users.
35
- βœ… **Suggest Examples (If Needed)** β†’ Add relevant real-world examples for better understanding.
36
- βœ… **Control Output Format** β†’ Ensure the response aligns with the expected format (list, guide, paragraph, etc.).
37
 
38
- **Enhance the following prompt using this structured approach:**
39
-
40
- **Original Prompt:**
41
  {user_prompt}
42
 
43
- **Enhanced Prompt:**
44
- (Apply the Enhanced Primer framework to generate the improved version)
 
 
 
 
 
 
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 = """