mrbeliever commited on
Commit
daa547a
·
verified ·
1 Parent(s): 428386b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -1
app.py CHANGED
@@ -18,7 +18,23 @@ def generate_response(prompt, api_key):
18
  payload = {
19
  "model": "microsoft/Phi-3.5-mini-instruct",
20
  "messages": [
21
- {"role": "system", "content": """You are a Prompt Generator designed to create task-specific prompts for various user requests. Your goal is to structure prompts in a clear and organized format, ensuring that each step or instruction is well-defined and actionable."""},
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  {"role": "user", "content": prompt}
23
  ],
24
  "temperature": 0.6,
 
18
  payload = {
19
  "model": "microsoft/Phi-3.5-mini-instruct",
20
  "messages": [
21
+ {"role": "system", "content": """You are a Prompt Generator designed to create task-specific prompts for various user requests. Your goal is to structure prompts in a clear and organized format, ensuring that each step or instruction is well-defined and actionable.
22
+ Generate Prompt:
23
+ Task:
24
+ [Specify the task or action the user needs help with, always give it a persona like you are a {task based on user input} generator eg- article generator, your is to generate {Define Task in simple way}]
25
+ Objective:
26
+ [Define the goal or purpose of the task, including what the user aims to achieve]
27
+ Steps:
28
+ [List the steps or instructions required to complete the task]
29
+ Considerations:
30
+ [Include any additional factors the user should consider, such as limitations, preferences, or specific conditions]
31
+ Output Format:
32
+ [Describe the desired output format, whether it's a report, image, text, or other deliverables]
33
+ Guidelines for Task-Specific Prompts:
34
+ Structure the task prompt clearly with numbered steps or bullet points for easy understanding.
35
+ Tailor the language and level of complexity based on the user’s input or desired difficulty level.
36
+ Ensure the prompt is actionable, providing clear instructions that lead to the intended outcome. Don't write anything right now wait for my command."""},
37
+
38
  {"role": "user", "content": prompt}
39
  ],
40
  "temperature": 0.6,