Content & privacy
AI Engineering · INTERVIEW GUIDE

AI Engineering

Learn LLMs, RAG, agents, secure tools, and production AI through practical insurance examples.

Practice this topic
Filters
16 questions

The decision mindset

AI Engineering·Senior engineer decision framework

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.

Advanced3 min read

Do I need AI? Can deterministic code solve it?

AI Engineering·Senior engineer decision framework

Ask what the user actually needs and what the existing system already knows. Exact lookups, arithmetic, validation, and known transitions usually belong in normal code. AI is useful when language/media variation or learned pattern recognition provides value…

Advanced2 min read

Do I need an LLM?

AI Engineering·Senior engineer decision framework

Use an LLM for language transformation, interpretation, synthesis, and bounded proposals. A dedicated classifier, OCR engine, search index, or template may solve the narrower task better. Define acceptable uncertainty and what happens when the model cannot…

Advanced2 min read

Do I need RAG?

AI Engineering·Senior engineer decision framework

Ask whether the answer depends on external knowledge and whether the corpus is too large or variable to supply directly. Use RAG for private/changing knowledge with source references; use exact tools for live records. If a handful of permitted documents are…

Advanced2 min read

Do I need tools? Do I need MCP?

AI Engineering·Senior engineer decision framework

Use narrow tools for fresh data and actions. MCP is useful when approved hosts need a shared discoverable integration, not merely because the model has one function call. Keep the existing business API behind either a direct wrapper or the MCP facade.

Advanced2 min read

Do I need an agent? Do I need LangGraph?

AI Engineering·Senior engineer decision framework

If next steps are fixed, use a sequence of functions or a workflow. If next information actions genuinely vary, a bounded agent may help. Use LangGraph when explicit state, branching, review pauses, or recovery justify it; a short read-only loop can remain…

Advanced2 min read

Should this be a workflow?

AI Engineering·Senior engineer decision framework

Yes when steps depend on durable business state, external events, review, timers, compensation, or repeated retries. Distinguish conversational agent state from the canonical business process. Choose a queue for independent jobs and a durable workflow…

Advanced2 min read

Where is human approval required?

AI Engineering·Senior engineer decision framework

Determine impact, ambiguity, consent, reversibility, and organizational authority. Approval must show the concrete action and bind to its version/hash, actor, scope, and expiry. Recheck current rules at execution; a long wait can invalidate earlier…

Advanced2 min read

How do I secure it?

AI Engineering·Senior engineer decision framework

Map every trust boundary: UI, uploads, parser, retrieval, memory, provider, tools, business APIs, caches, and traces. Minimize information and authority, enforce tenant/object/action checks, constrain egress, validate schemas and rules, and test adversarial…

Advanced2 min read

How do I evaluate it?

AI Engineering·Senior engineer decision framework

Define success, severe failures, and risk-based datasets before optimizing prompts. Separate retrieval from answer checks and agent decisions from actual business outcomes. Include missing information, stale evidence, injections, denied access, retries, and…

Advanced2 min read

How do I observe it?

AI Engineering·Senior engineer decision framework

Trace calls and state transitions, correlate across services/queues, record usage and evidence IDs, and link to business receipts. Audit important actions separately with authenticated actors and durable outcomes. Redact sensitive content and set appropriate…

Advanced2 min read

How much does it cost?

AI Engineering·Senior engineer decision framework

Count every model/tool call, embedding/reranking, infrastructure, retries, and review workload. Optimize cost per successful task subject to quality and privacy constraints. Use context selection, templates, smaller models, caching, batching, and strict agent…

Advanced2 min read

How does it scale?

AI Engineering·Senior engineer decision framework

Estimate request rate and model/tool amplification, provider quotas, concurrency, history size, corpus updates, and review arrival rate. Scale stateless APIs, separate ingestion from chat, bound queues, isolate noisy tenants, and serialize conflicting updates…

Advanced2 min read

Real client decisions

AI Engineering·Senior engineer decision framework

Worked decision: “Automatically approve claims from uploaded photos.” First separate observation from adjudication. Vision can identify proposed observations, OCR can extract document fields, and RAG can retrieve applicable terms. Approval requires…

Advanced2 min read

Stable concepts, framework concepts, and changing APIs

AI Engineering·Senior engineer decision framework

Stable concepts, framework concepts, and changing APIs

Advanced2 min read

A concrete architecture proposal template

AI Engineering·Senior engineer decision framework

For a client, write: Outcome and scope; users and permissions; authoritative data; ordinary-code baseline; AI responsibilities; controlled workflow and approvals; tools/data contracts; failure and reconciliation policy; evaluations; telemetry/audit;…

Advanced2 min read

Difficulty is an editorial estimate. Completion means you chose to mark a question as understood.