How itsomshree/triage-iq works
TriageIQ accepts support tickets through a FastAPI service, classifies and routes them, then auto-answers with grounded knowledge-base retrieval, escalates them, or flags them for human review. The pipeline persists structured results and stage logs for ticket lookup and dashboard analytics. The README documents knowledge-base ingestion and Trello side effects; the source excerpts show the main orchestration, routing, retrieval, API and persistence paths. Some ingestion and escalation internals are unsampled, so those links rely on README documentation.
Main entry points: pipeline.py Ticket pipeline · main.py FastAPI endpoints · escalation_chain.py Escalation decision · vector_store.py Vector store access
Components 22
Ticket service
- FastAPI endpoints
api/main.py
Triage workflow
- Ticket pipeline
src/triage_iq/pipeline.py - Ticket and result schemas
src/triage_iq/schemas/ticket.py - Ticket classifier
src/triage_iq/chains/classifier_chain.py - Routing rules
src/triage_iq/chains/routing_chain.py
Knowledge retrieval
- Grounded answer chain
src/triage_iq/chains/rag_chain.py - Context compression
src/triage_iq/retrievers/compression_retriever.py - Vector store access
src/triage_iq/ingestion/vector_store.py - Knowledge ingestion
src/triage_iq/ingestion - Knowledge-base documents
data/knowledge_base
Escalation
- Escalation decision
src/triage_iq/chains/escalation_chain.py - Escalation tool
src/triage_iq/tools/escalate_ticket.py - Create Trello card
src/triage_iq/tools/create_trello_card.py - Trello API client
src/triage_iq/integrations/trello_board.py
Records and operations
- Persistence and queries
src/triage_iq/db/crud.py - Postgres records
src/triage_iq/db/models.py - Dashboard data endpoints
api/dashboard.py - Operations dashboard
api/static/dashboard.js
Other components
- Ticket submitter
- Pinecone
- Trello
- Support operator
Connections 22
- Ticket submitter → FastAPI endpoints: submits ticket
README.md - FastAPI endpoints → Ticket pipeline: runs pipeline
api/main.py - Ticket pipeline → Ticket classifier: classifies
src/triage_iq/pipeline.py - Ticket pipeline → Routing rules: decides route
src/triage_iq/pipeline.py - Ticket pipeline → Grounded answer chain: requests answer
src/triage_iq/pipeline.py - Ticket pipeline → Escalation decision: requests escalation
src/triage_iq/pipeline.py - Ticket pipeline → Persistence and queries: persists stages
src/triage_iq/pipeline.py - Ticket pipeline → Ticket and result schemas: uses typed results
src/triage_iq/pipeline.py - Grounded answer chain → Context compression: retrieves context
src/triage_iq/chains/rag_chain.py - Context compression → Vector store access: searches vectors
src/triage_iq/retrievers/compression_retriever.py - Vector store access → Pinecone: reads and upserts
src/triage_iq/ingestion/vector_store.py - Knowledge-base documents → Knowledge ingestion: provides source docs
README.md - Knowledge ingestion → Vector store access: embeds and upserts
scripts/ingest_knowledge_base.py - Escalation decision → Escalation tool: invokes tool
src/triage_iq/chains/escalation_chain.py - Escalation decision → Create Trello card: invokes tool
src/triage_iq/chains/escalation_chain.py - Create Trello card → Trello API client: delegates card creation
src/triage_iq/tools/create_trello_card.py - Trello API client → Trello: creates card
README.md - Persistence and queries → Postgres records: reads and writes
src/triage_iq/db/crud.py - FastAPI endpoints → Dashboard data endpoints: registers routes
api/main.py - Dashboard data endpoints → Persistence and queries: queries analytics
api/dashboard.py - FastAPI endpoints → Operations dashboard: serves dashboard
api/main.py - Support operator → Operations dashboard: views operations
README.md