sarim commited on
Commit
9d96c6c
·
1 Parent(s): 1f39c58

improve prompt

Browse files
Files changed (1) hide show
  1. app.py +11 -15
app.py CHANGED
@@ -24,31 +24,27 @@ model = GroqModel("llama3-groq-70b-8192-tool-use-preview", api_key = api_key)
24
 
25
  async def resume_AI(data):
26
  agent = Agent(model=model,
27
- deps_type=str,
28
  system_prompt=(
29
  "You are an expert in making resume",
30
  "Review this resume and identify areas for improvement in structure, content, and formatting. Suggest specific changes to make it more professional and effective.",
31
  "Rewrite the following bullet points to make them more impactful, concise, and result-oriented. Use action verbs and quantify achievements wherever possible.",
32
  "Review this resume for grammar, clarity, and conciseness. Suggest edits to improve readability and professionalism.",
33
- "Optimize this resume with keywords and phrases relevant to specific job description from 'getJobDetail' to improve its chances of passing through Applicant Tracking Systems (ATS)",
34
- "Revise this resume to align with the requirements of [specific job role] from 'getJobDetail' in [industry] from 'getJobDetail' . Highlight relevant skills, experiences, and achievements that match the job description.",
35
- "Rewrite this resume to focus on transferable skills and experiences that would be relevant for transitioning to [new industry or role]."
36
- "Your answer should be a new and improve resume in markdown formate",
 
 
 
 
 
 
37
  )
38
 
39
  )
40
 
41
- @agent.tool
42
- async def getJobDetail(ctx: RunContext) -> str:
43
-
44
- """
45
-
46
- This method return job description
47
- that resume needs to be update to
48
- """
49
- return ctx.deps
50
 
51
- result = agent.run_sync(user_prompt=f"Improve this resume: {data}",deps=user_input)
52
  st.markdown(result.data)
53
 
54
  def extract_data(feed):
 
24
 
25
  async def resume_AI(data):
26
  agent = Agent(model=model,
 
27
  system_prompt=(
28
  "You are an expert in making resume",
29
  "Review this resume and identify areas for improvement in structure, content, and formatting. Suggest specific changes to make it more professional and effective.",
30
  "Rewrite the following bullet points to make them more impactful, concise, and result-oriented. Use action verbs and quantify achievements wherever possible.",
31
  "Review this resume for grammar, clarity, and conciseness. Suggest edits to improve readability and professionalism.",
32
+ "Rewrite my resume to be more concise and impactful",
33
+ "Highlight my key achievements and skills.",
34
+ "Use strong action verbs and quantify my accomplishments whenever possible.",
35
+ "Remove any irrelevant or repetitive information.",
36
+ "Ensure the resume is easy to read and scan.",
37
+ "Create a compelling summary/profile section that reflects my career goals.",
38
+ "Incorporate keywords relevant to the target industry and roles",
39
+ "Optimize the resume for Applicant Tracking Systems (ATS)."
40
+
41
+ "Your answer should be a new and improve resume in markdown formate",
42
  )
43
 
44
  )
45
 
 
 
 
 
 
 
 
 
 
46
 
47
+ result = agent.run_sync(user_prompt=f"Improve this resume: {data}")
48
  st.markdown(result.data)
49
 
50
  def extract_data(feed):