Spaces:
Sleeping
Sleeping
Update utils/mistral.py
Browse files- utils/mistral.py +17 -16
utils/mistral.py
CHANGED
|
@@ -50,14 +50,14 @@ def Model_ProfessionalDetails_Output(resume, client):
|
|
| 50 |
Extract the text in the following output JSON string as:
|
| 51 |
{{
|
| 52 |
"professional": {{
|
| 53 |
-
"technical_skills": ["List all technical skills, programming languages, frameworks, and technologies mentioned in the resume, ensuring they are not mixed with other skill types. If not found, return
|
| 54 |
-
"non_technical_skills": ["Identify and list non-technical skills such as leadership, teamwork, and communication skills, ensuring they are not mixed with technical skills. If not found, return
|
| 55 |
-
"tools": ["Enumerate and extract all software tools, platforms, and applications referenced in the resume, distinctly separate from skills. If not found, return
|
| 56 |
-
"companies_worked_at": ["List the names of all companies where employment is mentioned in the resume. If not found, return
|
| 57 |
-
"projects": ["Extract all projects names or titles mentioned in the resume. If not found, return
|
| 58 |
-
"projects_experience": ["Summarize overall project experiences, providing a brief description of each project as detailed in the resume. If not found, return
|
| 59 |
-
"experience": ["Calculate total professional work experience in years and months based on the resume. If not found, return
|
| 60 |
-
"roles": ["List and Extract the names of all job titles or roles mentioned in the resume. If not found, return
|
| 61 |
}}
|
| 62 |
}}
|
| 63 |
output:
|
|
@@ -89,10 +89,10 @@ def Model_EducationalDetails_Output(resume, client):
|
|
| 89 |
Extract the text in the following output JSON string as:
|
| 90 |
{{
|
| 91 |
"educational": {{
|
| 92 |
-
"certifications": ["List and Extract all certifications mentioned in the resume. If none are found, return
|
| 93 |
-
"qualifications": ["List and Extract all educational qualifications, including degrees (e.g., BBA, MBA), their full forms, and associated levels (e.g., undergraduate, postgraduate) from resume. If none are found, return
|
| 94 |
-
"university": ["List and Extract the name of the University, College, or Institute attended, based on the resume. If not found, return
|
| 95 |
-
"courses": ["List and Extract the names of completed courses or based on the resume. If none are found, return
|
| 96 |
}}
|
| 97 |
}}
|
| 98 |
output:
|
|
@@ -123,10 +123,11 @@ def Model_PersonalDetails_Output(resume, client):
|
|
| 123 |
Extract the text in the following output JSON string as:
|
| 124 |
{{
|
| 125 |
"personal": {{
|
| 126 |
-
"name": "Extract the full name based on the resume. If not found, return
|
| 127 |
-
"contact_number": "Extract the contact number from the resume. If not found, return
|
| 128 |
-
"email": "Extract the email address from the resume. If not found, return
|
| 129 |
-
"address": "Extract the address or address from the resume. If not found, return
|
|
|
|
| 130 |
}}
|
| 131 |
}}
|
| 132 |
output:
|
|
|
|
| 50 |
Extract the text in the following output JSON string as:
|
| 51 |
{{
|
| 52 |
"professional": {{
|
| 53 |
+
"technical_skills": ["List all technical skills, programming languages, frameworks, and technologies mentioned in the resume, ensuring they are not mixed with other skill types. If not found, return None."],
|
| 54 |
+
"non_technical_skills": ["Identify and list non-technical skills such as leadership, teamwork, and communication skills, ensuring they are not mixed with technical skills. If not found, return None."],
|
| 55 |
+
"tools": ["Enumerate and extract all software tools, platforms, and applications referenced in the resume, distinctly separate from skills. If not found, return None."],
|
| 56 |
+
"companies_worked_at": ["List the names of all companies where employment is mentioned in the resume. If not found, return None."],
|
| 57 |
+
"projects": ["Extract all projects names or titles mentioned in the resume. If not found, return None."],
|
| 58 |
+
"projects_experience": ["Summarize overall project experiences, providing a brief description of each project as detailed in the resume. If not found, return None."],
|
| 59 |
+
"experience": ["Calculate total professional work experience in years and months based on the resume. If not found, return None."],
|
| 60 |
+
"roles": ["List and Extract the names of all job titles or roles mentioned in the resume. If not found, return None."]
|
| 61 |
}}
|
| 62 |
}}
|
| 63 |
output:
|
|
|
|
| 89 |
Extract the text in the following output JSON string as:
|
| 90 |
{{
|
| 91 |
"educational": {{
|
| 92 |
+
"certifications": ["List and Extract all certifications mentioned in the resume. If none are found, return None"],
|
| 93 |
+
"qualifications": ["List and Extract all educational qualifications, including degrees (e.g., BBA, MBA), their full forms, and associated levels (e.g., undergraduate, postgraduate) from resume. If none are found, return None."],
|
| 94 |
+
"university": ["List and Extract the name of the University, College, or Institute attended, based on the resume. If not found, return None."],
|
| 95 |
+
"courses": ["List and Extract the names of completed courses or based on the resume. If none are found, return None."]
|
| 96 |
}}
|
| 97 |
}}
|
| 98 |
output:
|
|
|
|
| 123 |
Extract the text in the following output JSON string as:
|
| 124 |
{{
|
| 125 |
"personal": {{
|
| 126 |
+
"name": "Extract the full name based on the resume. If not found, return None.",
|
| 127 |
+
"contact_number": "Extract the contact number from the resume. If not found, return None.",
|
| 128 |
+
"email": "Extract the email address from the resume. If not found, return None.",
|
| 129 |
+
"address": "Extract the address or address from the resume. If not found, return None.",
|
| 130 |
+
"link": "Extract any relevant links (e.g., portfolio, LinkedIn) from the resume. If not found, return 'No link listed'."
|
| 131 |
}}
|
| 132 |
}}
|
| 133 |
output:
|