How nagahanuma/candidate-semantic-ranking-grading-system works
This is a FastAPI candidate semantic-matching and grading API. Its main workflow is to ingest CSV/JSON candidate profiles into a local FAISS index, retrieve the top semantic matches for a job description, grade candidates concurrently with Groq, validate and sort evaluations, and return and export a shortlist. The graph includes documented embedding/indexing capabilities and the shared configuration and logging layer. Some vector-service internals were only partially excerpted; edges reflect the excerpts or README rather than assumed implementation details.
Main entry points: main.py FastAPI endpoints · vector_service.py Profile loader · llm_service.py Candidate grading · config.py Application settings
Components 15
API orchestration
- FastAPI endpoints
main.py - API schemas
schemas.py
Candidate indexing
- Profile loader
vector_service.py - Profile synthesis
vector_service.py - Text embeddings
vector_service.py - FAISS index
vector_service.py
Semantic ranking
- Similarity retrieval
vector_service.py - Candidate grading
llm_service.py - Evaluation validation
schemas.py - Ranked shortlist & exports
main.py
Shared infrastructure
- Application settings
config.py - JSON logging
logger.py
Other components
- Recruiter / API client
- Candidate dataset
- Groq LLM
Connections 21
- Recruiter / API client → FastAPI endpoints: submits requests
README.md - Candidate dataset → FastAPI endpoints: provides ingestion path
README.md - FastAPI endpoints → API schemas: validates payloads
main.py - FastAPI endpoints → Profile loader: calls ingestion
main.py - Profile loader → Profile synthesis: synthesizes profiles
vector_service.py - Profile loader → FAISS index: builds and saves
vector_service.py - Profile synthesis → Text embeddings: embeds profiles
README.md - Text embeddings → FAISS index: indexes vectors
README.md - FastAPI endpoints → Similarity retrieval: requests matches
main.py - Similarity retrieval → FAISS index: searches index
vector_service.py - FastAPI endpoints → Candidate grading: dispatches evaluations
main.py - Candidate grading → Groq LLM: invokes model
llm_service.py - Candidate grading → Evaluation validation: enforces output shape
llm_service.py - FastAPI endpoints → Evaluation validation: returns validated results
main.py - FastAPI endpoints → Ranked shortlist & exports: sorts and exports
main.py - FastAPI endpoints → Application settings: reads settings
main.py - FastAPI endpoints → JSON logging: records events
main.py - Candidate grading → Application settings: reads model settings
llm_service.py - Candidate grading → JSON logging: records inference
llm_service.py - Profile loader → Application settings: reads index settings
vector_service.py - Profile loader → JSON logging: records ingestion
vector_service.py