AI Engineering

AI Engineering

Data & AI

AI engineering as it is asked in interviews: how large language models work, how to prompt them and call them through an API, tool use and structured outputs, retrieval augmented generation, agents and their harness, the Model Context Protocol, evaluation, security and cost. Concepts first, with the Claude API and MCP as the main examples.

What you'll learn

LLM fundamentals: tokens, context window, hallucination, knowledge cutoff

Prompt engineering: system prompt, clear instructions, examples, output format

Messages API end to end: stateless turns, stop reasons, streaming, errors and rate limits

Tool use (function calling) and the agent loop

Structured outputs with JSON Schema and validation

Embeddings, vector search and retrieval augmented generation (RAG)

Model Context Protocol (MCP): hosts, clients, servers, tools, resources, prompts

Context engineering: compaction, memory, subagents

Prompt caching, batch processing and cost control

Evaluation: test sets, grading by code, LLM-as-judge

Security: prompt injection, least privilege, human oversight

Coding agents in practice: instructions files, permissions, hooks, skills

Key topics to master

The most important concepts to understand this technology and ace your interviews

1

LLM basics: tokens, context window, sampling, hallucination

2

Prompt engineering: roles, instructions, examples, output format

3

Calling a model API: messages, stateless conversation, stop reasons, streaming

4

Context window management: what enters the context, truncation, summarization

5

Structured outputs: JSON Schema, strict mode, validation

6

Model selection: quality, latency and cost trade-offs

7

Tool use: tool definitions, the call loop, tool errors

8

Embeddings and vector search: similarity, hybrid search, reranking

9

RAG: chunking, retrieval, citations, evaluation of retrieval

10

Agents: workflows versus agents, the agent loop, stop conditions

11

MCP: architecture, primitives, transports, authorization

12

Context engineering: instructions files, memory, compaction, subagents

13

Prompt caching, batching and latency

14

Evaluation of LLM applications and agents

15

Prompt injection, guardrails and human oversight

16

Agent harness design, multi-agent systems, long-running tasks

17

Observability and cost in production

18

LLM system design interview

Today's AI Engineering challenge

One snippet a day. Find the bug, or prove there isn't one.

Play today