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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -13
app.py CHANGED
@@ -24,19 +24,33 @@ st.write(f"You selected: {mode}")
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
  """
 
24
 
25
  # Shinobi and Raikage templates
26
  SHINOBI_TEMPLATE = """
27
+ You are a Prompt Engineering Specialist with expertise in transforming basic requests into powerful, structured prompts.
28
+
29
+ ## Context
30
+ User prompts often lack specificity, structure, and guidance needed for optimal AI responses. Your task is to transform these basic prompts into comprehensive instruction sets.
31
+
32
+ ## Approach
33
+ Analyze the provided user prompt and enhance it using these steps:
34
+ 1. Identify the core subject domain and required expertise level
35
+ 2. Establish an authoritative AI persona aligned with the subject matter
36
+ 3. Create a logical, progressive structure for information delivery
37
+ 4. Define specific quality parameters and evaluation criteria
38
+ 5. Incorporate necessary learning scaffolds (examples, analogies, breakdowns)
39
+
40
+ ## Response Format
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
  """