Home / use case

Local support-ticket triage with Ollama decision models: 59 of 60 answers right on a CPU laptop

At a glance
Hardware
Linux machine with 8 CPU cores, 16 GB RAM, no GPU
Models & engines
Ollama 0.40.16 (installed after adding zstd)
tev1:0.8b (833 MB), tev1 4B (4.6 GB) and nimble 9B in the q4_K_M build (5.6 GB)
Ollama Python client 0.6.3
Key gotcha
The Linux install script failed until he installed zstd.

What they built

Varun wanted to sort support tickets on his own machine, without paying per message or sending customer text to a cloud model, and without a chat model writing a paragraph when all he needs is a label.

Ollama's decision models fit that: you give them text and a few typed questions, and they return a yes/no probability, a label from a list you define, or a score on a scale you define. They never generate a reply.

He tested three of them on 20 tickets he labeled by hand, including Hinglish messages, sarcasm, a negated refund and a prompt-injection attempt, and wrapped it all in a short Python batch script.

Setup

  • Linux machine with 8 CPU cores, 16 GB RAM, no GPU
  • Ollama 0.40.16 (installed after adding zstd)
  • tev1:0.8b (833 MB), tev1 4B (4.6 GB) and nimble 9B in the q4_K_M build (5.6 GB)
  • Ollama Python client 0.6.3

How it works

  1. Each ticket is the input text (Ollama calls it the state), and each question is yes/no, a choice between labels you describe, or a score across levels you list from lowest to highest.
  2. Ollama reads the probability the model gives each allowed answer, so the output is always one of your options and produces zero output tokens.
  3. The same thing works from the command line with --ask, --choice and --level flags, over the local HTTP server, or from the Python client.
  4. His triage.py routes each ticket and flags it for review when the team choice is below 80% or the refund answer sits in the uncertain middle.

Results & numbers

  • tev1 (4B) got 59 of 60 answers right on his 20 tickets, identical across three runs, at about 1.9 seconds per ticket on CPU; a batch of 20 took 40 seconds.
  • Every model got every refund question right, including "No refund needed" and the Hinglish "paisa wapas kar do".
  • The 0.8B model routes well but consistently under-rated urgency.
  • Nimble 9B was not better: it filed a thank-you note under billing at 98% and followed an injected instruction to mark a profile-picture question as urgent.

Gotchas

  • The Linux install script failed until he installed zstd.
  • The default nimble tag is the 9.5 GB q8_0 build and was killed for using too much memory on 16 GB; the q4_K_M build worked.
  • Bare urgency levels flipped between runs; describing each level fixed it, while loaded words like "money at risk" turned a double charge into an emergency.
  • Without a "none" label, a thank-you note got confidently filed under billing.
  • Confidence isn't correctness: he saw 0.0 confidence alongside a 50% top answer. Wrapping customer text as a JSON field reduced prompt injection but didn't remove it.
  • Twenty tickets is a small test set; he says to run your own 50 labeled tickets first.
“A high probability only means the model strongly prefers one of your options. It does not mean the option list was right.”— Varun Chopra

Do it yourself

  1. Install Ollama (on Linux, install zstd first) and pull tev1, or the q4_K_M tag of nimble if you have the memory.
  2. Put a ticket in a text file and pipe it in with an --ask question to get a yes/no probability.
  3. Add --choice labels with short descriptions, including a none label, to route tickets to a team.
  4. Add --level options from lowest to highest, each described the way you'd brief a new support hire.
  5. Batch tickets from a JSONL file with the Python client, and send anything below your probability threshold to a person.
  6. Anything that pages someone or issues money should get a human check whatever the score.
Source: Varun Chopra on X · Published 2026-11-12 · Added 2026-11-13. This write-up summarizes the original source; see it for full details.

Similar setups

A local news-reading agent on Ollama that loses internet access while it thinks

A developer built News Scout, a Qwen3 14B agent on Ollama that picks IT stories from five RSS feeds, then split each run so the model reads the cached feeds inside a macOS sandbox with no internet.

DEV Community (MediBlackSand) · 2026-12-03

Cutting a local Qwen coding agent's wait on a 16GB Mac with a memory hook

A developer running a coding agent on qwen3.5:9b through Ollama replaced its always-loaded memory index with a hook that attaches only relevant memory lines, and cut median answer time from 90.4s to 56.4s.

DEV Community (JustJinoIT) · 2026-12-02

Finding why a local Ollama RAG bot ignored its instructions: silent num_ctx truncation

A developer's local RAG bot on llama3.1:8b skipped citations and guessed answers because Ollama silently cut prompts to a 2048-token window; in a 500-question test 312 prompts were truncated, and setting num_ctx to 8192 lifted grounded accuracy from 61% to 84%.

DEV Community (jidonglab) · 2026-11-30

PatchPal TinyAgent: a coding agent on a 4B model and a 6GB laptop GPU

WiseProbe adapted its PatchPal coding agent to run Gemma 4 E4B or Qwen3.5 4B through Ollama on a 6GB RTX A1000, using handoff-note compaction and capped file reads to work inside a 16K or 32K window.

WiseProbe Blog · 2026-11-25