MdsAI is the AI layer of Universal Software’s support desk for FlexCity, a city-management platform used by 84 municipalities. It routes each new ticket, drafts a cited answer when a similar case was solved before, and briefs an expert when none was; an expert approves every reply.
I led a team of six (two ML engineers, two software engineers and two support experts) and worked with the platform’s backend team. I built the corpus pipeline, the retrieval benchmark and the fine-tuning setup myself, and set the evaluation the team shipped against.
| Result (Jan 2022 – Jul 2025 → Jan–Jun 2026) | |
|---|---|
| Median first written reply | 15.5 h → 2.4 h |
| Tickets re-routed after assignment | 24% → 9% |
| New tickets with a cited draft | 68% |
| Drafts sent with light or no edits | 61% |
A before/after comparison, not a controlled experiment. See after rollout.
- Ticket arrives Webhook from the ticket system Error codes and module names kept intact
- Route EmbeddingGemma + classifiers 0.89 macro-F1 · re-routing 24% → 9%
- Search solved cases Character n-grams + EmbeddingGemma 86.4% Recall@1 · 18.9K cases
-
Above the 0.60 bar Draft a cited answer Gemma 3 12B, QLoRA, FP8 on vLLM One L40S · 5 s medianThe rest Brief the expert Docs, code and past tickets No guessed answer
- Expert review Approve, edit or reject Every reply approved by an expert
The interactive MdsAI walkthrough needs JavaScript.
Six decisions
| Decision | Instead of | Evidence |
|---|---|---|
| Experts review 79 clusters | Reading 29K tickets one by one | 15,404 clean cases |
| Redesign the labels, 281 → 47 | Modelling 281 labels harder | 0.14 → 0.89 macro-F1 |
| Pick retrieval by benchmark | A general dense model (MiniLM) | 86.4% vs 52.4% Recall@1 |
| Hold back below a 0.60 bar | Always drafting | 91% held back, 94% still drafted |
| Fine-tune a 12B model | Gemma 3 27B or Qwen3 32B as-is | 76% preferred, 12 GB |
| Downweight old releases | Trusting every solved case | Light edits recovered, 44% → 61% |
The details behind each follow.
The data
Four years of process logs (2022–2025) folded into one record per ticket with a Polars pipeline that keeps error codes and module names intact.
| Corpus measure (2022–2025) | Value |
|---|---|
| Raw process-log rows | 132,497 |
| Unique tickets | 29,118 |
| Closed with a written solution | 27,188 |
| Training-grade after expert review | 15,404 |
Of the 28,369 tickets closed with a known resolution time, the median took about seven days.
Test records, thank-you replies and template answers would pollute retrieval, so I clustered ticket text (EmbeddingGemma, UMAP, HDBSCAN) and support experts and I judged 79 groups instead of 29,000 tickets. A separate BERTopic analysis found 15 of 91 topics behind 21% of tickets.
Routing
The embedding model was chosen on 4,500 labelled tickets, averaged over three classifiers:
| Model | Memory (FP32) | Encode time | Mean F1 |
|---|---|---|---|
| Turkish BERT NLI-STSb | ~420 MB | 8 s | 0.892 |
| Qwen3-Embedding-0.6B | 2,274 MB | 45 s | 0.892 |
| EmbeddingGemma-300M | 1,156 MB | 16 s | 0.914 |
| Multilingual E5-Large | 2,136 MB | 24 s | 0.937 |
EmbeddingGemma was within 2.3 points of E5-Large at about half the memory. The bigger gain came from the labels: 281 categories, many near-duplicates, gave 0.14 macro-F1; the 47 groups experts redesigned give 0.89 macro-F1 and 93% accuracy. Different tasks, so this argues for the taxonomy, not a better model. A calibrated decision model, Laya, is being tested against the classifier.
Retrieval
The benchmark uses 1,236 questions as users wrote them, each hidden with its solving ticket among 2,000 distractors, scoped to the user’s product. The question’s own ticket and near-duplicates of its answer were kept out.
| Method (raw questions) | Recall@1 (scoped) | Recall@5 (scoped) |
|---|---|---|
| Hybrid (n-gram + EmbeddingGemma) | 86.4% | 98.9% |
| Dense (EmbeddingGemma) | 84.2% | 97.6% |
| Character n-gram | 73.5% | 86.2% |
| Dense (MiniLM) | 52.4% | 79.8% |
Raw Turkish tickets are full of error codes, suffixes and misspellings. N-grams catch those, EmbeddingGemma (the routing model) catches paraphrases, and together they beat either alone. Most of the gap to MiniLM is the embedding model, though: n-grams add 2.2 points on top of dense search.
Holding back
400 more questions had their solving ticket and its near-duplicates removed, so the closest cases looked related but were wrong. The bar was set where a wrong draft happens on fewer than 1 in 10 of them:
| Similarity bar | Answerable questions drafted | Unanswerable questions held back |
|---|---|---|
| 0.50 | 98% | 72% |
| 0.60 | 94% | 91% |
| 0.70 | 85% | 97% |
In January–June 2026, 68% of new tickets got a cited draft; many live tickets are new problems. The rest get a briefing from docs, code and past tickets instead of a guess.
Drafting
Names, Turkish ID numbers, phone numbers and IBANs were masked (rules plus a NER model) before fine-tuning Gemma 3 12B with QLoRA on 12,000 ticket–solution pairs. In 1,000 records checked by hand, every ID number, IBAN and phone number was masked, and about 95% of names. Nothing leaves Universal’s servers; the setup passed KVKK review. Experts compared drafts blind on 1,200 held-out tickets, same retrieved cases, all models in FP8:
| Gemma 3 12B, fine-tuned | Gemma 3 27B, as-is | Qwen3 32B, as-is | |
|---|---|---|---|
| Preferred by experts | 76% | 14% | 10% |
| Fully supported by citations | 96% | 81% | 72% |
| Latency (median) | 5 s | 27 s | 30 s |
| GPU memory (FP8) | 12 GB | 27 GB | 32 GB |
Its drafts run 100–200 tokens; the as-is models wrote two to three times as much, which, with their size, accounts for the latency gap. It runs with vLLM on one L40S, up to 40 drafts in parallel.
Keeping it current
Every expert decision is logged with the draft and its sources, and approved answers join the index as new cases: it grew from 15,404 cases to 18,900 by October 2026. Tickets answered with MdsAI’s help are marked and kept out of fine-tuning and evaluation data, so no model is trained or graded on its own drafts. Cases carry their product version, and those more than two releases old are downweighted; a rejection for an outdated source retires the case (140 in the first half of 2026).
That rule came from a failure: early drafts cited menu paths a release had moved. Experts caught every one, but trust dropped: for two weeks the light-edit rate fell from 61% to 44%, until version tagging brought it back.
After rollout
- Rollout: 14 municipalities in late September 2025, then 10–15 more each month once the monthly evaluation showed it was on track, until all 84 were live in March 2026.
- First reply: median 15.5 h (23,132 tickets with a written reply, January 2022 – July 2025) → 2.4 h (9,800 such tickets, January–June 2026), while monthly volume tripled.
- Drafts: 61% sent with light or no edits (under 15% of characters changed).
- Caveat: before/after, not controlled; some municipalities were not yet live in January–March 2026.
| State | Capability |
|---|---|
| Deployed | Routing suggestions, hybrid retrieval, cited drafts from the fine-tuned 12B, expert briefings, expert approval |
| Measured research | Corpus filtering, embedding benchmark, taxonomy redesign, retrieval and abstention benchmark |
| In development | Calibrated decision models (Laya, in testing); auto-approval for tickets matching an approved case, so they get an answer within minutes; resolution-time and SLA-risk signals |
What I took from it
- The knowledge base is the product. Most of the work was deciding which solved cases deserve retrieval, and keeping them current.
- Benchmark before you choose. A general dense model finished 34 points behind the hybrid on real tickets; the embedding model, not the n-grams, made 32 of them.
- A smaller model you fine-tune can beat bigger ones used as-is. On our tickets, a fine-tuned 12B beat 27B and 32B models with no tuning.