When not to use an LLM: matching the AI tool to the job

Large language models are powerful but not always the right tool. When rules, ordinary code or classic machine learning are faster, cheaper and easier to audit.

Westerwick4 min read

Assorted hand tools hanging in an organised tool rack
Photo: Barn Images on Unsplash (Unsplash License)
On this page

Large language models (LLMs), the technology behind ChatGPT and Claude, can draft, summarise, classify and converse remarkably well. That makes it tempting to use one for everything. Knowing when not to use an LLM is just as valuable: some jobs need exact, repeatable, cheap answers, and there, ordinary software or classic machine learning does better.

This isn't an argument against AI. It's about matching the tool to the job, so you spend on AI where its judgement earns its keep.

The vendors say it too

It's notable that the companies selling AI give the same advice. Microsoft's guidance for AI agents is blunt: "If the steps are clear, repeatable, and follow strict rules, use regular code or nongenerative AI models. These options are faster, cheaper, and more reliable for fixed workflows"2.

Google's guidance says the same for prediction: "If your use case is related to predictive AI use cases, use traditional AI", noting that traditional models are "particularly effective with structured data"1.

Exact answers: calculations, rules and compliance

Some tasks have one right answer: calculating VAT, applying a discount rule, checking whether a customer meets eligibility criteria, or deciding whether a transaction breaches a limit. These are deterministic tasks. The same input should always produce the same output.

An LLM is built differently. Microsoft describes AI workloads as ones that "replace deterministic functionality in parts of the workload with nondeterministic behavior that solves for situations where fixed outcomes are impractical"3. That trade makes sense when fixed rules can't cope, such as with messy emails or open-ended questions. It makes no sense when a fixed rule works perfectly.

A simple test: if you could write the rule in a spreadsheet formula, don't ask a language model to guess it.

When you must be able to reproduce the answer

Auditors, regulators and customers sometimes ask, "Why did the system decide this?" You need to show the same inputs produce the same result.

Traditional software and classic machine learning give you that. AWS notes that with traditional machine learning, "given the same input data and hyperparameters, traditional ML models generate identical results", which makes reproduction "straightforward"4. With generative AI, you "must account for the non-deterministic nature of LLM responses", which "requires multiple runs and statistical analysis" just to establish a baseline4.

For credit decisions, pricing, compliance checks or anything that may be challenged, keep the decision in code or a classic model you can explain. Use an LLM, if at all, to explain the decision in plain language.

High volume, low latency, tight budget

Every LLM call costs money and takes time, often a second or more. That's fine for a few hundred customer questions a day. It adds up quickly for millions of transactions, or for anything that must respond instantly.

MIT Sloan's framework lists the reasons an LLM can be the wrong choice even where it could technically work: "accuracy, cost, latency, or data privacy"6. To be fair, it also notes that LLM prices "have been dropping precipitously in recent years"6. The honest answer is to measure cost and speed at your real volumes before deciding.

Structured data: classic machine learning often wins

For predictions from spreadsheet-style data, such as sales forecasts, churn risk, fraud scores or stock levels, classic machine learning remains the strong default. MIT Sloan's advice for tabular data: "you should favor traditional machine learning", and methods such as XGBoost "can be more accurate for tabular data prediction problems"6.

Google's examples of where traditional AI fits are familiar business tasks: spam classification, defect detection, revenue prediction, "sales and demand forecasting" and customer segmentation1.

The confident-mistake problem

The US National Institute of Standards and Technology (NIST) names this risk formally. It calls it confabulation: "the production of confidently stated but erroneous or false content (known colloquially as 'hallucinations' or 'fabrications') by which users may be misled or deceived"5.

It's manageable, and good AI systems are designed around it. But it matters most where a wrong answer is costly and looks just like a right one: a figure in a financial report, a clause in a contract, or a rule in a compliance check.

Use an LLM where a person can see and correct its work. Use code where no one will check.

Where an LLM earns its place

None of this means avoiding LLMs. They're the right tool for work that rules can't handle well:

  • understanding messy, unstructured text such as emails, documents and support requests
  • answering questions from your own documents, with sources shown
  • drafting, summarising and rewriting
  • classifying everyday text. MIT Sloan's advice here is to "try to solve it with an LLM first"6

Often the best design combines both. Google points out that traditional and generative AI "aren't mutually exclusive": a forecasting model can produce the numbers, and a chat assistant can let people explore them in plain language1. Microsoft adds that answering questions from a fixed set of documents usually needs a simple retrieval setup, not a complex agent2.

In our own demos we follow this split. Our Read demo uses AI to extract invoice fields, then checks them with plain rules: the invoice number format, and whether subtotal plus tax equals the total. The AI reads, and the code verifies.

What to do next

  1. Write down what the task needs: an exact, repeatable answer, or judgement on messy input.
  2. For fixed rules and structured-data predictions, start with code or classic machine learning.
  3. If you use an LLM, keep the checks in code: totals, limits, eligibility and compliance rules. Treat the model's output as a draft.
  4. Measure cost and speed at real volumes before committing to an LLM for high-throughput work.
  5. For personal information, check with your privacy adviser where the data will be processed before any AI touches it.

If you're unsure which approach fits a process in your business, talk to us.

Sources

  1. 1.When to use generative AI or traditional AIGoogle Cloud
  2. 2.Business plan for AI agentsMicrosoft Cloud Adoption Framework
  3. 3.AI workloads on AzureMicrosoft Azure Well-Architected Framework
  4. 4.Creating evaluation loops for generative AI experimentationAWS Prescriptive Guidance
  5. 5.Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile (NIST AI 600-1)National Institute of Standards and Technology · 26 July 2024
  6. 6.When to Use GenAI Versus Predictive AIMIT Sloan Management Review · 24 March 2025

See it on your own data first.

We stand up a working proof of concept on our AWS account. Real sample data, no cost to you, before you commit to a build.