Key takeaways
- AI engineer interviews test LLM fundamentals, RAG, agents and tool use, evaluation, and production concerns (cost, latency, safety).
- The system design round is usually "design a RAG assistant / support bot / agent" — use the framework below.
- A 4-week plan with one end-to-end project beats reading 50 papers.
"AI engineer" became one of the fastest-growing job titles of 2025–26. The interviews are different from classic ML interviews: fewer questions on backpropagation, many more on building reliable products with LLMs. This guide explains what is tested and how to prepare. For 50+ questions with answers and code, see the Generative AI and LLM interview questions.
What the interview loop looks like
| Round | What they test |
|---|---|
| Recruiter / hiring manager | Motivation, AI projects you've shipped, impact |
| LLM fundamentals | Tokens, embeddings, attention, sampling, context windows, hallucinations |
| Coding | Python data manipulation, API integration, async code; sometimes a small RAG or agent task |
| AI system design | Design a RAG assistant, support bot, document-extraction pipeline or agent |
| Evaluation and production | Measuring quality, monitoring, cost/latency trade-offs, safety |
| Behavioral | Ambiguity, shipping under uncertainty, working with product and data teams |
The core topics to master
1. LLM fundamentals
Be able to explain, simply: what a token is and why it drives cost; how embeddings capture meaning; what self-attention does; temperature and top-p; why models hallucinate; and context-window limits.
2. Prompting and structured output
Use system prompts, few-shot examples, delimiters for untrusted data, step-by-step reasoning for complex tasks, and JSON-schema / tool-based structured output validated in code.
3. Retrieval-augmented generation
Chunking strategies, embedding models, vector indexes (HNSW), hybrid search (BM25 plus vectors), re-ranking, metadata filters and permissions, and citations. Know how to evaluate retrieval (recall@k) separately from generation (faithfulness).
4. Agents and tool use
Function calling, the agent loop (plan → act → observe), when a fixed workflow beats an agent, guardrails on tools, step and budget limits, and protocols such as MCP for connecting tools and data.
5. Evaluation
Golden datasets, deterministic checks (schema, regex), LLM-as-judge with rubrics and their biases, offline vs online evaluation, regression gates in CI, and human review.
6. Production
Streaming, caching (prompt caching, semantic caching), model routing, rate limits and retries, observability (traces with prompts, tokens and latency), privacy and PII handling, and prompt-injection defence.
A framework for the AI system design round
Use this structure for "Design an internal knowledge assistant for 5,000 employees":
- Clarify: users, data sources (wiki, PDFs, tickets), permissions, languages, freshness, accuracy expectations, latency and cost budgets
- Ingestion: connectors → parsing (PDF, HTML, tables) → chunking with metadata → embeddings → index; incremental re-indexing on change
- Query path: auth → query rewriting → hybrid retrieval with ACL filters → re-ranking → prompt with citations → streamed answer
- Quality: a golden question set, faithfulness and citation checks, and a feedback loop (thumbs up/down to the eval set)
- Safety: treat retrieved text as data, redact PII, require confirmation for actions, audit logging
- Scale and cost: caching, a small model for routing and simple queries, a large model for hard ones, batch embedding jobs
- Monitoring: latency (time-to-first-token, p95), cost per query, answer-rate vs "I don't know" rate, retrieval hit rate, drift
# The heart of the query path, simplified
def answer(user, question):
q = rewrite(question, history=user.history)
candidates = hybrid_search(q, filters={"acl": user.groups}, k=40)
top = rerank(q, candidates)[:6]
prompt = build_prompt(question, top) # sources wrapped in <doc id=...> tags
for token in llm.stream(prompt, temperature=0.1):
yield token
log_trace(user, question, [d.id for d in top])Coding round: what to practise
- Calling an LLM API with retries, timeouts and streaming
- Parsing and validating structured output with Pydantic
- Implementing chunking, cosine similarity and a tiny in-memory vector search
- An agent loop with two tools and a step limit
- Async Python with concurrency limits (asyncio, semaphores)
- Data wrangling with pandas for evaluation results
A 4-week preparation plan
| Week | Focus | Output |
|---|---|---|
| 1 | Fundamentals, prompting, structured output | Notes and a 20-question self-quiz |
| 2 | Build a RAG app over a real document set | A working prototype with citations |
| 3 | Evaluation, hybrid search, re-ranking, cost and latency optimisation | An eval dashboard with before/after numbers |
| 4 | Agents and tools, safety, system-design practice, mock interviews | 3 designs practised out loud, plus project stories |
Questions to ask your interviewer
- How do you evaluate LLM features before and after launch?
- Which models do you use, and how do you decide when to switch?
- What does the path from prototype to production look like here?
- How do you handle data privacy with model providers?
Next, work through the Generative AI interview questions, brush up on Python and system design, and take the Generative AI quiz.