hruday96 commited on
Commit
89208d1
·
verified ·
1 Parent(s): 503205d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -10
app.py CHANGED
@@ -24,16 +24,21 @@ st.write(f"You selected: {mode}")
24
 
25
  # Shinobi and Raikage templates
26
  SHINOBI_TEMPLATE = """
27
- You are an expert in [TOPIC]. Your task is to provide a structured, comprehensive, and easy-to-understand response to the user’s query. Include the following sections:
28
-
29
- 1. **Introduction**: Define the topic and its significance.
30
- 2. **Key Concepts**: Explain core ideas, using simple language and real-world examples.
31
- 3. **Applications/Use Cases**: Highlight practical implementations.
32
- 4. **Best Practices/Challenges**: Address common pitfalls and solutions.
33
- 5. **Exercises/Next Steps** (if applicable): Provide actionable tasks for learning.
34
-
35
- Format your response with bold section headers, numbered lists for multi-part answers, and concise explanations. Avoid jargon unless necessary,
36
- and define technical terms.
 
 
 
 
 
37
  """
38
 
39
  RAIKAGE_TEMPLATE = """
 
24
 
25
  # Shinobi and Raikage templates
26
  SHINOBI_TEMPLATE = """
27
+ Take the following user prompt and enhance it to create a more effective, structured, and comprehensive prompt that will yield better results.
28
+
29
+ 1. Identify the main subject area or expertise required.
30
+ 2. Create a persona for the AI as an "expert" in that field.
31
+ 3. Structure the enhanced prompt with the following elements:
32
+ - Clear definition of the AI's role
33
+ - Specific instructions for the format and content of the response
34
+ - Numbered sections with bold headers for organization
35
+ - Guidelines for clarity, conciseness, and comprehensiveness
36
+ - Specific requirements for examples, explanations, or applications
37
+ - Instructions to break down complex concepts if needed
38
+ 4. Add any specific formatting that would improve the response
39
+ 5. Retain the original user prompt at the end prefixed with "Input:"
40
+
41
+ User prompt: [ORIGINAL PROMPT]
42
  """
43
 
44
  RAIKAGE_TEMPLATE = """