# naveen2424k/chatbot architecture

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

- Interactive diagram: https://gitdiagram.com/naveen2424k/chatbot
- Repository: https://github.com/naveen2424k/chatbot

## Overview

This is a Streamlit recruiter dashboard for resume ingestion, candidate search, and job-description matching. Recruiters upload resumes, which are text-extracted, parsed into profiles, and stored in SQLite while their chunks are indexed in ChromaDB. Chat queries retrieve resume chunks and candidate profiles before Gemini generates an answer; JD uploads are evaluated against candidates and the results feed the dashboard. The README also documents filtering, CSV export, and chat memory. The graph reflects the available excerpts and documented workflow; unsampled dashboard details are grouped under the app.

Main entry points: [`resume-rag/app.py`](https://github.com/naveen2424k/chatbot/blob/main/resume-rag/app.py) (Streamlit dashboard), [`resume-rag/rag/vectorstore.py`](https://github.com/naveen2424k/chatbot/blob/main/resume-rag/rag/vectorstore.py) (Chunk indexing), [`resume-rag/rag/retriever.py`](https://github.com/naveen2424k/chatbot/blob/main/resume-rag/rag/retriever.py) (RAG retrieval), [`resume-rag/rag/parser.py`](https://github.com/naveen2424k/chatbot/blob/main/resume-rag/rag/parser.py) (Resume text extraction)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Recruiter dashboard"]
  node_app["Streamlit dashboard<br/>[app.py]"]
end

subgraph group_ingestion["Resume ingestion"]
  node_resume_extract["Resume text extraction<br/>[parser.py]"]
  node_profile_parse["Profile parsing<br/>[parser.py]"]
  node_chunk_index["Chunk indexing<br/>[vectorstore.py]"]
  node_embedding_model["Embedding model<br/>[embeddings.py]"]
end

subgraph group_storage["Candidate stores"]
  node_sqlite[("Candidate metadata<br/>[db_manager.py]")]
  node_chroma[("Resume vectors<br/>[vectorstore.py]")]
end

subgraph group_analysis["Search and matching"]
  node_rag_retriever["RAG retrieval<br/>[retriever.py]"]
  node_jd_ranker["JD matching<br/>[ranker.py]"]
end

node_recruiter(("Recruiter"))
node_gemini{{"Gemini service"}}

node_recruiter -->|"uses dashboard"| node_app
node_app -->|"extracts text"| node_resume_extract
node_app -->|"parses profiles"| node_profile_parse
node_resume_extract -->|"provides text"| node_profile_parse
node_profile_parse -->|"requests extraction"| node_gemini
node_app -->|"saves profiles"| node_sqlite
node_app -->|"indexes resumes"| node_chunk_index
node_chunk_index -->|"extracts text"| node_resume_extract
node_chunk_index -->|"embeds chunks"| node_embedding_model
node_chunk_index -->|"stores chunks"| node_chroma
node_embedding_model -->|"uses embeddings API"| node_gemini
node_app -->|"submits chat query"| node_rag_retriever
node_rag_retriever -->|"searches chunks"| node_chroma
node_rag_retriever -->|"looks up profiles"| node_sqlite
node_rag_retriever -->|"generates answer"| node_gemini
node_app -->|"runs JD matching"| node_jd_ranker
node_jd_ranker -->|"extracts resume text"| node_resume_extract
node_jd_ranker -->|"evaluates candidate fit"| node_gemini
node_app -->|"saves match results"| node_sqlite
node_app -->|"reads leaderboard data"| node_sqlite

click node_app "https://github.com/naveen2424k/chatbot/blob/main/resume-rag/app.py"
click node_resume_extract "https://github.com/naveen2424k/chatbot/blob/main/resume-rag/rag/parser.py"
click node_profile_parse "https://github.com/naveen2424k/chatbot/blob/main/resume-rag/rag/parser.py"
click node_chunk_index "https://github.com/naveen2424k/chatbot/blob/main/resume-rag/rag/vectorstore.py"
click node_embedding_model "https://github.com/naveen2424k/chatbot/blob/main/resume-rag/rag/embeddings.py"
click node_sqlite "https://github.com/naveen2424k/chatbot/blob/main/resume-rag/database/db_manager.py"
click node_chroma "https://github.com/naveen2424k/chatbot/blob/main/resume-rag/rag/vectorstore.py"
click node_rag_retriever "https://github.com/naveen2424k/chatbot/blob/main/resume-rag/rag/retriever.py"
click node_jd_ranker "https://github.com/naveen2424k/chatbot/blob/main/resume-rag/rag/ranker.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_app toneBlue
class node_resume_extract,node_profile_parse,node_chunk_index,node_embedding_model toneAmber
class node_sqlite,node_chroma toneMint
class node_rag_retriever,node_jd_ranker toneRose
class node_recruiter,node_gemini toneIndigo
```

## Components

### Recruiter dashboard

- [Streamlit dashboard](https://github.com/naveen2424k/chatbot/blob/main/resume-rag/app.py): `resume-rag/app.py`

### Resume ingestion

- [Resume text extraction](https://github.com/naveen2424k/chatbot/blob/main/resume-rag/rag/parser.py): `resume-rag/rag/parser.py`
- [Profile parsing](https://github.com/naveen2424k/chatbot/blob/main/resume-rag/rag/parser.py): `resume-rag/rag/parser.py`
- [Chunk indexing](https://github.com/naveen2424k/chatbot/blob/main/resume-rag/rag/vectorstore.py): `resume-rag/rag/vectorstore.py`
- [Embedding model](https://github.com/naveen2424k/chatbot/blob/main/resume-rag/rag/embeddings.py): `resume-rag/rag/embeddings.py`

### Candidate stores

- [Candidate metadata](https://github.com/naveen2424k/chatbot/blob/main/resume-rag/database/db_manager.py): `resume-rag/database/db_manager.py`
- [Resume vectors](https://github.com/naveen2424k/chatbot/blob/main/resume-rag/rag/vectorstore.py): `resume-rag/rag/vectorstore.py`

### Search and matching

- [RAG retrieval](https://github.com/naveen2424k/chatbot/blob/main/resume-rag/rag/retriever.py): `resume-rag/rag/retriever.py`
- [JD matching](https://github.com/naveen2424k/chatbot/blob/main/resume-rag/rag/ranker.py): `resume-rag/rag/ranker.py`

### Other components

- **Recruiter**
- **Gemini service**

## Connections

- Recruiter → Streamlit dashboard: uses dashboard (evidence: `README.md`)
- Streamlit dashboard → Resume text extraction: extracts text (evidence: `README.md`)
- Streamlit dashboard → Profile parsing: parses profiles (evidence: `resume-rag/app.py`)
- Resume text extraction → Profile parsing: provides text (evidence: `README.md`)
- Profile parsing → Gemini service: requests extraction (evidence: `resume-rag/rag/parser.py`)
- Streamlit dashboard → Candidate metadata: saves profiles (evidence: `resume-rag/app.py`)
- Streamlit dashboard → Chunk indexing: indexes resumes (evidence: `resume-rag/app.py`)
- Chunk indexing → Resume text extraction: extracts text (evidence: `resume-rag/rag/vectorstore.py`)
- Chunk indexing → Embedding model: embeds chunks (evidence: `resume-rag/rag/vectorstore.py`)
- Chunk indexing → Resume vectors: stores chunks (evidence: `resume-rag/rag/vectorstore.py`)
- Embedding model → Gemini service: uses embeddings API (evidence: `resume-rag/rag/embeddings.py`)
- Streamlit dashboard → RAG retrieval: submits chat query (evidence: `resume-rag/app.py`)
- RAG retrieval → Resume vectors: searches chunks (evidence: `resume-rag/rag/retriever.py`)
- RAG retrieval → Candidate metadata: looks up profiles (evidence: `resume-rag/rag/retriever.py`)
- RAG retrieval → Gemini service: generates answer (evidence: `resume-rag/rag/retriever.py`)
- Streamlit dashboard → JD matching: runs JD matching (evidence: `resume-rag/app.py`)
- JD matching → Resume text extraction: extracts resume text (evidence: `resume-rag/rag/ranker.py`)
- JD matching → Gemini service: evaluates candidate fit (evidence: `resume-rag/rag/ranker.py`)
- Streamlit dashboard → Candidate metadata: saves match results (evidence: `resume-rag/app.py`)
- Streamlit dashboard → Candidate metadata: reads leaderboard data (evidence: `resume-rag/app.py`)
