linkedIn_auto_jobs_applier_.../strings.py
2024-08-04 13:14:56 +01:00

539 lines
18 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

prepare_info_template = """
**Prompt for HR Expert and Resume Writer:**
Act as an HR expert and skilled resume writer specializing in creating ATS-compatible resumes. Your task is to identify and outline the key skills and requirements necessary for the position of this job, using the provided job description and resume. Use the job description as input to extract all relevant information and optimize the resume to highlight the relevant skills and experiences for the role.
### Information to Collect and Analyze
- **Resume:**
{resume}
- **Job Description:**
{job_description}
### Analysis and Planning
1. **Analyze the Job Description**:
- Identify the required technical and soft skills.
- List the essential educational qualifications and certifications.
- Describe the relevant work experiences.
- Reflect on the role's evolution, considering future trends.
2. **Analyze the Current Resume**:
- Identify the existing skills and experiences in the resume.
3. **Optimize the Resume**:
- Plan the resume to highlight experiences and skills relevant to the job requirements.
- Ensure it includes pertinent keywords, a clear structure, and is tailored to emphasize the candidate's strengths and achievements.
- Avoid including information not requested by the job description.
### Creating a "Smart" Resume
- **ATS Compatibility**: Ensure the resume is optimized for applicant tracking systems (ATS) by including relevant keywords.
- **Adaptation to the Job Description**: Strategically tailor the resume to reflect the skills and experiences required by the job description.
- **Highlighting Strengths**: Customize the resume to showcase the most relevant skills, experiences, and achievements for the role.
- **Clear Structure**: Use a clear and readable structure.
- **Showcasing Experiences and Achievements**: Provide guidance on effectively presenting experience, skills, and achievements in a compelling and professional manner.
- **Formatting and Design**: Offer advice on formatting and design to maintain readability and professionalism, ensuring the resume stands out in a competitive job market.
### Final Result
Your analysis and the optimized resume should be structured in a clear and organized document, with distinct sections for each point listed above. Each section should contain:
The results should be provided in **Markdown** format, Provide only the markdown code for the resume, without any explanations or additional text and also without ```md ```
"""
format_resume_template = """
Transform the provided Markdown output into HTML format. Ensure that the HTML document uses a simple, clear style that maintains ATS compatibility and is easy for recruiters to read.
### HTML Styling and Design Guidelines
1. **Font and Color Scheme**:
- Use a standard sans-serif font such as "Arial" or "Verdana."
- Ensure dark text on a light background for optimal readability.
2. **Headings and Titles**:
- **Main Titles**:
- Font: Arial, sans-serif
- Font Size: 16 px
- Color: Black
- Alignment: Left-aligned
- Spacing: 20 px above and below the title
- Formatting: Bold
- **Subtitles**:
- Font: Arial, sans-serif
- Font Size: 14 px
- Color: Black
- Alignment: Left-aligned
- Spacing: 10 px above and below the subtitle
- Formatting: Bold
3. **Spacing and Margins**:
- General Margins: 1 inch (2.54 cm) on all sides
- Spacing between Titles and Content:
- After Main Titles: 20 px of spacing
- After Subtitles: 10 px of spacing
- Text Alignment: Left-aligned
4. **Color Matching**:
- Use a consistent color scheme for headings and body text.
- Avoid bright colors and multiple shades to ensure clarity.
### Output Requirements
- **Convert Markdown to HTML**: Use the provided content and apply the specified styles.
- **Apply Styling**: Follow the guidelines for font, size, color, and spacing.
- **Ensure ATS Compatibility**: Maintain clear formatting to ensure the document is easily parsed by ATS systems.
Provide only the HTML code for the resume, without any explanations or additional text and also without ```HTML ```, Ensure the final HTML document is simple, professional, and optimized for ATS.
Resume in Markdown format:
{formatted_resume}
"""
review_and_optimize_template = """
Act as an HR expert and resume writer. Your task is to meticulously review and optimize the resume to ensure it stands out in a competitive job market.
### Tasks:
- **Proofreading:**
- Carefully check for spelling, grammar, and punctuation errors.
- **Enhance Clarity and Impact:**
- Improve the clarity and impact of the content.
- Refine the language use and optimize the structure to highlight the candidates strengths and achievements.
- Ensure there is a clear visual distinction between section titles and the content.
- **Final Output:**
- Ensure the resume is professionally polished, visually appealing, and formatted correctly in HTML.
- Ensure that section titles are centered.
- Ensure there is a noticeable visual difference between section titles and the content.
- Remove any unnecessary content, such as "Salary Expectations: €50,000."
- Make sure the resume does not contain any placeholder text or irrelevant information.
**Resume:**
{final_resume_html}
Provide only the HTML code for the resume, without any explanations or additional text and also without ```HTML ```
"""
# Personal Information Template
personal_information_template = """
Answer the following question based on the provided personal information.
## Rules
- Answer questions directly.
## Example
My resume: John Doe, born on 01/01/1990, living in Milan, Italy.
Question: What is your city?
Milan
Personal Information: {resume_section}
Question: {question}
"""
# Personal Information Template
personal_information_template = """
Answer the following question based on the provided personal information.
## Rules
- Answer questions directly.
## Example
My resume: John Doe, born on 01/01/1990, living in Milan, Italy.
Question: What is your city?
Milan
Personal Information: {resume_section}
Question: {question}
"""
# Self Identification Template
self_identification_template = """
Answer the following question based on the provided self-identification details.
## Rules
- Answer questions directly.
## Example
My resume: Male, uses he/him pronouns, not a veteran, no disability.
Question: What are your gender?
Male
Self-Identification: {resume_section}
Question: {question}
"""
# Legal Authorization Template
legal_authorization_template = """
Answer the following question based on the provided legal authorization details.
## Rules
- Answer questions directly.
## Example
My resume: Authorized to work in the EU, no US visa required.
Question: Are you legally allowed to work in the EU?
Yes
Legal Authorization: {resume_section}
Question: {question}
"""
# Work Preferences Template
work_preferences_template = """
Answer the following question based on the provided work preferences.
## Rules
- Answer questions directly.
## Example
My resume: Open to remote work, willing to relocate.
Question: Are you open to remote work?
Yes
Work Preferences: {resume_section}
Question: {question}
"""
# Education Details Template
education_details_template = """
Answer the following question based on the provided education details.
## Rules
- Answer questions directly.
- If it seems likely that you have the experience, even if not explicitly defined, answer as if you have the experience.
- If unsure, respond with "I have no experience with that, but I learn fast" or "Not yet, but willing to learn."
- Keep the answer under 140 characters.
## Example
My resume: Bachelor's degree in Computer Science with experience in Python.
Question: Do you have experience with Python?
Yes, I have experience with Python.
Education Details: {resume_section}
Question: {question}
"""
# Experience Details Template
experience_details_template = """
Answer the following question based on the provided experience details.
## Rules
- Answer questions directly.
- If it seems likely that you have the experience, even if not explicitly defined, answer as if you have the experience.
- If unsure, respond with "I have no experience with that, but I learn fast" or "Not yet, but willing to learn."
- Keep the answer under 140 characters.
## Example
My resume: 3 years as a software developer with leadership experience.
Question: Do you have leadership experience?
Yes, I have 3 years of leadership experience.
Experience Details: {resume_section}
Question: {question}
"""
# Projects Template
projects_template = """
Answer the following question based on the provided project details.
## Rules
- Answer questions directly.
- If it seems likely that you have the experience, even if not explicitly defined, answer as if you have the experience.
- Keep the answer under 140 characters.
## Example
My resume: Led the development of a mobile app, repository available.
Question: Have you led any projects?
Yes, led the development of a mobile app
Projects: {resume_section}
Question: {question}
"""
# Availability Template
availability_template = """
Answer the following question based on the provided availability details.
## Rules
- Answer questions directly.
- Keep the answer under 140 characters.
- Use periods only if the answer has multiple sentences.
## Example
My resume: Available to start immediately.
Question: When can you start?
I can start immediately.
Availability: {resume_section}
Question: {question}
"""
# Salary Expectations Template
salary_expectations_template = """
Answer the following question based on the provided salary expectations.
## Rules
- Answer questions directly.
- Keep the answer under 140 characters.
- Use periods only if the answer has multiple sentences.
## Example
My resume: Looking for a salary in the range of 50k-60k USD.
Question: What are your salary expectations?
55000.
Salary Expectations: {resume_section}
Question: {question}
"""
# Certifications Template
certifications_template = """
Answer the following question based on the provided certifications.
## Rules
- Answer questions directly.
- If it seems likely that you have the experience, even if not explicitly defined, answer as if you have the experience.
- If unsure, respond with "I have no experience with that, but I learn fast" or "Not yet, but willing to learn."
- Keep the answer under 140 characters.
## Example
My resume: Certified in Project Management Professional (PMP).
Question: Do you have PMP certification?
Yes, I am PMP certified.
Certifications: {resume_section}
Question: {question}
"""
# Languages Template
languages_template = """
Answer the following question based on the provided language skills.
## Rules
- Answer questions directly.
- If it seems likely that you have the experience, even if not explicitly defined, answer as if you have the experience.
- If unsure, respond with "I have no experience with that, but I learn fast" or "Not yet, but willing to learn."
- Keep the answer under 140 characters.
## Example
My resume: Fluent in Italian and English.
Question: What languages do you speak?
Fluent in Italian and English.
Languages: {resume_section}
Question: {question}
"""
# Interests Template
interests_template = """
Answer the following question based on the provided interests.
## Rules
- Answer questions directly.
- Keep the answer under 140 characters.
- Use periods only if the answer has multiple sentences.
## Example
My resume: Interested in AI and data science.
Question: What are your interests?
AI and data science.
Interests: {resume_section}
Question: {question}
"""
summarize_prompt_template = """
As a seasoned HR expert, your task is to identify and outline the key skills and requirements necessary for the position of this job. Use the provided job description as input to extract all relevant information. This will involve conducting a thorough analysis of the job's responsibilities and the industry standards. You should consider both the technical and soft skills needed to excel in this role. Additionally, specify any educational qualifications, certifications, or experiences that are essential. Your analysis should also reflect on the evolving nature of this role, considering future trends and how they might affect the required competencies.
Rules:
Remove boilerplate text
Include only relevant information to match the job description against the resume
# Analysis Requirements
Your analysis should include the following sections:
Technical Skills: List all the specific technical skills required for the role based on the responsibilities described in the job description.
Soft Skills: Identify the necessary soft skills, such as communication abilities, problem-solving, time management, etc.
Educational Qualifications and Certifications: Specify the essential educational qualifications and certifications for the role.
Professional Experience: Describe the relevant work experiences that are required or preferred.
Role Evolution: Analyze how the role might evolve in the future, considering industry trends and how these might influence the required skills.
# Final Result:
Your analysis should be structured in a clear and organized document with distinct sections for each of the points listed above. Each section should contain:
This comprehensive overview will serve as a guideline for the recruitment process, ensuring the identification of the most qualified candidates.
# Job Description:
```
{text}
```
---
# Job Description Summary"""
coverletter_template = """
The following is a resume, a job description, and an answered question using this information, being answered by the person who's resume it is (first person).
## Rules
- Answer questions directly.
- If seems likely that you have the experience, even if is not explicitly defined, answer as if you have the experience.
- Find relations between the job description and the resume, and answer questions about that.
- Only add periods if the answer has multiple sentences/paragraphs.
- If the question is "cover letter," answer with a cover letter based on job_description, but using my resume details
## Job Description:
```
{job_description}
```
## My resume:
```
{resume}
```
## Question:
{question}
## """
resume_stuff_template = """
The following is a resume, personal data, and an answered question using this information, being answered by the person who's resume it is (first person).
## Rules
- Answer questions directly
- If seems likely that you have the experience, even if is not explicitly defined, answer as if you have the experience
- If you cannot answer the question, answer things like "I have no experience with that, but I learn fast, very fast", "not yet, but I will learn"...
- The answer must not be longer than a tweet (140 characters)
- Only add periods if the answer has multiple sentences/paragraphs
## Example 1
My resume: I'm a software engineer with 10 years of experience in swift .
Question: What is your experience with swift?
10 years
-----
## My resume:
```
{resume}
```
## Question:
{question}
## """
numeric_question_template = """The following is a resume and an answered question about the resume, being answered by the person who's resume it is (first person).
## Rules
- Answer the question directly (only number).
- Regarding work experience just check the Experience Details -> Skills Acquired section.
- Regarding experience in general just check the section Experience Details -> Skills Acquired and also Education Details -> Skills Acquired.
- If it seems likely that you have the experience based on the resume, even if not explicitly stated on the resume, answer as if you have the experience.
- If you cannot answer the question, provide answers like "I have no experience with that, but I learn fast, very fast", "not yet, but I will learn".
- The answer must not be larger than a tweet (140 characters).
## Example
My resume: I'm a software engineer with 10 years of experience on both swift and python.
Question: how much years experience with swift?
10
-----
## My resume:
```
{resume}
```
## Question:
{question}
## """
options_template = """The following is a resume and an answered question about the resume, the answer is one of the options.
## Rules
- Never choose the default/placeholder option, examples are: 'Select an option', 'None', 'Choose from the options below', etc.
- The answer must be one of the options.
- The answer must exclusively contain one of the options.
## Example
My resume: I'm a software engineer with 10 years of experience on swift, python, C, C++.
Question: How many years of experience do you have on python?
Options: [1-2, 3-5, 6-10, 10+]
10+
-----
## My resume:
```
{resume}
```
## Question:
{question}
## Options:
{options}
## """
try_to_fix_template = """\
The objective is to fix the text of a form input on a web page.
## Rules
- Use the error to fix the original text.
- The error "Please enter a valid answer" usually means the text is too large, shorten the reply to less than a tweet.
- For errors like "Enter a whole number between 3 and 30", just need a number.
-----
## Form Question
{question}
## Input
{input}
## Error
{error}
## Fixed Input
"""
func_summarize_prompt_template = """
Following are two texts, one with placeholders and one without, the second text uses information from the first text to fill the placeholders.
## Rules
- A placeholder is a string like "[[placeholder]]". E.g. "[[company]]", "[[job_title]]", "[[years_of_experience]]"...
- The task is to remove the placeholders from the text.
- If there is no information to fill a placeholder, remove the placeholder, and adapt the text accordingly.
- No placeholders should remain in the text.
## Example
Text with placeholders: "I'm a software engineer engineer with 10 years of experience on [placeholder] and [placeholder]."
Text without placeholders: "I'm a software engineer with 10 years of experience."
-----
## Text with placeholders:
{text_with_placeholders}
## Text without placeholders:"""