File size: 1,232 Bytes
da7be98
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from typing import List, Dict, Union
from langchain_core.pydantic_v1 import BaseModel, Field


class ResumeStructure(BaseModel):
    education: List[Dict[str, str]] = Field(description="List of dictionaries containing 'university' and 'CGPA'")
    work: List[Dict[str, Union[str, List[str]]]] = Field(description="List of dictionaries containing "
                                                                     "'organization', 'location', 'position', "
                                                                     "'duration', 'standardized_job_title', "
                                                                     "and 'predicted_skills'")
    projects: List[Dict[str, Union[str, List[str]]]] = Field(description="List of dictionaries containing "
                                                                         "'project_name', 'start_date', 'end_date', "
                                                                         "'description', and 'predicted_skills'")
    skills: Dict[str, List[str]] = Field(description="Dictionary containing 'technical' and 'non_technical' skills")
    career_trajectory: str = Field(description="String representing the career progression of the candidate")