Skip to content

About

AI mock-interviewer that grades itself - adaptive technical screens for AI/ML/DS roles with an LLM-as-judge eval pipeline (candidate report + interviewer self-audit)

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

24 Commits

Folders and files

Repository files navigation

InterviewOps 🎙️

CI

An AI mock-interviewer that grades itself. Practice a realistic technical screen for AI/ML/DS roles — then get two reports: one scoring you, and one where an LLM-as-judge audits the interviewer's own performance (follow-up quality, difficulty calibration, hallucinations).

Most AI interview tools stop at "ask questions." InterviewOps ships a built-in eval pipeline — the same discipline production AI teams use — so every interview doubles as a benchmark run.

🔴 Live demo: interviewops.onrender.com (free tier — first visit after idle takes ~30s to wake)

Demo

Two modes: free demo vs real AI

The app runs in one of two modes, decided by a single environment variable — no code changes:

Demo mode (default) Real mode
Trigger ANTHROPIC_API_KEY not set ANTHROPIC_API_KEY set in backend/.env (or Render env vars)
Questions 6 realistic canned AI/DS questions Claude asks adaptive questions, probes weak answers, escalates on strong ones
Report Placeholder layout demo (marked [Mock]) Real LLM-as-judge grading with evidence from your answers
Cost ₹0 — zero API calls Pay-per-interview (a few rupees per full session)
UI signal Amber "Demo mode" banner on the setup screen No banner

Why: the deployed site can stay up 24/7 at zero cost. When showcasing the project live (an interview, a demo call), add the API key for that hour, run a real interview, then remove the key — costs stay near zero while the portfolio link always works.

Architecture

Frontend (Stitch design → light theme, vanilla JS)
        │  same-origin REST (served by FastAPI StaticFiles)
        ▼
FastAPI backend ──► Interview Agent (Claude, adaptive follow-ups)
        │
        ├─► Candidate Report  — per-question 0-10 scores, hire signal, ideal-answer outlines
        └─► Meta-Eval         — LLM-as-judge audits the interviewer itself

Run locally

cd backend
python -m venv .venv && .venv\Scripts\activate   # Windows
pip install -r requirements.txt
uvicorn app.main:app --reload --port 8000

Open http://localhost:8000 — the full app (UI + API) runs on one port. It starts in demo mode; create backend/.env with ANTHROPIC_API_KEY=sk-ant-... to switch to real AI interviews (template in .env.example).

Interactive API docs: http://localhost:8000/docs

Tests

cd backend
pip install -r requirements-dev.txt
pytest

The suite exercises the full API (session flow, grading, history, usage) against a throwaway SQLite database in forced demo mode — zero API calls, zero cost. GitHub Actions runs it on every push and PR (.github/workflows/ci.yml).

Deploy (Render, free tier)

The repo ships a render.yaml blueprint:

  1. Go to render.com → New → Blueprint → connect eklavya2201/interviewops
  2. Render reads render.yaml and creates the web service automatically — deploy
  3. Done. The site runs in free demo mode with zero API cost.

To showcase real AI interviews: Render dashboard → the service → Environment → add ANTHROPIC_API_KEY → save (auto-redeploys in ~1 min). Remove the variable afterwards to go back to free demo mode.

Free-tier note: Render spins the service down after 15 idle minutes; the first visit after that takes ~30s to wake. Fine for a portfolio link.

API

Endpoint What it does
POST /api/session/start Pick role + difficulty (optionally paste your resume) → first question
POST /api/session/{id}/answer Submit an answer → adaptive next question (6 total)
POST /api/session/{id}/report Structured candidate report (scores, hire signal)
POST /api/session/{id}/meta-eval The differentiator — judge the AI interviewer itself
GET /api/history Completed interviews persisted in SQLite (survives restarts)
GET /api/usage Token usage + ₹ cost per interview for the cost dashboard
GET /api/health {status, mock} — tells the UI which mode is active

Roadmap

  • FastAPI backend with adaptive interview agent
  • LLM-as-judge evals (candidate report + interviewer self-audit)
  • Frontend (Google Stitch design → light theme) wired to the API
  • Free demo mode (runs with zero API cost)
  • Deployed on Render — interviewops.onrender.com
  • Voice mode (Web Speech API mic input + spoken questions — mic + speaker toggles on the interview screen)
  • Model benchmark table (Claude vs GPT vs Gemini as interviewer, scored by the meta-eval — see below)
  • Cost dashboard (tokens + ₹ per interview at /costs.html, powered by per-call usage tracking)
  • SQLite persistence for sessions and history (sessions survive restarts; /api/history backs the History page)
  • Test suite + CI (pytest over the demo-mode API — free to run; GitHub Actions badge above)
  • Score-trend chart on the History page (see your progress across interviews)
  • Printable / shareable reports (Print-to-PDF button + copy-link — reports are served from the server DB)

Model benchmark

Which model makes the best interviewer? backend/benchmark.py has each model conduct the same interview against a Claude-simulated fresher candidate, then scores the transcripts with the same LLM-as-judge meta-eval the live app uses. Results render at /benchmark.html.

cd backend
# ANTHROPIC_API_KEY required (candidate simulator + judge); OPENAI_API_KEY / GEMINI_API_KEY optional
python benchmark.py --runs 2

The repo ships illustrative sample data (marked as such in the UI) so the page works out of the box; running the script overwrites frontend/benchmark-data.json with real results.

Note on persistence in production: Render's free tier has an ephemeral disk, so the SQLite file resets on redeploys. Fine for a portfolio demo; point DB_PATH at a mounted disk to keep data.

Why evals?

Eval design is the #1 skill screen for AI engineering roles in 2026. backend/app/evals.py implements structured LLM-as-judge scoring with Pydantic-validated outputs — the meta-eval turns this app into a harness for comparing interviewer models objectively.

About

AI mock-interviewer that grades itself - adaptive technical screens for AI/ML/DS roles with an LLM-as-judge eval pipeline (candidate report + interviewer self-audit)

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages