# rnandini-11/ai_student_career_and_placement_assistant architecture

> Architecture diagram of the GitHub repository rnandini-11/ai_student_career_and_placement_assistant, 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/rnandini-11/ai_student_career_and_placement_assistant
- Repository: https://github.com/rnandini-11/ai_student_career_and_placement_assistant

## Overview

This is a student career and placement assistant with Streamlit and FastAPI entry points. Students can predict placement outcomes, analyze PDF resumes and skill gaps, ask knowledge-grounded career questions, or submit questions to an AI agent. The agent selects among prediction, skill-gap, and RAG tools; the repository also documents an MCP client/server route. Placement-model preparation and training support prediction. The principal request paths are visible in the sampled UI, API, and service code; the MCP client/server connection is documented in the README, but its implementation wiring was not inspected.

Main entry points: [`app.py`](https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/app.py) (Streamlit UI), [`src/rag.py`](https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/src/rag.py) (Career Q&A RAG), [`api/main.py`](https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/api/main.py) (FastAPI API), [`src/agent.py`](https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/src/agent.py) (AI Agent)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interfaces["User Interfaces"]
  node_streamlit["Streamlit UI<br/>[app.py]"]
  node_fastapi["FastAPI API<br/>[main.py]"]
end

subgraph group_career["Career Services"]
  node_resume_text["PDF Text Extraction"]
  node_resume_analysis["Resume NER Analysis<br/>[resume_analyzer.py]"]
  node_skill_gap["Skill Gap Analysis<br/>[skill_gap.py]"]
end

subgraph group_agent_system["Agent and MCP"]
  node_agent["AI Agent<br/>[agent.py]"]
  node_mcp_client["MCP Client<br/>[mcp_client.py]"]
  node_mcp_server["MCP Tool Server<br/>[mcp_server.py]"]
end

subgraph group_placement["Placement Modeling"]
  node_predict["Placement Prediction<br/>[predict.py]"]
  node_model_training["Model Training<br/>[train.py]"]
  node_data_prep["Data Preparation<br/>[dataset.py]"]
  node_feature_prep["Feature Engineering<br/>[features.py]"]
  node_model_store[("Model Artifacts")]
end

subgraph group_knowledge["Career Knowledge"]
  node_rag["Career Q&amp;A RAG<br/>[rag.py]"]
  node_knowledge_files["Knowledge Base"]
  node_chroma[("Chroma Vector Store")]
end

node_student(("Student"))
node_resume_pdf["Resume PDF"]
node_groq{{"Groq LLM"}}

node_student -->|"uses"| node_streamlit
node_student -->|"calls"| node_fastapi
node_streamlit -->|"requests prediction"| node_predict
node_streamlit -->|"submits PDF"| node_resume_text
node_streamlit -->|"requests analysis"| node_resume_analysis
node_streamlit -->|"checks skills"| node_skill_gap
node_streamlit -->|"asks question"| node_rag
node_streamlit -->|"asks agent"| node_agent
node_fastapi -->|"calls prediction"| node_predict
node_fastapi -->|"extracts text"| node_resume_text
node_fastapi -->|"checks skills"| node_skill_gap
node_fastapi -->|"asks question"| node_rag
node_fastapi -->|"asks agent"| node_agent
node_resume_pdf -->|"provides input"| node_resume_text
node_resume_text -->|"supplies text"| node_resume_analysis
node_resume_text -->|"supplies text"| node_skill_gap
node_model_training -->|"writes artifacts"| node_model_store
node_predict -->|"loads model"| node_model_store
node_agent -->|"invokes tool"| node_predict
node_agent -->|"invokes tool"| node_skill_gap
node_agent -->|"invokes tool"| node_rag
node_agent -.->|"uses client"| node_mcp_client
node_mcp_client -.->|"communicates via MCP"| node_mcp_server
node_mcp_server -->|"exposes tool"| node_predict
node_mcp_server -->|"exposes tool"| node_skill_gap
node_mcp_server -->|"exposes tool"| node_rag
node_rag -->|"loads documents"| node_knowledge_files
node_rag -->|"reads and writes"| node_chroma
node_rag -->|"generates answer"| node_groq

click node_streamlit "https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/app.py"
click node_fastapi "https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/api/main.py"
click node_resume_text "https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/src/resume_extractor.py"
click node_resume_analysis "https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/src/resume_analyzer.py"
click node_skill_gap "https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/src/skill_gap.py"
click node_predict "https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/src/predict.py"
click node_model_training "https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/src/train.py"
click node_data_prep "https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/src/dataset.py"
click node_feature_prep "https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/src/features.py"
click node_model_store "https://github.com/rnandini-11/ai_student_career_and_placement_assistant/tree/main/models"
click node_agent "https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/src/agent.py"
click node_mcp_client "https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/src/mcp_client.py"
click node_mcp_server "https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/src/mcp_server.py"
click node_rag "https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/src/rag.py"
click node_knowledge_files "https://github.com/rnandini-11/ai_student_career_and_placement_assistant/tree/main/knowledge_base"
click node_chroma "https://github.com/rnandini-11/ai_student_career_and_placement_assistant/tree/main/chroma_db"

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,node_fastapi toneBlue
class node_resume_text,node_resume_analysis,node_skill_gap toneAmber
class node_agent,node_mcp_client,node_mcp_server toneMint
class node_predict,node_model_training,node_data_prep,node_feature_prep,node_model_store toneRose
class node_rag,node_knowledge_files,node_chroma,node_student,node_resume_pdf,node_groq toneIndigo
```

## Components

### User Interfaces

- [Streamlit UI](https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/app.py): `app.py`
- [FastAPI API](https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/api/main.py): `api/main.py`

### Career Services

- [PDF Text Extraction](https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/src/resume_extractor.py): `src/resume_extractor.py`
- [Resume NER Analysis](https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/src/resume_analyzer.py): `src/resume_analyzer.py`
- [Skill Gap Analysis](https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/src/skill_gap.py): `src/skill_gap.py`

### Agent and MCP

- [AI Agent](https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/src/agent.py): `src/agent.py`
- [MCP Client](https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/src/mcp_client.py): `src/mcp_client.py`
- [MCP Tool Server](https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/src/mcp_server.py): `src/mcp_server.py`

### Placement Modeling

- [Placement Prediction](https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/src/predict.py): `src/predict.py`
- [Model Training](https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/src/train.py): `src/train.py`
- [Data Preparation](https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/src/dataset.py): `src/dataset.py`
- [Feature Engineering](https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/src/features.py): `src/features.py`
- [Model Artifacts](https://github.com/rnandini-11/ai_student_career_and_placement_assistant/tree/main/models): `models`

### Career Knowledge

- [Career Q&A RAG](https://github.com/rnandini-11/ai_student_career_and_placement_assistant/blob/main/src/rag.py): `src/rag.py`
- [Knowledge Base](https://github.com/rnandini-11/ai_student_career_and_placement_assistant/tree/main/knowledge_base): `knowledge_base`
- [Chroma Vector Store](https://github.com/rnandini-11/ai_student_career_and_placement_assistant/tree/main/chroma_db): `chroma_db`

### Other components

- **Student**
- **Resume PDF**
- **Groq LLM**

## Connections

- Student → Streamlit UI: uses (evidence: `README.md`)
- Student → FastAPI API: calls (evidence: `README.md`)
- Streamlit UI → Placement Prediction: requests prediction (evidence: `app.py`)
- Streamlit UI → PDF Text Extraction: submits PDF (evidence: `app.py`)
- Streamlit UI → Resume NER Analysis: requests analysis (evidence: `app.py`)
- Streamlit UI → Skill Gap Analysis: checks skills (evidence: `app.py`)
- Streamlit UI → Career Q&A RAG: asks question (evidence: `app.py`)
- Streamlit UI → AI Agent: asks agent (evidence: `app.py`)
- FastAPI API → Placement Prediction: calls prediction (evidence: `api/main.py`)
- FastAPI API → PDF Text Extraction: extracts text (evidence: `api/main.py`)
- FastAPI API → Skill Gap Analysis: checks skills (evidence: `api/main.py`)
- FastAPI API → Career Q&A RAG: asks question (evidence: `api/main.py`)
- FastAPI API → AI Agent: asks agent (evidence: `api/main.py`)
- Resume PDF → PDF Text Extraction: provides input
- PDF Text Extraction → Resume NER Analysis: supplies text (evidence: `app.py`)
- PDF Text Extraction → Skill Gap Analysis: supplies text (evidence: `app.py`)
- Model Training → Model Artifacts: writes artifacts (evidence: `src/train.py`)
- Placement Prediction → Model Artifacts: loads model (evidence: `src/predict.py`)
- AI Agent → Placement Prediction: invokes tool (evidence: `src/agent.py`)
- AI Agent → Skill Gap Analysis: invokes tool (evidence: `src/agent.py`)
- AI Agent → Career Q&A RAG: invokes tool (evidence: `src/agent.py`)
- AI Agent → MCP Client: uses client (evidence: `README.md`)
- MCP Client → MCP Tool Server: communicates via MCP (evidence: `README.md`)
- MCP Tool Server → Placement Prediction: exposes tool (evidence: `src/mcp_server.py`)
- MCP Tool Server → Skill Gap Analysis: exposes tool (evidence: `src/mcp_server.py`)
- MCP Tool Server → Career Q&A RAG: exposes tool (evidence: `src/mcp_server.py`)
- Career Q&A RAG → Knowledge Base: loads documents (evidence: `src/rag.py`)
- Career Q&A RAG → Chroma Vector Store: reads and writes (evidence: `src/rag.py`)
- Career Q&A RAG → Groq LLM: generates answer (evidence: `src/rag.py`)
