# yakaanil2006/ai-platform-for-personalized-placement-preparation architecture

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

- Interactive diagram: https://gitdiagram.com/yakaanil2006/ai-platform-for-personalized-placement-preparation
- Repository: https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation

## Overview

This is a personalized placement-preparation platform: students set a target role, submit a resume, practice assessments and interviews, then review a roadmap and readiness report. Seniors contribute interview experiences for moderator approval; students can search approved experiences and public references. The frontend calls a FastAPI backend, which coordinates AI workflows and persists account, preparation, and assessment state. The excerpts establish the main API, workflow, and UI connections; some capability links are documented only in the README, so uncertain internal call paths are omitted.

Main entry points: [`backend/coach.py`](https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/backend/coach.py) (Coaching workflow), [`backend/main.py`](https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/backend/main.py) (FastAPI endpoints), [`frontend/src/main.tsx`](https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/frontend/src/main.tsx) (Preparation workspace), [`frontend/src/api.ts`](https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/frontend/src/api.ts) (API client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["Preparation workspace"]
  node_workspace_ui["Preparation workspace<br/>[main.tsx]"]
  node_test_ui["Assessment interface<br/>[DynamicTests.tsx]"]
  node_coding_prompt["Coding prompt<br/>[CodingPrompt.tsx]"]
  node_interview_answer["Interview answer"]
end

subgraph group_api["Application API"]
  node_client_api["API client<br/>[api.ts]"]
  node_startup["Server startup<br/>[serverStartup.ts]"]
  node_backend_api["FastAPI endpoints<br/>[main.py]"]
  node_roadmap_report["Roadmap and readiness<br/>[main.py]"]
  node_experience_review["Experience review<br/>[main.py]"]
end

subgraph group_intelligence["AI and retrieval"]
  node_coach["Coaching workflow<br/>[coach.py]"]
  node_content["Practice content<br/>[content.py]"]
  node_embeddings["Text embeddings<br/>[embeddings.py]"]
  node_web_sources["Public references<br/>[web_sources.py]"]
end

subgraph group_persistence["Persistence"]
  node_database[("Application database<br/>[db.py]")]
end

node_student(("Student"))
node_senior(("Senior contributor"))
node_moderator(("Moderator"))
node_nvidia{{"NVIDIA AI service"}}
node_tavily{{"Tavily search"}}
node_public_pages{{"Public web pages"}}

node_student -->|"uses"| node_workspace_ui
node_senior -->|"submits experience"| node_workspace_ui
node_moderator -->|"reviews submissions"| node_workspace_ui
node_workspace_ui -->|"requests data"| node_client_api
node_workspace_ui -->|"renders"| node_test_ui
node_workspace_ui -->|"renders"| node_interview_answer
node_test_ui -->|"submits attempts"| node_client_api
node_test_ui -->|"renders"| node_coding_prompt
node_interview_answer -->|"transcribes audio"| node_client_api
node_client_api -->|"sends API requests"| node_backend_api
node_startup -->|"checks health"| node_backend_api
node_backend_api -->|"invokes workflow"| node_coach
node_backend_api -->|"reads and writes"| node_database
node_backend_api -->|"serves preparation results"| node_roadmap_report
node_backend_api -->|"handles review"| node_experience_review
node_coach -->|"loads practice material"| node_content
node_coach -->|"creates embeddings"| node_embeddings
node_coach -->|"uses public references"| node_web_sources
node_coach -.->|"retrieves experience data"| node_database
node_coach -->|"requests AI output"| node_nvidia
node_web_sources -->|"searches sources"| node_tavily
node_web_sources -->|"fetches pages"| node_public_pages
node_experience_review -.->|"persists review"| node_database

click node_workspace_ui "https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/frontend/src/main.tsx"
click node_test_ui "https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/frontend/src/DynamicTests.tsx"
click node_coding_prompt "https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/frontend/src/CodingPrompt.tsx"
click node_interview_answer "https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/frontend/src/InterviewAnswer.tsx"
click node_client_api "https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/frontend/src/api.ts"
click node_startup "https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/frontend/src/serverStartup.ts"
click node_backend_api "https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/backend/main.py"
click node_coach "https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/backend/coach.py"
click node_content "https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/backend/content.py"
click node_embeddings "https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/backend/embeddings.py"
click node_web_sources "https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/backend/web_sources.py"
click node_database "https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/backend/db.py"
click node_roadmap_report "https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/backend/main.py"
click node_experience_review "https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/backend/main.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_workspace_ui,node_test_ui,node_coding_prompt,node_interview_answer toneBlue
class node_client_api,node_startup,node_backend_api,node_roadmap_report,node_experience_review toneAmber
class node_coach,node_content,node_embeddings,node_web_sources toneMint
class node_database toneRose
class node_student,node_senior,node_moderator,node_nvidia,node_tavily,node_public_pages toneIndigo
```

## Components

### Preparation workspace

- [Preparation workspace](https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/frontend/src/main.tsx): `frontend/src/main.tsx`
- [Assessment interface](https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/frontend/src/DynamicTests.tsx): `frontend/src/DynamicTests.tsx`
- [Coding prompt](https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/frontend/src/CodingPrompt.tsx): `frontend/src/CodingPrompt.tsx`
- [Interview answer](https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/frontend/src/InterviewAnswer.tsx): `frontend/src/InterviewAnswer.tsx`

### Application API

- [API client](https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/frontend/src/api.ts): `frontend/src/api.ts`
- [Server startup](https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/frontend/src/serverStartup.ts): `frontend/src/serverStartup.ts`
- [FastAPI endpoints](https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/backend/main.py): `backend/main.py`
- [Roadmap and readiness](https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/backend/main.py): `backend/main.py`
- [Experience review](https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/backend/main.py): `backend/main.py`

### AI and retrieval

- [Coaching workflow](https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/backend/coach.py): `backend/coach.py`
- [Practice content](https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/backend/content.py): `backend/content.py`
- [Text embeddings](https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/backend/embeddings.py): `backend/embeddings.py`
- [Public references](https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/backend/web_sources.py): `backend/web_sources.py`

### Persistence

- [Application database](https://github.com/yakaanil2006/ai-platform-for-personalized-placement-preparation/blob/main/backend/db.py): `backend/db.py`

### Other components

- **Student**
- **Senior contributor**
- **Moderator**
- **NVIDIA AI service**
- **Tavily search**
- **Public web pages**

## Connections

- Student → Preparation workspace: uses (evidence: `README.md`)
- Senior contributor → Preparation workspace: submits experience (evidence: `README.md`)
- Moderator → Preparation workspace: reviews submissions (evidence: `README.md`)
- Preparation workspace → API client: requests data (evidence: `frontend/src/main.tsx`)
- Preparation workspace → Assessment interface: renders (evidence: `frontend/src/main.tsx`)
- Preparation workspace → Interview answer: renders (evidence: `frontend/src/main.tsx`)
- Assessment interface → API client: submits attempts (evidence: `frontend/src/DynamicTests.tsx`)
- Assessment interface → Coding prompt: renders (evidence: `frontend/src/DynamicTests.tsx`)
- Interview answer → API client: transcribes audio (evidence: `frontend/src/InterviewAnswer.tsx`)
- API client → FastAPI endpoints: sends API requests (evidence: `README.md`)
- Server startup → FastAPI endpoints: checks health (evidence: `README.md`)
- FastAPI endpoints → Coaching workflow: invokes workflow (evidence: `backend/main.py`)
- FastAPI endpoints → Application database: reads and writes (evidence: `backend/db.py`)
- FastAPI endpoints → Roadmap and readiness: serves preparation results (evidence: `backend/main.py`)
- FastAPI endpoints → Experience review: handles review (evidence: `backend/main.py`)
- Coaching workflow → Practice content: loads practice material (evidence: `backend/coach.py`)
- Coaching workflow → Text embeddings: creates embeddings (evidence: `backend/coach.py`)
- Coaching workflow → Public references: uses public references (evidence: `backend/coach.py`)
- Coaching workflow → Application database: retrieves experience data (evidence: `backend/coach.py`)
- Coaching workflow → NVIDIA AI service: requests AI output (evidence: `backend/coach.py`)
- Public references → Tavily search: searches sources (evidence: `backend/web_sources.py`)
- Public references → Public web pages: fetches pages (evidence: `backend/web_sources.py`)
- Experience review → Application database: persists review (evidence: `backend/main.py`)
