How manu9986/hiring-assistent works
Project Type and Purpose
• This is a lightweight full-stack web application built with Streamlit serving as both frontend and backend.
• Purpose: An AI-powered chatbot to generate interview questions, evaluate answers via OpenAI GPT, and produce a PDF report.
File Structure
• Top-level files:
• app.py – the single entry point for the Streamlit app (UI + business logic)
• requirements.txt – Python dependencies (streamlit, openai, fpdf, python-dotenv, etc.)
• .gitignore – excludes virtual environment, .env
• README.md – project overview and setup
• No separate “frontend” or “backend” directories: Streamlit merges both.
• No database or storage directories—temporary in-memory data only.
• .env file (not checked in) holds OPENAI_API_KEY.
README for Technical Insights
• Framework: Streamlit
• AI backend: OpenAI GPT-3.5 Turbo for question generation and evaluation
• PDF generation: fpdf library
• Data privacy: no persistent storage, GDPR compliance
• Deployment: Streamlit Sharing or Docker
Main Components
a. End User (Recruiter/Candidate) via Web Browser
b. Streamlit Application (app.py) – UI layer
c. Business Logic Modules inside app.py:
• Candidate Input Collector
• Question Generator Module (prompts OpenAI API)
• Response Evaluator Module (prompts OpenAI API)
• PDF Report Generator (fpdf)
d. External Service: OpenAI GPT-3.5 Turbo API
e. Environment Configuration: .env for API key
f. (Optional future) Storage/Database component for logging or analytics
Relationships and Data Flows
• User → Streamlit UI: enters candidate details
• Streamlit UI → Candidate Input Collector → passes params to Question Generator
• Question Generator → OpenAI API → receives questions → UI displays questions
• User → UI: submits answers → Response Evaluator → OpenAI API → feedback & scores
• Feedback → PDF Generator → creates downloadable report → UI serves PDF to User
• All API calls read OPENAI_API_KEY from .env
Architectural Patterns and Design Principles
• Single-page interactive app (event loop managed by Streamlit)
• Request/response integration with external AI service
• Separation of concerns (input handling, AI calls, PDF creation) within one script
• Environment-driven configuration for secrets
• Stateless by design: no local persistence