Learn

Applied GenAI: RAG, agents & tools

Build LLM systems that are grounded, bounded and debuggable, not just impressive in a demo.

Roadmap: AI foundations & first builds, Production GenAI & integration

Why it matters

Most FDE roles today are about deploying AI. The hard part isn't calling a model. It's choosing the simplest design that works, keeping the model away from things it shouldn't decide, and making failures visible. Interviewers actively mark down candidates who reach for agents when a workflow would do.

What it's made of

  • LLM fundamentals: tokens, embeddings, context windows
  • Structured outputs and writing prompts as specs
  • Production RAG: ingestion, chunking, hybrid search, reranking, citations
  • Choosing between rules, RAG, tools, fine-tuning and agents
  • Workflow patterns (chain, route, parallelise) before agents
  • Tool calling with schemas, allow-lists and step limits
  • Human approval for irreversible actions
  • MCP and agent-to-agent protocols, at a working level

Pick the right tool for each job

Before choosing an architecture, sort the problem's parts:

  • Explaining with citations from documents → retrieval (RAG).
  • Live data, calculations or actions → tool calls to real systems.
  • Eligibility, thresholds, permissions → plain deterministic code.
  • Anything irreversible, regulated or financial → human approval.
  • A stable, repeated style or classification at high volume → consider fine-tuning, last.

Workflows before agents

Most production systems are workflows: a fixed sequence of steps where the model does one judgment task each time. They're predictable, testable and cheap. Reach for an agent, where the model chooses its next step, only when the path genuinely can't be known in advance. Even then, give it explicit state, a step limit, a cost ceiling and an allow-list of tools.

Autonomy is a dial, not a switch

Grant the model authority in steps, and only move up when evals and trust support it:

  • Suggest: the model drafts, a human does everything.
  • Prepare: the model fills in the action, a human clicks send.
  • Auto-run low-risk, reversible actions, with an audit trail.
  • Human-approved for high-impact actions.
  • Prohibited: some actions never get automated.

When an answer is wrong, find which layer failed

Debug in order. Was the right document retrieved at all? Was it retrieved but cut from the context? Was it in context but the answer ignored it? Was the answer grounded but unhelpful? Each has a different fix (ingestion, ranking, context assembly, or prompt), and editing the prompt only fixes the last one.

Mid-level looks like

Builds a working RAG pipeline with sensible chunking and prompts.

Senior looks like

Separates where the model reasons from where code controls execution, sizes autonomy to risk, and can explain exactly what RAG won't fix.

Common pitfalls

  • "Let the model decide what to do next" with no state, limits or approvals.
  • Calling something an agent when it's really a fixed workflow (that's fine; just call it one).
  • Fixing every bug by editing the prompt instead of the data or retrieval.
  • Applying permission filters after reranking, so restricted text still influences answers.

Practice drills

  1. Drill 1

    Build a ticket classifier with structured output (an enum of categories). Then harden it for tickets with two intents and tickets that are too vague to classify.

    A strong answer: Schema-validated output, a multi-label or primary/secondary design, an explicit "needs human" class, and measured agreement on samples.

  2. Drill 2

    A finance team wants an agent that reads dispute emails, checks the ERP and issues credit notes. Design it.

    A strong answer: Draft-only above a threshold, an idempotent credit-note tool, email treated as untrusted input, an audit trail, a kill switch and stop conditions.

  3. Drill 3

    Take an "agent" design and rewrite it as a deterministic workflow. Justify the one step that keeps model judgment.

    A strong answer: Clear reasoning about where uncertainty actually lives, and fewer moving parts without losing capability.

Best resources for this skill

Repos, courses, articles and podcasts, ranked by how much they teach.

Read next

Next skillEvaluation & quality