Concept graph

All 274 concepts as a territory: each color is a topic and each line links related ideas. Tap a dot to open it.

Tokens & tokenizationTokens & tokenizationEmbeddingsEmbeddingsTransformer architectureTransformer architectureSelf-attentionSelf-attentionContext windowContext windowDecoding & sampling (temperature, top-p)Decoding & sampling (temperature…KV cacheKV cacheHow LLMs are trainedHow LLMs are trainedScaling laws & ChinchillaScaling laws & ChinchillaMixture of Experts (MoE)Mixture of Experts (MoE)Reasoning models & test-time computeReasoning models & test-time com…Hallucinations: why they happenHallucinations: why they happenMultimodal modelsMultimodal modelsEncoder vs decoder models (BERT vs GPT)Encoder vs decoder models (BERT …Choosing a modelChoosing a modelAnatomy of a promptAnatomy of a promptZero-shot vs few-shot promptingZero-shot vs few-shot promptingChain-of-thought (CoT)Chain-of-thought (CoT)Structured outputs & JSON modeStructured outputs & JSON modePrompt techniques that matterPrompt techniques that matterContext engineeringContext engineeringPrompt cachingPrompt cachingLong context vs RAGLong context vs RAGLost in the middle & context rotLost in the middle & context rotPrompts as code: versioningPrompts as code: versioningSelf-consistency & best-of-NSelf-consistency & best-of-NAutomatic prompt optimization (DSPy)Automatic prompt optimization (D…RAG (Retrieval-Augmented Generation)RAG (Retrieval-Augmented Generat…Document ingestion & parsingDocument ingestion & parsingChunking strategiesChunking strategiesChoosing an embedding modelChoosing an embedding modelVector databasesVector databasesANN indexes: HNSW, IVF, PQANN indexes: HNSW, IVF, PQLexical search & BM25Lexical search & BM25Hybrid search & RRFHybrid search & RRFReranking (cross-encoders)Reranking (cross-encoders)Query transformation (rewrite, HyDE)Query transformation (rewrite, H…Contextual retrievalContextual retrievalMetadata filters & permission-aware retrievalMetadata filters & permission-aw…Citations & groundingCitations & groundingGraphRAG & knowledge graphsGraphRAG & knowledge graphsAgentic RAGAgentic RAGLate interaction (ColBERT)Late interaction (ColBERT)Index freshness & lifecycleIndex freshness & lifecycleEvaluating RAGEvaluating RAGAgents vs workflowsAgents vs workflowsTool / function callingTool / function callingReAct: the agent loopReAct: the agent loopDesigning tools for agents (ACI)Designing tools for agents (ACI)Pattern: prompt chainingPattern: prompt chainingPattern: routingPattern: routingPattern: parallelizationPattern: parallelizationPattern: orchestrator–workersPattern: orchestrator–workersPattern: evaluator–optimizerPattern: evaluator–optimizerPlanning (plan-and-execute)Planning (plan-and-execute)Agent memoryAgent memoryModel Context Protocol (MCP)Model Context Protocol (MCP)Agent-to-agent protocols (A2A)Agent-to-agent protocols (A2A)Multi-agent systemsMulti-agent systemsComputer use & browser agentsComputer use & browser agentsDurable execution for agentsDurable execution for agentsHuman-in-the-loop & approvalsHuman-in-the-loop & approvalsAgent reliability: budgets & loopsAgent reliability: budgets & loopsEval-driven developmentEval-driven developmentError analysis: look at your dataError analysis: look at your dataGolden datasets & test setsGolden datasets & test setsCode-based graders & assertionsCode-based graders & assertionsLLM-as-a-judgeLLM-as-a-judgeHuman evaluation & annotationHuman evaluation & annotationPrecision, recall, F1, ROC-AUCPrecision, recall, F1, ROC-AUCMeasuring hallucination & groundednessMeasuring hallucination & ground…Evaluating agentsEvaluating agentsNon-determinism: pass@k & varianceNon-determinism: pass@k & varianceOffline vs online evaluationOffline vs online evaluationA/B testing LLM featuresA/B testing LLM featuresPublic benchmarks & contaminationPublic benchmarks & contaminationEvals in CI/CD & release gatesEvals in CI/CD & release gatesPrompt → RAG → fine-tune: the decisionPrompt → RAG → fine-tune: the de…Supervised fine-tuning (SFT)Supervised fine-tuning (SFT)LoRA & QLoRALoRA & QLoRARLHF: reinforcement learning from human feedbackRLHF: reinforcement learning fro…DPO & preference optimizationDPO & preference optimizationRL with verifiable rewards (GRPO)RL with verifiable rewards (GRPO)Knowledge distillationKnowledge distillationSynthetic dataSynthetic dataTraining data quality & curationTraining data quality & curationCatastrophic forgettingCatastrophic forgettingContinued pretrainingContinued pretrainingFine-tuning embeddings & rerankersFine-tuning embeddings & rerankersDistributed training: DP, TP, PP, FSDPDistributed training: DP, TP, PP…Latency metrics: TTFT, TPOT, throughputLatency metrics: TTFT, TPOT, thr…Prefill vs decodePrefill vs decodeGPU memory mathGPU memory mathContinuous batchingContinuous batchingPagedAttention & vLLMPagedAttention & vLLMFlashAttentionFlashAttentionQuantization (INT8, INT4, FP8)Quantization (INT8, INT4, FP8)Speculative decodingSpeculative decodingSelf-hosted serving stackSelf-hosted serving stackAPI vs self-hostingAPI vs self-hostingToken economics & cost estimationToken economics & cost estimationModel routing & cascadesModel routing & cascadesSemantic cachingSemantic cachingLLM gatewayLLM gatewayStreaming responses (SSE)Streaming responses (SSE)Batch inferenceBatch inferenceLLM observability & tracingLLM observability & tracingPrompt injection (direct & indirect)Prompt injection (direct & indir…The lethal trifectaThe lethal trifectaJailbreaksJailbreaksOWASP Top 10 for LLM appsOWASP Top 10 for LLM appsGuardrails: input, output, actionGuardrails: input, output, actionPII & data privacyPII & data privacyMulti-tenant isolation in AI appsMulti-tenant isolation in AI appsRed teaming AI systemsRed teaming AI systemsModel & data supply chainModel & data supply chainAlignment & Constitutional AIAlignment & Constitutional AIResponsible AI: bias, fairness, transparencyResponsible AI: bias, fairness, …EU AI ActEU AI ActNIST AI RMF & ISO/IEC 42001NIST AI RMF & ISO/IEC 42001Reference architecture of an LLM applicationReference architecture of an LLM…Quality, latency, cost: the AI trade-off triangleQuality, latency, cost: the AI t…Resilience: multi-provider failover & degradationResilience: multi-provider failo…Identity & authorization for agentsIdentity & authorization for age…Caching layers in an AI systemCaching layers in an AI systemModel upgrades & deprecationsModel upgrades & deprecationsThe data flywheelThe data flywheelVector search at billion scaleVector search at billion scaleOn-device & edge inferenceOn-device & edge inferenceThe GenAI system design frameworkThe GenAI system design frameworkDesign: enterprise knowledge assistantDesign: enterprise knowledge ass…Design: customer support agentDesign: customer support agentDesign: ChatGPT-style assistant at scaleDesign: ChatGPT-style assistant …Design: AI coding assistantDesign: AI coding assistantDesign: semantic product searchDesign: semantic product searchDesign: document extraction pipelineDesign: document extraction pipe…Design: content moderation systemDesign: content moderation systemDesign: text-to-SQL analytics assistantDesign: text-to-SQL analytics as…Design: real-time voice agentDesign: real-time voice agentDesign: internal AI platformDesign: internal AI platformDesign: evaluation platform for agentsDesign: evaluation platform for …Design: LLM-powered recommendationsDesign: LLM-powered recommendati…Design: review summarization with injection & PII defensesDesign: review summarization wit…Design: news feed rankingDesign: news feed rankingDesign: ads click-through predictionDesign: ads click-through predic…Design: real-time fraud detectionDesign: real-time fraud detectionDesign: deep research agentDesign: deep research agentDesign: AI answer engine (search + LLM)Design: AI answer engine (search…Design: LLM inference platformDesign: LLM inference platformDesign: data engine for autonomous drivingDesign: data engine for autonomo…Supervised learning, bias–variance & overfittingSupervised learning, bias–varian…Loss functions & gradient descentLoss functions & gradient descentRegularizationRegularizationNeural networks & backpropagationNeural networks & backpropagationGradient-boosted trees (GBDT)Gradient-boosted trees (GBDT)Feature engineering & data leakageFeature engineering & data leakageClass imbalance & calibrationClass imbalance & calibrationLearning to rank (LTR)Learning to rank (LTR)Exploration: multi-armed banditsExploration: multi-armed banditsComputer vision: CNNs & Vision TransformersComputer vision: CNNs & Vision T…Contrastive learning & CLIPContrastive learning & CLIPDiffusion modelsDiffusion modelsThe ML lifecycleThe ML lifecycleLLMOps vs MLOpsLLMOps vs MLOpsFeature storesFeature storesTraining–serving skewTraining–serving skewData drift & concept driftData drift & concept driftModel registry & versioningModel registry & versioningExperiment tracking & reproducibilityExperiment tracking & reproducib…Monitoring models in productionMonitoring models in productionBatch vs real-time inferenceBatch vs real-time inferenceRecommendation systemsRecommendation systemsData platform for AIData platform for AIBack-of-the-envelope estimationBack-of-the-envelope estimationCAP & PACELCCAP & PACELCConsistency modelsConsistency modelsReplicationReplicationPartitioning & shardingPartitioning & shardingConsistent hashingConsistent hashingConsensus (Raft)Consensus (Raft)Caching strategiesCaching strategiesQueues vs streams (Kafka)Queues vs streams (Kafka)IdempotencyIdempotencyRetries, backoff & circuit breakersRetries, backoff & circuit break…Rate limitingRate limitingBackpressure & load sheddingBackpressure & load sheddingLoad balancingLoad balancingSLIs, SLOs & error budgetsSLIs, SLOs & error budgetsDisaster recovery (RPO & RTO)Disaster recovery (RPO & RTO)SQL vs NoSQLSQL vs NoSQLDatabase indexes: B-tree vs LSMDatabase indexes: B-tree vs LSMEvent sourcing & CQRSEvent sourcing & CQRSSagas & the outbox patternSagas & the outbox patternMonolith vs microservicesMonolith vs microservicesObservability: logs, metrics, tracesObservability: logs, metrics, tr…Multi-tenancy patternsMulti-tenancy patternsAPI design: REST, gRPC, asyncAPI design: REST, gRPC, asyncCDNs and edge cachingCDNs and edge cachingObject storage (S3-style)Object storage (S3-style)Probabilistic data structuresProbabilistic data structuresStorage engines: LSM-tree vs B-treeStorage engines: LSM-tree vs B-t…Clocks and event orderingClocks and event orderingGossip protocols & failure detectionGossip protocols & failure detec…Distributed locks and fencing tokensDistributed locks and fencing to…Stream processing: windows, watermarks, stateStream processing: windows, wate…Real-time delivery: polling, SSE, WebSocketsReal-time delivery: polling, SSE…Geospatial indexing (geohash, S2, H3)Geospatial indexing (geohash, S2…AuthN vs AuthZ: sessions, JWT, OAuthAuthN vs AuthZ: sessions, JWT, O…Encryption & secrets managementEncryption & secrets managementDeployment strategies (canary, blue-green, flags)Deployment strategies (canary, b…Design: URL shortenerDesign: URL shortenerDesign: distributed rate limiterDesign: distributed rate limiterDesign: news feedDesign: news feedDesign: chat systemDesign: chat systemDesign: notification systemDesign: notification systemDesign: search autocomplete (typeahead)Design: search autocomplete (typ…Design: web crawlerDesign: web crawlerDesign: distributed key-value storeDesign: distributed key-value st…Design: distributed cacheDesign: distributed cacheDesign: video streaming platformDesign: video streaming platformDesign: ride hailing (Uber, Lyft)Design: ride hailing (Uber, Lyft)Design: proximity service (Yelp)Design: proximity service (Yelp)Design: payment systemDesign: payment systemDesign: digital walletDesign: digital walletDesign: ticket bookingDesign: ticket bookingDesign: collaborative editorDesign: collaborative editorDesign: distributed job schedulerDesign: distributed job schedulerDesign: file sync (Dropbox)Design: file sync (Dropbox)Design: metrics and monitoring systemDesign: metrics and monitoring s…Design: distributed message queueDesign: distributed message queueDesign: ad click aggregatorDesign: ad click aggregatorDesign: top-K and heavy hittersDesign: top-K and heavy hittersDesign: real-time leaderboardDesign: real-time leaderboardBig-O and complexity analysisBig-O and complexity analysisHash maps, sets and prefix sumsHash maps, sets and prefix sumsPrefix sums and difference arraysPrefix sums and difference arraysTwo pointersTwo pointersSliding windowSliding windowBinary search and search on the answerBinary search and search on the …Linked listsLinked listsBinary trees and BSTsBinary trees and BSTsStacks and monotonic stacksStacks and monotonic stacksHeaps and top-KHeaps and top-KInterval problems: sort and sweepInterval problems: sort and sweepGraph traversal: BFS and DFSGraph traversal: BFS and DFSTopological sortTopological sortUnion-Find (Disjoint Set Union)Union-Find (Disjoint Set Union)Shortest Paths (BFS, Dijkstra, Bellman-Ford)Shortest Paths (BFS, Dijkstra, B…Dynamic ProgrammingDynamic ProgrammingGreedy algorithmsGreedy algorithmsBacktrackingBacktrackingTries (Prefix Trees)Tries (Prefix Trees)Design a data structure (LRU cache)Design a data structure (LRU cac…What Staff/Principal actually meansWhat Staff/Principal actually me…Writing a technical strategyWriting a technical strategyDesign docs & RFCsDesign docs & RFCsArchitecture Decision Records (ADRs)Architecture Decision Records (A…One-way vs two-way doorsOne-way vs two-way doorsBuild vs buy (and AI vendor selection)Build vs buy (and AI vendor sele…Influence without authorityInfluence without authorityCommunicating trade-offs to executivesCommunicating trade-offs to exec…Managing technical debtManaging technical debtAI adoption strategy & roadmapAI adoption strategy & roadmapRolling out AI coding agents in an orgRolling out AI coding agents in …AI cost governance (FinOps for AI)AI cost governance (FinOps for AI)Incidents & blameless postmortemsIncidents & blameless postmortemsMentoring, coaching & sponsorshipMentoring, coaching & sponsorshipBehavioral interviews: STAR storiesBehavioral interviews: STAR stor…Leading cross-team projectsLeading cross-team projectsPlanning & estimationPlanning & estimationEngineering metrics (DORA)Engineering metrics (DORA)Code reviewCode reviewHiring and structured interviewsHiring and structured interviewsPrioritization and saying noPrioritization and saying noLLM FundamentalsPrompting & Context EngineeringRAG & RetrievalAgents & Tool UseEvaluationFine-tuning & AdaptationInference, Serving & CostSecurity, Safety & GovernanceAI ArchitectureAI System Design CasesML FoundationsMLOps & ML SystemsDistributed SystemsSystem Design ClassicsCoding Interview PatternsStaff/Principal Leadership