FDEInterviews logoFDE/Interviews

RAG & Agent System Design

53 questions
0 of 53 done · 10 unlocked for you
DONEUNLOCKEDLOCKED

RAG & AI Agent Interview Questions

Retrieval pipelines, chunking, reranking, tool-using agents, guardrails, multi-tenancy and eval harnesses: the modal FDE design round at OpenAI, Anthropic, Sierra, Glean and Scale.

Grounded in real Forward Deployed Engineer interview loops and written to a senior-engineer editorial bar.

THE ONE-PAGE VERSION
Infographic of RAG and agent topics for FDE interviews: retrieval and chunking, reranking, tool-using agents and guardrails, and evaluation harnesses.
↧ DownloadShare on X ↗Share on LinkedIn ↗
You have 10 free answers unlocked here.Sign in free for 10 more · 33 are premium.
01–22Foundationsthe vocabulary every loop assumes you already have0/22 done
23–41Core loopsthe questions every loop actually asks0/19 done
42–53Field scenariosthe messy, half-specified problems from real deployments0/12 done

The concepts behind RAG & Agent System Design

The vocabulary and mental models these questions assume, from our curriculum. Start with the foundations free; the deeper, interview-defining ideas are part of premium.

Foundational
Retrieval-Augmented Generation (RAG)RAG grounds a language model in your own data by retrieving relevant passages at query time and putting them in the prompt, so the model answers from real sources instead of memory. It is the default pattern for almost every enterprise FDE deployment, which is why nearly every loop tests it.
Foundational
Vector DatabasesA vector database stores embeddings alongside metadata and answers nearest-neighbor queries fast using approximate indexes. The real interview question is not how they work but when you actually need one instead of a library or plain Postgres with pgvector.
Core
Sign in
Hybrid Search (Lexical + Vector)Hybrid search runs a keyword retriever (BM25) and a dense vector retriever side by side, then merges their result lists, because each one misses cases the other catches. Vectors lose exact codes and rare jargon, BM25 loses paraphrase, and combining them with Reciprocal Rank Fusion usually beats either alone.
Core
Sign in
Chunking StrategiesChunking is how you split documents into the units you embed and retrieve, and it quietly sets the recall ceiling for your entire RAG system. Get the size, boundaries, and metadata wrong and no reranker or prompt can recover the answer that never got retrieved.
Core
Sign in
Reranking and Two-Stage RetrievalTwo-stage retrieval pairs a cheap recall-heavy first stage that pulls dozens of candidates with a precise reranker that re-scores each one against the query. It is the standard fix when vector search returns relevant-ish chunks but the right one is not in the top few, and it trades a little latency for a lot of precision.
Core
Sign in
Approximate Nearest Neighbor (ANN)Brute-force vector search is O(N*d) per query and falls apart at millions of vectors, so ANN trades a sliver of recall for orders-of-magnitude speed. The two dominant families are IVF (cluster then probe nearby cells) and HNSW (walk a navigable graph), with product quantization to shrink memory. The non-negotiable habit is measuring recall@k against a brute-force baseline.
Foundational
AI Agents and Tool UseAn agent is a language model wrapped in a loop that lets it choose tools, act, observe the result, and decide what to do next. The skill interviewers test is judgment: knowing when that loop earns its unpredictability and when a fixed pipeline is cheaper, faster, and safer.
Advanced
🔒 Premium
Agent MemoryAgent memory is how an agent carries state across turns and sessions. Short-term memory is the conversation and scratchpad living inside the context window, bounded and expensive. Long-term memory is an external store the agent writes to and retrieves from on demand, usually via RAG, so it can recall facts from last week without holding them in the prompt. FDE loops probe this because the hard parts, summarization, what to persist, and stale or contradictory memory, are where agents quietly break.
Unlock all 53 answers · ₹2,000 / $25