You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const{ value }=awaitmammoth.extractRawText({buffer: fileBuffer});
415
+
text=value;
416
+
}
417
+
418
+
// 2) Build the extraction prompt
419
+
constprompt=`
420
+
Extract from this resume the following fields as JSON:
421
+
• "aboutMe": a 1–2 sentence self-summary.
422
+
• "skills": an array of technical skills.
423
+
• "roleMatch": one-sentence best-fit role suggestion.
424
+
• "experience": an array of 3–5 bullet points of key achievements.
425
+
426
+
Resume text:
427
+
---
428
+
${text}
429
+
---
430
+
Respond with a single JSON object and nothing else. The json object should begin directly with parentheses and have the following structure: {"a": "value", "b": "value", ...}
431
+
`;
432
+
433
+
// 3) Call your Chat AI
434
+
constaiResponse=awaitchatWithAI(
435
+
SYSTEM_TEMPLATE,// you can reuse your existing SYSTEM_TEMPLATE or define a new one
0 commit comments