How sadhithyan7/ticket-to-faq-pipeline works
Ticket → FAQ Pipeline ingests support-ticket CSVs, groups tickets into themes, drafts FAQ Markdown through a configured LLM, and persists drafts for review. Users can run and edit the workflow through the dashboard/API, the command-line runner, or MCP tools. The README documents embedding/KMeans clustering with a TF-IDF fallback; the supplied cluster.py excerpt does not show its implementation, so clustering internals are not expanded here.
Main entry points: api.py FastAPI routes · server.py MCP tools · run.py CLI runner · write.py Draft writer
Components 14
Entry points
- FastAPI routes
src/api.py - CLI runner
src/run.py - MCP tools
mcp_server/server.py
FAQ pipeline
- CSV ingestion
src/ingest.py - Ticket clustering
src/cluster.py - FAQ drafting
src/draft.py - LLM provider
src/llm.py - Runtime config
src/config.py
Persistence
- Draft writer
src/write.py - SQLite database
- Markdown drafts
Draft review
- Review dashboard
frontend/app.js
Other components
- Operator
- LLM service
Connections 26
- Operator → Review dashboard: uses
frontend/app.js - Review dashboard → FastAPI routes: calls API
frontend/app.js - FastAPI routes → Review dashboard: serves UI
src/api.py - Operator → CLI runner: runs
README.md - Operator → MCP tools: invokes tools
mcp_server/server.py - FastAPI routes → CSV ingestion: loads tickets
src/api.py - FastAPI routes → Ticket clustering: clusters tickets
src/api.py - FastAPI routes → FAQ drafting: requests drafts
src/api.py - FastAPI routes → Draft writer: saves drafts
src/api.py - CLI runner → CSV ingestion: loads tickets
src/run.py - CLI runner → Ticket clustering: clusters tickets
src/run.py - CLI runner → FAQ drafting: requests drafts
src/run.py - CLI runner → Draft writer: saves drafts
src/run.py - MCP tools → CSV ingestion: loads tickets
mcp_server/server.py - MCP tools → Ticket clustering: clusters tickets
mcp_server/server.py - MCP tools → FAQ drafting: requests draft
mcp_server/server.py - MCP tools → Draft writer: saves draft
mcp_server/server.py - FAQ drafting → LLM provider: generates text
src/draft.py - LLM provider → LLM service: calls provider
src/llm.py - LLM provider → Runtime config: reads settings
src/llm.py - FastAPI routes → Runtime config: reads settings
src/api.py - CSV ingestion → SQLite database: stores tickets
src/ingest.py - Draft writer → SQLite database: stores draft row
src/write.py - Draft writer → Markdown drafts: writes file
src/write.py - FastAPI routes → SQLite database: reads and updates drafts
src/api.py - MCP tools → SQLite database: queries drafts
mcp_server/server.py