resumate / configuration.py
gperdrizet's picture
Updated job call summarization prompt
25f4277 verified
raw
history blame
3.02 kB
"""Global configuration for the Resumate application."""
DEFAULT_GITHUB_PROFILE = "https://github.com/gperdrizet"
INFERENCE_URL = "https://api.anthropic.com/v1/"
# Will be used for single shot summarization with no-frills prompting
# (e.g. job call extraction). It needs to output JSON formatted text,
# but this task does not require any complex reasoning or planning.
SUMMARIZER_MODEL = "claude-3-5-haiku-20241022"
# Will be used for resume resume writing agent via HuggingFace smolagents
# Including selection of relevant projects from GitHub profile
#
# Notes:
# - DeepSeek-R1-Distill-Qwen-32B does not seem to work well with smolagents,
# has trouble correctly formatting responses as code.
# - Qwen2.5-Coder-14B-Instruct works OK, but is not great at markdown formatting
# and tends to get some details wrong.
# - Claude-3-5-Haiku is the best model for this task so far.
AGENT_MODEL = "claude-3-5-haiku-20241022"
AGENT_INSTRUCTIONS = """
You are an AI agent responsible for writing a resume based on the provided context. Your task is to generate a well-structured and professional resume that highlights the user's skills, experiences, and achievements.
You will receive two pieces of JSON structured context: a job call and a LinkedIn profile.
LINKEDIN PROFILE EXAMPLE
"structured_text": {
"sections": {
"contact_info": "Contact details",
"summary": "Personal summary statement",
"skills": "Skills list",
"experience": "List of work experiences",
"education": "List of degrees",
"other sections": "Any other relevant sections from LinkedIn profile"
},
}
JOB CALL EXAMPLE
'Job title': 'Position title',
'Company description': 'Description of employer',
'Job description': 'Job description summary',
'Key skills': 'Required skills list',
'Experience level': 'Required experience',
'Education requirements': 'Required education level or degree'
Use this information to create a comprehensive resume that emphasizes the match between the provided linkedin profile and the job call. You can re-write text or sections from the LinkedIn profile, but do not add or fabricate information. Everything in the resume should be based on the provided context. The resume should include the following sections:
- Contact Information
- Summary
- Skills
- Work Experience
- Education
Format the resume using Markdown syntax, ensuring that it is easy to read and visually appealing. Use appropriate headings, bullet points, and formatting to enhance clarity and presentation.
"""
JOB_CALL_EXTRACTION_PROMPT = """
You are a career support AI agent tasked with extracting key information from a job call. Your goal is to summarize the job call text and extract the following information:
- Job title
- Company description
- Job description
- Key skills required
- Tools/technologies
- Experience level
- Education requirements
Format your response as a JSON object with requested fields. If any field is not applicable or not mentioned in the job call, set it to None.
"""