# tanish123-art/redrob architecture

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

- Interactive diagram: https://gitdiagram.com/tanish123-art/redrob
- Repository: https://github.com/tanish123-art/redrob

## Overview

This repository is a candidate-ranking application: a user uploads or pastes candidate data, the Gradio interface invokes a ranking script, and ranked results are displayed and made downloadable. The ranking script filters candidates and applies text-similarity ranking; its omitted sections limit detail on scoring and CSV generation. A separate command-line utility checks challenge submission CSVs; no connection from the app to that validator is shown.

Main entry points: [`rank.py`](https://github.com/tanish123-art/redrob/blob/main/rank.py) (Ranking Script), [`app.py`](https://github.com/tanish123-art/redrob/blob/main/app.py) (Ranking UI), [`validate_submission.py`](https://github.com/tanish123-art/redrob/blob/main/validate_submission.py) (CSV Validator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User Interface"]
  node_gradio["Ranking UI<br/>[app.py]"]
  node_input_prep["Input Preparation<br/>[app.py]"]
  node_results["Ranking Results<br/>[app.py]"]
end

subgraph group_ranking["Ranking Engine"]
  node_ranker["Ranking Script<br/>[rank.py]"]
  node_candidate_filter["Candidate Filtering<br/>[rank.py]"]
  node_similarity["Text Similarity<br/>[rank.py]"]
end

subgraph group_validation["Submission Validation"]
  node_validator["CSV Validator"]
end

node_user(("Candidate User"))
node_csv_user(("Submission Preparer"))

node_user -->|"provides input"| node_gradio
node_gradio -->|"submits input"| node_input_prep
node_input_prep -->|"invokes script"| node_ranker
node_ranker -->|"filters candidates"| node_candidate_filter
node_ranker -->|"computes similarity"| node_similarity
node_ranker -.->|"writes CSV"| node_results
node_results -->|"displays and downloads"| node_gradio
node_csv_user -->|"validates CSV"| node_validator

click node_gradio "https://github.com/tanish123-art/redrob/blob/main/app.py"
click node_input_prep "https://github.com/tanish123-art/redrob/blob/main/app.py"
click node_ranker "https://github.com/tanish123-art/redrob/blob/main/rank.py"
click node_candidate_filter "https://github.com/tanish123-art/redrob/blob/main/rank.py"
click node_similarity "https://github.com/tanish123-art/redrob/blob/main/rank.py"
click node_results "https://github.com/tanish123-art/redrob/blob/main/app.py"
click node_validator "https://github.com/tanish123-art/redrob/blob/main/validate_submission.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_gradio,node_input_prep,node_results,node_user toneBlue
class node_ranker,node_candidate_filter,node_similarity toneAmber
class node_validator toneMint
class node_csv_user toneIndigo
```

## Components

### User Interface

- [Ranking UI](https://github.com/tanish123-art/redrob/blob/main/app.py): `app.py`
- [Input Preparation](https://github.com/tanish123-art/redrob/blob/main/app.py): `app.py`
- [Ranking Results](https://github.com/tanish123-art/redrob/blob/main/app.py): `app.py`

### Ranking Engine

- [Ranking Script](https://github.com/tanish123-art/redrob/blob/main/rank.py): `rank.py`
- [Candidate Filtering](https://github.com/tanish123-art/redrob/blob/main/rank.py): `rank.py`
- [Text Similarity](https://github.com/tanish123-art/redrob/blob/main/rank.py): `rank.py`

### Submission Validation

- [CSV Validator](https://github.com/tanish123-art/redrob/blob/main/validate_submission.py): `validate_submission.py`

### Other components

- **Candidate User**
- **Submission Preparer**

## Connections

- Candidate User → Ranking UI: provides input (evidence: `app.py`)
- Ranking UI → Input Preparation: submits input (evidence: `app.py`)
- Input Preparation → Ranking Script: invokes script (evidence: `app.py`)
- Ranking Script → Candidate Filtering: filters candidates (evidence: `rank.py`)
- Ranking Script → Text Similarity: computes similarity (evidence: `rank.py`)
- Ranking Script → Ranking Results: writes CSV
- Ranking Results → Ranking UI: displays and downloads (evidence: `app.py`)
- Submission Preparer → CSV Validator: validates CSV (evidence: `validate_submission.py`)
