LESSON 191 / 215·3 min readAdvanced

The decision mindset

ReferenceReference guide
01 Understand02 Recall03 Prepare

Words made simple

A few useful meanings before you read the explanation.

AI
Software techniques for tasks such as recognizing patterns, understanding language or generating content.
LLM
A model trained to work with language. It can write or summarize text, but its answer still needs checking against reliable information.
RAG
Find relevant information first, then give it to a model to help answer the question. The answer is only as reliable as the information and checks used.
More words from this lesson
Agent
An application that uses a model to choose its next action within defined limits. It can use tools and continue through several steps.
Deterministic
Following steps or rules defined by code. The model does not decide which step should run next in a deterministic workflow.
State
The data describing where a workflow is now, what it already knows, and what still needs to happen.
Durable
Able to retain progress and recover across interruptions. Durable workflows require appropriate storage and retry behavior.
Latency
How long a request takes to return a result. Lower latency usually means a shorter wait for the user.

🔴 MUST KNOW · Your job is to choose a system that solves the client's problem safely and economically.

Overview

  • A decision framework is a repeatable sequence of questions that turns a requirement into justified architecture.
  • Each added capability should solve a concrete gap.
  • It prevents treating every client request as an opportunity to deploy every AI framework.

Why this matters

Complexity creates costs and failure modes even when a demo looks impressive.

An everyday example

A builder decides what the house needs before buying every tool in the store.

A technical example

Claim status needs authenticated service lookup; policy explanation needs evidence plus language generation; adaptive intake may need a bounded agent.

How it works

  1. Define outcome/risk
  2. Test ordinary-code baseline
  3. Identify language/knowledge/action gaps
  4. Add minimal AI capabilities
  5. Enforce boundaries
  6. Evaluate
  7. Instrument
  8. Estimate cost/capacity.

Architecture and flow

See the decision flow below.

The insurance assistant example

Build one insurance assistant with separate controlled routes rather than forcing status, FAQ, and submission into one autonomous loop.

When to use it

Every new client requirement and every proposal to add a framework, agent, provider, or data store.

When to avoid it

Do not make it bureaucratic: a trivial requirement may be resolved by a few clear answers.

Interview answer

“I choose the minimum architecture that meets task quality, security, reliability, latency, and cost requirements, then justify each extra component with evidence.”

Benefits, trade-offs, and production considerations

  • Decisions are revisable.
  • Record the assumption, alternative, measurable trigger for change, and owner.
  • Avoid premature distributed architecture, but recognize when durable state or security isolation is required from the start.
Architecture at a glanceFollow the arrows to see how the parts connect.

Preparing the architecture diagram…

Read the full diagram flow
flowchart TD
  A[Do I need AI? Define the outcome] --> B[Can deterministic code solve it?]
  B -->|Yes| C[Use ordinary code and normal reliability controls]
  B -->|No: language or media ambiguity| D[Do I need an LLM or a smaller task model?]
  D --> E[Do I need external knowledge? Add RAG if justified]
  E --> F[Do I need current data or actions? Add safe tools]
  F --> G[Do next steps vary? Consider bounded agent]
  G --> H[Should execution be a controlled workflow?]
  H --> I[Where is exact human approval required?]
  I --> J[How do I secure every boundary?]
  J --> K[How do I evaluate outcomes and failures?]
  K --> L[How do I observe runs and audit actions?]
  L --> M[What is total cost per successful task?]
  M --> N[How does it scale within quotas and budgets?]
  C --> J
  • This is a sequence of questions, not a requirement to answer “yes” to every technology.
  • RAG, tools, agents, and workflows are independent capabilities that can be combined only where needed.
PAUSE & RECALL

Can you explain it without the notes?

The decision mindset

Use your own words. Explain an example and one limitation before checking the explanation.

Check your explanation

A decision framework is a repeatable sequence of questions that turns a requirement into justified architecture. Each added capability should solve a concrete gap. It prevents treating every client request as an opportunity to deploy every AI framework.

CONNECT IT TO YOUR INTERVIEW

Turn this concept into a clear answer.

Practice this concept
YOUR NEXT STEP

Keep connecting the ideas.

Next lesson: Do I need AI? Can deterministic code solve it?

Adapted from 13_AI.MD · “The decision mindset”. Examples are study fragments; framework behavior can depend on your version.