How shreyask95/zycus_ai_assignment works
This is an employee-facing IT helpdesk assistant with a dashboard for agents. Employees submit messages through the dashboard; the API hands them to a deterministic pipeline that applies identity, rate-limit and safety checks, retrieves approved knowledge, then answers with a citation, refuses, or handles a ticket. The dashboard also exposes conversation, statistics, audit and override features. The sampled source shows the main calls and persistence behavior; dashboard details and some integrations are documented in the README, so those links are cited there.
Main entry points: pipeline.py Message pipeline · main.py FastAPI endpoints · llm.py Gemini drafting · retrieval.py KB retrieval
Components 15
Web interface
- Dashboard
static/index.html - FastAPI endpoints
app/main.py
Decision and safety
- Message pipeline
app/pipeline.py - Safety guards
app/guards.py - Runtime rules
config.yaml
Knowledge and response
- KB retrieval
app/retrieval.py - Approved articles
data/kb.json - Gemini drafting
app/llm.py - Model failover
app/router.py
Tickets and records
- Ticket handling
app/tickets.py - User and ticket data
data/directory.json - Conversation store
app/store.py
Other components
- Employee
- Helpdesk agent
- Google Gemini
Connections 18
- Employee → Dashboard: submits message
README.md - Helpdesk agent → Dashboard: reviews records
README.md - Dashboard → FastAPI endpoints: uses endpoints
README.md - FastAPI endpoints → Message pipeline: handles chat
app/main.py - FastAPI endpoints → Conversation store: reads and overrides
app/main.py - FastAPI endpoints → Ticket handling: resets tickets
app/main.py - Message pipeline → Safety guards: checks and masks
app/pipeline.py - Message pipeline → KB retrieval: searches articles
app/pipeline.py - KB retrieval → Approved articles: loads articles
app/retrieval.py - KB retrieval → Safety guards: sanitizes content
app/retrieval.py - Message pipeline → Gemini drafting: requests draft
app/pipeline.py - Gemini drafting → Model failover: routes model calls
app/llm.py - Gemini drafting → Google Gemini: generates response
README.md - Message pipeline → Ticket handling: checks and creates
app/pipeline.py - Message pipeline → Conversation store: checks limits; saves
app/pipeline.py - Ticket handling → User and ticket data: loads initial tickets
app/tickets.py - Safety guards → Runtime rules: loads rules
app/guards.py - Gemini drafting → Runtime rules: loads model settings
app/llm.py