Manikanta3776 commited on
Commit
2ab7f6a
·
verified ·
1 Parent(s): 59dfd5b

Update chains.py

Browse files
Files changed (1) hide show
  1. chains.py +10 -12
chains.py CHANGED
@@ -32,22 +32,20 @@ class Chain:
32
  raise OutputParserException("Context too big. Unable to parse jobs.")
33
  return res if isinstance(res, list) else [res]
34
 
35
- def write_mail(self, job, links):
36
  prompt_email = PromptTemplate.from_template(
37
  """
38
  ### JOB DESCRIPTION:
39
- {job_description}
40
-
41
  ### INSTRUCTION:
42
- You are Thamani, an enthusiastic MCA graduate eager to apply for the mentioned job opportunity.
43
- Your goal is to craft a professional and compelling job application email to the hiring manager, highlighting
44
- your skills, educational background, and enthusiasm for the role.
45
- Be sure to align your qualifications with the job requirements and demonstrate your eagerness to contribute
46
- to the company.
47
- Attach your resume and mention any relevant projects or experiences that showcase your capabilities.
48
- Do not provide a preamble.
49
  ### EMAIL (NO PREAMBLE):
50
-
51
  """
52
  )
53
  chain_email = prompt_email | self.llm
@@ -55,4 +53,4 @@ class Chain:
55
  return res.content
56
 
57
  if __name__ == "__main__":
58
- print(os.getenv("GROQ_API_KEY"))
 
32
  raise OutputParserException("Context too big. Unable to parse jobs.")
33
  return res if isinstance(res, list) else [res]
34
 
35
+ def write_mail(self, job, links, username="Computer Engineering Student", client_name="Hiring Manager"):
36
  prompt_email = PromptTemplate.from_template(
37
  """
38
  ### JOB DESCRIPTION:
39
+ {{job_description}}
40
+
41
  ### INSTRUCTION:
42
+ You are {username}, a dedicated third-year Computer Engineering student.
43
+ You actively engage in projects that enhance your technical skills and have good communication skills.
44
+ Your task is to write a cold email to {client_name} regarding the job mentioned above, showcasing your capabilities and how your academic pursuits align with their needs.
45
+ Highlight your interests in innovative solutions and user engagement, as well as your commitment to creating impactful projects.
46
+ Also, add the most relevant ones from the following links to showcase your portfolio: {{link_list}}
47
+ Maintain a professional tone and avoid providing a preamble.
 
48
  ### EMAIL (NO PREAMBLE):
 
49
  """
50
  )
51
  chain_email = prompt_email | self.llm
 
53
  return res.content
54
 
55
  if __name__ == "__main__":
56
+ print(os.getenv("GROQ_API_KEY"))