# aarjusingh10/interviewx-ai architecture

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

- Interactive diagram: https://gitdiagram.com/aarjusingh10/interviewx-ai
- Repository: https://github.com/aarjusingh10/interviewx-ai

## Overview

InterviewX AI is a full-stack interview-preparation and assessment platform. Candidates use the frontend to authenticate, upload a resume, generate and answer a role-specific interview, then receive scores, weakness analysis, improvement roadmaps, analytics, and PDF reports. The backend routes own these workflows and persist users, resumes, and interview results through SQLAlchemy. Interview generation also uses a knowledge base and AI provider; audio transcription is an additional interview capability. Frontend implementation details and analytics internals were not excerpted, so those relationships rely on README descriptions or are omitted where not established.

Main entry points: [`backend/app/main.py`](https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/main.py) (FastAPI application), [`backend/app/db/session.py`](https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/db/session.py) (Database sessions), [`backend/app/api/resumes.py`](https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/api/resumes.py) (Resume intake), [`backend/app/api/interviews.py`](https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/api/interviews.py) (Interview sessions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Candidate experience"]
  node_frontend["Web application<br/>[main.tsx]"]
end

subgraph group_api["Backend workflows"]
  node_api_app["FastAPI application<br/>[main.py]"]
  node_auth["Authentication<br/>[auth.py]"]
  node_auth_deps["User authentication<br/>[deps.py]"]
  node_resume_api["Resume intake<br/>[resumes.py]"]
  node_interview_api["Interview sessions<br/>[interviews.py]"]
  node_analytics_api["Interview analytics<br/>[analytics.py]"]
  node_reports_api["Report delivery<br/>[reports.py]"]
  node_schemas["API schemas<br/>[schemas.py]"]
  node_config["Runtime configuration<br/>[config.py]"]
end

subgraph group_intelligence["Interview intelligence"]
  node_document_parser["Document extraction<br/>[document_parser.py]"]
  node_resume_analyzer["Resume analysis<br/>[resume_analyzer.py]"]
  node_interview_engine["Interview engine"]
  node_knowledge_base["Knowledge retrieval<br/>[knowledge_base.py]"]
  node_ai_provider["AI provider<br/>[ai_provider.py]"]
  node_speech["Audio transcription<br/>[speech_service.py]"]
end

subgraph group_persistence["Persistence and reports"]
  node_db_session["Database sessions<br/>[session.py]"]
  node_data_models[("Platform records<br/>[models.py]")]
  node_report_service["PDF report generation<br/>[report_service.py]"]
end

node_candidate(("Candidate"))

node_candidate -->|"uses"| node_frontend
node_frontend -.->|"calls API"| node_api_app
node_api_app -->|"registers routes"| node_auth
node_api_app -->|"registers routes"| node_resume_api
node_api_app -->|"registers routes"| node_interview_api
node_api_app -->|"registers routes"| node_analytics_api
node_api_app -->|"registers routes"| node_reports_api
node_auth -->|"reads and writes"| node_db_session
node_auth -->|"requires user"| node_auth_deps
node_auth_deps -->|"loads user"| node_db_session
node_resume_api -->|"extracts text"| node_document_parser
node_resume_api -->|"analyzes text"| node_resume_analyzer
node_resume_api -->|"stores resume"| node_db_session
node_interview_api -->|"generates and scores"| node_interview_engine
node_interview_api -->|"transcribes audio"| node_speech
node_interview_api -->|"reads and writes"| node_db_session
node_interview_engine -->|"retrieves context"| node_knowledge_base
node_interview_engine -->|"requests generation"| node_ai_provider
node_reports_api -->|"creates PDF"| node_report_service
node_reports_api -->|"loads interview"| node_db_session
node_api_app -->|"initializes database"| node_db_session
node_db_session -->|"maps records"| node_data_models
node_auth -->|"validates requests"| node_schemas
node_resume_api -->|"returns resume"| node_schemas
node_interview_api -->|"validates payloads"| node_schemas
node_report_service -->|"renders interview"| node_data_models
node_config -->|"configures database"| node_db_session
node_knowledge_base -->|"loads settings"| node_config
node_ai_provider -->|"loads settings"| node_config

click node_frontend "https://github.com/aarjusingh10/interviewx-ai/blob/main/frontend/src/main.tsx"
click node_api_app "https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/main.py"
click node_auth "https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/api/auth.py"
click node_auth_deps "https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/api/deps.py"
click node_resume_api "https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/api/resumes.py"
click node_interview_api "https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/api/interviews.py"
click node_analytics_api "https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/api/analytics.py"
click node_reports_api "https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/api/reports.py"
click node_document_parser "https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/services/document_parser.py"
click node_resume_analyzer "https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/services/resume_analyzer.py"
click node_interview_engine "https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/services/interview_engine.py"
click node_knowledge_base "https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/services/knowledge_base.py"
click node_ai_provider "https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/services/ai_provider.py"
click node_speech "https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/services/speech_service.py"
click node_db_session "https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/db/session.py"
click node_data_models "https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/models.py"
click node_report_service "https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/services/report_service.py"
click node_schemas "https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/schemas.py"
click node_config "https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/core/config.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_frontend toneBlue
class node_api_app,node_auth,node_auth_deps,node_resume_api,node_interview_api,node_analytics_api,node_reports_api,node_schemas,node_config toneAmber
class node_document_parser,node_resume_analyzer,node_interview_engine,node_knowledge_base,node_ai_provider,node_speech toneMint
class node_db_session,node_data_models,node_report_service toneRose
class node_candidate toneIndigo
```

## Components

### Candidate experience

- [Web application](https://github.com/aarjusingh10/interviewx-ai/blob/main/frontend/src/main.tsx): `frontend/src/main.tsx`

### Backend workflows

- [FastAPI application](https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/main.py): `backend/app/main.py`
- [Authentication](https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/api/auth.py): `backend/app/api/auth.py`
- [User authentication](https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/api/deps.py): `backend/app/api/deps.py`
- [Resume intake](https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/api/resumes.py): `backend/app/api/resumes.py`
- [Interview sessions](https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/api/interviews.py): `backend/app/api/interviews.py`
- [Interview analytics](https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/api/analytics.py): `backend/app/api/analytics.py`
- [Report delivery](https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/api/reports.py): `backend/app/api/reports.py`
- [API schemas](https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/schemas.py): `backend/app/schemas.py`
- [Runtime configuration](https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/core/config.py): `backend/app/core/config.py`

### Interview intelligence

- [Document extraction](https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/services/document_parser.py): `backend/app/services/document_parser.py`
- [Resume analysis](https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/services/resume_analyzer.py): `backend/app/services/resume_analyzer.py`
- [Interview engine](https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/services/interview_engine.py): `backend/app/services/interview_engine.py`
- [Knowledge retrieval](https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/services/knowledge_base.py): `backend/app/services/knowledge_base.py`
- [AI provider](https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/services/ai_provider.py): `backend/app/services/ai_provider.py`
- [Audio transcription](https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/services/speech_service.py): `backend/app/services/speech_service.py`

### Persistence and reports

- [Database sessions](https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/db/session.py): `backend/app/db/session.py`
- [Platform records](https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/models.py): `backend/app/models.py`
- [PDF report generation](https://github.com/aarjusingh10/interviewx-ai/blob/main/backend/app/services/report_service.py): `backend/app/services/report_service.py`

### Other components

- **Candidate**

## Connections

- Candidate → Web application: uses (evidence: `README.md`)
- Web application → FastAPI application: calls API
- FastAPI application → Authentication: registers routes (evidence: `backend/app/main.py`)
- FastAPI application → Resume intake: registers routes (evidence: `backend/app/main.py`)
- FastAPI application → Interview sessions: registers routes (evidence: `backend/app/main.py`)
- FastAPI application → Interview analytics: registers routes (evidence: `backend/app/main.py`)
- FastAPI application → Report delivery: registers routes (evidence: `backend/app/main.py`)
- Authentication → Database sessions: reads and writes (evidence: `backend/app/api/auth.py`)
- Authentication → User authentication: requires user (evidence: `backend/app/api/auth.py`)
- User authentication → Database sessions: loads user (evidence: `backend/app/api/deps.py`)
- Resume intake → Document extraction: extracts text (evidence: `backend/app/api/resumes.py`)
- Resume intake → Resume analysis: analyzes text (evidence: `backend/app/api/resumes.py`)
- Resume intake → Database sessions: stores resume (evidence: `backend/app/api/resumes.py`)
- Interview sessions → Interview engine: generates and scores (evidence: `backend/app/api/interviews.py`)
- Interview sessions → Audio transcription: transcribes audio (evidence: `backend/app/api/interviews.py`)
- Interview sessions → Database sessions: reads and writes (evidence: `backend/app/api/interviews.py`)
- Interview engine → Knowledge retrieval: retrieves context (evidence: `backend/app/services/interview_engine.py`)
- Interview engine → AI provider: requests generation (evidence: `backend/app/services/interview_engine.py`)
- Report delivery → PDF report generation: creates PDF (evidence: `backend/app/api/reports.py`)
- Report delivery → Database sessions: loads interview (evidence: `backend/app/api/reports.py`)
- FastAPI application → Database sessions: initializes database (evidence: `backend/app/main.py`)
- Database sessions → Platform records: maps records (evidence: `backend/app/models.py`)
- Authentication → API schemas: validates requests (evidence: `backend/app/api/auth.py`)
- Resume intake → API schemas: returns resume (evidence: `backend/app/api/resumes.py`)
- Interview sessions → API schemas: validates payloads (evidence: `backend/app/api/interviews.py`)
- PDF report generation → Platform records: renders interview (evidence: `backend/app/services/report_service.py`)
- Runtime configuration → Database sessions: configures database (evidence: `backend/app/db/session.py`)
- Knowledge retrieval → Runtime configuration: loads settings (evidence: `backend/app/services/knowledge_base.py`)
- AI provider → Runtime configuration: loads settings (evidence: `backend/app/services/ai_provider.py`)
