File size: 1,540 Bytes
09f8068
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from langchain_core.prompts import PromptTemplate

extract_skill = PromptTemplate.from_template("""`You are an experienced HR recruiter, your role involves receiving a ```{job_description}``` for a specific position.
Your primary responsibility is to compile a list of essential requirements and skills mentioned in the job description.
Kindly provide the main points in the form of a string list.
Please give the results as JSON array""")




prompt_first_chunks = PromptTemplate.from_template("""  
  Candidate Resume information is below.
----------------------------------
{resume}
----------------------------------
Given the provided resume cotext and no prior knowledge,
You are an experienced HR recruiter proficient in resume scanning. Your task is to verify if the candidate possesses a specific skill listed in jd_skills based on the resume above. Note that the skill may not be directly listed; you may need to analyze the resume to find the skill.
Jd_skills: {jd_skill}
Your response should be as a JSON array with the required Jd_skills as the key and its corresponding answer as the value. 
Ensure that only the skill listed in jd_skills is matched, and do not assign 1 or 0 values to the name, address, email ID, and mobile number fields.
The format should be: 
{{
  "Name": "full name of candidate in string",
  "Address": "full address in string",
  "EmailId": "emailid in string",
  "Mobile_number":"Candidate mobile number in string",
  {jd_skill}: 1  (if skill present) or 0 (if skill not present)
}}
            """)