# Suryanand Bootcamp

> Free system design, Node.js and AWS video courses, plus a written AI Engineering Guide on RAG, agents, LangChain and evals. By Suryanand.

Bootcamp is a free learning library by Suryanand Sunil (https://suryanand.com), a solutions architect who teaches the way he'd explain a design to a teammate at a whiteboard. No sign-up, no paywall. Contact: work@suryanand.com.

3 video courses with 27 lessons, 51 system design notes and 180 DSA problems.

## Video courses

- [Node.js, AWS & System Design Interview Bootcamp](https://bootcamp.suryanand.com/courses/sky): Interview-ready Node, AWS, and cloud system design—framed for how interviews actually go. 12 videos in 4 modules.
- [System Design in Depth](https://bootcamp.suryanand.com/courses/emerald): Layer-by-layer architecture: edge, services, data paths, and capstone designs. 13 videos in 5 modules.
- [Database Architecture](https://bootcamp.suryanand.com/courses/database-architecture): Sharding, read replicas, and other data-at-scale patterns—more lessons will join this track over time. 2 videos in 1 module.

## AI Engineering Guide

### [Foundations](https://bootcamp.suryanand.com/ai-engineering/foundations)

How models generate text, what context really costs, embeddings, structured outputs, tool calling and picking a model.

- [The AI engineering stack map](https://bootcamp.suryanand.com/ai-engineering/foundations/01-ai-engineering-stack-map): A one-page map of the layers in a modern LLM application, from model APIs to context, tools, evals and UX, and how the rest of this track fits together.
- [How LLMs generate text](https://bootcamp.suryanand.com/ai-engineering/foundations/02-how-llms-generate-text): Tokens in, logits out, one token at a time. How autoregressive decoding works and what temperature, top-p and top-k actually change.
- [Tokenization and cost math](https://bootcamp.suryanand.com/ai-engineering/foundations/03-tokenization-and-cost-math): What tokens are, why counts differ across models and languages, and how to estimate and control the cost of an LLM feature before you ship it.
- [Context windows, context engineering and prompt caching](https://bootcamp.suryanand.com/ai-engineering/foundations/04-context-windows-and-prompt-caching): Million-token windows are common in 2026, but more context is not free. How to budget context, avoid context rot and cut cost with prompt caching.
- [Embeddings and similarity](https://bootcamp.suryanand.com/ai-engineering/foundations/05-embeddings-and-similarity): How embedding models turn text into vectors, what cosine similarity really measures, and how to pick, store and evaluate embeddings for search and RAG.
- [Prompt engineering patterns that still matter](https://bootcamp.suryanand.com/ai-engineering/foundations/06-prompt-engineering-patterns): Models got smarter, but clear instructions, examples, delimiters and explicit output contracts still decide quality. The patterns worth keeping in 2026.
- [Structured outputs and JSON Schema](https://bootcamp.suryanand.com/ai-engineering/foundations/07-structured-outputs-and-json-schema): How constrained decoding makes models return JSON that matches your schema, how OpenAI and Anthropic expose it, and why you still validate.
- [Tool and function calling](https://bootcamp.suryanand.com/ai-engineering/foundations/08-tool-and-function-calling): How models request actions through tool calls, how the agent loop works, how tool_choice and strict schemas behave, and where MCP fits in.
- [Reasoning models and when to use extended thinking](https://bootcamp.suryanand.com/ai-engineering/foundations/09-reasoning-models-and-extended-thinking): What reasoning models do differently, how effort and adaptive thinking controls work at Anthropic and OpenAI, and how to decide when extra thinking pays off.
- [Multimodal inputs (images, audio and PDFs)](https://bootcamp.suryanand.com/ai-engineering/foundations/10-multimodal-inputs): How models consume images, PDFs, audio and video, what each costs in tokens, and the preprocessing choices that decide accuracy in production.
- [Choosing a model in 2026](https://bootcamp.suryanand.com/ai-engineering/foundations/11-choosing-a-model-in-2026): Frontier APIs versus open-weight models, routing by task, and how to weigh quality, latency, cost, context and licensing with your own evals.
- [Streaming and UX patterns for LLM apps](https://bootcamp.suryanand.com/ai-engineering/foundations/12-streaming-and-ux-patterns): How token streaming works over server-sent events, how to wire it through a Next.js route, and the UX patterns that make slow models feel fast and trustworthy.

### [Retrieval (RAG)](https://bootcamp.suryanand.com/ai-engineering/rag)

Ingestion, chunking, embeddings, vector stores, hybrid search, reranking, GraphRAG and how to evaluate retrieval.

- [RAG end to end](https://bootcamp.suryanand.com/ai-engineering/rag/01-rag-end-to-end): A whiteboard tour of retrieval-augmented generation, from ingestion to grounded answers, and when long context makes RAG unnecessary.
- [Document parsing and ingestion](https://bootcamp.suryanand.com/ai-engineering/rag/02-document-parsing-and-ingestion): How to turn PDFs, scans, tables and slides into clean, structured text for RAG, and when to skip text extraction with vision retrieval.
- [Chunking strategies](https://bootcamp.suryanand.com/ai-engineering/rag/03-chunking-strategies): Fixed, recursive, structure-aware, semantic and late chunking compared, with guidance on chunk size, overlap and how to measure the choice.
- [Choosing embedding models](https://bootcamp.suryanand.com/ai-engineering/rag/04-choosing-embedding-models): How to pick an embedding model for RAG using leaderboards as a shortlist, your own queries as the judge, and dimensions, cost and hosting as constraints.
- [Vector databases and index types](https://bootcamp.suryanand.com/ai-engineering/rag/05-vector-databases-and-indexes): pgvector, Qdrant, Weaviate, Pinecone, Milvus, LanceDB and turbopuffer compared, plus how HNSW, IVF and disk-based indexes trade recall for speed.
- [Hybrid search with BM25 and vectors](https://bootcamp.suryanand.com/ai-engineering/rag/06-hybrid-search-bm25-and-vectors): Why combining keyword and vector retrieval beats either alone, and how reciprocal rank fusion and weighted score fusion merge the two result lists.
- [Reranking with cross-encoders](https://bootcamp.suryanand.com/ai-engineering/rag/07-reranking-with-cross-encoders): How a cross-encoder reranker reads query and chunk together to reorder candidates, where it fits in the pipeline, and how to budget its latency.
- [Query rewriting and HyDE](https://bootcamp.suryanand.com/ai-engineering/rag/08-query-rewriting-and-hyde): Fix the query before you search: standalone rewrites for chat, multi-query expansion, decomposition, and hypothetical document embeddings (HyDE).
- [Contextual retrieval and metadata filtering](https://bootcamp.suryanand.com/ai-engineering/rag/09-contextual-retrieval-and-metadata-filtering): Give chunks back the context chunking took away with generated prefixes, and narrow search safely with metadata filters for tenants, dates and permissions.
- [GraphRAG and knowledge graphs](https://bootcamp.suryanand.com/ai-engineering/rag/10-graphrag-and-knowledge-graphs): When chunk-level vector search cannot answer global or multi-hop questions, and how knowledge graphs, community summaries and LazyGraphRAG help.
- [Agentic RAG](https://bootcamp.suryanand.com/ai-engineering/rag/11-agentic-rag): Let the model decide when, where and how many times to retrieve, using search as a tool, with self-correction loops, budgets and guardrails.
- [Evaluating RAG](https://bootcamp.suryanand.com/ai-engineering/rag/12-evaluating-rag): Measure retrieval with recall@k and MRR and generation with faithfulness and relevance, using labeled sets, LLM judges and RAGAS-style metrics.

### [Agents](https://bootcamp.suryanand.com/ai-engineering/agents)

Workflows versus agents, tool loops, memory, MCP, agent-to-agent protocols, multi-agent designs and running them safely.

- [What an AI agent is, and when not to build one](https://bootcamp.suryanand.com/ai-engineering/agents/01-what-is-an-agent): An agent is a model running tools in a loop until a stop condition. Learn the loop, the stop conditions, and when a plain workflow is the better call.
- [Workflow patterns vs autonomous agents](https://bootcamp.suryanand.com/ai-engineering/agents/02-workflow-patterns): Prompt chaining, routing, parallelization, orchestrator-workers and evaluator-optimizer, and how to pick one before reaching for a fully autonomous agent.
- [ReAct and the tool-use loop](https://bootcamp.suryanand.com/ai-engineering/agents/03-react-and-tool-use-loops): How the ReAct pattern interleaves reasoning and actions, how native tool calling implements it today, and how to design tools models use well.
- [Planning and reflection in agents](https://bootcamp.suryanand.com/ai-engineering/agents/04-planning-and-reflection): Plan-and-execute, replanning, self-critique and Reflexion-style memory: how agents decide what to do next and learn from their own mistakes.
- [Agent memory, short-term and long-term](https://bootcamp.suryanand.com/ai-engineering/agents/05-agent-memory): Context windows, compaction, episodic and semantic memory, vector and structured stores: how agents remember across turns and across sessions.
- [Model Context Protocol servers and clients](https://bootcamp.suryanand.com/ai-engineering/agents/06-model-context-protocol): How MCP connects agents to tools and data over JSON-RPC: hosts, clients, servers, tools, resources, prompts, transports and the security model.
- [Agent-to-agent protocols and A2A](https://bootcamp.suryanand.com/ai-engineering/agents/07-agent-to-agent-protocols): How the A2A protocol lets independent agents discover each other via Agent Cards, exchange messages, and track long-running tasks across vendors.
- [Multi-agent architectures, supervisor, swarm and hierarchical](https://bootcamp.suryanand.com/ai-engineering/agents/08-multi-agent-architectures): When splitting work across several agents helps, how supervisor, swarm and hierarchical designs differ, and the real costs in tokens and coordination.
- [Human-in-the-loop and approvals](https://bootcamp.suryanand.com/ai-engineering/agents/09-human-in-the-loop): Where to put human checkpoints in an agent, how to pause and resume runs durably, and how approval flows work in the OpenAI Agents SDK and LangGraph.
- [Computer-use and browser agents](https://bootcamp.suryanand.com/ai-engineering/agents/10-computer-use-and-browser-agents): How screenshot-driven computer-use agents and DOM-driven browser agents work, which APIs exist today, and how to sandbox them against prompt injection.
- [Coding agents and sandboxed execution](https://bootcamp.suryanand.com/ai-engineering/agents/11-coding-agents-and-sandboxes): How coding agents read, edit, run and test code in a loop, and how to isolate their execution with OS sandboxes, containers and hosted sandboxes.
- [Running agents in production](https://bootcamp.suryanand.com/ai-engineering/agents/12-agents-in-production): Durable execution, retries, timeouts, idempotency, cost limits and OpenTelemetry tracing: the plumbing that keeps long-running agents reliable.

### [Frameworks](https://bootcamp.suryanand.com/ai-engineering/frameworks)

LangChain, LangGraph, LlamaIndex, DSPy and the agent SDKs: what each is good at and when to skip a framework.

- [Choosing an AI framework (or none at all)](https://bootcamp.suryanand.com/ai-engineering/frameworks/01-choosing-a-framework): A practical map of the 2026 LLM framework landscape and a decision process for picking one, combining several, or writing plain SDK code.
- [LangChain today, create_agent and middleware](https://bootcamp.suryanand.com/ai-engineering/frameworks/02-langchain-agents-and-middleware): How LangChain 1.x is organized in 2026, what create_agent does, and how middleware lets you add summarization, approvals, retries and PII rules.
- [LangGraph, state graphs and durable agents](https://bootcamp.suryanand.com/ai-engineering/frameworks/03-langgraph-durable-agents): How LangGraph models agents as state graphs with checkpoints, interrupts and resumable threads, and when that explicit control is worth it.
- [LangSmith for tracing and evals](https://bootcamp.suryanand.com/ai-engineering/frameworks/04-langsmith-tracing-and-evals): Using LangSmith to trace LLM apps, build datasets from real traffic, and run offline and online evaluations, with or without LangChain.
- [LlamaIndex, indexes, workflows and agents](https://bootcamp.suryanand.com/ai-engineering/frameworks/05-llamaindex-indexes-workflows-agents): How LlamaIndex handles document ingestion, indexing and retrieval, and how its event driven Workflows and FunctionAgent build agents on top of your data.
- [DSPy, signatures, modules and optimizers](https://bootcamp.suryanand.com/ai-engineering/frameworks/06-dspy-signatures-modules-optimizers): How DSPy replaces hand written prompts with typed signatures, composable modules and optimizers such as GEPA and MIPROv2 that tune programs against a metric.
- [Pydantic AI, type safe agents in Python](https://bootcamp.suryanand.com/ai-engineering/frameworks/07-pydantic-ai): How Pydantic AI builds agents around typed dependencies, validated outputs and plain Python tools, plus its tracing, evals and durable execution story.
- [OpenAI Agents SDK, agents, handoffs and guardrails](https://bootcamp.suryanand.com/ai-engineering/frameworks/08-openai-agents-sdk): A tour of the OpenAI Agents SDK primitives (agents, tools, handoffs, guardrails, sessions, tracing) and how to structure a small multi agent app with them.
- [Claude Agent SDK, Claude Code as a library](https://bootcamp.suryanand.com/ai-engineering/frameworks/09-claude-agent-sdk): How the Claude Agent SDK packages Claude Code's agent loop, built-in tools, permissions, hooks, subagents and MCP into a Python and TypeScript library.
- [Vercel AI SDK for TypeScript apps](https://bootcamp.suryanand.com/ai-engineering/frameworks/10-vercel-ai-sdk): How the Vercel AI SDK (v7) unifies model calls, tools, agents and streaming UI for TypeScript and Next.js apps, with ToolLoopAgent and useChat.
- [Multi-agent frameworks, CrewAI and Microsoft Agent Framework](https://bootcamp.suryanand.com/ai-engineering/frameworks/11-crewai-and-microsoft-agent-framework): How CrewAI's crews and flows and Microsoft Agent Framework (the successor to AutoGen and Semantic Kernel) approach multi agent systems, and when they are worth it.
- [Google ADK and Mastra, agents with a built-in dev loop](https://bootcamp.suryanand.com/ai-engineering/frameworks/12-google-adk-and-mastra): How Google's Agent Development Kit and the TypeScript framework Mastra structure agents, workflows, tools and local dev tooling, and how to choose between them.

### [Evals and observability](https://bootcamp.suryanand.com/ai-engineering/evals-observability)

Golden sets, LLM-as-judge, agent trajectory evals, CI gates, tracing with OpenTelemetry and quality dashboards.

- [Why evals are the product](https://bootcamp.suryanand.com/ai-engineering/evals-observability/01-why-evals-are-the-product): Evals turn a vague sense that an LLM feature works into a measurable, repeatable loop. Here is the mental model and the minimum system to start with.
- [Golden datasets and error analysis](https://bootcamp.suryanand.com/ai-engineering/evals-observability/02-golden-datasets-and-error-analysis): How to build an eval dataset from real traces, run open and axial coding to find failure modes, and decide which evals are worth writing.
- [Code graders vs LLM-as-judge](https://bootcamp.suryanand.com/ai-engineering/evals-observability/03-code-graders-vs-llm-judges): When to grade LLM outputs with deterministic code, when to use an LLM judge, and how to calibrate a judge against human labels before trusting it.
- [Pairwise and rubric grading](https://bootcamp.suryanand.com/ai-engineering/evals-observability/04-pairwise-and-rubric-grading): Two practical patterns for grading open-ended LLM output: pairwise comparisons for choosing between versions, and rubrics for scoring against explicit criteria.
- [Evaluating agents and tool use](https://bootcamp.suryanand.com/ai-engineering/evals-observability/05-evaluating-agents-and-tool-use): How to evaluate agents by final outcome, by trajectory and by individual tool calls, plus why pass@k and pass^k tell very different reliability stories.
- [RAG evaluation metrics](https://bootcamp.suryanand.com/ai-engineering/evals-observability/06-rag-evaluation-metrics): Score retrieval and generation separately, with recall@k, MRR and context precision for the retriever and faithfulness and relevance for the answer.
- [Evals in CI as regression gates](https://bootcamp.suryanand.com/ai-engineering/evals-observability/07-evals-in-ci-regression-gates): Run your eval suite on every pull request, compare against a baseline, and block merges on real regressions without drowning in noise from non-determinism.
- [Online evaluation and user feedback loops](https://bootcamp.suryanand.com/ai-engineering/evals-observability/08-online-evaluation-and-feedback-loops): Score live traffic with sampled LLM judges and explicit and implicit user feedback, then feed the worst traces back into your offline dataset.
- [Tracing and SLOs with OpenTelemetry GenAI](https://bootcamp.suryanand.com/ai-engineering/evals-observability/09-tracing-with-opentelemetry-genai): Instrument LLM calls, tools and agents with OpenTelemetry GenAI semantic conventions, then build cost, latency and quality dashboards and SLOs on top.
- [LLM observability tools compared](https://bootcamp.suryanand.com/ai-engineering/evals-observability/10-observability-tools-compared): A practical comparison of Langfuse, LangSmith, Arize Phoenix, Braintrust, W&B Weave and Helicone, including licensing, OpenTelemetry support and 2026 ownership changes.
- [Red-teaming and adversarial test sets](https://bootcamp.suryanand.com/ai-engineering/evals-observability/11-red-teaming-and-adversarial-test-sets): Build adversarial eval sets for prompt injection, jailbreaks, data leakage and excessive agency, automate them with promptfoo, garak or PyRIT, and gate releases on them.

### [Inference and serving](https://bootcamp.suryanand.com/ai-engineering/inference-serving)

KV cache, batching, vLLM and SGLang, quantization, GPU sizing, gateways, caching and latency engineering.

- [How LLM inference works, prefill, decode and the KV cache](https://bootcamp.suryanand.com/ai-engineering/inference-serving/01-how-llm-inference-works): A whiteboard tour of what happens when a model answers a prompt, why prefill and decode behave so differently, and why the KV cache rules serving.
- [Serving engines compared, vLLM, SGLang, TensorRT-LLM, TGI and llama.cpp](https://bootcamp.suryanand.com/ai-engineering/inference-serving/02-serving-engines-compared): How the main open LLM serving engines differ in 2026, what each is good at, where TGI stands, and how to pick one without trusting a single benchmark chart.
- [PagedAttention and continuous batching](https://bootcamp.suryanand.com/ai-engineering/inference-serving/03-pagedattention-and-continuous-batching): The two ideas that made modern LLM serving efficient, paging the KV cache like virtual memory and scheduling requests token by token instead of batch by batch.
- [Speculative decoding, from draft models to EAGLE-3](https://bootcamp.suryanand.com/ai-engineering/inference-serving/04-speculative-decoding): How speculative decoding produces several tokens per forward pass without changing outputs, the main variants in 2026, and when it actually speeds things up.
- [Quantization for serving, GPTQ, AWQ, FP8 and GGUF](https://bootcamp.suryanand.com/ai-engineering/inference-serving/05-quantization): What weight and KV quantization actually do, how GPTQ, AWQ, FP8 and GGUF differ, which hardware supports what, and how to quantize without wrecking quality.
- [GPU sizing and memory math for serving a model](https://bootcamp.suryanand.com/ai-engineering/inference-serving/06-gpu-sizing-and-memory-math): Back-of-envelope formulas for weights, KV cache, concurrency and decode speed, so you can size GPUs for a model before renting any.
- [Running models locally with Ollama, LM Studio, llama.cpp and MLX](https://bootcamp.suryanand.com/ai-engineering/inference-serving/07-running-models-locally): How the local LLM stack fits together in 2026, which tool to pick for which job, and how to wire a local model into your app through an OpenAI-compatible API.
- [LLM gateways and routing, LiteLLM, OpenRouter and fallbacks](https://bootcamp.suryanand.com/ai-engineering/inference-serving/08-llm-gateways-and-routing): Why production apps route model calls through a gateway, how retries and fallbacks work in LiteLLM and OpenRouter, and what to watch out for.
- [Prompt caching and semantic caching](https://bootcamp.suryanand.com/ai-engineering/inference-serving/09-semantic-and-prompt-caching): The difference between provider prompt caching, engine prefix caching and semantic response caching, how each works, and how to structure prompts to get cache hits.
- [Rate limits, retries and backpressure for LLM APIs](https://bootcamp.suryanand.com/ai-engineering/inference-serving/10-rate-limits-retries-backpressure): How LLM rate limits work, how to retry safely with backoff and jitter, and how backpressure makes overload degrade gracefully instead of cascading.
- [Autoscaling LLM servers and serverless GPU hosting](https://bootcamp.suryanand.com/ai-engineering/inference-serving/11-autoscaling-and-serverless-gpus): Which signals to autoscale LLM servers on, how to tame cold starts, and when serverless GPU platforms beat running your own cluster.
- [Latency engineering, TTFT, tokens per second and streaming](https://bootcamp.suryanand.com/ai-engineering/inference-serving/12-latency-engineering): How to measure and reduce LLM latency end to end, from time to first token and inter-token latency to streaming, prompt design and output length.

### [Fine-tuning](https://bootcamp.suryanand.com/ai-engineering/fine-tuning)

Deciding when to tune, data prep, LoRA, preference tuning, RL with verifiable rewards and distillation.

- [Fine-tune vs RAG vs prompting, a decision guide](https://bootcamp.suryanand.com/ai-engineering/fine-tuning/01-fine-tune-vs-rag-vs-prompting): How to decide between prompt engineering, retrieval and fine-tuning, and why most teams in 2026 should exhaust the first two before training anything.
- [Preparing training data and synthetic data](https://bootcamp.suryanand.com/ai-engineering/fine-tuning/02-training-data-and-synthetic-data): How to collect, clean, format and synthesise fine-tuning data, including chat templates, deduplication, decontamination and teacher-generated examples.
- [Supervised fine-tuning (SFT)](https://bootcamp.suryanand.com/ai-engineering/fine-tuning/03-supervised-fine-tuning): What supervised fine-tuning does to a language model, how loss masking and chat templates work, and how to run a clean SFT job with TRL.
- [LoRA and QLoRA](https://bootcamp.suryanand.com/ai-engineering/fine-tuning/04-lora-and-qlora): How low-rank adapters and 4-bit quantised training let you fine-tune large models on one GPU, with practical rank, learning rate and serving advice.
- [Preference tuning with DPO and its variants](https://bootcamp.suryanand.com/ai-engineering/fine-tuning/05-preference-tuning-dpo): How Direct Preference Optimization trains on chosen and rejected pairs, how it compares to RLHF, and when to reach for IPO, SimPO, KTO or ORPO.
- [Reinforcement learning for LLMs (RLHF, GRPO, RLVR)](https://bootcamp.suryanand.com/ai-engineering/fine-tuning/06-reinforcement-learning-for-llms): How RLHF, GRPO and reinforcement learning with verifiable rewards work, and how to set up a reward function and training loop that does not get gamed.
- [Distillation into small models](https://bootcamp.suryanand.com/ai-engineering/fine-tuning/07-distillation-into-small-models): How to transfer a large model's behaviour on one task into a small, cheap model using teacher outputs, logit distillation and on-policy correction.
- [Hosted fine-tuning APIs vs open-source stacks](https://bootcamp.suryanand.com/ai-engineering/fine-tuning/08-hosted-apis-vs-open-source-stacks): Comparing managed fine-tuning services with self-run stacks like TRL, Unsloth and Axolotl, including the 2026 platform changes and how to avoid lock-in.
- [Evaluating a fine-tuned model](https://bootcamp.suryanand.com/ai-engineering/fine-tuning/09-evaluating-fine-tuned-models): How to prove a fine-tune helped, using task evals, regression suites, LLM judges, contamination checks and a shadow then canary rollout.
- [Fine-tuning embedding models](https://bootcamp.suryanand.com/ai-engineering/fine-tuning/10-fine-tuning-embedding-models): How to fine-tune an embedding model for your retrieval domain with Sentence Transformers, contrastive losses, hard negatives and Matryoshka dimensions.

### [Safety and governance](https://bootcamp.suryanand.com/ai-engineering/safety-governance)

Prompt injection, guardrails, securing tools, PII, hallucination control, regulation and incident response.

- [OWASP Top 10 for LLM applications](https://bootcamp.suryanand.com/ai-engineering/safety-governance/01-owasp-top-10-for-llm-apps): A practical tour of the OWASP Top 10 for LLM Applications 2025 and the companion Top 10 for Agentic Applications, with the controls that address each risk.
- [Prompt injection, direct and indirect, and how to defend](https://bootcamp.suryanand.com/ai-engineering/safety-governance/02-prompt-injection-defenses): How direct and indirect prompt injection work, why filters alone fail, and the architectural patterns that limit what an injected instruction can do.
- [Guardrails architecture, input and output filters](https://bootcamp.suryanand.com/ai-engineering/safety-governance/03-guardrails-architecture): How to design layered guardrails around an LLM, combining rules, small classifiers and LLM judges on inputs and outputs without wrecking latency.
- [Securing tools and agents](https://bootcamp.suryanand.com/ai-engineering/safety-governance/04-securing-tools-and-agents): How to give AI agents tools safely using least privilege, scoped credentials, sandboxed execution, policy engines and well-designed human confirmations.
- [PII handling and data residency](https://bootcamp.suryanand.com/ai-engineering/safety-governance/05-pii-and-data-residency): How to minimise, detect and redact personal data in LLM pipelines, control retention, and keep inference and storage in the regions your contracts require.
- [Hallucination mitigation and citations](https://bootcamp.suryanand.com/ai-engineering/safety-governance/06-hallucination-mitigation-and-citations): Why language models hallucinate, and the grounding, citation, verification and abstention techniques that reduce confident wrong answers in production.
- [Content moderation pipelines](https://bootcamp.suryanand.com/ai-engineering/safety-governance/07-content-moderation-pipelines): How to build a moderation pipeline for AI features using hosted moderation APIs, open safety classifiers, policy-following models and human review queues.
- [AI regulation and compliance basics](https://bootcamp.suryanand.com/ai-engineering/safety-governance/08-ai-regulation-and-compliance): An engineer's map of the EU AI Act timeline after the 2026 omnibus, the NIST AI RMF and its GenAI Profile, and ISO/IEC 42001, and what each asks you to build.
- [Model and supply-chain risk](https://bootcamp.suryanand.com/ai-engineering/safety-governance/09-model-and-supply-chain-risk): Managing risk from third-party models, weights and datasets with safe formats, pinned revisions, model signing, model cards and an AI bill of materials.
- [Incident response for AI features](https://bootcamp.suryanand.com/ai-engineering/safety-governance/10-incident-response-for-ai-features): How to detect, contain, investigate and learn from AI incidents like jailbreaks, prompt injection, data leaks and harmful outputs, with kill switches.

### [AI system design](https://bootcamp.suryanand.com/ai-engineering/case-studies)

Interview-style walkthroughs of real AI products: chat, document Q&A, coding assistants, voice agents and more.

- [Design a ChatGPT-style chat assistant at scale](https://bootcamp.suryanand.com/ai-engineering/case-studies/01-chat-assistant-at-scale): System design for a consumer chat assistant: streaming, conversation storage, GPU serving, prompt caching, rate limits and safety for millions of users.
- [Design enterprise document Q&A over permissions-aware data](https://bootcamp.suryanand.com/ai-engineering/case-studies/02-enterprise-document-qa): How to build a RAG assistant over Drive, Confluence, Slack and more that never shows a user a document they cannot open in the source system.
- [Design an AI customer support agent with human escalation](https://bootcamp.suryanand.com/ai-engineering/case-studies/03-customer-support-agent): Architecture for a support agent that answers from a knowledge base, takes account actions through tools, and hands off to humans cleanly when it should.
- [Design an AI coding assistant](https://bootcamp.suryanand.com/ai-engineering/case-studies/04-ai-coding-assistant): Repo indexing with Merkle trees and embeddings, context assembly, applying edits, and running agents in sandboxes: designing a coding assistant.
- [Design an AI search and answer engine](https://bootcamp.suryanand.com/ai-engineering/case-studies/05-ai-answer-engine): A Perplexity-style answer engine: query planning, web retrieval, multi-stage ranking, cited synthesis, freshness and cost control, explained as a system design.
- [Design a real-time voice agent](https://bootcamp.suryanand.com/ai-engineering/case-studies/06-realtime-voice-agent): Building a phone and web voice agent with STT, LLM and TTS: latency budgets, turn detection, barge-in, telephony, and when to use speech-to-speech models.
- [Design an LLM gateway for a company](https://bootcamp.suryanand.com/ai-engineering/case-studies/07-llm-gateway): A central gateway for every LLM call in a company: provider routing and fallback, virtual keys, quotas and budgets, PII redaction, caching and audit logs.
- [Design meeting notes and action item extraction](https://bootcamp.suryanand.com/ai-engineering/case-studies/08-meeting-notes-action-items): Joining Zoom, Meet and Teams calls, transcribing with speaker labels, then generating summaries and action items that sync to task tools, with consent built in.
- [Design recommendations with LLM re-ranking](https://bootcamp.suryanand.com/ai-engineering/case-studies/09-recommendations-llm-reranking): Adding an LLM stage to a retrieve-and-rank recommender: where it fits, keeping latency and cost sane, offline and online evaluation, and when to skip it.
- [Design a document processing pipeline with human review](https://bootcamp.suryanand.com/ai-engineering/case-studies/10-document-processing-pipeline): Extracting structured data from invoices and contracts with OCR, layout models and LLMs, validating it, and routing low-confidence fields to human reviewers.
- [Design a multi-tenant AI platform with per-tenant RAG and billing](https://bootcamp.suryanand.com/ai-engineering/case-studies/11-multi-tenant-ai-platform): A SaaS platform where each customer gets isolated knowledge bases, agents and usage billing: tenancy models, noisy neighbours, metering and isolation.
- [Design a deep-research agent](https://bootcamp.suryanand.com/ai-engineering/case-studies/12-deep-research-agent): A multi-agent research system that plans, searches in parallel, reads hundreds of sources and writes a cited report, with budgets, durability and evaluation.

## System design notes

- [Glossary — common building blocks (what it is & typical why)](https://bootcamp.suryanand.com/resources/system-design/00-glossary-common-services): Use this page when any design doc mentions a service by name. Each individual design also has a “Components explained — this design” table tying choices to…
- [URL Shortener (e.g. bit.ly)](https://bootcamp.suryanand.com/resources/system-design/01-url-shortener): Design a service that takes long URLs and returns short aliases. When users visit the short URL, they are redirected (HTTP 302/301) to the original URL. The…
- [Pastebin-like Service](https://bootcamp.suryanand.com/resources/system-design/02-pastebin-service): Design a system where users upload large text snippets and receive a shareable link. Viewers fetch read-only content; optional password, expiration, and…
- [Distributed Rate Limiter](https://bootcamp.suryanand.com/resources/system-design/03-distributed-rate-limiter): Enforce per user / per IP / per API key request limits globally (e.g. 100 req/min) across many stateless API instances and regions.
- [News Feed / Timeline (e.g. Twitter-style)](https://bootcamp.suryanand.com/resources/system-design/04-news-feed-timeline): Design a system where users follow others and see a chronological or ranked feed of posts at scale (fan-out on read vs write, mixed media).
- [Real-time Chat (e.g. Slack / WhatsApp-lite)](https://bootcamp.suryanand.com/resources/system-design/05-chat-messaging-system): Design 1:1 and group messaging with online presence, delivery/read receipts, history sync, and mobile push when offline.
- [Video Streaming (e.g. Netflix-style)](https://bootcamp.suryanand.com/resources/system-design/06-video-streaming-platform): Design upload, transcode to multiple bitrates, DRM optional, global low-latency playback with adaptive bitrate (ABR), and recommendations surface.
- [Ride Hailing (e.g. Uber / Lyft)](https://bootcamp.suryanand.com/resources/system-design/07-ride-hailing-platform): Match riders to drivers in real time, estimate ETA and fare, handle surge pricing, payments, ratings, and safety events at city scale.
- [File Storage & Sync (e.g. Dropbox)](https://bootcamp.suryanand.com/resources/system-design/08-file-storage-sync): Users sync folders across devices with conflict resolution, version history, sharing links, and offline edits that merge later.
- [Search Engine (web-scale)](https://bootcamp.suryanand.com/resources/system-design/09-search-engine): Crawl the web (or corpus), index documents, serve low-latency ranked queries with spelling correction and snippets.
- [Multi-channel Notification System](https://bootcamp.suryanand.com/resources/system-design/10-notification-system): Deliver email, SMS, push, in-app, and webhooks reliably with templates, preferences, throttling, and auditability at high volume.
- [E-commerce Checkout & Order Service](https://bootcamp.suryanand.com/resources/system-design/11-ecommerce-checkout): Handle cart, inventory reservation, payment, tax/shipping, order creation, and failure compensation under concurrency (flash sales).
- [Payment Processing & Ledger](https://bootcamp.suryanand.com/resources/system-design/12-payment-processing): Process card payments, support refunds, partial captures, disputes, and maintain an internal ledger that matches PSP settlements (Stripe, Adyen).
- [Distributed Cache (Redis-style cluster)](https://bootcamp.suryanand.com/resources/system-design/13-distributed-cache-design): Provide sub-millisecond reads/writes, TTL, pub/sub, optional persistence, and horizontal scale across AZs with graceful failover.
- [API Gateway & Edge Policy](https://bootcamp.suryanand.com/resources/system-design/14-api-gateway-design): Single entry for authentication, rate limiting, routing, A/B, request validation, observability, and protocol translation (REST ↔ gRPC).
- [Web Crawler at Scale](https://bootcamp.suryanand.com/resources/system-design/15-web-crawler-at-scale): Continuously discover and fetch billions of pages, respect robots.txt and rate limits, deduplicate, and feed an indexing pipeline without getting blocked or…
- [Location-Based Services (Maps / Nearby)](https://bootcamp.suryanand.com/resources/system-design/16-location-based-services): Store billions of moving points (drivers, users), answer geo queries (nearby, geofence enter/exit), and serve routing / ETA with fresh traffic.
- [Collaborative Document Editor (Google Docs–class)](https://bootcamp.suryanand.com/resources/system-design/17-collaborative-document-editor): Multiple users edit rich text concurrently with low latency, eventual consistency, undo, and offline support.
- [Music Streaming (e.g. Spotify-class)](https://bootcamp.suryanand.com/resources/system-design/18-music-streaming-platform): Stream millions of tracks globally with DRM, personalized playlists, offline downloads, and royalty reporting to labels.
- [Ticket Booking (Shows / Flights)](https://bootcamp.suryanand.com/resources/system-design/19-ticket-booking-system): Sell limited seats fairly under massive concurrency (concert on-sale), prevent overselling, handle seat holds, payment timeout, and waitlists.
- [Distributed Job Scheduler (Cron at Scale)](https://bootcamp.suryanand.com/resources/system-design/20-distributed-job-scheduler): Run millions of recurring and one-off jobs (HTTP hooks, data pipelines) with at-least-once or exactly-once semantics, retries, DLQ, and multi-tenant fairness.
- [Webhook Delivery Platform (Outbound Events)](https://bootcamp.suryanand.com/resources/system-design/21-webhook-delivery-platform): Deliver HTTP callbacks to customer endpoints for product events (payment succeeded, user.created) with retries, signing, versioning, and observability.
- [Distributed Tracing (Observability)](https://bootcamp.suryanand.com/resources/system-design/22-distributed-tracing): Debug microservices by correlating logs, metrics, and traces across process boundaries with low overhead and PII safety.
- [Centralized Log Aggregation (ELK / OpenSearch)](https://bootcamp.suryanand.com/resources/system-design/23-log-aggregation-pipeline): Ingest terabytes/day of structured logs from containers, VMs, and lambdas; enable search, dashboards, alerts, and retention tiers.
- [Metrics & Monitoring (Prometheus / Grafana)](https://bootcamp.suryanand.com/resources/system-design/24-metrics-monitoring-prometheus): Collect time-series metrics (counters, gauges, histograms) from thousands of pods, store efficiently, power SLO dashboards and alerting.
- [Global CDN & Edge Caching](https://bootcamp.suryanand.com/resources/system-design/25-cdn-global-edge): Serve static and dynamic assets with low latency worldwide, TLS, DDoS protection, cache invalidation, and A/B at the edge.
- [Transactional Email at Scale](https://bootcamp.suryanand.com/resources/system-design/26-email-delivery-service): Send password resets, receipts, alerts reliably with templates, bounce/complaint handling, deliverability, and unsubscribe compliance.
- [Distributed Locking](https://bootcamp.suryanand.com/resources/system-design/27-distributed-locking): Coordinate exclusive access to a resource (migrate shard, cron leader, inventory mutation) across many unreliable processes without split-brain.
- [Designing a Key-Value Store (Dynamo-like)](https://bootcamp.suryanand.com/resources/system-design/28-key-value-store-design): Build a horizontally scalable KV store with tunable consistency, partitioning, replication, and failure tolerance (not off-the-shelf Redis).
- [Leader Election & Singleton Workers](https://bootcamp.suryanand.com/resources/system-design/29-leader-election-service): Ensure exactly one active processor for a task (cron aggregation, stream partition consumer leader) among N redundant instances without manual failover.
- [Database Sharding Strategy](https://bootcamp.suryanand.com/resources/system-design/30-database-sharding): A single PostgreSQL (or monolithic DB) hits CPU/IO ceiling; you need horizontal partition of data with minimal cross-shard joins and resharding story.
- [Multi-Region Active-Active](https://bootcamp.suryanand.com/resources/system-design/31-multi-region-active-active): Serve users from US and EU with low read latency, write availability during regional outage, and compliance (data residency) — without silent data loss.
- [AI / ML Inference Platform](https://bootcamp.suryanand.com/resources/system-design/32-ai-ml-inference-platform): Serve low-latency model inference (LLM, vision, ranking) with GPU autoscaling, multi-tenant fairness, A/B models, and cost controls.
- [Recommendation Engine (Homepage / “You may also like”)](https://bootcamp.suryanand.com/resources/system-design/33-recommendation-engine): Rank millions of items per user in <100ms using behavioral signals, cold start handling, and freshness without filter bubbles becoming a PR issue.
- [Typeahead / Autocomplete Service](https://bootcamp.suryanand.com/resources/system-design/34-typeahead-autocomplete): Return top-k suggestions in <50ms as user types, respecting personalization, trending, spell tolerance, and prefix updates at scale.
- [Team Collaboration (Slack-like)](https://bootcamp.suryanand.com/resources/system-design/35-team-collaboration-slack-like): Workspaces, channels, threads, DMs, search, file uploads, integrations (bots), and enterprise SSO at large org scale.
- [Video Conferencing (Zoom-class)](https://bootcamp.suryanand.com/resources/system-design/36-video-conferencing-zoom-like): Host 1000+ participant webinars, screen share, recording, breakout rooms, with low latency media and region-based media servers.
- [Q&A Forum (Stack Overflow–class)](https://bootcamp.suryanand.com/resources/system-design/37-qa-forum-stackoverflow-like): Questions, answers, votes, reputation, tags, search, moderation, and SEO-friendly public pages under massive read traffic and write spikes (contests).
- [Distributed Message Queue (Kafka / Pulsar–class concepts)](https://bootcamp.suryanand.com/resources/system-design/38-distributed-message-queue): Provide durable, ordered, replayable streams for event-driven architectures with consumer groups, backpressure, and exactly-once-ish processing.
- [Feature Flags & Dynamic Configuration](https://bootcamp.suryanand.com/resources/system-design/39-feature-flags-service): Gradual rollouts, kill switches, A/B experiments, and per-tenant toggles without redeploying; low latency evaluation at massive QPS.
- [Digital Wallet & Stored Value](https://bootcamp.suryanand.com/resources/system-design/40-digital-wallet-payments): Users hold wallet balance, P2P transfers, merchant payments, with strong consistency, ledger, KYC, and fraud controls.
- [IoT Telemetry & Device Management](https://bootcamp.suryanand.com/resources/system-design/41-iot-telemetry-pipeline): Ingest millions of devices sending high-frequency telemetry, support commands downlink, OTA firmware, and rules (alert if temp > X).
- [Restaurant Reservation (OpenTable–class)](https://bootcamp.suryanand.com/resources/system-design/42-restaurant-reservation-system): Search restaurants, available tables by time party size, hold slot, confirm with payment hold, waitlist, no double booking across POS integration.
- [Dating App & Matching](https://bootcamp.suryanand.com/resources/system-design/43-dating-app-matching): Profiles, swipes, mutual match notifications, chat after match, safety reporting, and geo-based discovery with privacy and scale.
- [Online Judge / Code Execution Platform](https://bootcamp.suryanand.com/resources/system-design/44-online-judge-platform): Users submit code in multiple languages; system runs tests in sandbox, enforces CPU/memory/time limits, prevents cheating/network exfiltration, and scales…
- [Real-Time Leaderboard (Gaming / Contests)](https://bootcamp.suryanand.com/resources/system-design/45-realtime-leaderboard): Maintain global ranking with frequent score updates, top N queries, and user rank around me with low latency during live events.
- [Distributed ID Generator (Snowflake / ULID)](https://bootcamp.suryanand.com/resources/system-design/46-distributed-id-generator): Generate 64-bit (or 128-bit) unique, time-sortable IDs at millions/sec across many servers without coordination hot spots or clock regression disasters.
- [Real-Time Fraud Detection](https://bootcamp.suryanand.com/resources/system-design/47-fraud-detection-realtime): Score payments, logins, transfers in <100ms with rules + ML, human review queues, false positive management, and explainability for regulators.
- [Saga vs Two-Phase Commit (Distributed Transactions)](https://bootcamp.suryanand.com/resources/system-design/48-saga-vs-two-phase-commit): Coordinate multiple microservices to complete a business transaction (trip booking + payment + loyalty) with partial failure handling — choose between 2PC,…
- [Bloom Filters & Probabilistic Caching](https://bootcamp.suryanand.com/resources/system-design/49-bloom-filters-and-probabilistic-caching): Reduce unnecessary database / cache lookups for “probably does not exist” checks (username taken crawl, CDN negative caching, duplicate URL in crawler) using…
- [System Design Interview Playbook](https://bootcamp.suryanand.com/resources/system-design/50-system-design-interview-playbook): In 45–60 minutes, communicate a clear design, tradeoffs, and depth on demand without drowning in premature microservices or buzzwords without semantics.

## DSA topics (JavaScript)

- [AI Algorithms](https://bootcamp.suryanand.com/resources/dsa/ai-algorithms): 20 problems with statement, solution and node:test tests
- [Arrays](https://bootcamp.suryanand.com/resources/dsa/arrays): 20 problems with statement, solution and node:test tests
- [Backtracking](https://bootcamp.suryanand.com/resources/dsa/backtracking): 20 problems with statement, solution and node:test tests
- [Binary Search](https://bootcamp.suryanand.com/resources/dsa/binary-search): 20 problems with statement, solution and node:test tests
- [Dynamic Programming](https://bootcamp.suryanand.com/resources/dsa/dynamic-programming): 20 problems with statement, solution and node:test tests
- [Graphs](https://bootcamp.suryanand.com/resources/dsa/graphs): 20 problems with statement, solution and node:test tests
- [Linked Lists](https://bootcamp.suryanand.com/resources/dsa/linked-lists): 20 problems with statement, solution and node:test tests
- [Strings](https://bootcamp.suryanand.com/resources/dsa/strings): 20 problems with statement, solution and node:test tests
- [Trees](https://bootcamp.suryanand.com/resources/dsa/trees): 20 problems with statement, solution and node:test tests

## Optional

- [Full text for LLMs](https://bootcamp.suryanand.com/llms-full.txt): course outlines with every lesson, the full AI Engineering Guide and every system design note
- [Portfolio](https://suryanand.com): Suryanand's work, services and contact
- [Sitemap](https://bootcamp.suryanand.com/sitemap.xml)
