How ankitsharma34/jobastra-ai works
JobAstra AI is a FastAPI service for AI-powered career-profile extraction, job-description extraction, job matching, and career-profile knowledge indexing. The main workflow enters through the API, which wires feature services to prompt builders and a shared provider-neutral LLM boundary; knowledge indexing separately builds and chunks documents for vector storage. The README also mentions job-fit analysis, personalized application generation, and agentic workflows, but the sampled tree does not identify their implementations. Relationships for unsampled routes and infrastructure follow the README or SOURCE INDEX references; uncertain integrations are omitted.
Main entry points: dependencies.py Service wiring · main.py FastAPI app · services.py LLM boundary · service.py Profile extraction
Components 27
API layer
- FastAPI app
src/jobastra_ai/main.py - Career routes
src/jobastra_ai/api/routes/career.py - Job routes
src/jobastra_ai/api/routes/jobs.py - Matching routes
src/jobastra_ai/api/routes/matching.py - Knowledge routes
src/jobastra_ai/api/routes/knowledge.py - Health route
src/jobastra_ai/api/routes/health.py - Service wiring
src/jobastra_ai/api/dependencies.py
AI features
- Profile extraction
src/jobastra_ai/career/service.py - Career prompts
src/jobastra_ai/career/prompts.py - Career profile schema
src/jobastra_ai/career/schemas.py - Job extraction
src/jobastra_ai/jobs/service.py - Job prompts
src/jobastra_ai/jobs/prompts.py - Job schema
src/jobastra_ai/jobs/schemas.py - Job matching
src/jobastra_ai/matching/service.py - Matching prompts
src/jobastra_ai/matching/prompts.py - Match schema
src/jobastra_ai/matching/schemas.py
Career knowledge
- Knowledge indexing
src/jobastra_ai/knowledge/service.py - Career documents
src/jobastra_ai/knowledge/documents.py - Document chunking
src/jobastra_ai/knowledge/chunking.py - Career vector store
src/jobastra_ai/knowledge/store.py - Embedding models
src/jobastra_ai/embeddings/models.py
Shared AI services
- LLM boundary
src/jobastra_ai/llm/services.py - LLM messages
src/jobastra_ai/llm/schemas.py - Chat model setup
src/jobastra_ai/llm/models.py - Prompt templates
src/jobastra_ai/prompts/templates.py - Prompt registry
src/jobastra_ai/prompts/registry.py
Other components
- Platform client
Connections 39
- Platform client → FastAPI app: calls API
- FastAPI app → Career routes: registers
src/jobastra_ai/main.py - FastAPI app → Job routes: registers
src/jobastra_ai/main.py - FastAPI app → Matching routes: registers
src/jobastra_ai/main.py - FastAPI app → Knowledge routes: registers
src/jobastra_ai/main.py - FastAPI app → Health route: registers
src/jobastra_ai/main.py - Career routes → Service wiring: resolves services
src/jobastra_ai/api/routes/career.py - Job routes → Service wiring: resolves services
src/jobastra_ai/api/routes/jobs.py - Matching routes → Service wiring: resolves services
src/jobastra_ai/api/routes/matching.py - Knowledge routes → Service wiring: resolves services
src/jobastra_ai/api/routes/knowledge.py - Service wiring → Profile extraction: constructs
src/jobastra_ai/api/dependencies.py - Service wiring → Job extraction: constructs
src/jobastra_ai/api/dependencies.py - Service wiring → Job matching: constructs
src/jobastra_ai/api/dependencies.py - Service wiring → Knowledge indexing: constructs
src/jobastra_ai/api/dependencies.py - Service wiring → LLM boundary: constructs
src/jobastra_ai/api/dependencies.py - Career routes → Profile extraction: invokes
src/jobastra_ai/api/routes/career.py - Job routes → Job extraction: invokes
src/jobastra_ai/api/routes/jobs.py - Matching routes → Job matching: invokes
src/jobastra_ai/api/routes/matching.py - Knowledge routes → Knowledge indexing: invokes
src/jobastra_ai/api/routes/knowledge.py - Profile extraction → Career prompts: builds request
src/jobastra_ai/career/service.py - Profile extraction → LLM boundary: invokes structured
src/jobastra_ai/career/service.py - Profile extraction → Career profile schema: validates output
src/jobastra_ai/career/service.py - Job extraction → Job prompts: builds request
src/jobastra_ai/jobs/service.py - Job extraction → LLM boundary: invokes structured
src/jobastra_ai/jobs/service.py - Job extraction → Job schema: validates output
src/jobastra_ai/jobs/service.py - Job matching → Matching prompts: builds request
src/jobastra_ai/matching/service.py - Job matching → LLM boundary: invokes structured
src/jobastra_ai/matching/service.py - Job matching → Match schema: validates output
src/jobastra_ai/matching/service.py - Knowledge indexing → Career documents: builds documents
src/jobastra_ai/knowledge/service.py - Knowledge indexing → Document chunking: chunks documents
src/jobastra_ai/knowledge/service.py - Knowledge indexing → Career vector store: updates index
src/jobastra_ai/knowledge/service.py - Career vector store → Embedding models: uses embeddings
src/jobastra_ai/knowledge/store.py - LLM boundary → Chat model setup: gets chat model
src/jobastra_ai/llm/services.py - LLM boundary → LLM messages: accepts requests
src/jobastra_ai/llm/services.py - Career prompts → Prompt templates: renders prompt
src/jobastra_ai/career/prompts.py - Job prompts → Prompt templates: renders prompt
src/jobastra_ai/jobs/prompts.py - Matching prompts → Prompt templates: renders prompt
src/jobastra_ai/matching/prompts.py - Prompt templates → LLM messages: creates requests
src/jobastra_ai/prompts/templates.py - Prompt registry → Prompt templates: manages templates
src/jobastra_ai/prompts/registry.py