Vibe Engines is free, interactive AI engineering & system design — runs in your browser. Pick a learning path →
Put AI to work on
the customer’s mess.
Most FDE deployments now share a shape: take an LLM and point it at the customer’s messy, specific data. Retrieval over their documents, an agent that drives one of their workflows, evals that decide whether it’s good enough to ship. This is the applied-AI toolkit every modern FDE reaches for — and how to choose among its parts.
The modern FDE runs on AI
A decade ago an FDE integrated software with software. Today, an enormous share of deployments have the same core: take a capable LLM and put it to work on the customer’s specific, messy data. The customer has documents no search can navigate, a workflow that eats an analyst’s afternoon, a decision made by reading unstructured text. The FDE’s job is to aim modern AI at exactly that — and the toolkit for doing so has settled into three reliable patterns.
This handbook is a map of that toolkit, written for the FDE who needs to choose and apply the patterns, not invent them. Each pattern has its own deep handbook on this site; here we cover what each is for, when to reach for it, and how they fit together into a solution you can honestly ship.
The three patterns
Retrieval, agents, and evals. Almost every AI-shaped FDE deployment is some combination of these.
| Pattern | What it does | The FDE uses it to… |
|---|---|---|
| RAG | Retrieve relevant chunks of the customer’s documents and ground the model’s answer in them | Answer questions over their knowledge without retraining, and stay current as docs change |
| Agents | Let the model drive a multi-step workflow by calling tools, deciding what to do next | Automate a workflow that’s more than one call — with a human in the loop for the risky steps |
| Evals | Score the system’s output against a representative test set | Decide if it’s good enough to ship, and catch regressions when a prompt or model changes |
They compose: a typical deployment is a RAG system, sometimes wrapped in an agent that also calls the customer’s tools, gated by an eval that proves it clears the success bar. Understanding each — and, crucially, when not to reach for the fancier one — is the applied-AI half of the modern role.
RAG over the customer’s documents
Retrieval-augmented generation is the workhorse. The customer has a body of knowledge — policies, manuals, tickets, contracts — and wants the model to answer using it, accurately and with citations. RAG does this without retraining: chunk the documents, embed them, retrieve the chunks most relevant to a question, and hand them to the model as grounding so the answer comes from the customer’s truth rather than the model’s guesswork.
Two land squarely on you. Chunking + retrieval quality — bad retrieval means confidently wrong answers, so this is where most of the tuning goes. And access control — a user must only retrieve documents they’re allowed to see, which becomes a real security requirement in a multi-team deployment, not an afterthought.
RAG is usually the first thing to try because it’s fast to stand up, grounds the model in verifiable sources, and updates the moment the documents do. The trade-offs versus other approaches are the subject of the RAG vs fine-tuning handbook.
Agents for workflows
When the task is more than “answer a question” — when it involves several steps, decisions, and actions in the customer’s systems — you reach for an agent: a model that can call tools, observe the results, and decide what to do next. An agent might read a ticket, look up a record, draft a response, and file it — the kind of multi-step workflow that used to need a human at every hop.
Agents are powerful and easy to over-reach with. The FDE discipline is to use the least autonomy that solves the problem: a fixed workflow with one model call beats a free-roaming agent when the steps are known, because it’s more predictable and easier to debug. And for any consequential action — sending an email, moving money, changing a record — keep a human in the loop. Two site handbooks go deep here: agent patterns for the how, and agents vs workflows for the crucial when-not-to.
Evals as the acceptance test
This is the pattern engineers skip and regret. Evals are how "it seems to work" becomes a number you can stand behind.
An AI system without evals is a system you can’t honestly ship, because “it looks good in the demo” doesn’t survive contact with real inputs. An eval is a set of representative examples plus a way to score the output — a test suite for behavior that’s fuzzy rather than exact. For an FDE, it’s the bridge back to discovery: the success metric everyone agreed on becomes the eval you measure against.
What evals give you
- An objective answer to “is it good enough?” — tied to the agreed metric.
- A regression guard when you change a prompt, model, or retrieval.
- Evidence the customer’s stakeholders can trust.
How to start
- Collect real examples with known-good answers from the customer.
- Pick a scoring method (exact match, an LLM judge, a task metric).
- Run it on every change; make the number visible.
Evals turn AI from a vibe into engineering. They’re deep enough to warrant their own study — agent evals and evals in CI — and worth building a reflex for on the interactive challenges.
Choose the pattern — and ship honestly
The meta-skill is restraint: reach for the simplest pattern that clears the bar. A well-crafted prompt beats RAG when the knowledge fits in context; RAG beats fine-tuning when the need is knowledge, not behavior; a fixed workflow beats an agent when the steps are known. Complexity is a cost you pay in reliability and debuggability, so add it only when a simpler pattern demonstrably falls short.
| If the need is… | Reach for… |
|---|---|
| The model to behave / format differently | Better prompting, then fine-tuning |
| Answers grounded in the customer’s documents | RAG |
| A multi-step workflow with actions | An agent (least autonomy that works) |
| To know if any of it is good enough | Evals — always |
And ship it honestly. Most AI solutions aren’t perfect, and that’s fine if the workflow is designed so mistakes are caught, not blindly acted on. Define the good-enough bar in discovery, keep a human in the loop for consequential decisions, be upfront about failure modes, and — because the model reads untrusted customer content — treat every input as potentially adversarial (the security handbook covers prompt injection). An FDE who ships an honest 85% that safely handles the other 15% delivers real value; one who oversells a fragile 95% loses the customer the first time it breaks. That honesty — about what the system can and can’t do — is the last piece of the whole FDE craft.
The gate that catches what an average hides
Evals are the pattern engineers skip and regret. This is the smallest version that is actually a control rather than a document.
Everything above produces a number. A number on a dashboard changes nothing — the prompt still gets edited on a Friday, the model still gets upgraded, and the regression still ships. The transition from “we have evals” to “evals are a control” happens at exactly one moment: when someone’s pull request is refused.
Overall score
Against the human baseline — how often two of their experts agree with each other — not against a round number from a sales meeting.
Error budget
On the high-cost class specifically. Costs are asymmetric: a mis-routed routine invoice costs minutes, an auto-approved one costs a great deal more.
Regressions
The list of cases that used to pass and now fail must be empty. This is the assertion that earns its keep.
res = run_golden_set(system, cases) # 100–300, stratified, FROZEN
assert res.overall >= 0.72, "below the agreed human baseline"
assert res.high_cost_error_rate <= 0.02, "error budget blown"
assert res.regressions == [], "cases that used to pass now fail"
assert res.p95_latency_ms <= 4000 and res.cost_per_case <= 0.04
# and the line reported BESIDE every judge score, always:
print(f"judge agrees with humans on {res.judge_calibration:.0%} of graded cases")
# a judge is a measuring instrument. an instrument without a
# calibration figure is decoration, and you cannot tell a real
# regression from a judge quirk without it.
Two disciplines keep the gate honest over time. The golden set is frozen — changing a case is a reviewed decision with a recorded reason, the same bar as a schema migration, because the most common way an eval pipeline dies is a failing case being quietly edited on the reasonable-sounding grounds that it was wrong anyway. And the judge model is pinned, because upgrading it re-baselines every historical score.
A one-click correction control in the product turns six weeks of real usage into labelled data. It is the cheapest labelling pipeline available, it is the only source of the cases you did not think of, and almost nobody builds it before they need it. Full treatment in evals for client work; the method is playable in the eval builder lab.
Worked example: one prompt change through the gate
Say you have deployed an invoice-routing assistant. The frozen golden set has 200 cases, 40 of them in the high-cost class (invoices that would be auto-approved). A teammate opens a PR that rewrites the prompt. The gate from the deep dive above runs on both versions. Counts and scores are illustrative.
| Assertion | Threshold | Current prompt | New prompt |
|---|---|---|---|
| Overall score | ≥ 0.72 | 158 / 200 = 0.79 ✓ | 166 / 200 = 0.83 ✓ |
| High-cost error rate | ≤ 0.02 | 0 / 40 = 0 ✓ | 2 / 40 = 0.05 ✗ |
| Regressions | none | baseline | 3 cases that passed now fail ✗ |
| p95 latency | ≤ 4,000 ms | 3,100 ms ✓ | 3,400 ms ✓ |
| Cost per case | ≤ $0.04 | $0.021 ✓ | $0.026 ✓ |
| Judge agrees with humans | reported | 91% | 91% |
| Verdict | in production | PR refused |
The new prompt fixed 11 cases and broke 3, so the score rose by 8 (158 + 11 − 3 = 166). A dashboard would show a better system. Two of the 3 broken cases are high-cost invoices, which is the failure the client pays for. Only the regression list and the error budget see it. Note the budget’s resolution too: with 40 high-cost cases a single error is 2.5%, already over 2%. You need at least 50 cases in that class before one error fits inside the budget.
Cost and trade-offs: choosing the pattern
Here Time is the effort to stand it up, Space is what you then have to run and maintain, and Why is when it is worth it.
| Case | Time | Space | Why |
|---|---|---|---|
| Better prompt | Hours | One prompt under version control | When the knowledge fits in context. Try it first. |
| RAG | Days: chunking, embeddings, retrieval tuning | An index to keep in sync, plus per-user access control | When answers must come from the customer’s changing documents |
| Fine-tuning | Training data, runs and evals per version | A model artefact to re-train when needs change | When the gap is behaviour or format, not knowledge |
| Fixed workflow | Code the known steps around one or more model calls | Normal code: easy to log and debug | When the steps are known in advance |
| Agent | Tools, guardrails and approval steps | Paths you cannot list in advance, so harder to test | Only when the next step depends on what the last one found |
| Evals | Collect and label 100 to 300 real cases | A frozen set, a pinned judge, a gate in CI | Always: without them you cannot say any of the above works |
Each row down the table adds moving parts. Move down only when an eval shows the row above falls short.
Common mistakes
- Reaching for an agent first
A demo agent looks impressive and fails in ways nobody can reproduce. If you can write the steps on a whiteboard, code them as a workflow and use the model only where judgment is needed.
- RAG without access control
If retrieval ignores who is asking, a junior user’s question can surface the board pack. Filter by the user’s permissions at retrieval time, not after the answer is written.
- A golden set from the demo
Cases you wrote yourself test what you already thought of. Build the set from real customer inputs, with answers their experts agree on, stratified so the rare costly cases are in it.
- Editing a failing golden case
A case that fails is the most valuable line in the set. Change it only as a reviewed decision with a recorded reason, the way you would a schema migration.
- Reporting one average
An average hides a few expensive failures among many cheap wins, as in the worked example. Report the high-cost class and the regression list beside it.
Where this shows up in production and interviews
- Discovery to acceptance
The success metric agreed in discovery, such as “85% right with the rest flagged”, becomes the gate’s threshold. A threshold nobody agreed to is a number you will argue about later.
- Security review
The customer’s security team will ask who can retrieve what, and what the model may do on its own. Per-user retrieval filters and human approval on consequential actions answer both.
- Handover
When you leave, the customer’s team inherits the system. A frozen golden set, a pinned judge and a gate in CI let them change prompts without you.
- The interview version
Given a messy client problem, say which pattern you would start with and why the simpler ones fall short. Then say how you would measure it. Saying “evals” before you are asked is the strongest signal you can give.
Check yourself
A client’s policy manual is 30 pages and changes twice a year. They want a Q&A assistant. RAG, fine-tuning or a prompt?
Start with a prompt that includes the manual, if it fits in the model’s context. It is the simplest pattern that clears the bar, and an update means editing the prompt. Move to RAG when the corpus outgrows the window or users need different subsets.
Overall score went from 0.79 to 0.83. Should the PR merge?
Not on that number alone. Check the regression list and the high-cost error rate. In the worked example the same rise hid two broken high-cost cases, and the gate refused it.
Your high-cost class has 40 cases and the budget is 2%. What does a single error do?
It blocks the PR: 1 / 40 = 2.5% > 2%. With fewer than 50 cases the budget really means zero errors. Either grow the class to at least 50 or state the budget as a count.
The task is: read a ticket, look up the account, draft a reply, send it. Agent or workflow?
A fixed workflow: the steps are known. Use the model to draft, and put a human approval before the send, because sending is consequential.
Quick answers
What AI patterns does a forward deployed engineer use most?
Three dominate. RAG (retrieval-augmented generation) puts an LLM to work over the customer’s own documents by retrieving relevant chunks and grounding answers in them. Agents let a model drive a multi-step workflow by calling tools, with a human in the loop for consequential actions. And evals — a test set with a scoring method — act as the acceptance test that decides whether the solution is good enough to ship.
When should you use RAG versus fine-tuning?
Reach for RAG when the need is knowledge — the model must answer using the customer’s specific, changing documents; retrieval grounds it without retraining and updates as the documents do. Reach for fine-tuning when the need is behavior or format — a consistent style, structure, or task the base model doesn’t do well. Most FDE deployments start with prompting plus RAG, and only fine-tune if a clear behavioral gap remains.
What are evals and why do they matter to an FDE?
An eval is a set of representative examples plus a way to score the model’s output against them — effectively a test suite for an AI system. For an FDE, evals are the acceptance test: they turn "it seems to work" into a measured number tied to the success metric agreed in discovery. They also catch regressions when you change a prompt or model, and give the customer objective evidence the solution is good enough.
How do you ship an AI solution honestly when it isn’t 100% accurate?
Define a good-enough bar in discovery (e.g. "85% correct with the rest flagged for a human saves four hours a day"), design the workflow so the model’s mistakes are caught rather than acted on blindly, and keep a human in the loop for consequential decisions. Be upfront about failure modes and measure them with evals. An AI system that is honestly 85% accurate and safely handles the other 15% beats one that pretends to be perfect.
Explore the topic
See this alongside everything else on the same subject — handbooks, system designs, challenges and tools, in one place.
More Handbooks
- The Agent Evaluations HandbookA self-contained handbook on evaluating AI agents — theory, interactive widgets, and practical guidance. Trajectory evals, tool-use scoring, LLM-as-judge, observability, and reliability for PMs, engineers, and founders.Read →
- The Agent Patterns HandbookThe design patterns behind every LLM agent — the ReAct Thought–Action–Observation loop, tool/function calling, plan-and-execute, reflection, memory, multi-agent orchestration, and the failure modes (loops, hallucinated tools, recovery, human-in-the-loop) that break agents in production.Read →
- The RAG HandbookRetrieval-augmented generation end to end — why LLMs need it, chunking, embeddings and vector search, hybrid retrieval, two-stage reranking, grounded generation with citations, and how to evaluate a RAG system so a quietly-drifting index never fools you.Read →
- The Vector Databases HandbookHow vector search actually works — why brute-force kNN doesn't scale, distance metrics, approximate nearest neighbor, the HNSW, IVF and product-quantization indexes and their recall/latency/memory tradeoffs, metadata filtering, updates, scaling, and when you need a dedicated vector DB vs pgvector.Read →
- The Kubernetes HandbookThe one idea under all the YAML — declare desired state, and a control loop makes reality match. Covers the orchestration problem, pods, deployments and replicasets, services and networking, the reconciliation loop and self-healing, the scheduler, config/secrets and health probes, autoscaling, and when you actually need Kubernetes.Read →
- The Observability HandbookSeeing inside production — monitoring vs observability, the three pillars (metrics, logs, traces) and what each answers, structured logging, metric types and the cardinality trap, distributed tracing, the golden signals and SLIs/SLOs/error budgets, alerting on symptoms not causes, and correlating all three during an incident.Read →