WebashalarForML commited on
Commit
a199b9f
·
verified ·
1 Parent(s): dc52918

Update utils/mistral.py

Browse files
Files changed (1) hide show
  1. utils/mistral.py +14 -15
utils/mistral.py CHANGED
@@ -49,26 +49,25 @@ def Model_ProfessionalDetails_Output(resume, client):
49
  Extract the text in the following output JSON string as:
50
  {{
51
  "professional": {{
52
- "technical_skills": "List all technical skills, programming languages, frameworks, and technologies mentioned in the resume, ensuring they are not mixed with other skill types.",
53
- "non_technical_skills": "Identify and list non-technical skills such as leadership, teamwork, and communication skills, ensuring they are not mixed with technical skills.",
54
- "tools": "Enumerate all software tools, platforms, and applications (e.g., Figma, Unity, MS Office, etc.) referenced in the resume, distinctly separate from skills.",
55
- "projects": "Extract the names or titles of all projects mentioned in the resume.",
56
- "projects_experience": "Summarize overall project experiences, providing a brief description of each project as detailed in the resume.",
57
- "experience": "Calculate total professional work experience in years and months based on the resume.",
58
- "companies_worked_at": "List the names of all companies where employment is mentioned in the resume.",
59
- "certifications": "Extract and list all certifications obtained as stated in the resume.",
60
- "roles": "Include the names of all job titles or roles held as indicated in the resume.",
61
- "qualifications": "List educational qualifications (e.g., B.Tech) from the resume. If none are found, return 'No education listed'.",
62
- "courses": "Extract the names of completed courses based on the resume. If none are found, return 'No courses listed'.",
63
- "university": "Identify the name of the university, college, or institute attended, based on the resume. If not found, return 'No university listed'.",
64
- "year_of_graduation": "Extract the year of graduation from the resume. If not found, return 'No year of graduation listed'."
65
  }}
66
  }}
67
- Json Output:
68
  '''
69
  }
70
 
71
-
72
  response = ""
73
  for message in client.chat_completion(messages=[system_role, user_prompt], max_tokens=4096, stream=True, temperature=0.35):
74
  response += message.choices[0].delta.content
 
49
  Extract the text in the following output JSON string as:
50
  {{
51
  "professional": {{
52
+ "technical_skills": ["List all technical skills, programming languages, frameworks, and technologies mentioned in the resume, ensuring they are not mixed with other skill types."],
53
+ "non_technical_skills": ["Identify and list non-technical skills such as leadership, teamwork, and communication skills, ensuring they are not mixed with technical skills."],
54
+ "tools": ["Enumerate and extract all software tools, platforms, and applications referenced in the resume, distinctly separate from skills."],
55
+ "projects": ["Extract all projects names or titles mentioned in the resume."],
56
+ "projects_experience": ["Summarize overall project experiences, providing a brief description of each project as detailed in the resume."],
57
+ "experience": ["Calculate total professional work experience in years and months based on the resume."],
58
+ "companies_worked_at": ["List the names of all companies where employment is mentioned in the resume."],
59
+ "certifications": ["Extract and list all certifications obtained as stated in the resume."],
60
+ "roles": ["Include the names of all job titles or roles held as indicated in the resume."],
61
+ "qualifications": ["List educational qualifications lik from the resume. If none are found, return 'Not found'."],
62
+ "courses": ["Extract the names of completed courses based on the resume. If none are found, return 'Not found'."],
63
+ "university": ["Identify and Extract the name of the university, college, or institute attended, based on the resume. If not found, return 'Not found'."],
64
+ "year_of_graduation": ["Extract the year of graduation from the resume. If not found, return 'Not found'."]
65
  }}
66
  }}
67
+ output:
68
  '''
69
  }
70
 
 
71
  response = ""
72
  for message in client.chat_completion(messages=[system_role, user_prompt], max_tokens=4096, stream=True, temperature=0.35):
73
  response += message.choices[0].delta.content