# bishoy-512/end-to-end-interview-preparation-system architecture

> Architecture diagram of the GitHub repository bishoy-512/end-to-end-interview-preparation-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bishoy-512/end-to-end-interview-preparation-system
- Repository: https://github.com/bishoy-512/end-to-end-interview-preparation-system

## Overview

This is an end-to-end AI interview-preparation system. The intended journey runs from candidate/job input through job analysis and interview planning, then an adaptive mock interview, answer evaluation, a performance report, and learning recommendations. The repository shows a LangGraph orchestrator, a detailed job-analysis pipeline, and a retrieval system used for interview context and learning advice. Some later-stage behavior is documented in the README but its internal calls are not fully excerpted, so those links are omitted where evidence is insufficient.

Main entry points: [`src/job_analysis/tools/job_analysis_tool.py`](https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/tools/job_analysis_tool.py) (Job Analysis Tool), [`src/orchestrator/graph.py`](https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/orchestrator/graph.py) (Workflow Graph), [`src/job_analysis/analysis/skill_extractor.py`](https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/analysis/skill_extractor.py) (Skill Extraction), [`src/orchestrator/agents/__init__.py`](https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/orchestrator/agents/__init__.py) (Agent Set)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_analysis["Job Analysis"]
  node_analysis_tool["Job Analysis Tool"]
  node_cv_parser["CV Parser<br/>[cv_parser.py]"]
  node_jd_parser["Job Parser<br/>[jd_parser.py]"]
  node_candidate_model["Candidate Profile<br/>[candidate.py]"]
  node_job_model["Job Description<br/>[job.py]"]
  node_skill_extractor["Skill Extraction<br/>[skill_extractor.py]"]
  node_skill_normalizer["Skill Normalization"]
  node_gap_analyzer["Gap Analysis<br/>[gap_analyzer.py]"]
  node_planner["Interview Planner"]
  node_plan_model["Plan Schema"]
  node_result_model["Analysis Result"]
  node_groq["Groq Structured Output<br/>[groq_client.py]"]
end

subgraph group_orchestration["Interview Orchestration"]
  node_api["Interview API<br/>[api.py]"]
  node_graph["Workflow Graph<br/>[graph.py]"]
  node_nodes["Workflow Stages<br/>[nodes.py]"]
  node_state["Interview State<br/>[state.py]"]
end

subgraph group_agents["Interview Agents"]
  node_agent_factory["Agent Set<br/>[__init__.py]"]
  node_real_agents["Real Agents<br/>[real.py]"]
  node_mock_agents["Mock Agents<br/>[mocks.py]"]
  node_question_agent["Question Generator<br/>[llm_interview.py]"]
end

subgraph group_retrieval["Knowledge Retrieval"]
  node_rag_agent["RAG Agent<br/>[rag_agent.py]"]
  node_knowledge_store[("Knowledge Store")]
  node_knowledge_docs["Role Knowledge Bases"]
end

node_user(("Job Seeker"))

node_user -->|"provides input"| node_api
node_api -->|"invokes workflow"| node_graph
node_graph -->|"registers stages"| node_nodes
node_graph -->|"uses state"| node_state
node_graph -->|"builds agents"| node_agent_factory
node_nodes -->|"uses agents"| node_agent_factory
node_agent_factory -->|"selects implementation"| node_real_agents
node_agent_factory -->|"selects implementation"| node_mock_agents
node_real_agents -->|"calls analysis"| node_analysis_tool
node_real_agents -->|"initializes retrieval"| node_rag_agent
node_question_agent -->|"uses fallback"| node_mock_agents
node_question_agent -->|"generates questions"| node_groq
node_analysis_tool -->|"parses candidate"| node_cv_parser
node_analysis_tool -->|"parses job"| node_jd_parser
node_analysis_tool -->|"extracts skills"| node_skill_extractor
node_analysis_tool -->|"normalizes skills"| node_skill_normalizer
node_analysis_tool -->|"compares skills"| node_gap_analyzer
node_analysis_tool -->|"creates plan"| node_planner
node_analysis_tool -->|"builds result"| node_result_model
node_cv_parser -->|"validates profile"| node_candidate_model
node_cv_parser -->|"requests extraction"| node_groq
node_jd_parser -->|"validates job"| node_job_model
node_skill_extractor -->|"reads profile"| node_candidate_model
node_skill_extractor -->|"reads requirements"| node_job_model
node_gap_analyzer -->|"uses skill records"| node_skill_extractor
node_planner -->|"plans from gaps"| node_gap_analyzer
node_planner -->|"builds plan"| node_plan_model
node_rag_agent -.->|"retrieves vectors"| node_knowledge_store
node_rag_agent -.->|"indexes documents"| node_knowledge_docs

click node_api "https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/orchestrator/api.py"
click node_graph "https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/orchestrator/graph.py"
click node_nodes "https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/orchestrator/nodes.py"
click node_state "https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/orchestrator/state.py"
click node_agent_factory "https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/orchestrator/agents/__init__.py"
click node_real_agents "https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/orchestrator/agents/real.py"
click node_mock_agents "https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/orchestrator/agents/mocks.py"
click node_question_agent "https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/orchestrator/agents/llm_interview.py"
click node_analysis_tool "https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/tools/job_analysis_tool.py"
click node_cv_parser "https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/extraction/cv_parser.py"
click node_jd_parser "https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/extraction/jd_parser.py"
click node_candidate_model "https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/schemas/candidate.py"
click node_job_model "https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/schemas/job.py"
click node_skill_extractor "https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/analysis/skill_extractor.py"
click node_skill_normalizer "https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/analysis/skill_normalizer.py"
click node_gap_analyzer "https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/analysis/gap_analyzer.py"
click node_planner "https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/planning/interview_planner.py"
click node_plan_model "https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/schemas/interview_plan_schema.py"
click node_result_model "https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/schemas/job_analysis_result.py"
click node_groq "https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/services/groq_client.py"
click node_rag_agent "https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/rag%20system%20agent/rag_agent.py"
click node_knowledge_store "https://github.com/bishoy-512/end-to-end-interview-preparation-system/tree/master/src/rag%20system%20agent/chroma_db"
click node_knowledge_docs "https://github.com/bishoy-512/end-to-end-interview-preparation-system/tree/master/src/rag%20system%20agent/jobs_info"

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_analysis_tool,node_cv_parser,node_jd_parser,node_candidate_model,node_job_model,node_skill_extractor,node_skill_normalizer,node_gap_analyzer,node_planner,node_plan_model,node_result_model,node_groq toneBlue
class node_api,node_graph,node_nodes,node_state toneAmber
class node_agent_factory,node_real_agents,node_mock_agents,node_question_agent toneMint
class node_rag_agent,node_knowledge_store,node_knowledge_docs toneRose
class node_user toneIndigo
```

## Components

### Job Analysis

- [Job Analysis Tool](https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/tools/job_analysis_tool.py): `src/job_analysis/tools/job_analysis_tool.py`
- [CV Parser](https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/extraction/cv_parser.py): `src/job_analysis/extraction/cv_parser.py`
- [Job Parser](https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/extraction/jd_parser.py): `src/job_analysis/extraction/jd_parser.py`
- [Candidate Profile](https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/schemas/candidate.py): `src/job_analysis/schemas/candidate.py`
- [Job Description](https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/schemas/job.py): `src/job_analysis/schemas/job.py`
- [Skill Extraction](https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/analysis/skill_extractor.py): `src/job_analysis/analysis/skill_extractor.py`
- [Skill Normalization](https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/analysis/skill_normalizer.py): `src/job_analysis/analysis/skill_normalizer.py`
- [Gap Analysis](https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/analysis/gap_analyzer.py): `src/job_analysis/analysis/gap_analyzer.py`
- [Interview Planner](https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/planning/interview_planner.py): `src/job_analysis/planning/interview_planner.py`
- [Plan Schema](https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/schemas/interview_plan_schema.py): `src/job_analysis/schemas/interview_plan_schema.py`
- [Analysis Result](https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/schemas/job_analysis_result.py): `src/job_analysis/schemas/job_analysis_result.py`
- [Groq Structured Output](https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/job_analysis/services/groq_client.py): `src/job_analysis/services/groq_client.py`

### Interview Orchestration

- [Interview API](https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/orchestrator/api.py): `src/orchestrator/api.py`
- [Workflow Graph](https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/orchestrator/graph.py): `src/orchestrator/graph.py`
- [Workflow Stages](https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/orchestrator/nodes.py): `src/orchestrator/nodes.py`
- [Interview State](https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/orchestrator/state.py): `src/orchestrator/state.py`

### Interview Agents

- [Agent Set](https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/orchestrator/agents/__init__.py): `src/orchestrator/agents/__init__.py`
- [Real Agents](https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/orchestrator/agents/real.py): `src/orchestrator/agents/real.py`
- [Mock Agents](https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/orchestrator/agents/mocks.py): `src/orchestrator/agents/mocks.py`
- [Question Generator](https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/orchestrator/agents/llm_interview.py): `src/orchestrator/agents/llm_interview.py`

### Knowledge Retrieval

- [RAG Agent](https://github.com/bishoy-512/end-to-end-interview-preparation-system/blob/master/src/rag%20system%20agent/rag_agent.py): `src/rag system agent/rag_agent.py`
- [Knowledge Store](https://github.com/bishoy-512/end-to-end-interview-preparation-system/tree/master/src/rag%20system%20agent/chroma_db): `src/rag system agent/chroma_db`
- [Role Knowledge Bases](https://github.com/bishoy-512/end-to-end-interview-preparation-system/tree/master/src/rag%20system%20agent/jobs_info): `src/rag system agent/jobs_info`

### Other components

- **Job Seeker**

## Connections

- Job Seeker → Interview API: provides input (evidence: `README.md`)
- Interview API → Workflow Graph: invokes workflow (evidence: `src/orchestrator/api.py`)
- Workflow Graph → Workflow Stages: registers stages (evidence: `src/orchestrator/graph.py`)
- Workflow Graph → Interview State: uses state (evidence: `src/orchestrator/graph.py`)
- Workflow Graph → Agent Set: builds agents (evidence: `src/orchestrator/graph.py`)
- Workflow Stages → Agent Set: uses agents (evidence: `src/orchestrator/nodes.py`)
- Agent Set → Real Agents: selects implementation (evidence: `src/orchestrator/agents/__init__.py`)
- Agent Set → Mock Agents: selects implementation (evidence: `src/orchestrator/agents/__init__.py`)
- Real Agents → Job Analysis Tool: calls analysis (evidence: `src/orchestrator/agents/real.py`)
- Real Agents → RAG Agent: initializes retrieval (evidence: `src/orchestrator/agents/real.py`)
- Question Generator → Mock Agents: uses fallback (evidence: `src/orchestrator/agents/llm_interview.py`)
- Question Generator → Groq Structured Output: generates questions (evidence: `src/orchestrator/agents/llm_interview.py`)
- Job Analysis Tool → CV Parser: parses candidate (evidence: `src/job_analysis/tools/job_analysis_tool.py`)
- Job Analysis Tool → Job Parser: parses job (evidence: `src/job_analysis/tools/job_analysis_tool.py`)
- Job Analysis Tool → Skill Extraction: extracts skills (evidence: `src/job_analysis/tools/job_analysis_tool.py`)
- Job Analysis Tool → Skill Normalization: normalizes skills (evidence: `src/job_analysis/tools/job_analysis_tool.py`)
- Job Analysis Tool → Gap Analysis: compares skills (evidence: `src/job_analysis/tools/job_analysis_tool.py`)
- Job Analysis Tool → Interview Planner: creates plan (evidence: `src/job_analysis/tools/job_analysis_tool.py`)
- Job Analysis Tool → Analysis Result: builds result (evidence: `src/job_analysis/tools/job_analysis_tool.py`)
- CV Parser → Candidate Profile: validates profile (evidence: `src/job_analysis/extraction/cv_parser.py`)
- CV Parser → Groq Structured Output: requests extraction (evidence: `src/job_analysis/extraction/cv_parser.py`)
- Job Parser → Job Description: validates job (evidence: `src/job_analysis/extraction/jd_parser.py`)
- Skill Extraction → Candidate Profile: reads profile (evidence: `src/job_analysis/analysis/skill_extractor.py`)
- Skill Extraction → Job Description: reads requirements (evidence: `src/job_analysis/analysis/skill_extractor.py`)
- Gap Analysis → Skill Extraction: uses skill records (evidence: `src/job_analysis/analysis/gap_analyzer.py`)
- Interview Planner → Gap Analysis: plans from gaps (evidence: `src/job_analysis/planning/interview_planner.py`)
- Interview Planner → Plan Schema: builds plan (evidence: `src/job_analysis/planning/interview_planner.py`)
- RAG Agent → Knowledge Store: retrieves vectors
- RAG Agent → Role Knowledge Bases: indexes documents
