How chopra2408/gen-ai-career-consultant works
This FastAPI career-consultant app accepts a job URL and a resume, portfolio CSV, or both; it extracts job details, analyzes candidate fit with a selected Groq model, and returns formatted HTML. The main workflow is orchestrated by the analyze endpoint, with separate resume, portfolio, and combined analysis paths. The README also describes PDF, DOCX, and CSV parsing and suitability feedback. The shown frontend submits to the analysis endpoint and displays its HTML response. Some README-described endpoint details are not visible in the sampled implementation.
Main entry points: analyze.py Analyze endpoint · posting.py Job posting extraction · script.js Analysis form · resume.py Resume analysis
Components 12
Client interface
- Analysis form
template/script.js
API orchestration
- FastAPI app
app.py - Analyze endpoint
routes/analyze.py
Input processing
- Resume extraction
utility/parse.py - Job posting extraction
prompts/posting.py
Analysis and output
- Resume analysis
prompts/resume.py - Portfolio analysis
prompts/portfolio.py - Combined analysis
prompts/combined.py - HTML formatting
utility/format.py
Other components
- Candidate
- Job posting site
- Groq model
Connections 15
- Candidate → Analysis form: submits inputs
template/script.js - Analysis form → Analyze endpoint: posts analysis
template/script.js - FastAPI app → Analyze endpoint: registers router
app.py - Analyze endpoint → Job posting extraction: extracts job details
routes/analyze.py - Job posting extraction → Job posting site: scrapes page
prompts/posting.py - Job posting extraction → Groq model: extracts details with
prompts/posting.py - Analyze endpoint → Resume extraction: parses resume
routes/analyze.py - Analyze endpoint → Resume analysis: analyzes resume
routes/analyze.py - Analyze endpoint → Portfolio analysis: analyzes portfolio
routes/analyze.py - Analyze endpoint → Combined analysis: analyzes both
routes/analyze.py - Resume analysis → Groq model: invokes model
prompts/resume.py - Portfolio analysis → Groq model: invokes model
prompts/portfolio.py - Combined analysis → Groq model: invokes model
prompts/combined.py - Analyze endpoint → HTML formatting: formats result
routes/analyze.py - Analyze endpoint → Analysis form: returns HTML
routes/analyze.py