# kusum-setti000/talentflow-ai architecture

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

- Interactive diagram: https://gitdiagram.com/kusum-setti000/talentflow-ai
- Repository: https://github.com/kusum-setti000/talentflow-ai

## Overview

TalentFlow is a Streamlit candidate-screening application. A recruiter submits a job description and resume as a URL, pasted text, or document; the screening service resolves the content, runs job understanding and resume classification, and returns an evidence-grounded assessment when eligibility checks pass. The UI displays the result and offers a JSON report. The graph preserves the documented parallel first-stage analyses, but does not assert their internal dispatch: the workflow implementation was not excerpted. Edges are limited to relationships shown in excerpts, the source index, or the README.

Main entry points: [`src/talentflow/bootstrap.py`](https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/bootstrap.py) (Service composition), [`ui/app.py`](https://github.com/kusum-setti000/talentflow-ai/blob/main/ui/app.py) (Streamlit app), [`src/talentflow/platform/llm.py`](https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/platform/llm.py) (Model adapter), [`src/talentflow/screening/service.py`](https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/screening/service.py) (Screening service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Recruiter UI"]
  node_form["Input form<br/>[form.py]"]
  node_app["Streamlit app<br/>[app.py]"]
  node_results["Results report<br/>[results.py]"]
end

subgraph group_orchestration["Screening orchestration"]
  node_bootstrap["Service composition<br/>[bootstrap.py]"]
  node_screening["Screening service<br/>[service.py]"]
  node_workflow["Screening workflow<br/>[graph.py]"]
  node_state["Workflow state<br/>[state.py]"]
end

subgraph group_analysis["Content analysis"]
  node_content["Content resolver<br/>[service.py]"]
  node_documents["Document reader<br/>[documents.py]"]
  node_web["Job URL reader<br/>[web.py]"]
  node_job["Job analyzer<br/>[analyzer.py]"]
  node_classifier["Resume classifier<br/>[classifier.py]"]
  node_assessor["Candidate assessor<br/>[assessor.py]"]
end

subgraph group_platform["Model and contracts"]
  node_config["Settings<br/>[config.py]"]
  node_llm["Model adapter<br/>[llm.py]"]
  node_contracts["Domain contracts<br/>[models.py]"]
end

node_recruiter(("Recruiter"))
node_openai{{"OpenAI model"}}

node_recruiter -->|"provides inputs"| node_form
node_form -->|"returns request"| node_app
node_app -->|"gets service"| node_bootstrap
node_app -->|"renders form"| node_form
node_app -->|"submits request"| node_screening
node_app -->|"renders result"| node_results
node_bootstrap -->|"loads settings"| node_config
node_bootstrap -->|"creates model"| node_llm
node_bootstrap -->|"constructs resolver"| node_content
node_bootstrap -->|"injects analyzer"| node_job
node_bootstrap -->|"injects classifier"| node_classifier
node_bootstrap -->|"injects assessor"| node_assessor
node_bootstrap -->|"builds workflow"| node_workflow
node_bootstrap -->|"constructs service"| node_screening
node_screening -->|"resolves inputs"| node_content
node_screening -->|"invokes workflow"| node_workflow
node_content -->|"reads files"| node_documents
node_content -->|"fetches job URL"| node_web
node_workflow -->|"uses state"| node_state
node_job -.->|"invokes model"| node_llm
node_classifier -.->|"invokes model"| node_llm
node_assessor -->|"invokes model"| node_llm
node_llm -->|"creates client"| node_openai

click node_form "https://github.com/kusum-setti000/talentflow-ai/blob/main/ui/components/form.py"
click node_app "https://github.com/kusum-setti000/talentflow-ai/blob/main/ui/app.py"
click node_results "https://github.com/kusum-setti000/talentflow-ai/blob/main/ui/components/results.py"
click node_bootstrap "https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/bootstrap.py"
click node_screening "https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/screening/service.py"
click node_workflow "https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/screening/graph.py"
click node_state "https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/screening/state.py"
click node_content "https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/ingestion/service.py"
click node_documents "https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/ingestion/documents.py"
click node_web "https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/ingestion/web.py"
click node_job "https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/jobs/analyzer.py"
click node_classifier "https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/candidates/classifier.py"
click node_assessor "https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/candidates/assessor.py"
click node_config "https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/config.py"
click node_llm "https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/platform/llm.py"
click node_contracts "https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/domain/models.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_form,node_app,node_results toneBlue
class node_bootstrap,node_screening,node_workflow,node_state toneAmber
class node_content,node_documents,node_web,node_job,node_classifier,node_assessor toneMint
class node_config,node_llm,node_contracts toneRose
class node_recruiter,node_openai toneIndigo
```

## Components

### Recruiter UI

- [Input form](https://github.com/kusum-setti000/talentflow-ai/blob/main/ui/components/form.py): `ui/components/form.py`
- [Streamlit app](https://github.com/kusum-setti000/talentflow-ai/blob/main/ui/app.py): `ui/app.py`
- [Results report](https://github.com/kusum-setti000/talentflow-ai/blob/main/ui/components/results.py): `ui/components/results.py`

### Screening orchestration

- [Service composition](https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/bootstrap.py): `src/talentflow/bootstrap.py`
- [Screening service](https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/screening/service.py): `src/talentflow/screening/service.py`
- [Screening workflow](https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/screening/graph.py): `src/talentflow/screening/graph.py`
- [Workflow state](https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/screening/state.py): `src/talentflow/screening/state.py`

### Content analysis

- [Content resolver](https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/ingestion/service.py): `src/talentflow/ingestion/service.py`
- [Document reader](https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/ingestion/documents.py): `src/talentflow/ingestion/documents.py`
- [Job URL reader](https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/ingestion/web.py): `src/talentflow/ingestion/web.py`
- [Job analyzer](https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/jobs/analyzer.py): `src/talentflow/jobs/analyzer.py`
- [Resume classifier](https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/candidates/classifier.py): `src/talentflow/candidates/classifier.py`
- [Candidate assessor](https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/candidates/assessor.py): `src/talentflow/candidates/assessor.py`

### Model and contracts

- [Settings](https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/config.py): `src/talentflow/config.py`
- [Model adapter](https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/platform/llm.py): `src/talentflow/platform/llm.py`
- [Domain contracts](https://github.com/kusum-setti000/talentflow-ai/blob/main/src/talentflow/domain/models.py): `src/talentflow/domain/models.py`

### Other components

- **Recruiter**
- **OpenAI model**

## Connections

- Recruiter → Input form: provides inputs (evidence: `ui/components/form.py`)
- Input form → Streamlit app: returns request (evidence: `ui/app.py`)
- Streamlit app → Service composition: gets service (evidence: `ui/app.py`)
- Streamlit app → Input form: renders form (evidence: `ui/app.py`)
- Streamlit app → Screening service: submits request (evidence: `ui/app.py`)
- Streamlit app → Results report: renders result (evidence: `ui/app.py`)
- Service composition → Settings: loads settings (evidence: `src/talentflow/bootstrap.py`)
- Service composition → Model adapter: creates model (evidence: `src/talentflow/bootstrap.py`)
- Service composition → Content resolver: constructs resolver (evidence: `src/talentflow/bootstrap.py`)
- Service composition → Job analyzer: injects analyzer (evidence: `src/talentflow/bootstrap.py`)
- Service composition → Resume classifier: injects classifier (evidence: `src/talentflow/bootstrap.py`)
- Service composition → Candidate assessor: injects assessor (evidence: `src/talentflow/bootstrap.py`)
- Service composition → Screening workflow: builds workflow (evidence: `src/talentflow/bootstrap.py`)
- Service composition → Screening service: constructs service (evidence: `src/talentflow/bootstrap.py`)
- Screening service → Content resolver: resolves inputs (evidence: `src/talentflow/screening/service.py`)
- Screening service → Screening workflow: invokes workflow (evidence: `src/talentflow/screening/service.py`)
- Content resolver → Document reader: reads files (evidence: `src/talentflow/ingestion/service.py`)
- Content resolver → Job URL reader: fetches job URL (evidence: `src/talentflow/ingestion/service.py`)
- Screening workflow → Workflow state: uses state (evidence: `src/talentflow/screening/graph.py`)
- Job analyzer → Model adapter: invokes model
- Resume classifier → Model adapter: invokes model
- Candidate assessor → Model adapter: invokes model (evidence: `src/talentflow/candidates/assessor.py`)
- Model adapter → OpenAI model: creates client (evidence: `src/talentflow/platform/llm.py`)
