# naveen057/resume-intelligence architecture

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

- Interactive diagram: https://gitdiagram.com/naveen057/resume-intelligence
- Repository: https://github.com/naveen057/resume-intelligence

## Overview

This is an evidence-backed resume/job matching service. Users submit a resume and job description through either the FastAPI service or the in-process Streamlit UI; the service parses uploads, chunks resume text, extracts JD skills, retrieves and reranks evidence, applies deterministic verdict rules, generates an explanation, and checks faithfulness before returning a report. The README also documents retrieval evaluation as a separate capability. Edges are limited to relationships visible in excerpts, the SOURCE INDEX, or README; some UI and retrieval internals were not sampled.

Main entry points: [`app/pipeline.py`](https://github.com/naveen057/resume-intelligence/blob/main/app/pipeline.py) (Analysis orchestration), [`app/retrieval/hybrid.py`](https://github.com/naveen057/resume-intelligence/blob/main/app/retrieval/hybrid.py) (Hybrid retrieval), [`app/api/main.py`](https://github.com/naveen057/resume-intelligence/blob/main/app/api/main.py) (FastAPI endpoints), [`ui/streamlit_app.py`](https://github.com/naveen057/resume-intelligence/blob/main/ui/streamlit_app.py) (Streamlit interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User interfaces"]
  node_api["FastAPI endpoints<br/>[main.py]"]
  node_streamlit["Streamlit interface<br/>[streamlit_app.py]"]
end

subgraph group_ingest["Resume and JD processing"]
  node_parser["Document parser<br/>[parser.py]"]
  node_chunker["Resume chunker<br/>[chunker.py]"]
  node_skill_extract["JD skill extraction<br/>[skills.py]"]
end

subgraph group_evidence["Evidence retrieval"]
  node_retriever["Hybrid retrieval<br/>[hybrid.py]"]
  node_bm25["BM25 ranking<br/>[bm25.py]"]
  node_embedder["Text embeddings<br/>[embedder.py]"]
  node_vector_store[("FAISS vector store<br/>[vector_store.py]")]
  node_reranker["Cross-encoder reranking<br/>[reranker.py]"]
end

subgraph group_analysis["Matching and reporting"]
  node_pipeline["Analysis orchestration<br/>[pipeline.py]"]
  node_matcher["Skill verdict rules<br/>[matcher.py]"]
  node_explainer["Grounded explanation<br/>[llm.py]"]
  node_faithfulness["Faithfulness checks<br/>[faithfulness.py]"]
  node_result["Analysis report<br/>[models.py]"]
end

subgraph group_evaluation["Retrieval evaluation"]
  node_eval_runner["Evaluation runner<br/>[run_eval.py]"]
  node_eval_metrics["Retrieval metrics<br/>[metrics.py]"]
  node_eval_data["Evaluation cases"]
end

node_user(("Resume reviewer"))
node_gemini{{"Gemini service"}}

node_user -->|"submits resume"| node_api
node_user -->|"uses interface"| node_streamlit
node_api -->|"parses upload"| node_parser
node_api -->|"invokes analysis"| node_pipeline
node_streamlit -->|"parses document"| node_parser
node_streamlit -->|"invokes analysis"| node_pipeline
node_pipeline -->|"chunks resume"| node_chunker
node_pipeline -->|"extracts JD skills"| node_skill_extract
node_pipeline -->|"matches skills"| node_matcher
node_matcher -->|"searches evidence"| node_retriever
node_retriever -->|"ranks terms"| node_bm25
node_retriever -->|"encodes text"| node_embedder
node_retriever -->|"searches vectors"| node_vector_store
node_matcher -->|"reranks candidates"| node_reranker
node_pipeline -->|"explains findings"| node_explainer
node_explainer -.->|"requests prose"| node_gemini
node_pipeline -->|"checks report"| node_faithfulness
node_pipeline -->|"builds report"| node_result
node_eval_runner -->|"runs metrics"| node_eval_metrics
node_eval_runner -->|"loads cases"| node_eval_data
node_eval_metrics -->|"evaluates search"| node_retriever

click node_api "https://github.com/naveen057/resume-intelligence/blob/main/app/api/main.py"
click node_streamlit "https://github.com/naveen057/resume-intelligence/blob/main/ui/streamlit_app.py"
click node_parser "https://github.com/naveen057/resume-intelligence/blob/main/app/ingestion/parser.py"
click node_chunker "https://github.com/naveen057/resume-intelligence/blob/main/app/ingestion/chunker.py"
click node_skill_extract "https://github.com/naveen057/resume-intelligence/blob/main/app/analysis/skills.py"
click node_pipeline "https://github.com/naveen057/resume-intelligence/blob/main/app/pipeline.py"
click node_matcher "https://github.com/naveen057/resume-intelligence/blob/main/app/analysis/matcher.py"
click node_retriever "https://github.com/naveen057/resume-intelligence/blob/main/app/retrieval/hybrid.py"
click node_bm25 "https://github.com/naveen057/resume-intelligence/blob/main/app/retrieval/bm25.py"
click node_embedder "https://github.com/naveen057/resume-intelligence/blob/main/app/retrieval/embedder.py"
click node_vector_store "https://github.com/naveen057/resume-intelligence/blob/main/app/retrieval/vector_store.py"
click node_reranker "https://github.com/naveen057/resume-intelligence/blob/main/app/retrieval/reranker.py"
click node_explainer "https://github.com/naveen057/resume-intelligence/blob/main/app/analysis/llm.py"
click node_faithfulness "https://github.com/naveen057/resume-intelligence/blob/main/app/evaluation/faithfulness.py"
click node_result "https://github.com/naveen057/resume-intelligence/blob/main/app/models.py"
click node_eval_runner "https://github.com/naveen057/resume-intelligence/blob/main/app/evaluation/run_eval.py"
click node_eval_metrics "https://github.com/naveen057/resume-intelligence/blob/main/app/evaluation/metrics.py"
click node_eval_data "https://github.com/naveen057/resume-intelligence/blob/main/data/eval/retrieval_eval.json"

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_api,node_streamlit,node_user toneBlue
class node_parser,node_chunker,node_skill_extract toneAmber
class node_retriever,node_bm25,node_embedder,node_vector_store,node_reranker toneMint
class node_pipeline,node_matcher,node_explainer,node_faithfulness,node_result toneRose
class node_eval_runner,node_eval_metrics,node_eval_data,node_gemini toneIndigo
```

## Components

### User interfaces

- [FastAPI endpoints](https://github.com/naveen057/resume-intelligence/blob/main/app/api/main.py): `app/api/main.py`
- [Streamlit interface](https://github.com/naveen057/resume-intelligence/blob/main/ui/streamlit_app.py): `ui/streamlit_app.py`

### Resume and JD processing

- [Document parser](https://github.com/naveen057/resume-intelligence/blob/main/app/ingestion/parser.py): `app/ingestion/parser.py`
- [Resume chunker](https://github.com/naveen057/resume-intelligence/blob/main/app/ingestion/chunker.py): `app/ingestion/chunker.py`
- [JD skill extraction](https://github.com/naveen057/resume-intelligence/blob/main/app/analysis/skills.py): `app/analysis/skills.py`

### Evidence retrieval

- [Hybrid retrieval](https://github.com/naveen057/resume-intelligence/blob/main/app/retrieval/hybrid.py): `app/retrieval/hybrid.py`
- [BM25 ranking](https://github.com/naveen057/resume-intelligence/blob/main/app/retrieval/bm25.py): `app/retrieval/bm25.py`
- [Text embeddings](https://github.com/naveen057/resume-intelligence/blob/main/app/retrieval/embedder.py): `app/retrieval/embedder.py`
- [FAISS vector store](https://github.com/naveen057/resume-intelligence/blob/main/app/retrieval/vector_store.py): `app/retrieval/vector_store.py`
- [Cross-encoder reranking](https://github.com/naveen057/resume-intelligence/blob/main/app/retrieval/reranker.py): `app/retrieval/reranker.py`

### Matching and reporting

- [Analysis orchestration](https://github.com/naveen057/resume-intelligence/blob/main/app/pipeline.py): `app/pipeline.py`
- [Skill verdict rules](https://github.com/naveen057/resume-intelligence/blob/main/app/analysis/matcher.py): `app/analysis/matcher.py`
- [Grounded explanation](https://github.com/naveen057/resume-intelligence/blob/main/app/analysis/llm.py): `app/analysis/llm.py`
- [Faithfulness checks](https://github.com/naveen057/resume-intelligence/blob/main/app/evaluation/faithfulness.py): `app/evaluation/faithfulness.py`
- [Analysis report](https://github.com/naveen057/resume-intelligence/blob/main/app/models.py): `app/models.py`

### Retrieval evaluation

- [Evaluation runner](https://github.com/naveen057/resume-intelligence/blob/main/app/evaluation/run_eval.py): `app/evaluation/run_eval.py`
- [Retrieval metrics](https://github.com/naveen057/resume-intelligence/blob/main/app/evaluation/metrics.py): `app/evaluation/metrics.py`
- [Evaluation cases](https://github.com/naveen057/resume-intelligence/blob/main/data/eval/retrieval_eval.json): `data/eval/retrieval_eval.json`

### Other components

- **Resume reviewer**
- **Gemini service**

## Connections

- Resume reviewer → FastAPI endpoints: submits resume (evidence: `README.md`)
- Resume reviewer → Streamlit interface: uses interface (evidence: `README.md`)
- FastAPI endpoints → Document parser: parses upload (evidence: `app/api/main.py`)
- FastAPI endpoints → Analysis orchestration: invokes analysis (evidence: `app/api/main.py`)
- Streamlit interface → Document parser: parses document (evidence: `ui/streamlit_app.py`)
- Streamlit interface → Analysis orchestration: invokes analysis (evidence: `ui/streamlit_app.py`)
- Analysis orchestration → Resume chunker: chunks resume
- Analysis orchestration → JD skill extraction: extracts JD skills (evidence: `app/pipeline.py`)
- Analysis orchestration → Skill verdict rules: matches skills (evidence: `app/pipeline.py`)
- Skill verdict rules → Hybrid retrieval: searches evidence (evidence: `app/analysis/matcher.py`)
- Hybrid retrieval → BM25 ranking: ranks terms (evidence: `app/retrieval/hybrid.py`)
- Hybrid retrieval → Text embeddings: encodes text (evidence: `app/retrieval/hybrid.py`)
- Hybrid retrieval → FAISS vector store: searches vectors (evidence: `app/retrieval/hybrid.py`)
- Skill verdict rules → Cross-encoder reranking: reranks candidates (evidence: `app/analysis/matcher.py`)
- Analysis orchestration → Grounded explanation: explains findings (evidence: `app/pipeline.py`)
- Grounded explanation → Gemini service: requests prose (evidence: `app/analysis/llm.py`)
- Analysis orchestration → Faithfulness checks: checks report (evidence: `app/pipeline.py`)
- Analysis orchestration → Analysis report: builds report (evidence: `app/pipeline.py`)
- Evaluation runner → Retrieval metrics: runs metrics (evidence: `app/evaluation/run_eval.py`)
- Evaluation runner → Evaluation cases: loads cases (evidence: `README.md`)
- Retrieval metrics → Hybrid retrieval: evaluates search (evidence: `app/evaluation/metrics.py`)
