How manopriyan88-tech/devtriage-ai works
DevTriage-AI provides two ticket-triage workflows: an interactive Streamlit demo and a command-line CSV batch processor. Both ground decisions in the knowledge base and produce validated category, priority, action, confidence, rationale, and response fields. The UI uses Groq with deterministic offline fallback; the batch path uses Gemini with retry and rate-limit handling. The batch source and UI are excerpted, but their connections to external services and data files are documented only where those excerpts show them.
Main entry points: app.py Interactive Triage · agent.py Batch Runner · knowledge_base.json Knowledge Base · tickets.csv Ticket CSV
Components 13
User Interfaces
- Triage UI
app.py - Batch Runner
agent.py
Triage Logic
- Interactive Triage
app.py - Offline Rules
app.py - Ticket Triage
agent.py - Decision Schema
app.py - Batch Decision Schema
agent.py
Knowledge and Data
- Knowledge Base
knowledge_base.json - Ticket CSV
tickets.csv - Triage Results
triage_results.csv
Inference Services
- Groq API
- Gemini API
Other components
- Support Operator
Connections 13
- Support Operator → Triage UI: submits ticket
app.py - Triage UI → Interactive Triage: starts triage
app.py - Interactive Triage → Knowledge Base: loads context
app.py - Interactive Triage → Groq API: requests inference
app.py - Interactive Triage → Offline Rules: falls back
app.py - Interactive Triage → Decision Schema: validates result
app.py - Triage UI → Support Operator: displays decision
app.py - Batch Runner → Knowledge Base: loads context
agent.py - Batch Runner → Ticket CSV: reads tickets
agent.py - Batch Runner → Ticket Triage: triages tickets
agent.py - Ticket Triage → Gemini API: requests inference
agent.py - Ticket Triage → Batch Decision Schema: validates response
agent.py - Batch Runner → Triage Results: writes results
agent.py