How mhdd4nish/prep_rag_agent works
Placement Prep Agent is an interactive interview-practice coach. The main workflow selects topics, retrieves reference material, collects and screens an answer, optionally verifies code or technical claims, then scores the answer and routes retry or topic advancement. Separate product branches provide the LLM gateway, tool-access governance, and session/evaluation reporting. Some implementation details are unsampled; edges below are limited to source-index references or explicit README and excerpt evidence.
Main entry points: nodes.py Interview Nodes · dashboard.py Evaluation Dashboard · graph.py Session Graph · retriever.py Hybrid Retriever
Components 20
Interview Session
- Session CLI
main.py - Session Graph
agents/graph.py - Session State
agents/state.py - Interview Nodes
agents/nodes.py - Input Guardrails
guardrails/checker.py
Knowledge Retrieval
- Interview Material
data/raw/interview_qa.txt - Knowledge Ingestion
utils/ingest.py - Hybrid Retriever
utils/retriever.py
Tools and Governance
- Code MCP Client
mcp_client/client.py - Code Executor
mcp_server/code_executor.py - Search MCP Client
mcp_client/web_search_client.py - Web Search
mcp_server/web_search.py - Tool Access Policy
governance/policy.py
LLM Gateway
- LLM Gateway
gateway/server.py
Evaluation and Reporting
- Answer Judge
evaluation/judge.py - Session Logger
evaluation/logger.py - Judge Calibration
evaluation/calibration.py - Judge Data Generation
evaluation/generate_training_data.py - Evaluation Dashboard
evaluation/dashboard.py
Other components
- Candidate
Connections 23
- Candidate → Session CLI: selects topics
main.py - Session CLI → Session Graph: invokes
main.py - Session Graph → Session State: uses state
agents/graph.py - Session Graph → Interview Nodes: registers and routes
agents/graph.py - Interview Nodes → Hybrid Retriever: retrieves context
agents/nodes.py - Interview Material → Knowledge Ingestion: provides documents
README.md - Knowledge Ingestion → Hybrid Retriever: builds indexes for
README.md - Interview Nodes → Input Guardrails: checks answers
agents/nodes.py - Interview Nodes → Code MCP Client: requests execution
agents/nodes.py - Code MCP Client → Code Executor: calls over stdio
mcp_client/client.py - Interview Nodes → Search MCP Client: requests verification
agents/nodes.py - Search MCP Client → Web Search: calls over stdio
mcp_client/web_search_client.py - Interview Nodes → Tool Access Policy: checks tool access
agents/nodes.py - Interview Nodes → Answer Judge: scores answers
agents/nodes.py - Interview Nodes → Session Logger: records turns
agents/nodes.py - Interview Nodes → LLM Gateway: routes LLM traffic
README.md - Input Guardrails → LLM Gateway: uses classifier LLM
- Evaluation Dashboard → Session Logger: reads session results
evaluation/dashboard.py - Evaluation Dashboard → Tool Access Policy: reads access report
evaluation/dashboard.py - Evaluation Dashboard → LLM Gateway: reads usage logs
evaluation/dashboard.py - Evaluation Dashboard → Judge Calibration: displays report
evaluation/dashboard.py - Judge Data Generation → Hybrid Retriever: generates questions with
evaluation/generate_training_data.py - Judge Data Generation → Answer Judge: labels generated answers
evaluation/generate_training_data.py