How lakshaykarad/truthcv works
TruthCV is a web application for tailoring resumes to job descriptions. Its main workflow accepts a PDF resume, extracts structured facts, chunks and embeds them, then stores the resume and searchable evidence. Generation endpoints extract job requirements and use retrieval-backed generation for tailored resumes, cover letters, and question answers; a separate endpoint scores skill matches. The graph includes the documented API, persistence, and model-service boundaries. Several source excerpts are partial, and the README is empty, so unshown wiring is omitted or marked unverified.
Main entry points: main.py FastAPI application · resume.py Resume endpoints · generate.py Generation endpoints · generator.py Content generator
Components 23
Web application
- Web interface
frontend/app.js - FastAPI application
app/main.py - Resume endpoints
app/routers/resume.py - Generation endpoints
app/routers/generate.py - Download endpoint
app/routers/download.py - Health endpoint
app/routers/health.py
Resume processing
- PDF reader
app/pipeline/pdf_reader.py - Resume extractor
app/pipeline/extractor.py - Resume chunker
app/pipeline/chunker.py - Text embedder
app/pipeline/embedder.py
Matching and generation
- Job description extractor
app/pipeline/extractor.py - Evidence retriever
app/pipeline/retriever.py - Skill scorer
app/pipeline/scorer.py - Content generator
app/pipeline/generator.py - PDF writer
app/pipeline/pdf_writer.py
Persistence
- Database queries
app/db/queries.py - Data models
app/db/models.py - Database session
app/db/session.py - PostgreSQL with pgvector
- Application settings
app/config.py
Other components
- User
- Ollama service
- Groq service
Connections 29
- User → Web interface: uses
- Web interface → FastAPI application: served by
app/main.py - FastAPI application → Resume endpoints: registers
app/main.py - FastAPI application → Generation endpoints: registers
app/main.py - FastAPI application → Download endpoint: registers
app/main.py - FastAPI application → Health endpoint: registers
app/main.py - Resume endpoints → PDF reader: reads PDF
app/routers/resume.py - Resume endpoints → Resume extractor: extracts facts
app/routers/resume.py - Resume endpoints → Resume chunker: chunks resume
app/routers/resume.py - Resume endpoints → Text embedder: embeds chunks
app/routers/resume.py - Resume endpoints → Database queries: saves resume
app/routers/resume.py - Generation endpoints → Job description extractor: extracts requirements
app/routers/generate.py - Generation endpoints → Content generator: generates content
app/routers/generate.py - Generation endpoints → Skill scorer: scores match
app/routers/generate.py - Generation endpoints → PDF writer: renders PDF
app/routers/generate.py - Content generator → Evidence retriever: retrieves evidence
app/pipeline/generator.py - Skill scorer → Evidence retriever: finds evidence
app/pipeline/scorer.py - Evidence retriever → Text embedder: embeds queries
app/pipeline/retriever.py - Resume extractor → Ollama service: requests extraction
app/pipeline/extractor.py - Job description extractor → Ollama service: requests extraction
app/pipeline/extractor.py - Text embedder → Ollama service: requests embeddings
app/pipeline/embedder.py - Content generator → Groq service: generates text
- Database queries → Data models: uses models
app/db/queries.py - Database queries → PostgreSQL with pgvector: reads and writes
app/db/queries.py - Database session → Application settings: loads settings
app/db/session.py - Database session → PostgreSQL with pgvector: connects
app/db/session.py - FastAPI application → Data models: creates tables
app/main.py - FastAPI application → Database session: uses engine
app/main.py - Download endpoint → Application settings: uses output settings
app/routers/download.py