An AI-powered Recruitment Matching Agent built using Python, LangGraph, LangChain, ChromaDB, and Ollama.
The system uses a Retrieval-Augmented Generation (RAG) architecture to semantically search resumes, rank candidates, generate explainable reports, and support conversational hiring workflows.
Features =## AI Agent Workflow (LangGraph)
The project implements a LangGraph-based workflow:
START
↓
Parse Job Description
↓
Extract Requirements
↓
Search Resumes
↓
Rank Candidates
↓
Generate Reports
↓
Human Feedback Loop
↓
END
-
Resume ingestion using PDF parsing
-
Resume chunking and embedding generation
-
Vector storage using ChromaDB
-
Semantic similarity search
-
Retrieval-Augmented Generation pipeline
Supports natural language queries such as:
-
"Find React developers with AWS experience"
-
"Compare top candidates"
-
"Why did this candidate rank higher?"
-
"Prioritize Docker experience"
-
"Only show AWS candidates"
The system generates explainable candidate reports including:
-
Match score
-
Matched skills
-
Missing skills
-
Hiring recommendation
-
Candidate comparison
The ranking system combines:
-
Semantic similarity
-
Explicit skill matching
-
Weighted scoring logic
This improves ranking accuracy compared to pure vector similarity search.
ai-recruitment-agent/
│
├── app/
│ ├── agent/
│ │ ├── matching_agent.py
│ │ ├── state.py
│ │ ├── conversation_handler.py
│ │ └── nodes/
│ │
│ ├── rag/
│ │ ├── ingest_resumes.py
│ │ ├── retriever.py
│ │ ├── embeddings.py
│ │ └── chroma_store.py
│ │
│ ├── tools/
│ ├── prompts/
│ ├── ui/
│ └── config/
│
├── resumes/
├── chroma_db/
├── tests/
├── main.py
└── requirements.txt
git clone <your-repo-url>
cd ai-recruitment-agent
pip install -r requirements.txt
Download and install Ollama:
ollama pull llama3
ollama pull nomic-embed-text
Place PDF resumes inside:
resumes/
python -m app.rag.ingest_resumes
This will:
-
parse resumes
-
generate embeddings
-
store vectors in ChromaDB
python main.py
Looking for a React developer with AWS and Docker experience.
Candidate: Aarav_React_AWS_Developer.pdf
Match Score: 92%
Matched Skills:
- React
- AWS
- Docker
Missing Skills:
- None
Recommendation:
Strong Match
After the reports are generated, users can ask:
compare top candidates
why did this candidate rank higher
prioritize aws experience
only show docker candidates
The system supports:
Initial semantic filtering
Detailed candidate analysis
Final hiring recommendation
The system provides:
-
transparent scoring
-
skill-gap analysis
-
semantic reasoning
-
recommendation logic
This helps improve trust and interpretability in AI-assisted hiring.
This project demonstrates:
-
LangGraph workflows
-
RAG architecture
-
Conversational AI
-
Semantic retrieval
-
AI explainability
-
Vector search systems
-
Hybrid ranking strategies