AI Engineering
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.
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
The most important concepts to understand this technology and ace your interviews
LLM basics: tokens, context window, sampling, hallucination
Prompt engineering: roles, instructions, examples, output format
Calling a model API: messages, stateless conversation, stop reasons, streaming
Context window management: what enters the context, truncation, summarization
Structured outputs: JSON Schema, strict mode, validation
Model selection: quality, latency and cost trade-offs
Tool use: tool definitions, the call loop, tool errors
Embeddings and vector search: similarity, hybrid search, reranking
RAG: chunking, retrieval, citations, evaluation of retrieval
Agents: workflows versus agents, the agent loop, stop conditions
MCP: architecture, primitives, transports, authorization
Context engineering: instructions files, memory, compaction, subagents
Prompt caching, batching and latency
Evaluation of LLM applications and agents
Prompt injection, guardrails and human oversight
Agent harness design, multi-agent systems, long-running tasks
Observability and cost in production
LLM system design interview
Today's AI Engineering challenge
One snippet a day. Find the bug, or prove there isn't one.