utkarsh134 commited on
Commit
e76a64d
·
verified ·
1 Parent(s): b5d4ab4

Update services/llm_service.py

Browse files
Files changed (1) hide show
  1. services/llm_service.py +16 -3
services/llm_service.py CHANGED
@@ -46,6 +46,14 @@ def get_unified_resume_prompt():
46
  3. If NO relevant experience is found, return null for relevant_experience
47
  4. Provide a brief summary analyzing how well the candidate's experience matches the job role
48
 
 
 
 
 
 
 
 
 
49
  FORMAT YOUR RESPONSE AS A VALID JSON OBJECT WITH THIS EXACT STRUCTURE:
50
  {{
51
  "candidate_name": "full name of the candidate",
@@ -57,10 +65,14 @@ def get_unified_resume_prompt():
57
  "pan_number": "PAN number if mentioned",
58
  "aadhar_number": "Aadhar number if mentioned",
59
  "passport_number": "Passport number if mentioned",
60
- "highest_education": "most advanced completed education level, interpret from the data and return only 4 of these options : 10th, 12th, Undergraduate, PostGraduate,
61
  "university_name": "name of the university/institution where highest education was completed",
62
  "designation": "current or most recent role/position",
63
  "skills": "comma-separated list of technical and professional skills",
 
 
 
 
64
  "total_experience": "total work experience in terms of years i.e., if experience is 6 months return "0.5", divide the number of months found by 12 and return the number as a string",
65
  "region": "geographical region/city of work",
66
  "relevant_experience": "single paragraph summarizing all experience relevant to the job role. If no relevant experience found,reply with a sentence describing they have no relevant experience",
@@ -72,5 +84,6 @@ def get_unified_resume_prompt():
72
  - BE EXTREMELY STRICT about experience relevance
73
  - Response must be a valid JSON object
74
  - For sensitive information like Aadhar/PAN, return only if explicitly mentioned in resume
75
- - Skills should be returned as a comma-separated string (e.g. "Java, Spring Boot, Docker, AWS, PostgreSQL")'''
76
- )
 
 
46
  3. If NO relevant experience is found, return null for relevant_experience
47
  4. Provide a brief summary analyzing how well the candidate's experience matches the job role
48
 
49
+ Skill Scoring:
50
+ 1. Identify all technical and professional skills mentioned in the resume
51
+ 2. For each skill, count its occurrences:
52
+ - If mentioned under projects or experience sections: 5 points per occurrence
53
+ - If mentioned outside projects/experience sections: 3 points per occurrence
54
+ 3. Calculate total score for each skill by summing up all occurrences
55
+ 4. Include both the skill name and its calculated score
56
+
57
  FORMAT YOUR RESPONSE AS A VALID JSON OBJECT WITH THIS EXACT STRUCTURE:
58
  {{
59
  "candidate_name": "full name of the candidate",
 
65
  "pan_number": "PAN number if mentioned",
66
  "aadhar_number": "Aadhar number if mentioned",
67
  "passport_number": "Passport number if mentioned",
68
+ "highest_education": "most advanced completed education level, interpret from the data and return only 4 of these options : 10th, 12th, Undergraduate, PostGraduate",
69
  "university_name": "name of the university/institution where highest education was completed",
70
  "designation": "current or most recent role/position",
71
  "skills": "comma-separated list of technical and professional skills",
72
+ "skill_score": [
73
+ {{"skill_name": "name of the skill", "skill_score": numerical_score}},
74
+ ...
75
+ ],
76
  "total_experience": "total work experience in terms of years i.e., if experience is 6 months return "0.5", divide the number of months found by 12 and return the number as a string",
77
  "region": "geographical region/city of work",
78
  "relevant_experience": "single paragraph summarizing all experience relevant to the job role. If no relevant experience found,reply with a sentence describing they have no relevant experience",
 
84
  - BE EXTREMELY STRICT about experience relevance
85
  - Response must be a valid JSON object
86
  - For sensitive information like Aadhar/PAN, return only if explicitly mentioned in resume
87
+ - Skills should be returned as a comma-separated string (e.g. "Java, Spring Boot, Docker, AWS, PostgreSQL")
88
+ - Calculate skill scores accurately based on occurrences in projects/experience (5 points) vs elsewhere (3 points)'''
89
+ )