We use analytics to understand how our website is used. No personal data is collected.

Today

0:00 / 15 min

Goal streak

0d

Documents read

0 / 113

Time invested

0s

15 min to goal · everything is saved on this device

Mon–
Tue–
Wed–
Thu–
Fri–
Sat–
Sun–

README

README.md
Not started

🚀 AI / ML Study Plan

A self-built study & interview-prep library for Machine Learning Engineers — Python craft, DSA, ML system design, recommendation systems, A/B testing, ML coding, RAG/LLM mini-books, and shell scripting. Everything is written problem-first: the situation before the jargon, every term explained inline, every example concrete (real data, real outputs, dry-runs).

FAANG/ collects the interview-focused tracks (Google L5/L6 Staff MLE loop); the other top-level folders are general study material and project notes.


⚡ At a glance

Pick the folder that matches your goal, then jump to its section below.

📁 FolderWhat it isLanguageStart here
FAANG/google-python-problem-solving/~190 Python problem-solving scenarios + a 4-part interview-prep trackEnglishINDEX.md
FAANG/dsa_guide/13-chapter DSA guide (arrays → DP), senior-interview lensHinglish01_interview_strategy.md
system_design_course/15-chapter AI/ML system-design course (fundamentals → LLM serving at scale)Hinglish00_START_HERE.md
FAANG/recommendation_ranking_systems_guide/9-chapter recommendation & ranking systems guide (zero → Staff interview)Hinglish01_recommendation_engine_kya_hota_hai.md
FAANG/ab_testing_experimentation_guide/7-chapter A/B testing & experimentation guide (zero → launch decisions)Hinglish01_experimentation_ka_big_picture.md
FAANG/ml_coding_from_scratch_guide/7-chapter ML-coding interview guide — algorithms in plain NumPy (all code runs)Hinglish01_round_format_aur_numpy_warmup.md
FAANG/google_scale_conversational_ai/Conversational AI at billion scale — a full L5 system-design deep-dive (+ HTML visual guides)HinglishA_conversational_ai_billion_scale.md
shell_scripting_guide/18-chapter Unix/Linux/bash guide (terminal → production)Hinglish01_terminal_aur_shell.md
RAG_Copilot Tutorials/Four long-form mini-books: RAG evaluation & prompting, LangGraph & token optimisation, LLM fine-tuning, harness engineeringEnglish + HinglishCopilot/
Schedular CP-SAT/CP-SAT scheduling demo + architecture notesEnglishscheduling-demo/README.md

Two languages by design: the Python scenarios and most mini-books are in English; the study guides are in Hinglish (Hindi + English, Roman script) — a plain, conversational "senior explaining over chai" style. Technical terms stay in English throughout.


FAANG/google-python-problem-solving/

A scenario-based field guide (~190 scenarios) that trains the reflex *"I'm feeling X → the real problem is Y → reach for Z."* Not a syntax tutorial — a library of real situations a working ML/data engineer hits, each in a fixed 8-part format (situation → what's really going on → the move → why → line-by-line code → impact → pros/cons → where it shows up).

  • 11 core areas (area_1 … area_11): Pythonic craft · memory & performance · data wrangling · text processing · APIs/I-O/concurrency · parallelism & scale · robustness & batch · ML scenarios · DL & LLM · design & shipping · DSA patterns. (Plus band_a_data.md on getting the right answer out of in-memory data.)
  • 4-part interview track (interview_area_12–15): DSA problem bank · ML system design · behavioural/leadership · mock interviews & communication — tagged per company (Google, Meta, Amazon, Nvidia, Anthropic, OpenAI, Netflix).

▶️ Start at INDEX.md (every scenario, clickable) or INTERVIEW_PREP.md (company roadmap

  • 8-week schedule).

FAANG/dsa_guide/

A 13-chapter DSA guide built for a Senior ML Engineer (8–10 YOE) targeting Google/Microsoft — average coder → DSA-confident. Pattern-first (not a 500-problem grind), with a senior lens: fluency, clean code, communication, and what to skip. Every problem shows a clear Input → Output example and a dry-run trace; Python throughout.

  • Ch 01–02: interview strategy (per-topic weightage, what to skip, how to talk through a problem) + Big-O foundations.
  • Ch 03–12: arrays · hashing · strings · linked-lists/stacks/queues · recursion & backtracking · trees · heaps · graphs · binary-search & sorting · dynamic programming & greedy.
  • Ch 13: a master signal → pattern cheat-sheet + honest self-assessment.

▶️ Start at 01_interview_strategy.md.


system_design_course/

A 15-chapter course teaching AI/ML system design from first principles — how to think, how to act, how to draw, and which tool to use when (and when NOT). Trains the senior mindset: requirements → constraints → trade-offs, with pros/cons on every choice — then goes principal-level deep on LLM serving.

  • Thinking & process (Ch 01–04): mindset · 7-step method · diagramming · napkin-math (capacity estimation).
  • Tools & ML specifics (Ch 05–09): building blocks (12 tools, each with when/when-not) · ML system design (feature stores, serving, RAG) · reference blueprints · anti-patterns · end-to-end case studies.
  • Operating it (Ch 10–13): tool cheat-sheet · MLOps lifecycle · cost/FinOps · security & privacy.
  • Ch 14 (advanced deep-dive): LLM inference serving at scale — KV-cache math, continuous batching, PagedAttention, vLLM vs TGI vs Triton vs TensorRT-LLM, tensor/pipeline parallelism, quantization, speculative decoding, capacity & cost modelling, the p99 "latency cliff". (SAMPLE_tutorial_style.md shows the ground-up tutorial format used for such deep-dives.)

▶️ Start at 00_START_HERE.md.


FAANG/recommendation_ranking_systems_guide/

A 9-chapter guide to recommendation & ranking systems — Google's most common ML system-design prompt ("design video recommendations") — written from absolute zero: what a recommendation engine even is, before any math. Builds up to a full Staff-level interview walkthrough.

  • Ch 01–03 (foundations): what a rec engine is (the funnel, with napkin math) · embeddings, similarity & collaborative filtering (hand-computed on a tiny worked matrix) · matrix factorisation (trained in plain NumPy).
  • Ch 04–08 (industry depth): two-tower candidate generation & ANN · the ranking stage (pointwise/pairwise/listwise, NDCG by hand) · re-ranking, position bias, diversity & bandits · cold start & feedback loops · serving infra, feature stores & training-serving skew.
  • Ch 09 (interview): a full worked "design video recommendations" model answer + a condensed e-commerce search-ranking variant, L5 vs L6 expectations, and a 15-question rapid-fire bank.

▶️ Start at 01_recommendation_engine_kya_hota_hai.md.


FAANG/ab_testing_experimentation_guide/

A 7-chapter guide to A/B testing & experimentation — how to design, run, read, and act on product experiments, from zero stats background to the launch decision. Why it matters: every Staff-level ML design answer is expected to end with "how do we measure and launch this". Two running case studies throughout: an enterprise RAG copilot and a smart work-order scheduler.

  • Ch 01–03 (foundations): correlation vs causation, hypotheses & randomisation · metrics design (north-star / drivers / guardrails, Goodhart's law) · core statistics from scratch (p-values, power, sample size, z-test coded in NumPy).
  • Ch 04–06 (practice): experiment design (randomisation units, A/A tests, SRM, CUPED) · pitfalls (peeking, multiple comparisons, novelty, network effects & switchback tests) · ML/ranking/LLM experiments (interleaving, shadow mode, a full RAG-copilot experiment).
  • Ch 07 (decisions): reading scorecards (3 worked scenarios), trade-off frameworks, the 5-sentence "measure & launch" closer, and a 12-question interview bank.

▶️ Start at 01_experimentation_ka_big_picture.md.


FAANG/ml_coding_from_scratch_guide/

A 7-chapter guide for the ML-coding interview round — a distinct round from DSA where you implement ML algorithms live in plain Python/NumPy. Every algorithm follows the same arc: math intuition → tiny hand-computed example → NumPy implementation with shape comments → verify the code reproduces the hand computation → common bugs → interview variations. **All code in this guide has been executed and verified** (dry-run numbers match code output, both AUC methods agree, gradient checks pass).

  • Ch 01: round format + NumPy warmup (shapes & broadcasting — the #1 bug source, axis ka funda, vectorisation, the shape-debugging ritual).
  • Ch 02–04: linear & logistic regression (GD derived gently, numerical stability) · k-means & k-NN (full dry-run, broadcasting distance trick, k-means++) · metrics from scratch (confusion matrix, P/R/F1, ROC-AUC two ways, calibration).
  • Ch 05–06: softmax + cross-entropy + a 2-layer MLP with backprop and gradient checking · attention from scratch (scaled dot-product, causal mask, multi-head, layer norm).
  • Ch 07: data utilities (splits, k-fold, reservoir sampling) · the top-10 bug list (buggy vs fixed code) · a 4-week practice plan with per-algorithm time targets.

▶️ Start at 01_round_format_aur_numpy_warmup.md.


FAANG/google_scale_conversational_ai/

A single deep system-design case study: a conversational AI serving 1 billion users — 50M concurrent, 150ms first token, long-term memory. Built as Google L5 interview prep: every section has real numbers, a decision matrix, worked examples, failure modes, and an architecture-review line, plus a "what changes at Google scale vs a real production copilot" connection.

  • A_conversational_ai_billion_scale.md — the full written deep-dive (Hinglish).
  • google_scale_detailed_guide.html / google_scale_visual_guide.html / architecture_diagram.html — interactive HTML companions (open in a browser).

▶️ Start at A_conversational_ai_billion_scale.md.


shell_scripting_guide/

An 18-chapter guide from "what even is a terminal" to production-grade scripts and Dockerfile commands. Its signature: it breaks down the literal meaning of every symbol and flag (why $0, why /bin/bash, what -rf really does), with examples and real scenarios throughout.

  • Basics: terminal/shell/kernel & types · filesystem navigation · command anatomy (flags, --help, PATH) · file operations.
  • Core scripting: $ & variables · pipes/redirects & the Unix philosophy · permissions · editing in the terminal (nano/VIM/.zshrc) · conditions · loops & functions · arguments.
  • Applied: text processing (grep/sed/awk) · processes & jobs · error handling · writing the right commands for production/Dockerfiles · handy-tools cheat-sheet · common gotchas.

▶️ Start at 01_terminal_aur_shell.md.


RAG_Copilot Tutorials/

The deepest material in this repo — four long-form mini-books grounded in DC-Copilot, a production RAG system for maintenance work orders. All content lives in Copilot/.

**1. 01_minibook_llm_evaluation_advanced_rag_prompting/ — LLM Evaluation, Advanced RAG, Re-Ranking & Prompting** *(~14,000 lines, split into 8 chapter files + glossary · English)* A practitioner's guide to knowing whether your RAG system is actually good — and making it better. Start at 00_overview_and_toc.md.

  • Ch 1 — Evaluation: BLEU, ROUGE, METEOR, BERTScore, Perplexity · the full RAGAS suite · Human eval · LLM-as-a-Judge · G-Eval, SelfCheckGPT, drift detection, production observability — with a head-to-head comparison of all metrics.
  • Ch 2–3 — Advanced RAG & Re-Ranking: 9+ retrieval algorithms (sentence-window, parent-child, hybrid, HyDE, CRAG, Graph RAG…) and re-ranking methods.
  • Ch 4 — AWS DBT: the data/transformation layer for the eval pipeline.
  • Ch 5–7 — Prompting: advanced prompt engineering · chunking & semantic chunking · prompt security & defence.

**2. 02_langgraph_token_optimization_minibook.md — Advanced LangGraph & Token/Prompt Optimization** (~30,000 lines · 20 chapters · English) Every chapter follows an identical 23-section template (Also-Known-As → layman explanation → depth → do's/don'ts → real scenarios…) so topics compare side-by-side.

  • Part 1 — Advanced LangGraph: human-in-the-loop, persistence & time-travel debugging, dynamic graphs, multi-agent orchestration, streaming/async, error recovery, LangSmith observability, subgraphs, map-reduce, framework alternatives.
  • Part 2 — Token/Prompt Optimization: context-window management, message compaction/ summarisation, cost & latency reduction.

**3. 03_llm_finetuning_minibook.md — LLM Fine-Tuning: Dost ko Samjhane Wala Guide** (~2,000 lines · Hinglish) How LLMs work and how fine-tuning really happens — matrices se le kar 2025-era methods tak, with ⭐1–5 interview-importance ratings on every topic and a layman "jargon postmortem" for every term. Covers SFT, LoRA/QLoRA/DoRA, DPO/ORPO/SimPO/KTO, GRPO/DAPO, RLVR, distillation, model merging, CPT, synthetic data & decontamination, plus a full jargon dictionary.


RAG_Copilot Tutorials/Copilot/Harness_Engineering/

**harness_engineering_minibook.md — Harness Engineering: Turning a Model Into a Reliable AI Agent** (~9,700 lines · 10 chapters · English)

The thesis: a model is not an agent — the harness (context assembly, tool orchestration, verification loops, state management, observability, cost controls) is what turns raw intelligence into a system you can ship. Every chapter follows the same 23-section template (layman explanation → case study of a famous agent → two runnable production-code examples → DC-Copilot connection with exact file:line references → anti-patterns, benchmarks, cost calculators, interview Q&A…).

  • Part A — The Harness Components (Ch 1–7): what a harness is · context engineering (intent routing, running-summary compaction, precompute) · tool orchestration (tenant isolation, retry audits, pooling, fan-out) · verification & safety loops (quality gates, groundedness judges, the streaming constraint) · state & memory (DynamoDB checkpointing, deferred flush, staleness) · observability & evaluation (tracing, failure taxonomy, the eval flywheel) · cost & lifecycle controls (budgets, model routing, graceful shutdown).
  • Part B — Putting It Together (Ch 8–10): the four harness architecture patterns (deterministic pipeline → verified loop → supervisor → multi-agent) · agent testing & evaluation pipelines (chaos tests, RAGAS suites, CI gating) · production deployment & governance (eval-gated releases, canary rollback, audit trails, AI incident runbooks).
  • Grounding: every chapter's section N.11 maps the theory onto the real DC-Copilot codebase — what it already implements, and the exact gap the chapter's upgrade would fill. Case studies dissect Claude Code, GitHub Copilot agent mode, OpenAI Deep Research, and Devin.

Schedular CP-SAT/

Constraint-programming scheduling work — a CP-SAT demo and architecture notes from the Smart Scheduler service.

  • scheduling-demo/ — a simplified, interview-ready replica of the Smart Scheduler's core logic using Google OR-Tools CP-SAT. Five files walk through the full pipeline: data models → task-crew eligibility mapping → CP-SAT solver (variables, constraints, objective) → FastAPI endpoint → sample run. Includes a detailed README explaining each file, the 4-step solve pattern, API usage with sample request/response, and key interview talking points.
  • ARCHITECTURE_DIFFERENCES.md — current vs target scheduling-service architecture.
  • PROMPT_LAMBDA_DATA_RETENTION.md — Lambda data-retention design prompt.

▶️ Start at scheduling-demo/README.md.


🎯 How to use this repo

Your goalWhere to go
Sharpen Python / ML-engineering reflexesFAANG/google-python-problem-solving/ → INDEX.md
Prep a Senior/Staff ML interview loopFAANG/ — DSA, ML coding, recsys, A/B testing + system_design_course/
Learn / revise DSAFAANG/dsa_guide/ — read a chapter, then practise that pattern
Learn ML system designsystem_design_course/ (Ch 14 = advanced LLM serving)
Get comfortable in the terminalshell_scripting_guide/
Learn recommendations / A/B testing / ML codingFAANG/recommendation_ranking_systems_guide/ · FAANG/ab_testing_experimentation_guide/ · FAANG/ml_coding_from_scratch_guide/
Go deep on RAG eval, LangGraph, fine-tuning, agentsRAG_Copilot Tutorials/Copilot/ — four mini-books
Understand CP-SAT schedulingSchedular CP-SAT/ → scheduling-demo/README.md

On practice: these guides teach the patterns and reasoning — a strong base, but not a substitute for doing. For DSA especially, pair the guide with ~100–150 LeetCode problems (pattern-wise) and a few timed, spoken mock interviews.


✍️ Conventions

  • Problem-first — every concept starts as a relatable problem before any jargon; terms defined inline (no separate glossary).
  • Concrete examples — real sample data, real outputs, real failure modes, dry-run traces.
  • Navigable — every doc has its own clickable table of contents and "back to top" links.
  • Spelling — British/Indian (optimise, behaviour, normalise) in the English docs.

A personal, evolving knowledge base — built to learn deeply and interview confidently. 🌱

Reading position, read marks, and time are stored locally in your browser.