# gtgautam16/ai-resume-screening-agent architecture

> Architecture diagram of the GitHub repository gtgautam16/ai-resume-screening-agent, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/gtgautam16/ai-resume-screening-agent
- Repository: https://github.com/gtgautam16/ai-resume-screening-agent

## Overview

This is an AI resume-screening application. Recruiters upload a resume and job-description PDF through the Streamlit interface; the API extracts text, runs the LangGraph analysis stages, persists the evaluation, and returns match findings, interview questions, and a learning roadmap. A separate API search endpoint retrieves resume context and generates a recruiter-facing answer. The README documents these capabilities; some modules, including vector storage and interview generation, were not excerpted, so uncertain internal links are omitted.

Main entry points: [`services/llm.py`](https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/services/llm.py) (LLM client), [`api/main.py`](https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/api/main.py) (FastAPI endpoints), [`agents/planner.py`](https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/agents/planner.py) (LangGraph planner), [`services/rag.py`](https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/services/rag.py) (RAG answering)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui_api["User Interfaces"]
  node_dashboard["Streamlit dashboard<br/>[app.py]"]
  node_api["FastAPI endpoints<br/>[main.py]"]
end

subgraph group_screening["Screening Workflow"]
  node_planner["LangGraph planner<br/>[planner.py]"]
  node_parser["Resume parser<br/>[parser.py]"]
  node_scorer["Resume scorer<br/>[scorer.py]"]
  node_interviewer["Question generator<br/>[interviewer.py]"]
  node_roadmap["Learning roadmap<br/>[roadmap.py]"]
end

subgraph group_services["AI and Data Services"]
  node_pdf["PDF extraction<br/>[pdf_reader.py]"]
  node_llm["LLM client<br/>[llm.py]"]
  node_rag["RAG answering<br/>[rag.py]"]
  node_vector["Vector search<br/>[vector_store.py]"]
  node_embeddings["Embedding generation<br/>[embeddings.py]"]
end

subgraph group_persistence["Persistence"]
  node_postgres[("PostgreSQL")]
  node_chroma[("ChromaDB")]
  node_resume_model["Resume record model<br/>[schemas.py]"]
end

node_recruiter(("Recruiter"))
node_groq{{"Groq API"}}
node_ollama{{"Ollama embeddings"}}

node_recruiter -->|"uploads PDFs"| node_dashboard
node_dashboard -->|"posts analysis"| node_api
node_api -->|"extracts text"| node_pdf
node_api -->|"runs workflow"| node_planner
node_planner -->|"parses resume"| node_parser
node_planner -->|"scores match"| node_scorer
node_planner -->|"generates questions"| node_interviewer
node_planner -->|"builds roadmap"| node_roadmap
node_parser -->|"requests parsing"| node_llm
node_scorer -->|"requests scoring"| node_llm
node_interviewer -->|"requests questions"| node_llm
node_roadmap -->|"requests roadmap"| node_llm
node_llm -->|"calls model"| node_groq
node_api -->|"saves evaluation"| node_postgres
node_api -->|"answers search"| node_rag
node_rag -->|"retrieves resumes"| node_vector
node_rag -->|"generates answer"| node_llm
node_vector -->|"generates vectors"| node_embeddings
node_embeddings -->|"requests embeddings"| node_ollama
node_vector -.->|"uses vector store"| node_chroma
node_postgres -->|"stores records"| node_resume_model

click node_dashboard "https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/app.py"
click node_api "https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/api/main.py"
click node_pdf "https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/services/pdf_reader.py"
click node_planner "https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/agents/planner.py"
click node_parser "https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/agents/parser.py"
click node_scorer "https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/agents/scorer.py"
click node_interviewer "https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/agents/interviewer.py"
click node_roadmap "https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/agents/roadmap.py"
click node_llm "https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/services/llm.py"
click node_rag "https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/services/rag.py"
click node_vector "https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/services/vector_store.py"
click node_embeddings "https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/services/embeddings.py"
click node_resume_model "https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/models/schemas.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_dashboard,node_api toneBlue
class node_planner,node_parser,node_scorer,node_interviewer,node_roadmap toneAmber
class node_pdf,node_llm,node_rag,node_vector,node_embeddings,node_groq toneMint
class node_postgres,node_chroma,node_resume_model toneRose
class node_recruiter,node_ollama toneIndigo
```

## Components

### User Interfaces

- [Streamlit dashboard](https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/app.py): `app.py`
- [FastAPI endpoints](https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/api/main.py): `api/main.py`

### Screening Workflow

- [LangGraph planner](https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/agents/planner.py): `agents/planner.py`
- [Resume parser](https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/agents/parser.py): `agents/parser.py`
- [Resume scorer](https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/agents/scorer.py): `agents/scorer.py`
- [Question generator](https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/agents/interviewer.py): `agents/interviewer.py`
- [Learning roadmap](https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/agents/roadmap.py): `agents/roadmap.py`

### AI and Data Services

- [PDF extraction](https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/services/pdf_reader.py): `services/pdf_reader.py`
- [LLM client](https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/services/llm.py): `services/llm.py`
- [RAG answering](https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/services/rag.py): `services/rag.py`
- [Vector search](https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/services/vector_store.py): `services/vector_store.py`
- [Embedding generation](https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/services/embeddings.py): `services/embeddings.py`

### Persistence

- **PostgreSQL**
- **ChromaDB**
- [Resume record model](https://github.com/gtgautam16/ai-resume-screening-agent/blob/main/models/schemas.py): `models/schemas.py`

### Other components

- **Recruiter**
- **Groq API**
- **Ollama embeddings**

## Connections

- Recruiter → Streamlit dashboard: uploads PDFs (evidence: `app.py`)
- Streamlit dashboard → FastAPI endpoints: posts analysis (evidence: `app.py`)
- FastAPI endpoints → PDF extraction: extracts text (evidence: `api/main.py`)
- FastAPI endpoints → LangGraph planner: runs workflow (evidence: `api/main.py`)
- LangGraph planner → Resume parser: parses resume (evidence: `agents/planner.py`)
- LangGraph planner → Resume scorer: scores match (evidence: `agents/planner.py`)
- LangGraph planner → Question generator: generates questions (evidence: `agents/planner.py`)
- LangGraph planner → Learning roadmap: builds roadmap (evidence: `agents/planner.py`)
- Resume parser → LLM client: requests parsing (evidence: `agents/parser.py`)
- Resume scorer → LLM client: requests scoring (evidence: `agents/scorer.py`)
- Question generator → LLM client: requests questions (evidence: `agents/interviewer.py`)
- Learning roadmap → LLM client: requests roadmap (evidence: `agents/roadmap.py`)
- LLM client → Groq API: calls model (evidence: `services/llm.py`)
- FastAPI endpoints → PostgreSQL: saves evaluation
- FastAPI endpoints → RAG answering: answers search (evidence: `api/main.py`)
- RAG answering → Vector search: retrieves resumes (evidence: `services/rag.py`)
- RAG answering → LLM client: generates answer (evidence: `services/rag.py`)
- Vector search → Embedding generation: generates vectors (evidence: `services/vector_store.py`)
- Embedding generation → Ollama embeddings: requests embeddings (evidence: `services/embeddings.py`)
- Vector search → ChromaDB: uses vector store (evidence: `README.md`)
- PostgreSQL → Resume record model: stores records (evidence: `models/schemas.py`)
