How kasturimaheshbabu2316-mc/capstone---hr works
This repository implements a recruitment and HR support agent for Naukri.com, exposed through HTTP and WebSocket endpoints. A query is budget-checked, masked and screened, then answered through policy retrieval or application-status lookup; the draft is reviewed before returning to the user, with caching and audit logging around the request. Other substantial capabilities include document ingestion, multi-agent tools and memory, deterministic application data, governance controls, and RAG evaluation. Some links to unsampled subsystems are omitted or marked unverified because only source-index references were available.
Main entry points: main.py Request service · indexing.py Dual-strategy indexing · agents.py Agent team · tools.py Status and RAG tools
Components 21
API and orchestration
- API adapter
api/main.py - Request service
app/main.py - Audit logging
app/logging_utils.py
Safety and governance
- Token budget
governance/budget.py - Tool access control
governance/least_autonomy.py - Input/output guards
crew/guardrails.py
Answer capabilities
- Agent team
crew/agents.py - Status and RAG tools
crew/tools.py - Application records
dataset.py - Deterministic language model
llm/mock_llm.py - Response contracts
crew/schemas.py - Conversation memory
crew/memory.py - Independent peer review
review/autogen_review.py
Knowledge retrieval
- Grounded answer generation
rag/generate.py - Dual-strategy indexing
rag/indexing.py - Document chunking
rag/chunking.py - HR policy documents
kb - Vector collections
rag/indexing.py
State and evaluation
- Query cache
cache.py - Answer evaluation
eval/judge.py
Other components
- Support user
Connections 25
- Support user → API adapter: submits query
api/main.py - API adapter → Request service: routes requests
api/main.py - Request service → Token budget: checks budget
app/main.py - Request service → Input/output guards: screens query
app/main.py - Request service → Query cache: checks cache
app/main.py - Request service → Grounded answer generation: retrieves policy answer
app/main.py - Request service → Status and RAG tools: ingests documents
app/main.py - Request service → Independent peer review: submits draft
app/main.py - Request service → Audit logging: records request
app/main.py - Request service → Agent team: uses agent team
- Agent team → Status and RAG tools: dispatches tools
crew/agents.py - Agent team → Deterministic language model: uses model
crew/agents.py - Agent team → Response contracts: uses contracts
crew/agents.py - Status and RAG tools → Application records: reads applications
crew/tools.py - Status and RAG tools → Dual-strategy indexing: queries index
crew/tools.py - Request service → Tool access control: applies tool policy
app/main.py - Request service → Conversation memory: uses session memory
app/main.py - Grounded answer generation → Dual-strategy indexing: queries passages
rag/generate.py - Dual-strategy indexing → Document chunking: chunks documents
rag/indexing.py - Dual-strategy indexing → HR policy documents: loads policies
rag/indexing.py - Dual-strategy indexing → Vector collections: writes and queries
rag/indexing.py - Independent peer review → Response contracts: emits verdict
review/autogen_review.py - Answer evaluation → Grounded answer generation: evaluates answers
eval/judge.py - Answer evaluation → Input/output guards: checks grounding
eval/judge.py - Answer evaluation → Independent peer review: evaluates review
eval/judge.py