All news

Specialist AI method

How to build a domain-specific small language model for your business

A big general model knows a little about everything. A small, sharp one that knows your business deeply is usually the better trade — here is how to build one, and when not to.

How to build a domain-specific small language model for your business

Most teams reach for the biggest general model they can find, then wonder why it demos brilliantly and disappoints in production. Production is specific. Your operation runs on its own processes, data and rules — not on the internet’s average. The fix is usually smaller, not bigger: a domain-specific small language model (SLM) that knows one business deeply.

This is a how-to, not a comparison. (For why a specialist beats a generalist at all, see our earlier piece.) Here we walk the actual build — and, just as important, when you should not do this.

What a domain-specific SLM actually is

It is a compact model — small enough to run cheaply and fast — tuned to one domain’s language, tasks and decisions. It is not a general chatbot with a system prompt. The value comes from three layers, in order:

  1. Ground it in the business. Before any tuning, model the domain: its entities, processes, data and decision rules. This is the business-analysis step most AI projects skip — and the reason most fail. A model with no map of the business guesses; a grounded one reasons.
  2. Distil, don’t train from scratch. You rarely need to pretrain. Start from a capable open base model and distil a larger model’s behaviour on your domain into it — or fine-tune on high-quality, domain-specific examples. The goal is to compress broad capability into sharp, cheap, on-domain performance.
  3. Retrieve what changes. Facts that move — prices, policies, catalogue — belong in retrieval (RAG), not in the weights. Bake in the stable reasoning; look up the volatile facts.

The build, step by step

  • Scope one job. “Match a buyer’s request to the right supplier and explain why” beats “be smart about procurement.” A narrow job is measurable and shippable.
  • Assemble a real dataset. Curate examples from the actual workflow — inputs, correct outputs, and the reasoning. Quality over volume: a few thousand clean, representative examples usually beat a noisy dump.
  • Pick the smallest base that clears the bar. Try the smallest model first and only move up if evaluation demands it. Smaller means cheaper inference and faster iteration.
  • Distil or fine-tune. Use a strong teacher model to generate reasoning traces, then tune the small model to reproduce them on your data. Keep a held-out set the model never sees.
  • Evaluate against the job, not vibes. Define pass/fail on the real task (match accuracy, extraction correctness, refusal on out-of-scope). Measure before and after — if the small tuned model doesn’t beat the base, stop.
  • Put it behind a governed gateway. Route every call through one controlled entry point so you can meter cost, cap usage, log for improvement, and swap models without touching the app. (This is exactly how BIXSO runs AI across its own products — one signed gateway, cost metered per call.)
  • Close the loop. Feed real, reviewed interactions back into the next tuning round. The system should get sharper over time, not drift.

When you should NOT build one

  • The task is genuinely general. Open-ended writing or broad Q&A is what big general models are for. Don’t specialise what doesn’t need specialising.
  • You have no clean data and no way to get it. Grounding needs real domain examples. No data, no SLM — fix the data first.
  • The domain changes faster than you can retune. If the rules shift weekly, lean on retrieval and prompting over fine-tuning.
  • Volume is tiny. If you make a handful of calls a day, a hosted general model behind a gateway is cheaper and simpler than owning a tuned model.

The BIXSO take

Our whole method is one line: research the business model, analyse the solution, then build an agentic AI for that domain. The SLM is the last step — and it only works because the first two ground it. We build them this way for our own products, and we help clients decide whether they need one at all before spending a dollar tuning.

If you are weighing a domain-specific model, start with the analysis, not the GPU bill. Book a consult — the first one is free.