# pranavkrishnasuresh/resumeprocessing architecture

> Architecture diagram of the GitHub repository pranavkrishnasuresh/resumeprocessing, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-03-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pranavkrishnasuresh/resumeprocessing
- Repository: https://github.com/pranavkrishnasuresh/resumeprocessing

## Overview

##### Main Components
- Input Source – a Resume PDF input module that will eventually connect to the Ceipal database.
- Pre-processing Steps – a module (or multiple sub-components) handling PDF-to-text conversion.
- Resume Summarization and Categorization – this includes the initial summary generation and an iterative categorization step.
- Scoring Module – where the resume is scored using the Baseline Meta LLama3 model (to later be replaced with a fine-tuned model).
- Interview Question Generation – a component that generates five personalized interview questions if the resume score meets a threshold.
- External Integrations – referencing future integrations with the Ceipal database (for resume fetching) and the post function to transfer scored resume data to a database.

##### File Structure to Reflect Modules
- The file “resumeScoreUpdated.py” likely contains the resume scoring logic and perhaps the overall orchestration of the pipeline.
- The file “skills_compare.py” might be responsible for comparing the resume’s skills to some baseline or performing a part of the categorization.
- The requirements.txt indicates the Python packages used by these scripts, and although not a module in itself, it gives insight into the external dependencies.

- From the scoring module, if the score is above a threshold, branch out to the “Interview Question Generator” node.

## Diagram (Mermaid)

```mermaid
flowchart TD
    CeipalDB["Ceipal Database"]:::external
    ResumePDF["Resume PDF (Input)"]:::processing
    TextExtract["Text Extraction Module"]:::processing
    ResumeSummary["Resume Summary Generation"]:::processing
    IterativeCat["Iterative Categorization"]:::processing
    Scoring["Scoring Module<br>(Baseline Meta LLama3)"]:::model
    Interview["Interview Question Generator"]:::processing
    Dependencies["External Dependencies"]:::integration

    CeipalDB -->|"fetch_resume"| ResumePDF
    ResumePDF -->|"PDF_to_text"| TextExtract
    TextExtract -->|"extracts_text"| ResumeSummary
    ResumeSummary -->|"summarizes"| IterativeCat
    IterativeCat -->|"categorizes"| Scoring
    Scoring -->|"posts_score"| CeipalDB
    Scoring -->|"if_score_threshold"| Interview
    Interview -->|"generates_questions"| CeipalDB
    Dependencies -.->|"uses"| Scoring

    click Scoring "https://github.com/pranavkrishnasuresh/resumeprocessing/blob/main/resumeScoreUpdated.py"
    click IterativeCat "https://github.com/pranavkrishnasuresh/resumeprocessing/blob/main/skills_compare.py"
    click Dependencies "https://github.com/pranavkrishnasuresh/resumeprocessing/blob/main/requirements.txt"

    classDef processing fill:#D6E9F8,stroke:#1F77B4,stroke-width:2px;
    classDef external fill:#FADBD8,stroke:#C0392B,stroke-width:2px;
    classDef model fill:#D5F5E3,stroke:#27AE60,stroke-width:2px;
    classDef integration fill:#FCF3CF,stroke:#F1C40F,stroke-width:2px;
```
