LeoWalker commited on
Commit
bfd2e6f
1 Parent(s): edcbb3a

Upload 2 files

Browse files
prompts/resume_extraction.prompt ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Given the task of analyzing the resume provided below, identify and organize the following information into structured data:
2
+
3
+ - Personal Details: Full name, contact information, and any professional summary or objective.
4
+ - Education: List of educational institutions attended, degrees obtained, fields of study, and graduation dates.
5
+ - Work Experience: For each position held, extract the company name, job title, duration of employment, a brief description of the role, and notable contributions or responsibilities.
6
+ - Projects: Details of significant projects worked on, including the project name, description, technologies used, and the role in the project.
7
+ - Skills: A compilation of technical and soft skills listed.
8
+ - Certifications: Any professional certifications, the certifying body, and the date of certification.
9
+ - Publications: Titles of publications, co-authors if applicable, and date of publication.
10
+ - Awards: Titles of any awards or honors received, awarding bodies, and date of receipt.
11
+
12
+ For fields not explicitly mentioned by the user, ensure to check for common sections such as volunteer experience, languages spoken, and hobbies or interests if they are professionally relevant.
13
+
14
+ Through each field make sure that you maintain as much details as possible, for example notable contributions should not be summarized but rather listed in full detail without adding any new material that isn't in the document.
15
+
16
+ Use the JSON structure below file to format your output. If any section does not apply or information is not available, it should be omitted from the JSON object. Ensure the output is formatted properly with the correct data types for each field (e.g., arrays, strings, objects).
17
+
18
+ ----
19
+
20
+ {response_template}
21
+
22
+ ----
23
+
24
+ {resume}
25
+
26
+ ----
27
+
28
+ ensure that the output is formatted properly with the correct data types for each field.
resume_template.py ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from pydantic import BaseModel, Field, ValidationError
2
+ from typing import List, Optional, Dict
3
+
4
+ # The following classes are for the resume template
5
+
6
+ class ContactInfo(BaseModel):
7
+ email: Optional[str] = None
8
+ phone: Optional[str] = None
9
+ linkedin: Optional[str] = None
10
+
11
+ class PersonalDetails(BaseModel):
12
+ full_name: str
13
+ contact_info: ContactInfo
14
+ professional_summary: Optional[str] = None
15
+
16
+ class Education(BaseModel):
17
+ institution: Optional[str] = None
18
+ degree: Optional[str] = None
19
+ field_of_study: Optional[str] = None
20
+ graduation_date: Optional[str] = None
21
+
22
+ class WorkExperience(BaseModel):
23
+ company: Optional[str] = None
24
+ title: Optional[str] = None
25
+ duration: Optional[str] = None
26
+ description: Optional[str] = None
27
+ notable_contributions: Optional[List[str]] = None
28
+
29
+ class Project(BaseModel):
30
+ name: Optional[str] = None
31
+ description: Optional[str] = None
32
+ technologies: Optional[str] = None
33
+ role: Optional[str] = None
34
+
35
+ class Certification(BaseModel):
36
+ title: Optional[str] = None
37
+ certifying_body: Optional[str] = None
38
+ date: Optional[str] = None
39
+
40
+ class Publication(BaseModel):
41
+ title: Optional[str] = None
42
+ co_authors: List[str] = []
43
+ date: Optional[str] = None
44
+
45
+ class Award(BaseModel):
46
+ title: Optional[str] = None
47
+ awarding_body: Optional[str] = None
48
+ date: Optional[str] = None
49
+
50
+ class VolunteerExperience(BaseModel):
51
+ organization: Optional[str] = None
52
+ role: Optional[str] = None
53
+ duration: Optional[str] = None
54
+ description: Optional[str] = None
55
+
56
+ class AdditionalSections(BaseModel):
57
+ volunteer_experience: Optional[List[VolunteerExperience]] = []
58
+ languages: Optional[List[str]] = []
59
+ interests: Optional[List[str]] = []
60
+
61
+ class Resume(BaseModel):
62
+ personal_details: PersonalDetails
63
+ education: List[Education] = []
64
+ work_experience: List[WorkExperience] = []
65
+ projects: List[Project] = []
66
+ skills: List[str] = []
67
+ certifications: List[Certification] = []
68
+ publications: List[Publication] = []
69
+ awards: List[Award] = []
70
+ additional_sections: Optional[AdditionalSections] = None