AI Engineering

Atlas

Glossary

One line each. Follow a term for the layered explanation.

“

“It must be 100% accurate” · FDE
Reframe from perfection to risk: compare with today’s error rate and design how errors are caught.

A

A2A and AGENTS.md · Agents
Agent-to-agent communication (A2A) and repo instructions for coding agents (AGENTS.md).
Adoption & change management · FDE
A working system nobody uses is a failed project.
Agent identity & delegated access · Agents
Who is the agent acting as, with which permissions, and how is that proven?
Agent memory types · Agents
Working memory (the context), episodic (past runs), semantic (facts), procedural (how-to).
Agentic RAG · RAG
Retrieval as a tool the model calls, possibly several times, deciding what to search next.
AI-assisted coding rounds · Formats
Some loops now allow (and assess) using an AI coding assistant during the interview.
API design for AI features · Backend
Sync, streaming or async job — pick by how long the work takes and who waits for it.
Assembling and budgeting the context · Context
Deciding what goes in the window, in what order, and how many tokens each part may take.
Async & concurrency · Backend
LLM apps mostly wait on the network — concurrency, not CPU, decides throughput.
Audit logs for AI actions · Security
Who asked, which agent acted, what it did, with which data — reconstructable later.
Auth & secrets · Backend
Authenticate users, authorise every action, and keep API keys out of code, prompts and logs.

B

Baselines · ML basics
Always compare with the simple thing: rules, BM25, logistic regression, the current human process.
Batch APIs & provisioned throughput · Serving
Discounted asynchronous processing for work that can wait; reserved capacity for work that can’t.
Batching: static vs continuous · Serving
Serve many sequences per forward pass — and refill slots as soon as one finishes.
Behavioural rounds for AI roles · Formats
Ambiguity, shipping under uncertainty, saying no to customers, owning a model failure.
Blueprint: analytics / text-to-SQL agent · Blueprints
Questions in plain language, answers from the warehouse — read-only and explainable.
Blueprint: classification & routing at volume · Blueprints
Label millions of items cheaply: small model or fine-tune, confidence thresholds, human audit.
Blueprint: coding assistant · Blueprints
Repo-aware context, sandboxed execution, tests as the verifier, diffs for review.
Blueprint: customer support agent · Blueprints
Grounded answers, account tools behind permissions, refunds with limits, and a clean human handoff.
Blueprint: deep research agent · Blueprints
Orchestrator plans, parallel subagents search, a synthesiser writes a cited report.
Blueprint: document processing pipeline · Blueprints
Ingest → classify → parse → extract to schema → validate → human review for low confidence → system of record.
Blueprint: enterprise search over permissioned docs · Blueprints
Connectors with ACL sync, hybrid retrieval, permission filters from SSO, citations.
Blueprint: summarisation & meeting notes · Blueprints
Long inputs, structured outputs, factual consistency.
BM25 (keyword search) · RAG
The classic ranking function: rare terms that appear often in a short document score high.
Browser & computer-use agents · Agents
Agents that operate a browser or desktop through screenshots, clicks and typing.

C

Caching, including semantic caching · Backend
Exact caches for identical requests, semantic caches for similar ones — keyed per tenant.
Calibrating a judge against humans · Evals
Measure how often the judge agrees with expert labels before you let it gate releases.
Calibration · ML basics
When the model says 80%, is it right about 80% of the time?
Chain-of-thought · Context
Asking the model to reason step by step before answering — helps some tasks, hurts others.
Choosing a model · LLMs
Pick on your eval set, then on latency, cost, context, and where the data may go.
Choosing embedding models · RAG
Dimensions, languages, domains, cost — and the rule that you can’t mix them.
Chunking · RAG
Splitting documents into retrievable pieces — big enough to make sense alone, small enough to be precise.
Citations & grounding · RAG
Every claim points at the passage it came from, and answers say “not in the documents” when it isn’t.
Class imbalance · ML basics
When the interesting class is rare, sample, weight and measure accordingly.
Code-based checks · Evals
Deterministic assertions: valid JSON, right tool, cited IDs exist, required facts present.
Coding agents · Agents
Agents that read a repository, edit files, run commands and use tests as their feedback signal.
Coding rounds for AI roles · Formats
Practical builds: an agent loop, a RAG pipeline, a chunker, BM25, retries, a streaming parser.
Compaction & summarisation · Context
Shrinking long histories so long tasks keep fitting in the window.
Compliance vocabulary · FDE
SOC 2, ISO 27001, GDPR, HIPAA, DPAs and the EU AI Act — what each means for your design.
Context windows · LLMs
The maximum tokens a model can attend to in one call — input and output together.
Contextual chunk headers · RAG
Prepend a short description of where a chunk comes from before embedding and indexing it.
Cost per request & back-of-envelope maths · Serving
(input tokens × input price + output tokens × output price) × calls per request — then multiply by traffic.
Customer-conversation simulation · Formats
“The bot feels dumb. What do you change first?” — turn a vague complaint into a plan.

D

Data exfiltration · Security
Getting private data out through the model: links, images, tool calls, emails.
Data retention & residency · Security
Where prompts and outputs are processed and stored, for how long, and who can see them.
Database indexing · Backend
B-tree for equality and ranges, GIN for full-text and JSON, HNSW/IVFFlat for vectors — and EXPLAIN to check.
Demos & handoff · FDE
Show the agreed metric on the customer’s data, then leave something they can run without you.
Deployment · Backend
Containers or serverless, timeouts that fit LLM latency, environments and gradual rollouts.
Deployment models: SaaS, VPC, on-prem · FDE
Where the system runs decides what the security team will approve.
Designing for uncertainty · Product
Show sources, signal confidence, make “I don’t know” acceptable and corrections easy.
Determinism and reproducibility · LLMs
Why the same prompt at temperature 0 can still give different answers.
Direct prompt injection · Security
The user types instructions that override yours: “ignore previous instructions and …”.
Discovery with a customer · FDE
Find the workflow, the pain, the baseline, the data and the decision-maker before proposing anything.
Distillation · Adaptation
Train a small, cheap model on a big model’s outputs for one task.
Document parsing · RAG
Turning PDFs, slides, HTML and scans into clean text with structure — the step most RAG quality is lost in.
Drift & production monitoring · Evals
Inputs, models and data change under you; watch for it.
Durable execution · Workflows
Workflows that survive crashes, deploys and week-long waits by persisting every step.

E

Embeddings · LLMs
Fixed-length vectors that place similar meanings close together.
Error analysis · Evals
Read real traces, name the failure patterns, count them — then build evals for the biggest ones.
Eval design questions · Formats
“How do you know it’s helping and not making things worse?”
Evaluating agents · Evals
Outcome, trajectory and reliability: did it finish, did it take a sane path, does it do it every time?
Evaluating retrieval and answers · RAG
Measure retrieval and generation separately, or you can’t tell which one broke.
Evaluator-optimizer · Workflows
One call generates, another critiques against criteria, loop until it passes.

F

Fallbacks across providers · Backend
When the primary model is down, slow or rate-limited, fail over to another — tested in advance.
Feedback capture · Product
Make it effortless to say “this was wrong” — and capture why.
Feedback loops · Evals
Turn user signals and failures into better prompts, data and evals — continuously.
Few-shot examples · Context
Show, don’t tell: a few input→output examples in the prompt.
Fine-tuning embedding models · Adaptation
Adapt retrieval to your domain’s vocabulary with query–passage pairs.

G

Golden datasets · Evals
A curated, versioned set of inputs with expected outputs or criteria you run every change against.
GPU autoscaling & cold starts · Serving
GPUs take minutes to add and models take time to load — scale ahead of demand.
GPU memory maths · Serving
Weights + KV cache + activations must fit; whatever’s left decides how many users you can serve.
GraphRAG · RAG
Extract entities and relations into a graph to answer multi-hop and “across the corpus” questions.

H

Hallucination · LLMs
Fluent, confident output that isn’t supported by facts or the given context.
Handoffs · Agents
One agent transfers the conversation to another specialist agent.
Hosted APIs vs self-hosting · Serving
Pay per token with zero ops, or pay per GPU-hour and run the stack yourself.
Human handoff · Product
When the AI can’t help, get the user to a person — with context, quickly.
Human-in-the-loop · Agents
Pause for a person before irreversible, expensive or uncertain actions.
Hybrid search (BM25 + dense) · RAG
Run keyword and vector search together and fuse the rankings.

I

Idempotency keys · Backend
A client-supplied key that makes retrying a POST safe.
Indirect prompt injection · Security
Instructions hidden in content the model reads — web pages, emails, documents, tool results.
Injection-resistant design patterns · Security
Architectures that limit what injected text can do: quarantined readers, plan-then-execute, action selectors.
Instruction hierarchy · Context
System > developer > user > content: who gets to give orders.
Integrating with customer systems · FDE
SSO, data connectors, existing workflows and the systems of record — where most of the time goes.
Interruptions (barge-in) · Voice
The user talks while the agent is speaking: stop, listen, and remember what was actually said.

J

Jailbreaks · Security
Tricks that get a model to produce content its safety training should refuse.
Just-in-time context & progressive disclosure · Context
Let the agent fetch what it needs through tools instead of preloading everything.

K

Keeping data fresh · RAG
The index is a copy; copies go stale. Sync incrementally and know how stale you are.
KV cache · LLMs
The stored keys and values of every past token, so generation doesn’t recompute them.

L

Large toolsets · Agents
Hundreds of tools don’t fit in context: search for tools, call in parallel, or let the model write code.
Latency perception · Product
Streaming, progress and partial results make 5 seconds feel like 1.
Latency: TTFT and tokens/s · LLMs
Time to first token is what users feel; output tokens per second is how long the rest takes.
Leakage & data splits · ML basics
If test data leaks into training — or few-shot examples — your scores lie.
Live debugging rounds · Formats
“This agent loops forever on some inputs. Find out why and fix it.”
LLM gateways · Serving
One internal endpoint for all models: routing, fallbacks, keys, budgets, caching and logs.
LLM-as-judge and its biases · Evals
Use a model to grade outputs — after you’ve measured how much to trust it.
Logprobs & confidence · LLMs
Token-level probabilities you can use as a (rough) confidence signal.
Long context vs RAG · Context
Send everything, or retrieve the right part? Depends on size, change rate, cost and permissions.
Long-running jobs · Workflows
Work that takes minutes to hours: accept, queue, report progress, notify when done.
LoRA · Adaptation
Fine-tune by learning small low-rank matrices next to frozen weights.

M

MCP & tool supply-chain security · Security
Tool descriptions are prompts; tool servers are dependencies; both can be malicious.
Metadata filters & per-user permissions · RAG
Retrieval must only return what this user may see — enforced in the query, not the prompt.
Model Context Protocol (MCP) · Agents
An open standard for connecting models to tools, resources and prompts served by separate processes.
Model routing & cascades · Adaptation
Send each request to the cheapest model likely to handle it; escalate when unsure.
Model versions & deprecations · Adaptation
Models change and retire on the vendor’s schedule; pin versions and plan upgrades.
Moderation · Security
Classify inputs and outputs against your content policy.
Multi-agent patterns · Agents
Orchestrator-worker, supervisor, handoffs — and the question of whether you need more than one agent.
Multi-tenancy · Backend
Isolate customers’ data, costs and limits across database, index, cache, logs and models.
Multi-tenant indexes · RAG
One index per tenant, a shared index with tenant filters, or something in between.
Multimodal inputs · LLMs
Images, PDFs and audio as model input — and what they cost in tokens.

O

Online metrics & A/B tests · Evals
Offline evals predict; production metrics decide.
Open-weight vs closed models · Adaptation
Control, privacy and cost at scale vs capability, convenience and zero ops.
OpenTelemetry GenAI conventions · Evals
Standard attribute names for LLM spans so traces work across tools.
Orchestrator-workers · Workflows
A central LLM decides the subtasks at run time and delegates them to workers.
Output validation · Security
Treat model output as untrusted input to the rest of your system.
OWASP Top 10 for Agentic Applications · Security
Published December 2025: the risks specific to agents that plan, use tools and remember.
OWASP Top 10 for LLM applications (2025) · Security
The standard checklist: injection, disclosure, supply chain, poisoning, output handling, agency, prompt leakage, vectors, misinformation, unbounded consumption.

P

PagedAttention · Serving
Store the KV cache in fixed-size blocks, like virtual memory pages.
Parallelisation (sectioning & voting) · Workflows
Run independent LLM calls at once: different subtasks (sectioning) or the same task several times (voting).
Parent-child (small-to-big) retrieval · RAG
Search over small chunks for precision, hand the model the bigger section for context.
PII handling · Security
Find, minimise, mask and control personal data before it reaches models, logs and caches.
Planning · Agents
Make a plan first, then execute it step by step (and re-plan when reality differs).
Postgres + pgvector · Backend
Vectors in the same database as your data: joins, filters, transactions and row-level security for free.
Precision, recall & F1 · ML basics
Of what you flagged, how much was right (precision); of what was there, how much you found (recall).
Preference tuning: RLHF and DPO · Adaptation
Teach a model which of two answers is better, not just what one good answer looks like.
Prefill vs decode · Serving
Prefill reads the prompt in parallel (compute-bound); decode writes one token at a time (memory-bound).
Prefix caching (self-hosted) · Serving
Reuse KV cache across requests that share a prefix: system prompt, tools, few-shot examples.
Project deep dives · Formats
Walk through something you built: problem, baseline, design, metrics, what failed, what you’d change.
Prompt caching · LLMs
Reuse the processed prefix of a prompt across calls: cheaper and faster input.
Prompt chaining · Workflows
Break a task into fixed sequential LLM calls, with checks between them.
Prompt versioning & templates · Context
Prompts are code: version them, review them, test them, roll them out gradually.
Prompting vs RAG vs fine-tuning · Adaptation
Prompting changes instructions, RAG changes knowledge, fine-tuning changes behaviour.
Python async specifics · Backend
The event loop, the GIL, def vs async def in FastAPI, and free-threaded Python.

Q

QLoRA · Adaptation
LoRA on top of a 4-bit quantised base model — fine-tuning big models on one GPU.
Quantisation · Serving
Store weights (and sometimes activations or KV cache) in fewer bits: less memory, faster decode, some quality risk.
Query rewriting · RAG
Turn what the user typed into what the index can answer.
Queues & workers · Backend
Move slow or bursty AI work off the request path; workers process at a controlled rate.

R

Rate limits & backoff · Backend
Providers limit requests and tokens per minute; you limit your users. Both need graceful handling.
Reasoning models · LLMs
Models trained to think (generate hidden reasoning tokens) before answering.
Red teaming · Security
Attack your own system on purpose, systematically, before someone else does.
Reflection & self-correction · Agents
Critique your own output and try again — works best with an external signal.
Regression tests & CI gates · Evals
Every prompt, model, chunking or tool change runs the eval suite and can be blocked.
Reinforcement fine-tuning with graders · Adaptation
RL on tasks with checkable answers, using a grader instead of human preferences.
Reranking · RAG
A slower, smarter model reorders the top candidates.
Resumable streams · Backend
If the connection drops mid-answer, reconnect and continue instead of regenerating.
Retries & idempotency · Workflows
Retry transient failures with backoff — and make sure retrying can’t do things twice.
ROC vs precision-recall curves · ML basics
ROC-AUC flatters on imbalanced data; PR curves show what you’ll actually get.
Routing · Workflows
Classify the input, then send it to a specialised prompt, model or pipeline.

S

Sagas & compensating actions · Workflows
Multi-step side effects without distributed transactions: each step has an undo.
Sampling: temperature, top-k, top-p · LLMs
How the next token is picked from the model’s probability distribution.
Sandboxing · Agents
Run model-generated code and actions where a mistake can’t hurt anything.
Security reviews · FDE
Questionnaires, architecture reviews and pen tests — answered with data flows and controls.
Serving engines (vLLM and friends) · Serving
Software that turns a model into a high-throughput API: batching, KV-cache management, kernels.
Speculative decoding · Serving
A small draft model guesses several tokens; the big model checks them in one pass.
Speech-to-speech models vs cascades · Voice
One model hears and speaks directly — lower latency and better prosody, less control.
State machines, graphs & checkpoints · Workflows
Model the flow as explicit states and transitions; save state after every step.
Statistics for evals · Evals
Confidence intervals, run-to-run variance and sample sizes — so “v2 is better” means something.
Stopping conditions & budgets · Agents
Every agent run needs limits: steps, tokens, money, time — and a defined way to stop.
Streaming · LLMs
Send tokens to the user as they’re generated instead of waiting for the whole answer.
Streaming over SSE vs WebSockets · Backend
SSE for one-way token streams over plain HTTP; WebSockets when both sides talk continuously.
Structured outputs · LLMs
Getting JSON that matches a schema every time, not most of the time.
Success metrics for AI deployments · FDE
Business outcome, model quality and operational metrics — agreed before building.
Supervised fine-tuning (SFT) · Adaptation
Train on input→ideal output pairs so the model imitates them.
Synthetic test data · Evals
Generate test inputs with an LLM along explicit dimensions — then filter with humans.
System prompts · Context
The standing instructions: role, rules, tone, tools and output format.

T

Telephony & WebRTC · Voice
How audio actually reaches the agent: phone networks (SIP) or browsers and apps (WebRTC).
Tensor & pipeline parallelism · Serving
Split a model across GPUs when it doesn’t fit on one.
Testing LLM applications · Backend
Unit tests with mocked models, contract tests for tools, property tests for parsers, evals for behaviour.
Text-to-SQL · RAG
Let the model write queries against your database — read-only, schema-aware and checked.
The agent loop (ReAct) · Agents
Model decides → calls a tool → reads the result → decides again, until done.
The AI system design round · Formats
Design an LLM-powered system end to end — and show how you’d know it works.
The decomposition round · FDE
Break a vague real-world problem into parts, with data and users in mind, while the interviewer pushes back.
The framework landscape · Workflows
LangGraph, Temporal, the vendor agent SDKs and the managed agent platforms — and when plain code is enough.
The learning round · FDE
Pick up an unfamiliar library or codebase fast and extend it in stages.
The lethal trifecta & the Rule of Two · Security
Private data + untrusted content + a way to communicate out = exfiltration waiting to happen.
The re-engineering (debugging) round · FDE
Given broken code and its intended behaviour, find and fix the problem systematically.
The ROI / value case · FDE
Translate the system into money: time saved, errors avoided, revenue gained, minus what it costs.
The take-home · Formats
Build a small LLM system and measure it: e.g. 50 docs → Q&A + a 20-question eval set + recall@5 and faithfulness.
The tech-screen classic · Formats
“You have a 200-page PDF and a question. What happens between Enter and the answer?”
The voice agent pipeline · Voice
Speech-to-text → model → text-to-speech, streamed end to end.
The voice latency budget · Voice
Aim for roughly 800 ms or less from end of speech to first audio.
Throughput vs latency · Serving
Bigger batches serve more users per GPU but each user waits longer per token.
Timeouts & cancellation · Backend
Every call has a deadline; when the user leaves, stop paying.
Tokens & tokenization · LLMs
Models read and write integer tokens, not characters — and you pay, wait and run out of context per token.
Tool / function calling · LLMs
The model emits a structured request to call your function; your code runs it and returns the result.
Tool design · Agents
Tools are an API for a model: few, clearly named, well described, hard to misuse.
Tool permissions & least privilege · Security
Give the agent the narrowest tools and credentials that do the job — and check every call.
Tracing model and tool calls · Evals
One trace per request: every LLM call, retrieval, tool call and decision, with inputs, outputs, tokens, cost and timing.
Tracking cost and latency · Evals
Cost per request, per conversation, per tenant and per feature — next to quality.
Transactions & isolation levels · Backend
Which anomalies each level allows — and why “check then write” needs a lock or SERIALIZABLE.
Transformer basics at interview depth · LLMs
Attention, prefill vs decode, mixture-of-experts and positional encodings — enough to reason about cost and behaviour.
Turning a vague ask into a scoped POC · FDE
Pick one slice with clear value, available data and a measurable success criterion — and say what’s out of scope.
Typical agent failure modes · Agents
Loops, wrong tools, hallucinated arguments, lost goals, injected instructions and runaway cost.

U

Unbounded consumption (denial of wallet) · Security
Attackers — or bugs — making you pay for huge or endless model usage.
Unit economics of AI features · Product
Cost per task vs value per task, at the volume you expect.

V

Vector indexes: HNSW, IVF, flat · RAG
Approximate nearest-neighbour structures that trade a little recall for a lot of speed.
Vector quantisation & storage maths · RAG
float32 → int8 → binary, product quantisation, and why a billion vectors is a budgeting problem.
Voice activity detection & turn-taking · Voice
Knowing when the user has finished speaking — the hardest small problem in voice.

W

Webhooks · Backend
Push notifications between systems: signed, retried, idempotent.
What a forward deployed engineer does · FDE
An engineer embedded with customers who turns a vague business problem into a working deployment.
When not to use an LLM · Product
Deterministic rules, search, forms or classic ML are often better, cheaper and more reliable.
When not to use RAG · RAG
If it fits in context, changes every minute, or lives in a database, retrieval is the wrong tool.
Workflows vs agents · Workflows
Workflow: code decides the path, LLMs fill in steps. Agent: the model decides the path.