majidali1256 commited on
Commit
4c15e4e
·
1 Parent(s): 4e2dcdc

fix: enforce exact JSON schema field names in prompt and switch to gemini-flash-lite-latest for reliable quota availability

Browse files
Files changed (1) hide show
  1. resume_scanner/assessor.py +11 -1
resume_scanner/assessor.py CHANGED
@@ -52,7 +52,17 @@ class ResumeAssessor:
52
  {resume_text}
53
  === [END RESUME TEXT] ===
54
 
55
- Provide your structured evaluation matching the Assessment JSON schema."""
 
 
 
 
 
 
 
 
 
 
56
 
57
  @retry(
58
  stop=stop_after_attempt(3),
 
52
  {resume_text}
53
  === [END RESUME TEXT] ===
54
 
55
+ You MUST respond with a JSON object using EXACTLY these field names:
56
+ {{
57
+ "match_score": <integer 0-100>,
58
+ "score_rationale": "<string>",
59
+ "matched_requirements": ["<string>", ...],
60
+ "missing_requirements": ["<string>", ...],
61
+ "suggestions": ["<string>", ...],
62
+ "limitations": ["<string>", ...]
63
+ }}
64
+
65
+ Do NOT use any other field names. Use exactly: match_score, score_rationale, matched_requirements, missing_requirements, suggestions, limitations."""
66
 
67
  @retry(
68
  stop=stop_after_attempt(3),