The 2026 interview staple: transformers, embeddings, RAG vs fine-tuning, prompt design and evaluation, plus production-depth advanced RAG, agents/MCP, evals, safety and cost/latency math.
Preview — first 3 of 177 cards
What is a large language model (LLM)?
A neural network trained to predict the next token over vast text, which lets it generate coherent language and perform emergent tasks. It has no built-in knowledge base; knowledge is encoded in weights.
// Core operation: P(next_token | previous_tokens)
Transformer architecture (interview depth)
Text -> tokens -> embeddings + positional info -> stacked layers of (multi-head self-attention + feed-forward, with residuals and layer norm) -> logits over vocabulary. Attention is what lets tokens consider context.
Layer: LayerNorm -> MHA -> residual -> LayerNorm -> FFN -> residual
Self-attention in one equation
Attention(Q,K,V)=softmax(QK^T/sqrt(d_k))V. Each token's query matches all keys; outputs are weighted sums of values, letting every token attend to every other token.
scores = Q @ K.T / sqrt(d_k)
weights = softmax(scores)
out = weights @ V
174 more cards in this sheet
Unlock the Backend, Databases & AI bundle — ₹399
One-time payment. Unlocks this sheet and 14 other sheets in the bundle, plus a typeset PDF of each.
Unlock the bundle
See all bundles
Or get all 76 sheets for ₹999 — one payment, every future sheet included.