How sarthak8404/resume-intelligence-engine works
This is a multi-tenant resume and job-description intelligence API. Clients authenticate, upload PDFs, and track asynchronous processing; the worker extracts and chunks text, generates embeddings, and stores searchable content. Authenticated searches combine vector and full-text retrieval with reciprocal-rank fusion, optionally using tenant-scoped Redis caching. The graph includes documented capabilities such as SSE, retries, and tenant isolation; source excerpts are partial, so links for unsampled internals rely on README statements where indicated.
Main entry points: database.py Database access · auth.py Auth endpoints · search.py Search endpoint · main.py FastAPI application
Components 20
API and tenancy
- FastAPI application
app/main.py - Auth endpoints
app/api/routes/auth.py - Auth schemas
app/schemas/auth.py - Password services
app/services/auth.py - JWT service
app/services/token.py - Identity dependency
app/api/dependencies.py - Tenant endpoints
app/api/routes/tenants.py
Document ingestion
- Document endpoints
app/api/routes/documents.py - Celery task queue
- Worker tasks
app/worker/tasks.py - PDF processing
app/services/document_processing.py - Text chunking
app/services/chunking.py - Gemini embeddings
app/services/embedding.py
Hybrid retrieval
- Search endpoint
app/api/routes/search.py - Search schema
app/schemas/search.py
Runtime and storage
- Redis cache
app/core/redis.py - Database access
app/db/database.py - PostgreSQL
- Application config
app/core/config.py
Other components
- API client
Connections 29
- API client → FastAPI application: sends requests
Readme.md - FastAPI application → Auth endpoints: registers router
app/main.py - FastAPI application → Document endpoints: registers router
app/main.py - FastAPI application → Search endpoint: registers router
app/main.py - FastAPI application → Tenant endpoints: registers router
app/main.py - Auth endpoints → Auth schemas: validates requests
app/api/routes/auth.py - Auth endpoints → Password services: hashes passwords
app/api/routes/auth.py - Auth endpoints → JWT service: creates token
app/api/routes/auth.py - Auth endpoints → Identity dependency: uses identity
app/api/routes/auth.py - Auth endpoints → Database access: queries users
app/api/routes/auth.py - Identity dependency → Database access: checks identity
app/api/dependencies.py - Document endpoints → Identity dependency: requires identity
app/api/routes/documents.py - Search endpoint → Identity dependency: requires identity
app/api/routes/search.py - Document endpoints → Database access: stores metadata
app/api/routes/documents.py - Document endpoints → Celery task queue: dispatches task
app/api/routes/documents.py - Celery task queue → Worker tasks: delivers task
Readme.md - Worker tasks → PDF processing: calls processor
app/worker/tasks.py - PDF processing → Text chunking: chunks text
app/services/document_processing.py - PDF processing → Gemini embeddings: embeds chunks
app/services/document_processing.py - PDF processing → Database access: persists chunks
app/services/document_processing.py - Search endpoint → Search schema: accepts query
app/api/routes/search.py - Search endpoint → Gemini embeddings: embeds query
app/api/routes/search.py - Search endpoint → Database access: runs hybrid query
app/api/routes/search.py - Search endpoint → Redis cache: reads and writes cache
app/api/routes/search.py - Document endpoints → API client: streams status
Readme.md - Database access → PostgreSQL: opens pool
app/db/database.py - Application config → Database access: configures connection
app/db/database.py - Application config → Gemini embeddings: configures API key
app/services/embedding.py - Application config → Redis cache: configures Redis
app/core/redis.py