Sub topic 3
Try the Non-AI Baseline First
Assume you know how software features are planned and can read short Python snippets. You should also understand that AI systems produce probabilistic outputs, while ordinary program rules usually produce predictable outputs.
Before choosing AI, build the simplest reasonable solution to the same user problem. This solution is the non-AI baseline. A baseline might use rules, keyword matching, search, a form redesign, or a clearer workflow. It gives you something measurable to compare with an AI feature.
Define the same job for every approach
Start with a user outcome, not a model capability. For example:
> Help support agents route incoming messages to the correct team.
Possible solutions include:
- A rule that routes messages containing “refund” to billing.
- A search page that helps agents find similar resolved tickets.
- A form that asks customers to choose a topic.
- An AI classifier that predicts the best team.
These approaches are valid only if they address the same outcome. Do not compare an AI chatbot with a form that solves a different problem.
A useful baseline should be:
- Small enough to build quickly.
- Clear enough to explain.
- Measurable with the same test cases as the AI option.
- Representative of what you would actually ship if you decided not to use AI.
Measure the baseline
Use a labeled test set: a collection of examples where the correct result is already known. Keep the examples separate from the data used to create your rules. Otherwise, the score may look better than real-world performance.
For message routing, a small baseline might be:
def accuracy(predict, examples):
correct = sum(1 for text, label in examples if predict(text) == label)
return correct / len(examples)
examples = [
("please refund my order", "billing"),
("the app crashes on launch", "bug"),
("my invoice amount is wrong", "billing"),
]
def keyword_baseline(text):
text = text.lower()
if "refund" in text or "invoice" in text:
return "billing"
return "bug"
print(accuracy(keyword_baseline, examples))This baseline is intentionally limited. That is useful because it exposes what the AI approach must improve. If the keyword rule achieves 100 percent on a tiny test set, expand the set before drawing conclusions. Three examples cannot represent the full range of customer messages.
Measure more than accuracy. Track the consequences of mistakes, the time required to build and maintain the solution, response latency, and operating cost.
| Measure | Baseline question | Why it matters |
|---|---|---|
| Quality | How often is the result correct? | Shows whether the feature solves the problem |
| Error cost | What happens when it is wrong? | Separates harmless mistakes from damaging ones |
| Latency | How long does a result take? | Affects the user experience |
| Maintenance | How often must rules or content change? | Reveals ongoing operational work |
Know when the baseline is enough
Choose the baseline when it meets the required quality and the remaining errors are acceptable. A more complex AI system is justified only when its improvement matters to users and outweighs its cost, latency, risk, and maintenance burden.
A baseline may also reveal that the product problem is unclear. If no approach performs well because the labels are inconsistent or the workflow is confusing, improve the problem definition before selecting technology.
Exercise
A keyword rule routes 92 percent of support messages correctly. An AI prototype routes 94 percent correctly but costs ten times more and responds more slowly. What should you investigate before choosing AI?
Show answer
Investigate whether the two percentage points improve an important user outcome, which errors each system makes, and whether the higher cost and latency are acceptable. Also test both systems on a larger, representative labeled set.