Context Switch
← All references
Library / 03 AI Systems & Technical Fluency
Reviewed Oct 2026

Choosing an AI Architecture

Match architecture to the job: rules, prompts, retrieval, tools, workflows, agents and fine-tuning.

01 / table

Start with the simplest sufficient pattern

PatternGood forMain constraint
Deterministic rulesKnown logic, permissions, calculationsWeak at ambiguity
Prompt-onlyDrafting or classification with supplied factsContext and freshness limit
RAGCurrent or private evidenceRetrieval and permission quality
Tool callingLive reads or bounded actionsScope, validation, audit
Fixed workflowPredictable multi-step tasksLess flexible paths
AgentVariable multistep investigationHigher variability, latency, testing burden
Fine-tuningRecurring behavior/style improvementsNot for fresh facts or permissions
02 / cards

Common false choices

RAG vs fine-tuning

Retrieve changing or private facts; tune when many task examples support improving behavior.

Workflow vs agent

Choose fixed sequences for known routes; agent only when variable planning earns the cost.

03 / flow

Evaluate each layer

Retrieval + accessModel qualityTool correctnessWorkflow outcomesLatency + cost
04 / note

Worked example

Policy Q&A: permission-filtered RAG. To change a customer record: add a narrowly scoped tool and explicit approval.
05 / list

Architecture questions

GOING DEEPER

Evaluate the layer that carries the risk

Evaluation map

LayerWhat to verify
RetrievalRelevant source found, freshness, permission filtering, ranking and provenance
Model outputGroundedness, completeness, uncertainty handling, structured fields and safety
Tools/actionsCorrect tool, valid arguments, approval, scopes and side-effect recovery
End-to-end workflowTask outcome, latency, cost, human review effort and fallback behavior
Specific design progression: For a policy Q&A assistant, start with retrieval against permission-filtered current policies. To update a customer account, add a narrowly scoped action tool, server-side validation and explicit authorization. Use an agent only if investigative paths genuinely vary enough to justify the additional autonomy.
Architecture boundary: Retrieval solves changing/private facts; fine-tuning can adapt repeated task behavior but not update authoritative knowledge. A fixed workflow is easier to audit than an agent when the sequence is known. Access controls and irreversible approvals must never rely on a prompt alone.
PRACTICAL FRAMEWORK / AI PRODUCT WORK

Missing facts, procedure or action?

What is missing?Choose firstWatch for
Current, trusted factsPermission-filtered retrieval (RAG)Stale sources, access leaks, conflicting truth.
Repeatable method or checksSkill, runbook, structured workflow or instructionsSkipped steps, weak exit criteria, bad recovery.
Live action or reading a systemScoped tool/API with deterministic permission checksUnsafe side effects, wrong arguments, lack of audit.
Variable multi-step routeAgent only when bounded planning earns its complexityRunaway loops, weak oversight, cost and ambiguity.

Combine these when needed. A retrieval source does not grant authority; a procedure cannot replace missing evidence; a tool does not justify unattended action.