← Forward Deployed Engineer
19 min

The AI Toolkit an FDE Uses

The building blocks you must know, how to choose between them, and what interviewers probe.

Lesson 7 of 10
0 done
In plain English

Interviewers expect you to know the main building blocks and to choose with good reasons. Start with the simplest design: a good prompt, then structured output, then search over documents, then tools. Use an agent only when the path changes each time. Always keep a test set.

RAG
The system finds the right documents first, then gives them to the model.
Structured output
A fixed answer shape, such as named fields, that your code can check.
Workflow
A fixed series of steps. It is easier to test than an agent.
Picture it
Add parts only when a test shows a need
1
A good prompt
Clear job, format, examples
2
Structured output
Your code can check it
3
Search over documents
Answers cite sources
4
Tools
The model can act, with checks
5
Agent loop
Only if the path changes each time

Imagine you are the interviewer. You want to hire someone who can build with AI inside a customer's world. You would expect them to know the main building blocks and to choose between them with good reasons. This lesson is that toolkit. It covers prompts, structured output, search over documents, tools, workflows and agents, tests, and cost.

Start with the simplest thing

A strong candidate does not reach for the biggest tool. They start with the smallest design that could work. Then they add parts only when a test shows they are needed. Interviewers listen for this habit. It shows judgment.

The usual order is simple. Try a good prompt first. Add examples. Ask for structured output. Add search over the customer's documents if the model lacks the facts. Add tools if the system must act. Use an agent only if the path changes from case to case.

The building blocks, in plain words

  • Prompt: the instructions you give the model. Clear instructions, a role, a format and a few examples go a long way.
  • Structured output: you ask for a fixed shape, such as JSON with named fields. Your code can then check it and use it.
  • Retrieval, or RAG: the system looks up the right documents first, then gives them to the model. The answer can cite its sources.
  • Tools: functions the model can call, such as look up an order or create a ticket. Your code runs them and checks every input.
  • Workflow: a fixed series of steps. It is easy to test, cheap and predictable.
  • Agent: the model chooses the next step in a loop. It is flexible, and harder to test and control.
  • Evaluation: a test set of real cases that you run after every change.
  • Tracing: a record of every step, so you can find why a result went wrong.

Choosing an approach

Use a table like the one below to think out loud in an interview. The goal is to show the reasoning, not to recite a rule.

choose-an-approach.md
PROBLEM TYPE                         START WITH                          ADD ONLY IF NEEDED
Rewrite, summarize, classify         One prompt + examples              Structured output, a checker
Answer questions from documents      RAG with citations                 Better chunking, reranking, filters
Fill a form from messy text          Structured output + validation     A second pass for hard cases
Do a fixed multi-step job            Workflow of small steps            Retries, human approval
Handle many different requests       Router + a few narrow tools        An agent loop with a step limit
Anything risky (money, legal)        Human approval on the risky step   More tests, tighter limits

ALWAYS: a test set, logging of inputs and outputs, a limit on cost per task

What interviewers probe

  • How do you stop the model from making things up? Good answers mention retrieval, citations, checks and an unsure path.
  • How do you know it works? Good answers describe a test set, a pass mark and what happens when quality drops.
  • What happens when it fails? Good answers include retries, fallbacks and a person in the loop.
  • What does it cost? Good answers estimate tokens per task, then cost per month, and name ways to cut it.
  • How do you keep customer data safe? Good answers cover least access, no secrets in prompts and permission checks in code.
⚠Do not claim a tool does something you have not tried. Interviewers often ask for the exact steps. Say what you built, what broke and what you changed.

Speed and cost basics

Long prompts and big models cost more and respond more slowly. You can cut cost in several ways. Send less text. Use a smaller model for easy steps. Cache repeated work. Run independent steps at the same time. Always measure before and after, so you know the change helped.

→Build one small project that uses each block once: a prompt, structured output, search with citations, one tool and a test set. Then you can describe real choices, not theory.
Key takeaways
  • ✓Start with the simplest design that could work and add parts only when a test shows a need.
  • ✓Know the blocks: prompt, structured output, retrieval, tools, workflow, agent, evaluation and tracing.
  • ✓Be ready to explain how you prevent made-up answers, how you test, how you handle failure, cost and data safety.
  • ✓Describe things you built yourself. Say what broke and what you changed.
Hands-on exercise

Build the toolkit once

  1. Pick a small task, such as sorting support emails into five types.
  2. Make a prompt with a role, a format and three examples. Ask for JSON, and check it in code.
  3. Add a tiny document search so answers cite a source. Add one tool that the model can call.
  4. Write a test set of 20 cases. Record the pass rate before and after each change, and write two lines on what you learned.
Check yourself
Q1Why start with the simplest design?show answer

It is cheaper, faster to test and easier to explain. You add search, tools or agents only when a test shows the simple version fails.

Q2When would you choose a workflow over an agent?show answer

When the steps are known and fixed. A workflow is easier to test, cheaper and more predictable. An agent suits cases where the path changes each time.

Q3How do you reduce made-up answers?show answer

Give the model the right documents, ask for citations, check the output in code, and add an unsure path that sends doubtful cases to a person.

← Rollout, Handover & Keeping the Customer's TrustTesting AI With the Customer →
0 / 10 finished0%