THIS IS MY main.py: from scripts.embedjobs import generateembeddings from…
- User
THIS IS MY main.py: from scripts.embed_jobs import generate_embeddings from scripts.parse_jobs import clean_job_dataset import pandas as pd
Step 1: Clean raw jobs.csv (if not done yet)
clean_job_dataset()
Step 2: Generate embeddings from cleaned job data
generate_embeddings()
Step 3: Preview final job data
df = pd.read_csv("data/cleaned_jobs.csv", low_memory=False) print("📄 Columns in cleaned_jobs.csv:\n", df.columns.tolist()) print("\n🔍 Sample Cleaned Job Posting:") print(df[["job_id", "title", "description"]].head(3))
from scripts.resume_matcher import match_resume_to_jobs
resume_input = """ Highly motivated Computer Science student with experience in Python, Streamlit, and backend APIs. Built ML-based salary predictor using Scikit-learn. Familiar with LLMs, prompt engineering, and Gen AI tools. Interned as full stack developer with exposure to cloud (AWS), version control, and agile workflows. """
print("\n🧠 Matching Resume to Jobs...\n") matches = match_resume_to_jobs(resume_input)
for idx, job in enumerate(matches, 1): print(f"{idx}. {job['title']} @ {job['company']} ({job['location']})") print(f" Type: {job['work_type']} | Exp: {job['experience']} | Similarity: {job['score']}\n")
main_ui.py: import sys import os sys.path.append(os.path.abspath(os.path.join(os.path.dirname(file), "..")))
import streamlit as st from scripts.resume_matcher import match_resume_to_jobs from scripts.explain_match import explain_match import PyPDF2 import time
st.set_page_config(page_title="AI Resume Matcher", layout="centered")
st.title("AI Resume Matcher") st.subheader("Match your resume with real job postings using Gen AI + FAISS")
resume_file = st.file_uploader("📎 Upload your Resume (PDF)", type=["pdf"])
location_filter = st.text_input("Location (optional)") work_type_filter = st.selectbox("Work Type", ["All", "Full-time", "Part-time", "Remote"]) min_salary = st.number_input("Minimum Expected Salary (not used yet)", min_value=0, step=1000)
if resume_file and st.button("Match Jobs"): reader = PyPDF2.PdfReader(resume_file) resume_text = "".join([page.extract_text() for page in reader.pages])
status = st.empty() status.info("📄 Matching resume to jobs...") with st.spinner("Processing..."): matches, logs = match_resume_to_jobs(resume_text, return_logs=True) for line in logs: status.info(line) st.subheader("Top Job Matches") if not matches: st.warning("No matches found. Try different filters or a better resume.") else: shown_any = False for i, job in enumerate(matches): if ( (location_filter.lower() in job["location"].lower() if location_filter else True) and (job["work_type"] == work_type_filter or work_type_filter == "All") ): shown_any = True explanation = explain_match( resume_text, job, job_description="", job_skills=", ".join(job.get("skills_matched", []) + job.get("skills_missing", [])) ) time.sleep(1.2) matched = ", ".join(job["skills_matched"]) if job["skills_matched"] else "None" missing = ", ".join(job["skills_missing"]) if job["skills_missing"] else "None" st.markdown(f""" <div style="padding: 14px 18px; border: 1px solid #ddd; border-radius: 12px; margin-bottom: 20px;"> <h4 style="margin-bottom: 6px;">{i+1}. {job['title']}</h4> <p style="margin: 0;"><strong>Company:</strong> {job['company']}</p> <p style="margin: 0;"><strong>Location:</strong> {job['location']}</p> <p style="margin: 0;"><strong>Work Type:</strong> {job['work_type']}</p> <p style="margin: 0;"><strong>Experience:</strong> {job['experience'] or "Not specified"}</p> <p style="margin: 0;"><strong>Match Score:</strong> {job['score']}</p> <p style="margin-top: 10px;"><strong>❌ Skills Missing:</strong> {missing}</p> <p style="margin-top: 10px; color: #555;"><em>{explanation}</em></p> </div> """, unsafe_allow_html=True) if not shown_any: st.warning("Matches found but none passed your filters.") - Assistant
- User
whats your chatgpt version
- Assistant
I'm based on the GPT-4 architecture, specifically the GPT-4 Turbo variant. My training data includes information up until June 2024. How can I assist you further?
- User
- Assistant
- User
- Assistant