Employer work · private code
An HR assistant that answers from policy and acts in the system
Employees ask HR questions in plain language. The assistant answers from the company’s own policies with citations, and when a question needs live data it calls the HRMS: leave balances, attendance, raising a ticket. It can only do what the person asking is allowed to do.
The problem
HR teams answer the same policy questions all day, and employees open the HRMS mostly to look up one number. A chat box that only talks is not much help. It has to read the real policy and touch the real system, and it must never show one employee another employee’s data.
What I built
- A retrieval pipeline over HR policy documents, so answers are grounded and carry citations back to the source passage.
- Function-calling interfaces for live HRMS actions: leave balances, attendance and ticket creation.
- Role-based access control in front of every tool. The model can request an action, and the system decides whether this user may run it.
- Structured output validation, so a malformed model response fails safely before it reaches the HRMS.
Running it
Open-source models are served on cloud GPUs with vLLM for low-latency, high-volume traffic. Langfuse traces every request, which gives token and cost tracking, latency numbers and an evaluation loop for answer quality. Releases go through CI/CD with version control and monitoring.