Architecture Pattern Guide

Recommendations, Search, Fraud, Forecasting, and Assistants

Goal

Show how common commerce AI workloads differ in purpose, risk, and operating posture.

The Short Version

Commerce AI is not one thing.

It spans discovery, decision support, prediction, and action:

  • Search helps a person find the right item.

  • Recommendations help a person choose from likely relevant items.

  • Fraud detection decides whether a transaction deserves extra scrutiny.

  • Forecasting helps the business plan inventory, labor, and spend.

  • Assistants help a person ask questions, gather context, or take a controlled action.

The architecture changes with the job.

Mental Model

Think of the workloads as a progression from low-risk guidance to higher-risk action:

Discover -> decide -> predict -> assist -> act

That is only a simplified view, but it helps because the control posture gets stricter as the system moves toward action. A search system can often fail softly by returning less relevant results. A fraud system cannot be sloppy in either direction because false positives and false negatives both matter. An assistant can be helpful in conversation and still be unsafe if it can see or do too much.

Use this comparison as a quick orientation:

WorkloadPrimary OutputTime SensitivityBiggest RiskMain Controls
SearchRanked results or answers.Very high.Poor relevance or stale results.Index freshness, query understanding, ranking, telemetry.
RecommendationsSuggested products or actions.Very high.Bad personalization or poor fallback.Experimentation, feature quality, low-latency serving.
FraudRisk score, hold, review, or approve.High.Blocking good customers or missing abuse.Thresholds, audit, human review, explainability.
ForecastingPredicted demand or planning signal.Medium to high, usually scheduled.Misleading planning inputs.Historical quality, seasonality handling, batch validation.
AssistantsAnswer, summary, plan, or controlled action.Often interactive.Wrong answers, unsafe actions, boundary crossings.Retrieval, authorization, tool control, refusal, logging.

Architecture Meaning

Search and recommendations are related, but they are not the same architecture. Search is about helping the user locate something they already want. Recommendations are about helping the user choose among options the system believes may be relevant. Search can often lean on catalog structure, query matching, and freshness. Recommendations lean more on behavioral data, experimentation, and business feedback.

Fraud is different again. It is not trying to delight the user. It is protecting the business, the customer, or both. That means the system may need to make a high-confidence decision quickly, explain itself to reviewers, and keep a durable trail of why the decision happened.

Forecasting usually sits farther from the live customer journey. It still matters a great deal because it influences inventory, staffing, and replenishment, but it usually tolerates batch cadence and offline validation better than a checkout or search request does.

Assistants are the most operationally sensitive because they combine language, retrieval, and action. A support assistant may answer from policy documents, look up order status, and create a case. That makes it more flexible than a static FAQ page, but also more dangerous if its permissions, evidence, and tool calls are not controlled.

Example: One Shopper, Five AI Jobs

A shopper looks for running shoes.

  • Search returns the right category and product list.

  • Recommendations highlight shoes that fit the shopper's style and browsing history.

  • Fraud scoring evaluates the order once the shopper checks out.

  • Forecasting helps the business know whether popular sizes need replenishment.

  • A support assistant later helps the shopper ask about return policy or shipment status.

Each workload uses commerce data, but each one solves a different problem. A change that improves one workflow may harm another. For example, a recommendation model that pushes fast-moving products might hurt long-tail discovery. A fraud rule that is too aggressive might reduce abuse while increasing abandoned carts and support tickets.

Common Mistakes

  • Confusing search with recommendations.

  • Assuming one safety policy fits every workload.

  • Treating forecasting like a customer-facing real-time feature.

  • Designing assistants as if they were only chat interfaces.

  • Letting a high-risk workload inherit the same thresholds as a low-risk one.

If Someone Asks You

How are commerce AI workloads different from one another in architecture terms?

A good answer is:

They differ by purpose, latency, risk, and control requirements. Search helps users find, recommendations help users choose, fraud protects the business, forecasting supports planning, and assistants combine language with retrieval and tools. The architecture needs different data, different evaluation criteria, and different fallback or escalation paths for each workload.

What You Should Remember

AI workloads differ by business purpose, control needs, and acceptable failure mode.

Questions to Check Understanding

  1. Which workload most depends on fast feedback from users?

  2. Which workload most depends on explainability or audit evidence?

  3. Which workload most needs a safe fallback when it fails?