MdsAI

Four years of municipal helpdesk history turned into retrieved evidence, cited LLM answer drafts, and routing suggestions that a support expert approves before anything reaches a customer.

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 reply15.5 h → 2.4 h
Tickets re-routed after assignment24% → 9%
New tickets with a cited draft68%
Drafts sent with light or no edits61%

A before/after comparison, not a controlled experiment. See after rollout.

  1. Ticket arrives Webhook from the ticket system Error codes and module names kept intact
  2. Route EmbeddingGemma + classifiers 0.89 macro-F1 · re-routing 24% → 9%
  3. Search solved cases Character n-grams + EmbeddingGemma 86.4% Recall@1 · 18.9K cases
  4. Above the 0.60 bar Draft a cited answer Gemma 3 12B, QLoRA, FP8 on vLLM One L40S · 5 s median
    The rest Brief the expert Docs, code and past tickets No guessed answer
  5. Expert review Approve, edit or reject Every reply approved by an expert
Routing and search run on CPU in under a second. Rejected drafts become next month's regression set; a new model ships only if it beats the current one.

The interactive MdsAI walkthrough needs JavaScript.

Six decisions

DecisionInstead ofEvidence
Experts review 79 clustersReading 29K tickets one by one15,404 clean cases
Redesign the labels, 281 → 47Modelling 281 labels harder0.14 → 0.89 macro-F1
Pick retrieval by benchmarkA general dense model (MiniLM)86.4% vs 52.4% Recall@1
Hold back below a 0.60 barAlways drafting91% held back, 94% still drafted
Fine-tune a 12B modelGemma 3 27B or Qwen3 32B as-is76% preferred, 12 GB
Downweight old releasesTrusting every solved caseLight 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 rows132,497
Unique tickets29,118
Closed with a written solution27,188
Training-grade after expert review15,404

Of the 28,369 tickets closed with a known resolution time, the median took about seven days.

Distribution of eligible closed tickets by resolution time

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:

ModelMemory (FP32)Encode timeMean F1
Turkish BERT NLI-STSb~420 MB8 s0.892
Qwen3-Embedding-0.6B2,274 MB45 s0.892
EmbeddingGemma-300M1,156 MB16 s0.914
Multilingual E5-Large2,136 MB24 s0.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-gram73.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 barAnswerable questions draftedUnanswerable questions held back
0.5098%72%
0.6094%91%
0.7085%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-tunedGemma 3 27B, as-isQwen3 32B, as-is
Preferred by experts76%14%10%
Fully supported by citations96%81%72%
Latency (median)5 s27 s30 s
GPU memory (FP8)12 GB27 GB32 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.
StateCapability
DeployedRouting suggestions, hybrid retrieval, cited drafts from the fine-tuned 12B, expert briefings, expert approval
Measured researchCorpus filtering, embedding benchmark, taxonomy redesign, retrieval and abstention benchmark
In developmentCalibrated 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.
Status
Deployed · Active R&D
Role
Senior ML Engineer · R&D Lead
Stack
Python, Polars, EmbeddingGemma, Sentence Transformers, UMAP + HDBSCAN, BERTopic, LightGBM / XGBoost, scikit-learn, Gemma 3 12B (QLoRA), vLLM (FP8)
Written up
, updated