Skip to content
All work

RAG system·Personal project

AI Resume Assistant

A RAG assistant grounded only in my public resume. It powers the chat and the job-fit checker on this site.

Role
Designed and built it end to end.
Stack
TypeScript, Vercel Functions, Upstash Vector, OpenAI, OpenRouter
Links
Live Code
The AI resume assistant at ask.haroonriasat.com with a question box and topic buttons

01The problem

Recruiters and hiring managers have specific questions ("Has he shipped RAG in production?") that a static resume answers slowly or not at all.

A general chatbot would happily invent experience. For a resume, a confident wrong answer is worse than no answer.

02The solution

Every resume line is stored in an Upstash Vector index. Each question runs a semantic search plus a keyword match, and only the closest lines reach the model, so it can't mix details between entries.

Guards before and after the model: private details, off-topic tasks and things the resume never mentions get "I don't know" without an AI call, and answers that drift from the resume are replaced by the matching resume lines.

03Architecture

  1. Knowledge

    One TypeScript profile file is the single source of truth; each deploy re-indexes it into Upstash Vector (text-embedding-3-small).

  2. Routing

    A keyword router classifies the question as answerable, private, off-topic or unknown before any model call.

  3. Retrieval

    Hybrid vector + keyword search; an answer needs a keyword match or a vector score of at least 0.74.

  4. Generation

    OpenAI (gpt-5.4-mini) streams the answer; free OpenRouter models take over if OpenAI fails.

  5. Checks

    A drift check compares the answer's wording with the resume. Fit-check evidence is re-checked line by line.

04Engineering challenges

Small corpus, overlapping scores

With about 30 short resume lines, off-resume questions scored close to real ones. A tuned threshold plus the keyword router separates them.

Honest job-fit reports

Strengths with more than two words that aren't in the resume are downgraded to gaps, so the report can show real gaps but never invented strengths.

Public and affordable

CORS allow-list, per-visitor rate limits and caching keep a public AI endpoint cheap.

05My responsibilities

  • Retrieval and guard design
  • Serverless API
  • Frontend
  • Evaluation and tests

06Outcome

Live at ask.haroonriasat.com, open source on GitHub, and wired into this site's chat and fit checker.

Next case study

Wild Frequencies