How suvajit324/policy-pilot works
PolicyPilot is an HR-policy assistant: employees ask questions through a chat UI and receive a guarded, intent-specific answer. The README describes retrieval followed by intent detection and curated responses; the sampled app code also shows an optional OpenAI answer path, feedback and usage statistics, and serving the frontend. The retrieval details and most intermediate implementation are documented but not present in the excerpts, so those links cite the README rather than implying they were verified in source.
Main entry points: app.py Question API · index.html Chat interface
Components 10
Employee experience
- Chat interface
index.html
Policy answering
- Question API
app.py - Query guardrails
app.py - TF-IDF retrieval
app.py - Intent detection
app.py - Curated HR answers
app.py
Usage and feedback
- Feedback API
app.py - Stats and traction
app.py
Other components
- Employee
- OpenAI service
Connections 9
- Employee → Chat interface: asks through
README.md - Chat interface → Question API: submits question
- Question API → Query guardrails: checks query
README.md - Query guardrails → TF-IDF retrieval: passes query
README.md - TF-IDF retrieval → Intent detection: informs intent
README.md - Intent detection → Curated HR answers: selects answer
README.md - Question API → OpenAI service: requests answer
app.py - Employee → Feedback API: submits feedback
- Employee → Stats and traction: views dashboard