How inatanayaxsk/rozgaar works
Project Type and Purpose
• Rozgaar is a Python‑based, Streamlit‑driven web application that simplifies job applications using an LLM (LLaMA 3.1 Quantized) and optional voice support.
• It’s a single‑repository “full‑stack” style app (UI + backend logic + AI) rather than a multi‑service microservices setup.
File Structure
– Top level:
• README.md – high‑level description.
• genai/ – core application package.
– genai/ contents:
• main.py – entry point, Streamlit server, routes to various features.
• employer_portal.py – logic for employers (job postings, management).
• mew.py – LLM orchestration (prompt construction, inference).
• voice.py – text‑to‑speech or voice‑interaction module.
• templates/index.html – HTML template for resume or cover‑letter generation.
• test.py – unit/integration tests.
• requirements.txt – Python dependencies (streamlit, llama‑related libs, TTS, etc.).
Extract Architectural Insights from README
• UI Layer: Streamlit
• “Brain”: LLaMA 3.1 Quantized LLM
• Support components: resume/cover‑letter templating, voice interface
Main Components & Their Relationships
a. User Interface (Streamlit)
– Renders pages (job search, resume builder, employer portal)
– Gathers user input (skills, preferences)
b. Application Logic
– main.py: route controller
– employer_portal.py: CRUD on job postings
– mew.py: formats prompts, calls LLM inference engine
– voice.py: converts generated text to audio (optional)
c. Data/State
– In‑memory or lightweight storage for job postings (could be JSON, in‑app state)
– Templates in genai/templates for dynamic document generation
d. LLM Inference Engine
– Local LLaMA 3.1 Quantized model loaded in mew.py
– May leverage GPU or CPU backend
e. External Services (if any)
– TTS cloud API or local TTS library used by voice.py
– (Future) Database or external job‑board integrations
Architectural Patterns & Design Principles
– MVC‑like layering:
• View: Streamlit UI
• Controller: main.py + feature modules
• Model: LLM inference + in‑memory data
– Single‑process monolith (deployed as one Streamlit app)
– Clear feature separation: employer vs. job‑seeker flows, resume vs. voice modules
1. UI Layer (blue)
2. Controller Layer (green)
3. LLM Inference (orange)
4. Voice/TTS Module (purple)
5. Data/Template Store (gray)
– UI → Controller (user input flows)
– Controller → LLM Inference (prompt requests)
– LLM → Controller (responses)
– Controller → Templates (document generation)
– Controller → Voice (text → speech) → UI