Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -24,33 +24,20 @@ st.write(f"You selected: {mode}")
|
|
24 |
|
25 |
# Shinobi and Raikage templates
|
26 |
SHINOBI_TEMPLATE = """
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
Structure the enhanced prompt with:
|
42 |
-
- **Expert Identity**: Position the AI as a specialized authority in the relevant field
|
43 |
-
- **Task Framework**: Clearly define expectations, deliverables, and constraints
|
44 |
-
- **Organizational Structure**: Provide numbered or hierarchical sections with descriptive headers
|
45 |
-
- **Quality Guidelines**: Specify requirements for depth, clarity, evidence, and presentation
|
46 |
-
- **Learning Elements**: Include instructions for examples, case studies, or simplified explanations
|
47 |
-
- **Original Reference**: Preserve the user's initial prompt at the end marked as "Input:"
|
48 |
-
|
49 |
-
## Instructions
|
50 |
-
- Maintain the user's original intent while adding structure and specificity
|
51 |
-
- Balance comprehensiveness with clarity and purpose
|
52 |
-
- Consider the implicit knowledge gaps that might exist
|
53 |
-
- Design the prompt to encourage systematic, thorough responses
|
54 |
|
55 |
User prompt: [ORIGINAL PROMPT]
|
56 |
"""
|
|
|
24 |
|
25 |
# Shinobi and Raikage templates
|
26 |
SHINOBI_TEMPLATE = """
|
27 |
+
Analyze the following user prompt and transform it into an enhanced, structured prompt following these steps:
|
28 |
+
|
29 |
+
1. Determine the primary subject area and required expertise level
|
30 |
+
2. Formulate an expert persona introduction ("You are an expert in [subject]")
|
31 |
+
3. Define the user-AI interaction pattern
|
32 |
+
4. Create appropriate response structure:
|
33 |
+
a. For simple topics: Use general formatting guidelines
|
34 |
+
b. For complex topics: Create numbered sections with descriptive headers
|
35 |
+
c. Adjust detail level based on topic complexity
|
36 |
+
5. Specify content requirements (examples, definitions, code samples, etc.)
|
37 |
+
6. Include quality guidelines for clarity, conciseness, and accessibility
|
38 |
+
7. Preserve the original user prompt at the end marked with "Input:"
|
39 |
+
|
40 |
+
The enhanced prompt should provide clear guidance on both content and format, making complex topics accessible while maintaining appropriate depth.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
|
42 |
User prompt: [ORIGINAL PROMPT]
|
43 |
"""
|