How we kept personal data away from the language model in a recruitment platform and what it cost us in complexity.
When a client in HR tech asked us to build AI-led interviews for students, the first requirement was not about the AI at all. It was this: no video, no resume, and no face data may be sent to a third-party model.
That one rule shaped the whole architecture. Here is how we built around it.
The problem
The client works across HR tech and ed tech. Screening a large student pool by hand is slow, and recruiters wanted interviews that adapt to each job. The obvious answer is to record the interview and hand everything to a large language model.
We did not do that, for two reasons. Candidates are students sharing videos of their faces and their full work history. And a model that sees everything is a model whose scoring nobody can explain.
What the model is allowed to see
We drew a hard line. The language model gets text and nothing else: the job description and the transcript of the candidate's answers. Video, resume files, and face data stay on our own backend.
That meant three jobs normally handed to a cloud AI service had to run locally.
- Speech to text. We transcribe answers on our own servers with Faster-Whisper, so raw audio never leaves our infrastructure.
- Resume parsing. Resumes are parsed with PyMuPDF and scored by our own ATS scoring logic. The model never reads the file.
- Identity checks. We use OpenCV for face-continuity checks, which confirm that the same person stays on camera for the whole interview. This runs on the video locally and produces a simple signal, not an image sent anywhere.
One question at a time
Interview questions are generated one at a time from the job description, so each question can follow from the last answer.
Generating live has a risk: the model can ask something irrelevant or something no interviewer should ask. So every generated question passes two checks before the candidate hears it. One is for relevance to the role. The other blocks questions on protected topics.
If a question fails, or if the model is unavailable, the system falls back to a fixed question. The interview never stalls because an API is slow.
Scoring: Recruiters can explain
Candidate matching uses a fixed weighting: 70% skills, 30% ATS score.
It is a deliberately plain formula. A recruiter can look at a match and say why it ranked where it did, which is not true of a score that comes out of a model as a single number. Humans make every hiring decision; the platform only orders the list.
The unglamorous problem: video uploads
The frontend is Next.js. Interview videos are too large for serverless request limits, so they upload directly to the FastAPI backend instead of passing through the frontend's server functions.
It is not the interesting part of the system, but it is the kind of limit you only discover once real candidates start recording real answers.
What we would tell another team
- Decide what the model may see before you choose a model. The constraint did more for our design than any prompt.
- Run the sensitive steps locally, even when a hosted API is easier. Transcription and vision were both practical to run ourselves.
- Always have a fallback that needs no model. Live generation fails at the worst moments.
- Prefer a scoring rule people can read over one that is slightly smarter.
The stack
Next.js, FastAPI, MongoDB, faster-whisper, OpenCV, PyMuPDF, and Groq for the language-model calls.
The platform serves three groups: students practicing interviews, recruiters running them, and colleges tracking placements. We wrote up the project in more detail in our AI recruitment platform case study.
Ayush Kumar, Kynyx, a software and AI development company in New Delhi.