Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.
TypeScript ai-agentai-resume-analyzerapplication-trackerapplication-tracking-systematscareerjob-applicationjob-automationjob-huntingjob-searchjob-seeker-toolsjob-trackerjob-trackingjobsearchjobseekersmcpollamaresumeresume-reviewself-hosted
Update prompt template
Khuram Niaz29bc406ca764
diff --git a/src/actions/ai.actions.ts b/src/actions/ai.actions.tsindex 8573667..88e16c5 100644--- a/src/actions/ai.actions.ts+++ b/src/actions/ai.actions.ts@@ -32,7 +32,7 @@ export const getResumeReviewByAi = async (["system",`- You are an expert resume writer. Format all responses as JSON object in the following format.+ You are an expert resume writer. You must always return JSON object with following structure.summary: Provide a brief summary of the resume.strengths: List the strengths of the resume.@@ -41,8 +41,16 @@ export const getResumeReviewByAi = async (score: Provide a score for the resume (0-100).`,],- ["human", `Review the resume {resume} and provide feedback.`],+ [+ "human",+ `+ Review the resume provided below and and provide feedback in the specified JSON format.++ {resume}+ `,+ ],]);+const resumeText = convertResumeToText(resume);const inputMessage = await prompt.format({ resume: resumeText });@@ -50,6 +58,7 @@ export const getResumeReviewByAi = async (const model = new ChatOllama({baseUrl: process.env.OLLAMA_BASE_URL || "http://localhost:11434",model: "llama3",+ temperature: 0,format: "json",});@@ -144,7 +153,6 @@ const convertResumeToText = (resume: Resume) => {};const inputMessage = `- You are an expert resume reviewer, review the following resume:Title: ${resume.title}${formatContactInfo(resume.ContactInfo)}diff --git a/src/app/api/ai/route.ts b/src/app/api/ai/route.tsindex dedcab3..d2bc0ac 100644--- a/src/app/api/ai/route.ts+++ b/src/app/api/ai/route.ts@@ -4,14 +4,10 @@ import { auth } from "@/auth";import { NextApiRequest, NextApiResponse } from "next";import { getResumeReviewByAi } from "@/actions/ai.actions";import { NextRequest, NextResponse } from "next/server";-import { ChatOllama } from "@langchain/community/chat_models/ollama";-import { StringOutputParser } from "@langchain/core/output_parsers";-import { ChatPromptTemplate } from "@langchain/core/prompts";import { Resume } from "@/models/profile.model";export const POST = async (req: NextRequest, res: NextApiResponse) => {const session = await auth();- console.log("SESSION USER: ", session?.user);const userId = session?.accessToken.sub;if (!session || !session.user) {