Skip to content
Back to projects
GenAI Academic project · 4IASDR track · 2026

RAG chatbot for CVs

Query a CV in natural language and get answers grounded only in its content, with no off-topic replies.

Problem

A recruiter or candidate wants to find information in a CV quickly. A language model on its own may make things up: it has to be forced to rely on the document and to decline anything off-topic.

Data

  • CV in PDF or DOCX format, uploaded by the user

Approach

  • 9-step pipeline: loading, preprocessing, chunking, embedding, FAISS indexing, semantic search, prompt building, generation (Gemini), domain safety
  • 500-character chunks with 80 overlap; 4 passages retrieved per question
  • Gemini embedding and chat models, with automatic fallback to other versions when one is unavailable
  • Keyword filter to reject out-of-scope questions (weather, cooking, news…)
  • User-friendly error messages (invalid API key, quota…)

Results

  • Working application: the chatbot answers from the uploaded CV, for example by listing the projects it mentions

What I would improve

  • Build a set of test questions to measure answer accuracy
  • Replace the keyword filter with a relevance check based on similarity to the CV
Enlarged image