bsiddhharth commited on
Commit
70085b0
·
1 Parent(s): bb63827

updated llama-3.1-70b-versatile -> llama-3.3-70b-versatile | depriciated in extraction.py & llama3-70b-8192 -> mixtral-8x7b-32768 | stopped the support for json, in resume_advance..

Browse files
Files changed (2) hide show
  1. extraction.py +1 -1
  2. resume_advance_analysis.py +3 -2
extraction.py CHANGED
@@ -66,7 +66,7 @@ def initialize_llm() -> ChatGroq:
66
  raise ValueError("GROQ_API_KEY environment variable is missing.")
67
 
68
 
69
- return ChatGroq(groq_api_key=groq_api_key, model_name="llama-3.1-70b-versatile", temperature=0.6)
70
 
71
 
72
  def extract_cv_data(text: str) -> list[cv]:
 
66
  raise ValueError("GROQ_API_KEY environment variable is missing.")
67
 
68
 
69
+ return ChatGroq(groq_api_key=groq_api_key, model_name="llama-3.3-70b-versatile", temperature=0.6)
70
 
71
 
72
  def extract_cv_data(text: str) -> list[cv]:
resume_advance_analysis.py CHANGED
@@ -39,10 +39,11 @@ class ResumeImprovementEngine:
39
  Resume Content:
40
  {resume_text}
41
 
 
42
  Tasks:
43
  1. Provide a structured analysis of resume strengths and weaknesses
44
  2. Offer specific, actionable improvement recommendations
45
- 3. Suggest additional sections or content enhancements
46
  4. Provide writing and formatting advice
47
  5. Respond in detailed, structured JSON format
48
 
@@ -92,7 +93,7 @@ class ResumeImprovementEngine:
92
  "content": prompt
93
  }
94
  ],
95
- model="llama3-8b-8192",
96
  temperature=0.7,
97
  max_tokens=2048,
98
  top_p=1,
 
39
  Resume Content:
40
  {resume_text}
41
 
42
+ (minimum 50 word explanation for each)
43
  Tasks:
44
  1. Provide a structured analysis of resume strengths and weaknesses
45
  2. Offer specific, actionable improvement recommendations
46
+ 3. Suggest additional sections or content enhancements
47
  4. Provide writing and formatting advice
48
  5. Respond in detailed, structured JSON format
49
 
 
93
  "content": prompt
94
  }
95
  ],
96
+ model="mixtral-8x7b-32768",
97
  temperature=0.7,
98
  max_tokens=2048,
99
  top_p=1,