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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -27
app.py CHANGED
@@ -24,33 +24,20 @@ st.write(f"You selected: {mode}")
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
  """
 
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
  """