How dikshit-rao/interviewiq works
InterviewIQ is a placement-preparation web app whose main workflows are indexing PDFs for cited, multi-document Q&A and conducting scored mock interviews whose history feeds dashboard and subject-performance views. The React screens call a FastAPI API; its handlers coordinate the RAG pipeline, Gemini requests, and SQLite records. The README documents these capabilities, while the sampled backend and frontend source supports the shown calls. Some UI pages and API integrations were not fully excerpted, so their links rely on the SOURCE INDEX or documented endpoints.
Main entry points: app.py FastAPI handlers · App.jsx Page navigation · api.js HTTP client · llm.py Gemini tasks
Components 19
Web interface
- Page navigation
frontend/src/App.jsx - Document Q&A
frontend/src/pages/Chat.jsx - Document manager
frontend/src/pages/Documents.jsx - Mock interview
frontend/src/pages/Interview.jsx - Readiness dashboard
frontend/src/pages/Dashboard.jsx - Subject performance
frontend/src/pages/Performance.jsx - HTTP client
frontend/src/api.js
API workflows
- FastAPI handlers
backend/app.py - Request schemas
backend/models.py
Document retrieval
- PDF indexing
backend/pipeline.py - Extract and chunk
backend/pdf_processor.py - Text embeddings
backend/embeddings.py - FAISS index
backend/vector_store.py - Chunk retrieval
backend/retriever.py
Interview and records
- Gemini tasks
backend/llm.py - Prompt templates
backend/prompts.py - SQLite records
backend/database.py
Other components
- Learner
- Google Gemini
Connections 27
- Learner → Page navigation: uses
frontend/src/App.jsx - Page navigation → Document Q&A: selects page
frontend/src/App.jsx - Page navigation → Document manager: selects page
frontend/src/App.jsx - Page navigation → Mock interview: selects page
frontend/src/App.jsx - Page navigation → Readiness dashboard: selects page
frontend/src/App.jsx - Page navigation → Subject performance: selects page
frontend/src/App.jsx - Document Q&A → HTTP client: asks and lists
frontend/src/pages/Chat.jsx - Document manager → HTTP client: uploads and lists
frontend/src/pages/Documents.jsx - Mock interview → HTTP client: starts and submits
frontend/src/pages/Interview.jsx - Readiness dashboard → HTTP client: loads metrics
frontend/src/pages/Dashboard.jsx - Subject performance → HTTP client: loads breakdown
frontend/src/pages/Performance.jsx - HTTP client → FastAPI handlers: HTTP requests
frontend/src/api.js - FastAPI handlers → Request schemas: validates requests
backend/app.py - FastAPI handlers → PDF indexing: indexes uploads
backend/app.py - PDF indexing → Extract and chunk: extracts chunks
backend/pipeline.py - PDF indexing → Text embeddings: embeds chunks
backend/pipeline.py - PDF indexing → FAISS index: stores vectors
backend/pipeline.py - FastAPI handlers → Chunk retrieval: retrieves context
backend/app.py - Chunk retrieval → Text embeddings: embeds query
backend/retriever.py - Chunk retrieval → FAISS index: searches index
backend/retriever.py - FastAPI handlers → Gemini tasks: generates answers
backend/app.py - FastAPI handlers → Gemini tasks: generates questions
backend/app.py - FastAPI handlers → Gemini tasks: evaluates answers
backend/app.py - Gemini tasks → Prompt templates: formats prompts
backend/llm.py - Gemini tasks → Google Gemini: generates content
backend/llm.py - FastAPI handlers → SQLite records: stores sessions and scores
backend/app.py - FastAPI handlers → SQLite records: reads dashboard data
backend/app.py