TicketForge
Messy support tickets to schema-valid JSON
Created on 24th October 2026
•
TicketForge
Messy support tickets to schema-valid JSON
The problem TicketForge solves
Problem: Support tickets arrive as messy free text (typos, emails, chats, call transcripts). Software can't use them until they are turned into structured data.
What TicketForge does:
- Turns a raw support ticket into one JSON object that matches a fixed schema
- Fields: category, priority, product, sentiment, summary, needs_human
- Uses a small open model (Qwen2.5-1.5B) that runs locally instead of a large closed API
- Ticket data stays on your own machine
Results (300 held-out test tickets):
- Valid JSON: 0% for the base model (plain prompting) → 100% for the fine-tuned model
- Exact match on the 5 structured fields: 0.03 → 0.53
- Weakest fields: priority (0.70) and needs_human (0.84)
Caveat: the data is synthetic, so real tickets will likely score lower.
Challenges we ran into
- No GPU on our laptop: we built the data and ran curation locally, and used a free Colab T4 for training and SGLang serving.
- SGLang setup on the T4: the first launches failed (missing
ninjafor FlashInfer, a hung cell). We fixed it with a separate uv Python 3.12 environment and a clean Python-based server launch. - AlignTune training error:
chat_template="auto"made AlignTune import Unsloth, which patched TRL and crashed with "must specify a formatting_func". We removed that setting and forced the plain TRL backend. - Conflicting dependencies: AlignTune and SGLang need different library versions, so we split training and serving into two separate notebooks.
- Constrained decoding: the SGLang grammar backend rejected our summary word-count pattern. We served the schema without it and still checked every output against the full schema.
- PII scrubbing broke product names: CuratorKIT's PII step treated some product names as person names. We added a check that every product name survives, and fixed it.
- Fair testing: to avoid leakage we used different templates and styles for the test set, plus an automatic overlap check.
- Hosting the demo: Hugging Face Spaces needs a paid plan for Gradio, so the demo runs locally instead.
Tracks Applied (2)
Open Track - Development
Local LLM Track
RadixArk
Technologies used
Discussion
Builders also viewed
See more projects on Devfolio
