Suryanand/ Bootcamp
suryanand.com ↗Let's talk
← HomeWritten · no videosUpdated Oct 2026
[AI] AI Engineering Guide

Everything I reach for when a team asks me to make an LLM feature real: retrieval, agents, frameworks, evals, serving and safety. Each page has a diagram, a reference design and code you can adapt.

Pick a track
0
Written guides
0
Mermaid diagrams
0
Tracks
0
Runnable AI algorithms
[01] Tracks

New to this? Start with Foundations, then Retrieval and Agents. Everything else is a deep dive.

01 Tokens to tool calls

Foundations

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

  • The AI engineering stack map
  • How LLMs generate text
  • Tokenization and cost math
12 guides
02 Search that grounds answers

Retrieval (RAG)

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

  • RAG end to end
  • Document parsing and ingestion
  • Chunking strategies
12 guides
03 Loops, tools and protocols

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
  • Workflow patterns vs autonomous agents
  • ReAct and the tool-use loop
12 guides
04 LangChain and friends

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)
  • LangChain today, create_agent and middleware
  • LangGraph, state graphs and durable agents
12 guides
05 Measure before you ship

Evals and observability

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

  • Why evals are the product
  • Golden datasets and error analysis
  • Code graders vs LLM-as-judge
11 guides
06 Fast, cheap, reliable

Inference and 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
  • Serving engines compared, vLLM, SGLang, TensorRT-LLM, TGI and llama.cpp
  • PagedAttention and continuous batching
12 guides
07 When prompts aren't enough

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
  • Preparing training data and synthetic data
  • Supervised fine-tuning (SFT)
10 guides
08 Ship it responsibly

Safety and governance

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

  • OWASP Top 10 for LLM applications
  • Prompt injection, direct and indirect, and how to defend
  • Guardrails architecture, input and output filters
10 guides
09 Architectures, end to end

AI system design

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
  • Design enterprise document Q&A over permissions-aware data
  • Design an AI customer support agent with human escalation
12 guides
[DSA] AI algorithms, with tests

20 problems you'll meet building AI systems

Cosine Similarity and Top-K Nearest Neighbours · Byte-Pair Encoding Tokenizer: Training and Encoding · Sentence-Aware Text Chunker With Token Window and Overlap · BM25 Keyword Relevance Scoring · Reciprocal Rank Fusion for Hybrid Search · Maximal Marginal Relevance for Diverse Retrieval and more.

Practise
Why this exists README

I learn best by explaining things, so I record the explanations. Everything here is free, with no sign-up. If a lesson helps you ship something, I'd love to hear about it.