← 🧠 Foundations of LLMs & GenAI
Core
Attention and Self-Attention
Attention computes a weighted sum of value vectors, where the weights come from how well each token's query matches every other token's key. Self-attention applies this within one sequence so each token can pull from all the others, and the all-pairs comparison is why cost grows with the square of sequence length. FDE loops probe it because it explains context limits, latency, and the KV cache in one mental model.
a free account unlocks the core curriculum tier · no card
RELATED CONCEPTS
PRACTICE THIS IN REAL QUESTIONS
AI Security, Privacy & GovernanceExplain direct vs indirect prompt injection, and how each one actually breaks an LLM application.→LLM & GenAI FundamentalsWalk me through the transformer architecture end-to-end, minus the heavy math.→AI Security, Privacy & GovernanceWhy do system prompts leak, and what should never be in one?→AI Security, Privacy & GovernanceWalk me through the OWASP LLM Top 10, which two risks would you prioritize for an enterprise agent deployment?→RAG & Agent System DesignHow would you evaluate a RAG system before letting a customer launch it?→AI Security, Privacy & GovernanceWhat is 'excessive agency' in an agentic system, and what controls actually limit it?→
