# vinesh-024/recruiter_simulation architecture

> Architecture diagram of the GitHub repository vinesh-024/recruiter_simulation, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vinesh-024/recruiter_simulation
- Repository: https://github.com/vinesh-024/recruiter_simulation

## Overview

Recruiter Simulator is a Streamlit mock-interview platform: users provide a role, job or culture sources, and optionally a resume; the app builds session-specific retrieval context, asks role-tailored questions, evaluates answers with STAR feedback, and displays progress. The README documents ATS, web, and PDF ingestion, metadata-filtered retrieval, adaptive coaching, and resume-grounded rewrites. Source excerpts confirm the ingestion, retrieval, agent, and app wiring; some UI turn-handling and resume flow are only partly sampled, so those links rely on the README or are omitted.

Main entry points: [`src/app.py`](https://github.com/vinesh-024/recruiter_simulation/blob/main/src/app.py) (Interview dashboard), [`src/agents.py`](https://github.com/vinesh-024/recruiter_simulation/blob/main/src/agents.py) (Simulation manager), [`src/multi_loader.py`](https://github.com/vinesh-024/recruiter_simulation/blob/main/src/multi_loader.py) (Source ingestion), [`src/extractor.py`](https://github.com/vinesh-024/recruiter_simulation/blob/main/src/extractor.py) (URL extraction cascade)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Interview experience"]
  node_streamlit_app["Interview dashboard<br/>[app.py]"]
  node_resume["Resume context<br/>[app.py]"]
  node_turn_control["Turn and session control<br/>[app.py]"]
  node_feedback_view["Scorecard and review<br/>[app.py]"]
end

subgraph group_ingestion["Content ingestion"]
  node_ingestion_engine["Source ingestion<br/>[multi_loader.py]"]
  node_url_extraction["URL extraction cascade<br/>[extractor.py]"]
  node_pdf_parsing["PDF parsing<br/>[multi_loader.py]"]
  node_chunking["Chunking and metadata<br/>[multi_loader.py]"]
end

subgraph group_context["Context and retrieval"]
  node_embeddings["Local embeddings<br/>[multi_loader.py]"]
  node_vector_store[("Session vector store<br/>[multi_loader.py]")]
  node_retrieval_tools["Filtered retrieval tools<br/>[retriever.py]"]
end

subgraph group_agents["Interview agents"]
  node_simulation_manager["Simulation manager<br/>[agents.py]"]
  node_interviewer["Interviewer agent<br/>[agents.py]"]
  node_coach["Coach evaluator<br/>[agents.py]"]
  node_score_schema["STAR scorecard<br/>[agents.py]"]
end

node_candidate(("Candidate"))
node_ats["ATS job sources"]
node_web_sources["Web pages"]
node_pdf_sources["Job and campus PDFs"]
node_llm_service["Groq language model"]
node_embedding_model["Sentence-transformers model"]

node_candidate -->|"configures session"| node_streamlit_app
node_streamlit_app -->|"starts ingestion"| node_ingestion_engine
node_streamlit_app -->|"controls turns"| node_turn_control
node_candidate -->|"uploads resume"| node_resume
node_streamlit_app -.->|"provides resume context"| node_resume
node_ats -->|"provides postings"| node_url_extraction
node_web_sources -->|"provides pages"| node_url_extraction
node_pdf_sources -->|"provides documents"| node_pdf_parsing
node_ingestion_engine -->|"fetches URLs"| node_url_extraction
node_ingestion_engine -->|"parses uploads"| node_pdf_parsing
node_ingestion_engine -->|"normalizes documents"| node_chunking
node_chunking -->|"embeds chunks"| node_embeddings
node_chunking -->|"indexes chunks"| node_vector_store
node_embeddings -->|"uses model"| node_embedding_model
node_simulation_manager -->|"creates tools"| node_retrieval_tools
node_retrieval_tools -->|"searches context"| node_vector_store
node_streamlit_app -->|"creates manager"| node_simulation_manager
node_turn_control -.->|"requests questions"| node_simulation_manager
node_simulation_manager -->|"dispatches question tasks"| node_interviewer
node_simulation_manager -->|"dispatches evaluation"| node_coach
node_interviewer -.->|"generates questions"| node_llm_service
node_coach -.->|"evaluates answers"| node_llm_service
node_coach -->|"returns scorecard"| node_score_schema
node_turn_control -->|"shows feedback"| node_feedback_view
node_feedback_view -->|"presents results"| node_candidate

click node_streamlit_app "https://github.com/vinesh-024/recruiter_simulation/blob/main/src/app.py"
click node_resume "https://github.com/vinesh-024/recruiter_simulation/blob/main/src/app.py"
click node_turn_control "https://github.com/vinesh-024/recruiter_simulation/blob/main/src/app.py"
click node_feedback_view "https://github.com/vinesh-024/recruiter_simulation/blob/main/src/app.py"
click node_ingestion_engine "https://github.com/vinesh-024/recruiter_simulation/blob/main/src/multi_loader.py"
click node_url_extraction "https://github.com/vinesh-024/recruiter_simulation/blob/main/src/extractor.py"
click node_pdf_parsing "https://github.com/vinesh-024/recruiter_simulation/blob/main/src/multi_loader.py"
click node_chunking "https://github.com/vinesh-024/recruiter_simulation/blob/main/src/multi_loader.py"
click node_embeddings "https://github.com/vinesh-024/recruiter_simulation/blob/main/src/multi_loader.py"
click node_vector_store "https://github.com/vinesh-024/recruiter_simulation/blob/main/src/multi_loader.py"
click node_retrieval_tools "https://github.com/vinesh-024/recruiter_simulation/blob/main/src/retriever.py"
click node_simulation_manager "https://github.com/vinesh-024/recruiter_simulation/blob/main/src/agents.py"
click node_interviewer "https://github.com/vinesh-024/recruiter_simulation/blob/main/src/agents.py"
click node_coach "https://github.com/vinesh-024/recruiter_simulation/blob/main/src/agents.py"
click node_score_schema "https://github.com/vinesh-024/recruiter_simulation/blob/main/src/agents.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_streamlit_app,node_resume,node_turn_control,node_feedback_view toneBlue
class node_ingestion_engine,node_url_extraction,node_pdf_parsing,node_chunking toneAmber
class node_embeddings,node_vector_store,node_retrieval_tools toneMint
class node_simulation_manager,node_interviewer,node_coach,node_score_schema toneRose
class node_candidate,node_ats,node_web_sources,node_pdf_sources,node_llm_service,node_embedding_model toneIndigo
```

## Components

### Interview experience

- [Interview dashboard](https://github.com/vinesh-024/recruiter_simulation/blob/main/src/app.py): `src/app.py`
- [Resume context](https://github.com/vinesh-024/recruiter_simulation/blob/main/src/app.py): `src/app.py`
- [Turn and session control](https://github.com/vinesh-024/recruiter_simulation/blob/main/src/app.py): `src/app.py`
- [Scorecard and review](https://github.com/vinesh-024/recruiter_simulation/blob/main/src/app.py): `src/app.py`

### Content ingestion

- [Source ingestion](https://github.com/vinesh-024/recruiter_simulation/blob/main/src/multi_loader.py): `src/multi_loader.py`
- [URL extraction cascade](https://github.com/vinesh-024/recruiter_simulation/blob/main/src/extractor.py): `src/extractor.py`
- [PDF parsing](https://github.com/vinesh-024/recruiter_simulation/blob/main/src/multi_loader.py): `src/multi_loader.py`
- [Chunking and metadata](https://github.com/vinesh-024/recruiter_simulation/blob/main/src/multi_loader.py): `src/multi_loader.py`

### Context and retrieval

- [Local embeddings](https://github.com/vinesh-024/recruiter_simulation/blob/main/src/multi_loader.py): `src/multi_loader.py`
- [Session vector store](https://github.com/vinesh-024/recruiter_simulation/blob/main/src/multi_loader.py): `src/multi_loader.py`
- [Filtered retrieval tools](https://github.com/vinesh-024/recruiter_simulation/blob/main/src/retriever.py): `src/retriever.py`

### Interview agents

- [Simulation manager](https://github.com/vinesh-024/recruiter_simulation/blob/main/src/agents.py): `src/agents.py`
- [Interviewer agent](https://github.com/vinesh-024/recruiter_simulation/blob/main/src/agents.py): `src/agents.py`
- [Coach evaluator](https://github.com/vinesh-024/recruiter_simulation/blob/main/src/agents.py): `src/agents.py`
- [STAR scorecard](https://github.com/vinesh-024/recruiter_simulation/blob/main/src/agents.py): `src/agents.py`

### Other components

- **Candidate**
- **ATS job sources**
- **Web pages**
- **Job and campus PDFs**
- **Groq language model**
- **Sentence-transformers model**

## Connections

- Candidate → Interview dashboard: configures session (evidence: `Readme.md`)
- Interview dashboard → Source ingestion: starts ingestion (evidence: `src/app.py`)
- Interview dashboard → Turn and session control: controls turns (evidence: `Readme.md`)
- Candidate → Resume context: uploads resume (evidence: `src/app.py`)
- Interview dashboard → Resume context: provides resume context (evidence: `src/app.py`)
- ATS job sources → URL extraction cascade: provides postings (evidence: `Readme.md`)
- Web pages → URL extraction cascade: provides pages (evidence: `Readme.md`)
- Job and campus PDFs → PDF parsing: provides documents (evidence: `Readme.md`)
- Source ingestion → URL extraction cascade: fetches URLs (evidence: `src/multi_loader.py`)
- Source ingestion → PDF parsing: parses uploads (evidence: `src/multi_loader.py`)
- Source ingestion → Chunking and metadata: normalizes documents (evidence: `src/multi_loader.py`)
- Chunking and metadata → Local embeddings: embeds chunks (evidence: `Readme.md`)
- Chunking and metadata → Session vector store: indexes chunks (evidence: `src/multi_loader.py`)
- Local embeddings → Sentence-transformers model: uses model (evidence: `Readme.md`)
- Simulation manager → Filtered retrieval tools: creates tools (evidence: `src/agents.py`)
- Filtered retrieval tools → Session vector store: searches context (evidence: `src/retriever.py`)
- Interview dashboard → Simulation manager: creates manager (evidence: `src/app.py`)
- Turn and session control → Simulation manager: requests questions (evidence: `src/app.py`)
- Simulation manager → Interviewer agent: dispatches question tasks (evidence: `src/agents.py`)
- Simulation manager → Coach evaluator: dispatches evaluation (evidence: `src/agents.py`)
- Interviewer agent → Groq language model: generates questions
- Coach evaluator → Groq language model: evaluates answers
- Coach evaluator → STAR scorecard: returns scorecard (evidence: `src/agents.py`)
- Turn and session control → Scorecard and review: shows feedback (evidence: `src/app.py`)
- Scorecard and review → Candidate: presents results (evidence: `src/app.py`)
