Spaces:
Running
Running
Rewrite all 8 featured quizzes with deeper research and clear difficulty progression
Browse filesFiles changed (8)
- packs/ai-agents.json+130-103
- packs/ai-history.json+125-106
- packs/diffusion.json+124-99
- packs/french-revolution.json+127-102
- packs/llm-training.json+120-99
- packs/open-source-ai.json+124-106
- packs/transformers.json+116-103
- packs/voice-ai.json+126-111
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165{"title": "AI Agents and Tool Use","emoji": "🤖","brief": "This quiz covers how AI agents plan, call tools, and look up outside facts instead of relying only on training data.","questions": [{"question": "What defines an intelligent agent, in the most general sense?","answer": "An intelligent agent senses what is around it and acts on its own to reach a goal. It can also learn over time to do better.","key_points": ["Senses its environment","Acts on its own to reach a goal","Can learn and improve over time"],"hint": "Think of the basic loop of sensing and acting.","fun_fact": "By this broad definition, even a simple thermostat counts as an intelligent agent.","difficulty": 1,"source": 1,"id": 0,"required": [0,1]},{"question": "How does the definition of an AI agent differ from a basic intelligent agent like a thermostat?","answer": "An AI agent plans ahead and takes steps over time to reach a goal. A thermostat only reacts to the temperature right now.","key_points": ["Plans ahead and works toward goals over time","A thermostat only reacts to what is happening right now"],"hint": "Think about planning ahead versus reacting right away.","fun_fact": "In textbooks, even a whole company or a country can be modeled as an agent.","difficulty": 1,"source": 1,"id": 1,"required": [0]},{"question": "How can a software harness extend what a large language model can do?","answer": "A software harness wraps the model with memory and tools like web search. That lets it look things up and take action, not just predict text from old training data.","key_points": ["Gives the model memory and tools like web search","Lets it take action beyond just generating text from training data"],"hint": "Think about the code wrapped around the model, not the model itself.","fun_fact": "Apps like ChatGPT are language models inside a harness, which is how they search the web and remember chats.","difficulty": 1,"source": 2,"id": 2,"required": [0]},{"question": "What is an objective function in the context of intelligent agents?","answer": "It defines the agent's goal and scores how well it did. A smarter agent picks moves that earn a higher score.","key_points": ["Defines the agent's goal and measures how well it did","Can balance competing goals"],"hint": "It is the score the agent tries to push higher.","fun_fact": "AlphaZero's chess score was super simple: plus one for a win and minus one for a loss.","difficulty": 2,"source": 1,"id": 3,"required": [0]},{"question": "Why does retrieval-augmented generation reduce the need to retrain a language model?","answer": "New facts go into an outside database instead of the model's weights. You just update the database, which skips expensive retraining.","key_points": ["New facts go into an external database, so you do not have to retrain the model","Saves compute and money"],"hint": "The updates live outside the model itself.","fun_fact": "A 2020 paper first coined RAG by pairing a language model with an outside searchable memory.","difficulty": 2,"source": 3,"id": 4,"required": [0]},{"question": "Describe the main stages of how RAG works.","answer": "First, documents get turned into vectors and saved in a database. When you ask a question, a retriever pulls the best matches and adds them to the prompt so the model answers from both.","key_points": ["Documents are turned into embeddings in a vector database","A retriever pulls the documents that match your question","Those passages go into the prompt so the model answers from both"],"hint": "Start with how the documents are stored before anyone asks a question.","fun_fact": "RAG is not only for plain text. It can also pull from tables and knowledge graphs.","difficulty": 2,"source": 3,"id": 5,"required": [1,2]},{"question": "Can RAG completely eliminate hallucinations? Explain why or why not.","answer": "No. RAG cuts down made-up facts, but the model can still misread a passage or pull from a wrong source.","key_points": ["No, it cuts down hallucinations but does not stop them completely","The model can still misread the retrieved text, or the source itself can be wrong"],"hint": "Does handing someone a true fact guarantee they read it right?","fun_fact": "One model claimed Barack Obama was America's first Muslim president because it took a sarcastic chapter title literally.","difficulty": 2,"source": 3,"id": 6,"required": [0,1]},{"question": "How does rationality apply to an agent's decisions, given that agents are not omniscient?","answer": "A rational agent picks the move with the best expected result based on what it knows right now. Being rational does not mean knowing everything or winning every time.","key_points": ["Picks the action with the best expected result","Judged on what it knows right now, not on knowing everything or always winning"],"hint": "You judge a smart choice before you see how luck turns out.","fun_fact": "Russell and Norvig built their famous AI textbook around this exact idea of rational agents.","difficulty": 3,"source": 1,"id": 7,"required": [0,1]}],"id": "ad9e42e96fa6","topic": "AI agents and tool use","slug": "ai-agents","difficulty": "pro","model": "zai-org/GLM-5.3","sources": [{"title": "Intelligent agent","url": "https://en.wikipedia.org/wiki/Intelligent_agent","site": "wikipedia.org"},{"title": "Large language model","url": "https://en.wikipedia.org/wiki/Large_language_model","site": "wikipedia.org"},{"title": "Retrieval-augmented generation","url": "https://en.wikipedia.org/wiki/Retrieval-augmented_generation","site": "wikipedia.org"}],"tagline": "When LLMs start taking actions","order": 4}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192{"title": "AI Agents and Tool Use","emoji": "🤖","brief": "AI agents go beyond chatting by planning steps, running software tools, and reacting to real results. Let's test how they work, where they shine, and how they fail.","questions": [{"id": 0,"concept": "Agent Loop","question": "What makes an AI agent different from a plain chatbot that only replies to your message?","answer": "An agent runs in a loop instead of giving one single reply. It plans a step, calls external tools, reads the result, and picks the next action. It keeps repeating that cycle until it finishes the goal or gets stuck.","key_points": ["It loops by calling tools, reading results, and deciding its own next step","It keeps repeating that cycle until the task is complete","A plain chatbot stops after one single text reply"],"required": [0],"hint": "Picture a chef tasting the soup, adding salt, and checking again rather than serving the very first pour.","fun_fact": "Anthropic found that many top coding agents skip heavy frameworks and run on a simple loop with just a few well-designed tools.","difficulty": 1,"source": 1},{"id": 1,"concept": "Tool Calling","question": "When an AI agent uses a tool like a calculator or web search, what actually happens under the hood?","answer": "The language model never runs the tool directly because it only outputs text. Instead, it writes a structured request naming the tool and its inputs. The surrounding program runs that code and hands the output back to the model.","key_points": ["The language model outputs a structured request with the tool name and arguments","The host program runs the tool and sends the result back to the model","The model itself only produces text and cannot run external code directly"],"required": [0,1],"hint": "Think of a brain in a jar that must ask a helper outside to press buttons and read the screen.","fun_fact": "Because tool calls are still just generated text, a model can invent fake tool names unless the host app checks every request.","difficulty": 1,"source": 1},{"id": 2,"concept": "ReAct Pattern","question": "How does the ReAct pattern pair thinking with acting, and why does each side need the other?","answer": "ReAct alternates between a short written thought, a tool action, and the returned observation. Reasoning helps the agent break down goals, track progress, and recover when an action fails. Acting brings in fresh outside facts, which stops pure reasoning from drifting into made-up claims.","key_points": ["It repeats a thought, an action, and an observation step by step","Written thoughts help the agent plan, adjust, or recover from errors","Actions bring in real external facts so reasoning stays grounded instead of guessing"],"required": [0,1,2],"hint": "Imagine a detective jotting notes on a board after each clue before choosing which lead to chase.","fun_fact": "The original ReAct paper tested the same simple loop on both Wikipedia fact-finding and text-based household puzzle games.","difficulty": 2,"source": 2},{"id": 3,"concept": "Retrieval-Augmented Generation","question": "How does retrieval-augmented generation give an agent new knowledge without retraining, and why can it still hallucinate?","answer": "First, the system searches an outside document store for passages that match the question. It pastes those retrieved passages straight into the prompt so the model answers from fresh text. Hallucinations still happen when search pulls the wrong snippet or the model ignores the source text.","key_points": ["It searches external documents and inserts matching passages into the prompt at answer time","It can still hallucinate if retrieval fetches wrong or outdated snippets, or if the model ignores or misreads the retrieved text","Because documents live outside the model weights, you can update facts without retraining"],"required": [0,1],"hint": "Compare it to an open-book exam where a student can flip to a bad page or skim past a line.","fun_fact": "Researchers invented retrieval-augmented generation years before modern chatbots arrived by connecting an early text model to a searchable Wikipedia index.","difficulty": 2,"source": 3},{"id": 4,"concept": "Context Rot and Memory","question": "Why does an agent get worse as tool outputs fill its context window, and how does external memory help?","answer": "As raw tool outputs pile up, the model spreads its attention thin and suffers context rot. Important instructions get buried in noise, so recall drops long before the token limit hits. External memory stores notes outside the active window and fetches only relevant pieces when needed.","key_points": ["Piling up noisy tool outputs spreads the model's attention thin, buries key instructions, or hurts recall","External memory stores information outside the active prompt and loads only relevant pieces when needed","Teams also fight bloat by summarizing past turns or dropping bulky raw logs"],"required": [0,1],"hint": "Consider working at a messy desk covered in receipts versus using a neat filing cabinet across the room.","fun_fact": "Some agent systems spin up fresh helper sub-agents with blank context windows so noisy web searches never clutter the main agent's workspace.","difficulty": 2,"source": 4},{"id": 5,"concept": "Indirect Prompt Injection","question": "How does indirect prompt injection hijack an agent's tools, and why do teams sandbox it with least privilege?","answer": "An attacker hides sneaky commands inside untrusted data like a webpage, email, or file. Because the model blends data and instructions together, it can obey that trap and misuse its tools. Sandboxing with least privilege limits access, so a hijacked agent cannot leak secrets or wipe data.","key_points": ["Hidden instructions placed inside untrusted external data trick the model into running unauthorized tool actions","Sandboxing and least privilege restrict permissions so a hijacked agent can only cause limited harm","Language models struggle to strictly separate trusted system rules from untrusted text they read"],"required": [0,1],"hint": "Suppose a bank courier opens a letter containing a forged note ordering them to empty the vault, so you only hand them a small cash box.","fun_fact": "Security researchers showed that poisoned prompts can spread like computer worms by tricking an email assistant into forwarding the same trap to new victims.","difficulty": 3,"source": 5},{"id": 6,"concept": "Compounding Agent Errors","question": "Why does an agent that gets almost every single step right still fail often on a twenty-step task?","answer": "Small error rates multiply across steps, so a 90 percent step score fails most twenty-step runs. One early mistake also poisons later decisions because the agent builds on its own bad output. Without clear checks or stop rules, agents also burn tokens repeating the same broken retry loop.","key_points": ["Small per-step errors compound across long chains, so even high step accuracy yields low overall success","One early error can cascade into later steps or trap the agent in a stuck retry loop","Checkpoints, verification steps, and turn limits help stop errors from snowballing"],"required": [0],"hint": "Try rolling dice a dozen times when you only win if you dodge snake eyes on every throw.","fun_fact": "Even an agent that nails 95 percent of individual steps clears a twenty-step chain just over one third of the time.","difficulty": 3,"source": 1},{"id": 7,"concept": "Workflows vs Autonomous Agents","question": "When should you choose a fixed workflow over an autonomous agent, and what do you gain by doing that?","answer": "Pick a fixed workflow whenever the task steps are clear and predictable up front. Scripted paths run faster, cost less, and are far easier to test and debug. Save open-ended agents for messy problems where you cannot map out the steps ahead of time.","key_points": ["Use a fixed workflow when the task steps are known and predictable up front","Fixed workflows bring better reliability, lower cost, lower latency, or easier debugging than autonomous loops","Save autonomous agents for open-ended problems where the needed steps cannot be mapped in advance"],"required": [0,1],"hint": "Contrast a train gliding along steel rails with an off-road truck exploring unmarked trails.","fun_fact": "Anthropic's own agent guide tells engineers to skip autonomous agents first and see if a plain prompt or scripted pipeline already solves the job.","difficulty": 3,"source": 1}],"id": "ad9e42e96fa6","topic": "AI agents and tool use","slug": "ai-agents","difficulty": "pro","model": "gemini","sources": [{"title": "Building Effective Agents","url": "https://www.anthropic.com/engineering/building-effective-agents","site": "Anthropic Engineering"},{"title": "ReAct: Synergizing Reasoning and Acting in Language Models","url": "https://arxiv.org/abs/2210.03629","site": "arXiv"},{"title": "Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks","url": "https://arxiv.org/abs/2005.11401","site": "arXiv"},{"title": "Effective Context Engineering for AI Agents","url": "https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents","site": "Anthropic Engineering"},{"title": "Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection","url": "https://arxiv.org/abs/2302.12173","site": "arXiv"}],"tagline": "How language models plan, act, and fail","order": 4}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169{"title": "Milestones of AI History","emoji": "🤖","brief": "This quiz traces the big turning points in AI, from Alan Turing's imitation game to modern chatbots, and shows how hype and setbacks keep repeating.","questions": [{"question": "What does the Turing test ask a machine to do in order to pass?","answer": "A human judge types back and forth with both a person and a machine without knowing which is which. The machine passes if the judge cannot reliably tell them apart.","key_points": ["A human judge chats with a machine and a person without knowing which is which","The machine passes if the judge cannot reliably tell it apart","Sounding human matters, not getting facts right"],"hint": "Think about passing as a person, not getting trivia right.","fun_fact": "Turing called it the imitation game in his 1950 paper, which starts with the line: Can machines think?","difficulty": 1,"source": 2,"id": 0,"required": [1]},{"question": "What happened at the Dartmouth workshop of 1956, and why is it important?","answer": "The 1956 Dartmouth workshop kicked off AI as its own research field. Allen Newell and Herbert Simon showed the Logic Theorist there, and the people who came led AI for decades.","key_points": ["The founding event of AI as a research field","Held at Dartmouth College in 1956","Newell and Simon showed the Logic Theorist","The attendees led AI research for decades"],"hint": "It is known as the birthplace of AI, even though people thought it fell short at the time.","fun_fact": "Right after it ended, the workshop looked like a flop because it did not deliver human-level AI within a generation.","difficulty": 1,"source": 1,"id": 1,"required": [0]},{"question": "What is an AI winter?","answer": "An AI winter is a stretch when money and interest in AI dry up after big promises fall flat. Two major ones hit from 1974 to 1980 and from 1987 to 2000.","key_points": ["A stretch of low funding and interest in AI","Follows big hype and letdown","Major winters hit in the mid-1970s and late 1980s"],"hint": "Think of a cold season when funding freezes over.","fun_fact": "Researchers coined the term in 1984, warning that 1980s hype could trigger a chain reaction like a nuclear winter.","difficulty": 1,"source": 3,"id": 2,"required": [0]},{"question": "Why did the 1966 ALPAC report kill funding for machine translation research?","answer": "The panel found machine translation slower, costlier, and worse than human translators, so the U.S. cut off funding. Early teams had not realized how hard it is for a computer to grasp real meaning.","key_points": ["Found machine translation slower, costlier, and less accurate than human translators","The National Research Council cut off funding","Computers struggled to grasp meaning in context"],"hint": "Compare cost, speed, and quality against people doing the same job.","fun_fact": "A famous urban legend says an early translator turned the spirit is willing but the flesh is weak into the vodka is good but the meat is rotten.","difficulty": 2,"source": 3,"id": 3,"required": [0]},{"question": "Why did mainstream research into perceptrons stop around 1969?","answer": "In 1969, Minsky and Papert showed that simple single-layer networks could not solve basic problems, which scared off funding. People did not yet know how to train deeper networks because backpropagation was still years away.","key_points": ["Minsky and Papert's 1969 book showed the limits of single-layer perceptrons","No one knew how to train multi-layer networks yet","Backpropagation was still years away"],"hint": "Their book pointed out a flaw in simple networks, and nobody had the fix yet.","fun_fact": "Neural nets did not bounce back until the mid-1980s, thanks to John Hopfield and David Rumelhart.","difficulty": 2,"source": 3,"id": 4,"required": [0]},{"question": "Why did governments cut funding for AI research in 1974?","answer": "The Lighthill report in Britain and pressure from the U.S. Congress argued AI had missed its big promises. Both governments cut funding for open-ended AI research because the field proved much harder than expected.","key_points": ["AI missed its promises and proved much harder than expected, as the Lighthill report and U.S. Congress argued","The U.S. and British governments stopped funding open-ended AI research"],"hint": "A harsh review and political pushback hit in two countries at once.","fun_fact": "Just seven years later, Japan's Fifth Generation project and expert systems brought billions back into AI.","difficulty": 2,"source": 1,"id": 5,"required": [0]},{"question": "Why did machine learning take off in the early 2000s after the AI winters?","answer": "Faster computers, huge datasets, and stronger math all came together, so machine learning started working in the real world. Soon after, deep learning pulled far ahead of older methods.","key_points": ["Faster computer hardware","Huge datasets","Stronger math methods","Deep learning then broke through"],"hint": "Three things lined up at once: hardware, data, and math.","fun_fact": "AI work never really stopped during the winters. Teams just called it machine learning instead.","difficulty": 2,"source": 1,"id": 6,"required": [0,1]},{"question": "How did the transformer architecture lead to the rise of chatbots like ChatGPT and Claude?","answer": "The 2017 transformer made it practical to scale up large language models. That kicked off the 2020s boom of public chatbots like ChatGPT and Claude.","key_points": ["Made it practical to build and scale up large language models","Introduced in 2017","Sparked the 2020s boom of public chatbots"],"hint": "Think about what let teams grow neural text models to huge sizes.","fun_fact": "Even during the boom, debate over AI safety and ethics grew just as fast as the models themselves.","difficulty": 3,"source": 1,"id": 7,"required": [0]}],"id": "e8268da26983","topic": "The history of artificial intelligence","slug": "ai-history","difficulty": "pro","model": "zai-org/GLM-5.3","sources": [{"title": "History of artificial intelligence","url": "https://en.wikipedia.org/wiki/History_of_artificial_intelligence","site": "wikipedia.org"},{"title": "Turing test","url": "https://en.wikipedia.org/wiki/Turing_test","site": "wikipedia.org"},{"title": "AI winter","url": "https://en.wikipedia.org/wiki/AI_winter","site": "wikipedia.org"}],"tagline": "From Turing to ChatGPT","order": 6}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188{"title": "Milestones of AI History","emoji": "🤖","brief": "Trace how artificial intelligence grew from a bold parlor game into systems that beat world champions. Along the way, explore the hype cycles, dead ends, and hard-won lessons that shaped the field.","questions": [{"id": 0,"concept": "Turing's imitation game","question": "In 1950, why did Alan Turing replace the question of whether machines can think with his imitation game?","answer": "Turing thought words like think and machine were too vague to test cleanly. Instead, he judged intelligence by observable behavior in a blind text conversation with a human. If a judge could not tell the machine from a person, it passed the test.","key_points": ["Asking if machines think is too vague to test, or he wanted to judge observable behavior instead","In the game, a judge chats over text and tries to tell the machine from a person","It shifted AI from arguing about inner consciousness to testing practical performance"],"required": [0],"hint": "Picture trying to peer inside someone's skull versus simply watching how they act.","fun_fact": "Turing modeled his famous test on a party game where a judge tried to tell a hidden man and woman apart using only typed notes.","difficulty": 1,"source": 1},{"id": 1,"concept": "AI winters","question": "What is an AI winter, and what usually triggers one?","answer": "An AI winter is a long stretch when funding, research interest, and public optimism dry up. It usually begins after big hype and bold promises collide with real-world limits. Once systems disappoint backers, governments and companies pull their money and walk away.","key_points": ["A period when AI funding, attention, and research activity sharply drop","Triggered when overhyped promises fail to deliver working results","AI suffered two major winters in the seventies and late eighties"],"required": [0,1],"hint": "Imagine investors pouring cash into a wild forecast, then freezing out the whole field if the magic stalls.","fun_fact": "The 1956 Dartmouth workshop that named artificial intelligence actually proposed solving major parts of human intelligence with ten researchers in a single two-month summer.","difficulty": 1,"source": 2},{"id": 2,"concept": "Brittleness of symbolic AI","question": "Why did early symbolic AI systems built on hand-written human rules break down in the messy real world?","answer": "Hand-coded rules worked well in tidy domains, yet they were painfully brittle outside narrow scripts. Real life is full of unwritten common sense, edge cases, and fuzzy exceptions. Programmers could never list every rule by hand, so the field shifted toward learning from data.","key_points": ["Rigid rules could not handle unwritten common sense and unexpected edge cases, or humans could never hand-code every real-world exception","Engineers called this sharp failure outside narrow domains brittleness","That wall pushed AI away from hand-written logic toward learning patterns from data"],"required": [0],"hint": "Try making an exact checklist for spotting a cat in any lighting or awkward pose.","fun_fact": "Starting in 1984, the Cyc project spent decades manually typing millions of basic facts like water makes things wet just to give software common sense.","difficulty": 2,"source": 2},{"id": 3,"concept": "Perceptrons to backpropagation","question": "Why did Minsky and Papert's 1969 book stall neural networks, and how did backpropagation break that logjam?","answer": "Minsky and Papert proved single-layer networks could not solve simple nonlinear puzzles like exclusive or. Researchers lacked a practical way to train deeper networks, so neural network funding collapsed. Backpropagation fixed this by sending error signals backward to adjust weights inside hidden layers.","key_points": ["It proved single-layer networks could not solve simple nonlinear problems like exclusive or, or that researchers lacked a way to train deeper layers","Backpropagation passed error signals backward through the network to update hidden layers","A 1986 paper by Rumelhart, Hinton, and Williams popularized it and revived neural network research"],"required": [0,1],"hint": "One flat sheet could only draw a straight line, and nobody knew how to assign blame to the middle steps.","fun_fact": "Graduate student Paul Werbos actually worked out backpropagation for neural networks in his 1974 Harvard doctoral thesis, twelve years before the 1986 paper made it famous.","difficulty": 2,"source": 2},{"id": 4,"concept": "AlexNet and the deep learning boom","question": "What unlocked AlexNet's shock 2012 ImageNet win, and why did it transform computer vision?","answer": "AlexNet paired fast gaming graphics chips with over a million labeled photos to train a deep network. It beat traditional systems by more than ten percentage points on the top-five error score. That huge gap proved neural networks could learn visual features better than hand-coded vision rules.","key_points": ["Combining graphics chips with huge labeled image data to train a deep neural network","It crushed hand-crafted vision approaches by a wide margin, proving networks could learn visual features themselves","It dropped the contest error rate from about 26 percent to roughly 15 percent"],"required": [0,1],"hint": "Imagine silicon built to render virtual worlds meeting a giant tagged picture library, leaving old custom-built filters in the dust.","fun_fact": "Alex Krizhevsky trained AlexNet inside his bedroom at his parents' house using just two consumer gaming graphics cards.","difficulty": 2,"source": 3},{"id": 5,"concept": "AlphaGo's search and intuition","question": "Why did AlphaGo beat world champion Lee Sedol a decade early when chess-style brute-force search failed at Go?","answer": "Go has far too many legal moves and subtle board patterns for brute-force search alone. AlphaGo paired tree search with two neural networks that learned promising moves and winning positions. Its successor, AlphaGo Zero, even skipped human games and mastered Go purely through self-play.","key_points": ["AlphaGo paired tree search with neural networks that learned intuition for promising moves and board values","Go's enormous branching factor and subtle positions made pure brute-force calculation impossible","A year later, AlphaGo Zero ditched human game records and surpassed it purely through self-play"],"required": [0],"hint": "Instead of checking every path mechanically, picture blending look-ahead planning with a trained gut feel.","fun_fact": "In game two against Lee Sedol, AlphaGo played a stunning move that its own software estimated only one in 10,000 human players would pick.","difficulty": 3,"source": 4},{"id": 6,"concept": "Moravec's paradox","question": "According to Moravec's paradox, why is mastering chess or calculus easier for AI than walking and grabbing objects like a toddler?","answer": "Evolution spent hundreds of millions of years optimizing animal sight, balance, and physical movement. Those skills feel effortless only because huge hidden brain circuits run them automatically. Abstract math and board games are recent human add-ons with tidy rules that computers copy easily.","key_points": ["Evolution spent millions of years building massive subconscious brain power for sight and movement, or formal logic is a simpler recent add-on","Perception and motor control feel effortless to us only because our brains run them automatically","Formal games and math follow neat rules that are far easier to program than messy physical skills"],"required": [0],"hint": "Compare how long nature practiced catching prey versus how long people have studied algebra.","fun_fact": "Psychologist Steven Pinker summed up early AI history with one neat twist: the hard problems turned out easy, and the easy problems turned out hard.","difficulty": 3,"source": 2},{"id": 7,"concept": "Sutton's Bitter Lesson","question": "In Richard Sutton's famous essay The Bitter Lesson, why do general search and learning methods keep beating clever human-crafted rules?","answer": "Computing power grows exponentially over time, and general methods get stronger with every wave of faster hardware. Hand-built human insights help in the short run, yet they plateau and block bigger discoveries. Sutton calls this bitter because researchers hate watching their clever domain tricks lose to raw scale.","key_points": ["Computing power keeps growing exponentially, so general search and learning methods keep improving with more compute","Human-crafted domain rules bring short-term gains but hit a ceiling and cannot match open-ended scaling","Sutton called the lesson bitter because researchers dislike seeing hand-built expertise overtaken by raw computation"],"required": [0],"hint": "Ask yourself which ingredient doubles every couple of years while our minds stay flat.","fun_fact": "Sutton wrote his essay in 2019 using chess, Go, speech recognition, and computer vision as proof, years before giant language models made scaling famous.","difficulty": 3,"source": 5}],"id": "e8268da26983","topic": "The history of artificial intelligence","slug": "ai-history","difficulty": "pro","model": "gemini","sources": [{"title": "Computing Machinery and Intelligence (Alan Turing, 1950)","url": "https://doi.org/10.1093/mind/LIX.236.433","site": "Oxford Academic"},{"title": "History of Artificial Intelligence","url": "https://en.wikipedia.org/wiki/History_of_artificial_intelligence","site": "Wikipedia"},{"title": "ImageNet Classification with Deep Convolutional Neural Networks (AlexNet, 2012)","url": "https://papers.nips.cc/paper/4824-imagenet-classification-with-deep-convolutional-neural-networks.pdf","site": "NeurIPS"},{"title": "Mastering the game of Go with deep neural networks and tree search (AlphaGo, 2016)","url": "https://www.nature.com/articles/nature16961","site": "Nature"},{"title": "The Bitter Lesson (Richard Sutton, 2019)","url": "https://www.incompleteideas.net/IncIdeas/BitterLesson.html","site": "incompleteideas.net"}],"tagline": "Seventy years of AI booms, busts, and breakthroughs","order": 6}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168{"title": "Diffusion Models for Image Generation","emoji": "🎨","brief": "Diffusion models make images by turning pure random static into clear pictures, one step at a time. They power tools like Stable Diffusion and DALL-E.","questions": [{"question": "What are the two major components of a diffusion model?","answer": "A forward step slowly adds noise to an image until only static is left. A reverse step learns to strip that noise back out one step at a time.","key_points": ["A forward process slowly adds noise to the data","A reverse process learns to remove the noise step by step"],"hint": "Think of one step that ruins the picture and one that rebuilds it.","fun_fact": "The name diffusion comes from physics, where particles spread out over time like noise spreading across a photo.","difficulty": 1,"source": 1,"id": 0,"required": [0,1]},{"question": "After training, how does a diffusion model create a brand new image?","answer": "It starts from a grid of pure random static and runs the denoising network over and over. Each pass clears away more noise until a new picture appears.","key_points": ["Starts from pure random noise","Runs the denoising network over and over","Ends with a new image from the learned style"],"hint": "It begins with no picture at all.","fun_fact": "Because the starting static is random, the exact same prompt gives you a fresh image every time.","difficulty": 1,"source": 1,"id": 1,"required": [0,1]},{"question": "Why is the forward noising process designed so that the final result approaches a Gaussian distribution?","answer": "Gaussian noise is simple and easy to generate from scratch. So when making a new image, the model can start from random Gaussian static and work backward to a real picture.","key_points": ["Generation can start from pure Gaussian noise, which is simple and easy to sample","By the end, no trace of the original image is left"],"hint": "Think about what makes an easy starting point when generating from scratch.","fun_fact": "This mirrors physics too: gas particles spread until they fill a room evenly in a steady state.","difficulty": 2,"source": 1,"id": 2,"required": [0]},{"question": "What kinds of neural networks are typically used as the denoising backbone of a diffusion model?","answer": "Most diffusion models use a U-Net or a transformer to clean the noise.","key_points": ["U-Nets, the classic choice","Transformers, now widely used too"],"hint": "One architecture is named after the shape of a letter.","fun_fact": "Stable Diffusion 3 moved from a U-Net to a transformer that mixes text and image tokens in each block.","difficulty": 2,"source": 1,"id": 3,"required": [0,1]},{"question": "How do text-to-image diffusion models use the text prompt to guide image generation?","answer": "A text encoder turns your prompt into numbers the model understands. Cross-attention feeds those numbers into every denoising step so the picture follows your words.","key_points": ["A text encoder turns the prompt into an embedding","Cross-attention feeds that embedding into every denoising step to steer the image"],"hint": "The text does not draw pixels directly. It steers the cleanup at each step.","fun_fact": "Early Stable Diffusion used a frozen CLIP text encoder, originally trained to match photos with captions.","difficulty": 2,"source": 2,"id": 4,"required": [0,1]},{"question": "What is a latent diffusion model, and why perform diffusion in latent space instead of pixel space?","answer": "An autoencoder first shrinks the image into a compact form called latent space, and diffusion runs there instead of on every pixel. Working on smaller data is much faster and cheaper.","key_points": ["Diffusion runs in a compressed latent space from an autoencoder, not on raw pixels","Much faster and cheaper to train and run"],"hint": "Think about editing a small compressed file instead of every single pixel.","fun_fact": "Latent diffusion is why Stable Diffusion can run on a home GPU with just a few gigabytes of memory.","difficulty": 2,"source": 2,"id": 5,"required": [0,1]},{"question": "In Stable Diffusion, what are the three main components of the architecture and what does each do?","answer": "The VAE shrinks images into latent space and unpacks them back into pixels. The U-Net removes the noise, and the text encoder turns your prompt into numbers that steer the picture.","key_points": ["The VAE shrinks images into latent space and decodes them back to pixels","The U-Net removes the noise","The text encoder turns the prompt into an embedding"],"hint": "One shrinks and unpacks, one cleans noise, and one reads your prompt.","fun_fact": "Stable Diffusion's U-Net has about 860 million parameters, tiny by today's model sizes.","difficulty": 3,"source": 2,"id": 6,"required": [0,1,2]},{"question": "Why is randomness essential in the reverse diffusion process, rather than just doing pure denoising steps?","answer": "Without randomness, every run would collapse toward the same average picture. Adding random noise keeps the outputs varied so each try gives a fresh image.","key_points": ["Without randomness the outputs would collapse and lose variety","Different random noise gives different images"],"hint": "Think about what happens if every run follows the exact same path.","fun_fact": "In physics, particles that only slide downhill all pile up at the same bottom spot unless random motion spreads them out.","difficulty": 3,"source": 1,"id": 7,"required": [0]}],"id": "9a5049b70649","topic": "Diffusion models for image generation","slug": "diffusion","difficulty": "pro","model": "zai-org/GLM-5.3","sources": [{"title": "Diffusion model","url": "https://en.wikipedia.org/wiki/Diffusion_model","site": "wikipedia.org"},{"title": "Stable Diffusion","url": "https://en.wikipedia.org/wiki/Stable_Diffusion","site": "wikipedia.org"},{"title": "Text-to-image model","url": "https://en.wikipedia.org/wiki/Text-to-image_model","site": "wikipedia.org"}],"tagline": "From noise to pictures","order": 3}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193{"title": "Diffusion Models for Image Generation","emoji": "🎨","brief": "See how modern image generators turn pure random static into sharp pictures. We move from basic noise removal to latent spaces, guidance dials, and modern flow transformers.","questions": [{"id": 0,"concept": "Forward and reverse diffusion","question": "How does a diffusion model actually learn to create images during training?","answer": "During training, you gradually add random noise to real photos until only static remains. The neural network practices predicting the added noise at each stage. Learning to undo that corruption teaches it what real pictures look like.","key_points": ["Random noise is gradually added to real training images","The network trains to predict or remove the noise at each step","Undoing noise across many levels teaches the model how real images are structured"],"required": [0,1],"hint": "Imagine slowly burying a crisp painting under snow, then guessing how to sweep each layer away.","fun_fact": "Diffusion models borrowed their core math from thermodynamics, mimicking how a drop of ink spreads in water and trying to play the movie backward.","difficulty": 1,"source": 1},{"id": 1,"concept": "Sampling from Gaussian noise","question": "When a trained diffusion model generates a brand new picture, what does it start from and how does the image appear?","answer": "It starts from a grid of pure random Gaussian noise, like old television static. The model then runs that grid through many small denoising steps. Each pass strips away a little noise until a sharp new picture appears.","key_points": ["Generation starts from pure random noise, such as Gaussian static","The model repeatedly removes noise over many small steps until a clear image forms","Starting from a different random grid produces a brand new image"],"required": [0,1],"hint": "Imagine a sculptor who begins with a blank block of marble and chips off tiny flecks one tap at a time.","fun_fact": "The 2020 paper that kicked off the diffusion boom needed a full thousand cleanup passes just to finish one small picture.","difficulty": 1,"source": 1},{"id": 2,"concept": "Latent space compression","question": "Why does Stable Diffusion run inside a compressed latent space instead of raw pixels, and what detail can that compression lose?","answer": "Raw pixels hold huge amounts of redundant data, so denoising them directly costs massive compute. A variational autoencoder shrinks each image into a compact code that keeps main shapes and colors. Because that compression drops tiny high-frequency details, small text or distant faces can look blurry or warped.","key_points": ["Working in a compact latent space saves massive compute because raw pixels hold lots of redundant data","The variational autoencoder preserves main shapes and colors while shrinking the image","Compression can blur or warp tiny high-frequency details like small text, hands, or distant faces"],"required": [0,2],"hint": "Think about editing a mini thumbnail to save hard work, and notice what goes fuzzy when you zoom back in.","fun_fact": "Early Stable Diffusion shrank pictures by 48 times in size, while newer versions widened that bottleneck to 16 channels to keep tiny letters crisp.","difficulty": 2,"source": 2},{"id": 3,"concept": "Text conditioning via cross-attention","question": "During image generation, how does a text prompt actually steer the diffusion network to draw the words you typed?","answer": "First, a separate text encoder converts your prompt into numeric vectors that capture word meanings. At every denoising step, cross-attention links regions of the noisy image to those word vectors. That repeated link nudges each part of the canvas toward the objects and styles you asked for.","key_points": ["A text encoder converts the written prompt into numeric vectors representing word meanings","Cross-attention feeds those text vectors into the denoising network at every step to guide image regions","Repeating that link across steps aligns objects, colors, and styles with the prompt"],"required": [0,1],"hint": "Think of a translator turning your sentence into secret codes and whispering directions to the painter on every brushstroke.","fun_fact": "That same cross-attention hook works beyond words, letting diffusion models follow rough sketches, depth maps, or layouts just like text prompts.","difficulty": 2,"source": 2},{"id": 4,"concept": "Diffusion Transformers and flow matching","question": "Why did modern models like Stable Diffusion 3 and Flux move from U-Net diffusion to Diffusion Transformers and flow matching?","answer": "Diffusion Transformers scale much more predictably with extra compute than older convolutional U-Nets do. Pairing them with flow matching swaps winding denoising curves for straight paths from noise to image. Straighter paths make each step easier to predict and cut down total sampling steps.","key_points": ["Diffusion Transformers scale more predictably with extra data and compute than convolutional U-Nets","Flow matching connects noise to images along straighter paths instead of curved diffusion trajectories","Straighter trajectories are easier to predict and cut down total sampling steps"],"required": [0,1],"hint": "Think about one upgrade that improves steadily on bigger hardware, and another that trades a twisty detour for a fast highway.","fun_fact": "When training Stable Diffusion 3, engineers found that middle noise levels matter most because pure static is too vague and nearly clean photos are too easy.","difficulty": 2,"source": 4},{"id": 5,"concept": "Classifier-free guidance trade-off","question": "How does classifier-free guidance make a model follow your prompt more tightly, and what goes wrong if you crank its strength too high?","answer": "Training randomly drops the prompt sometimes, teaching the same network both prompted and generic guesses. At generation time, it extrapolates away from the generic guess toward the prompted one. Turning that dial too high kills variety and causes over-saturated colors or harsh visual artifacts.","key_points": ["Training randomly drops prompts sometimes so the same model can make both prompted and unprompted predictions","At sampling time, it pushes the prediction away from the unconditional guess and further toward the prompted one","Turning guidance too high shrinks diversity or causes over-saturated colors and harsh artifacts"],"required": [1,2],"hint": "Picture comparing a plain sketch with a themed one, exaggerating their gap, and seeing what happens when you overshoot.","fun_fact": "Standard classifier-free guidance literally doubles the compute at every step because the network must run both the prompted and empty versions.","difficulty": 3,"source": 3},{"id": 6,"concept": "Multi-step denoising and consistency models","question": "Why can't a standard diffusion model jump straight from pure noise to a sharp image in one step, and how do consistency models shortcut that?","answer": "From pure static, countless valid photos fit the noise, so one big guess averages them into blur. Many small steps let the model gradually commit to one coherent picture along a curved path. Consistency models train every noisy point on that path to map directly to the same clean image.","key_points": ["One big jump averages many valid clean images into blur or misses the curved denoising path","Many small steps let the model commit gradually to one sharp, coherent picture","Consistency models train any noisy point along the path to map directly to the same final clean image"],"required": [0,2],"hint": "Think about blending ten different faces into one mushy portrait, versus teaching a fast pupil to leap to the finish line.","fun_fact": "Even a one-step consistency model still lets you trade speed for sharper detail by running two or four quick refine passes.","difficulty": 3,"source": 5},{"id": 7,"concept": "Language encoders and multimodal attention","question": "Why did early diffusion models butcher spelled words and object counts, and what architectural shift fixed that in newer models?","answer": "Early models relied on CLIP, which packs prompts like a bag of words and drops exact order. Newer models add deep language encoders like T5 that preserve exact letters, grammar, and object counts. They also let text and image streams exchange information both ways instead of using one-way lookups.","key_points": ["Early models used weak text encoders like CLIP that act like a bag of words and lose spelling, word order, or counts","Newer models add stronger language encoders like T5 or bidirectional text-and-image attention","Widening the autoencoder from 4 to 16 channels also helped keep sharp letters"],"required": [0,1],"hint": "Compare a quick caption matcher that jumbles your sentence with a true reader that follows phrasing and talks back to the canvas.","fun_fact": "Early Stable Diffusion cut every prompt off at 77 tokens because of CLIP, silently ignoring everything you typed past that limit.","difficulty": 3,"source": 4}],"id": "9a5049b70649","topic": "Diffusion models for image generation","slug": "diffusion","difficulty": "pro","model": "gemini","sources": [{"title": "Denoising Diffusion Probabilistic Models","url": "https://arxiv.org/abs/2006.11239","site": "arXiv"},{"title": "High-Resolution Image Synthesis with Latent Diffusion Models","url": "https://arxiv.org/abs/2112.10752","site": "arXiv"},{"title": "Classifier-Free Diffusion Guidance","url": "https://arxiv.org/abs/2207.12598","site": "arXiv"},{"title": "Scaling Rectified Flow Transformers for High-Resolution Image Synthesis","url": "https://arxiv.org/abs/2403.03206","site": "arXiv"},{"title": "Consistency Models","url": "https://arxiv.org/abs/2303.01469","site": "arXiv"}],"tagline": "Sculpting sharp images out of pure noise","order": 3}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167{"title": "The French Revolution","emoji": "🇫🇷","brief": "This quiz covers what sparked the French Revolution, its biggest turning points, and how it ended with Napoleon. Its ideas about rights and democracy still shape politics today.","questions": [{"question": "Why was the Bastille stormed in July 1789, even though it held only seven prisoners?","answer": "The Bastille stood for the king's unchecked power right in the middle of Paris, and the crowd also wanted its gunpowder. Taking it sparked the French Revolution.","key_points": ["It stood for royal power and abuse, or the crowd wanted the gunpowder and weapons inside","Only seven prisoners were held there","Its fall sparked the Revolution"],"hint": "Think about what the fortress stood for, not how many people were locked inside.","fun_fact": "The city already had plans to tear down the Bastille before the crowd stormed it.","difficulty": 1,"source": 3,"id": 0,"required": [0]},{"question": "What was the Estates General, and why was its 1789 meeting so significant?","answer": "It was an assembly of France's three classes: clergy, nobles, and commoners. King Louis called it in 1789 for the first time since 1614 to fix a money crisis, and the commoners broke away to form the National Assembly.","key_points": ["An assembly of the three estates: clergy, nobles, and commoners","It had not met since 1614","The Third Estate broke away to form the National Assembly, kicking off the Revolution"],"hint": "Think about how long France went without calling this assembly together.","fun_fact": "The Estates General had not met for 175 years before 1789.","difficulty": 1,"source": 1,"id": 1,"required": [0,2]},{"question": "What main factors caused the French Revolution?","answer": "France hit a debt crisis with unfair taxes, bad harvests drove up bread prices, and nobles blocked reform. Enlightenment ideas and the American Revolution also pushed people to demand change.","key_points": ["Two or more of: debt crisis and unfair taxes, bad harvests and costly bread, nobles blocking reform, Enlightenment ideas","The debt crisis was the immediate trigger"],"hint": "Money, food, and new political ideas all collided at once.","fun_fact": "France's total debt was not even worse than Britain's, but its unfair tax rules made people furious.","difficulty": 2,"source": 1,"id": 2,"required": [0]},{"question": "How did the voting structure of the Estates General anger the Third Estate?","answer": "Each of the three estates got one vote as a bloc instead of counting votes per person. Even though the clergy and nobles were under five percent of France, they could always outvote the commoners two to one.","key_points": ["Votes were counted by estate, not per person","The clergy and nobles could always outvote the Third Estate","The first two estates were under five percent of the population"],"hint": "The fight was over voting by group versus voting by person.","fun_fact": "A reform group called the Society of Thirty pushed to double the Third Estate's seats and count every person's vote.","difficulty": 2,"source": 1,"id": 3,"required": [0]},{"question": "How did the Reign of Terror end?","answer": "It ended in July 1794 with the Thermidorian Reaction, when Robespierre and his allies were arrested and executed. After that, the Committee of Public Safety lost its grip on power.","key_points": ["Robespierre fell and was executed","The Thermidorian Reaction in July 1794","The Committee of Public Safety lost power"],"hint": "The turning point is named after the summer month in the revolutionary calendar.","fun_fact": "By the end of the Terror, about 16,000 people had been officially executed, and thousands more died in prison.","difficulty": 2,"source": 2,"id": 4,"required": [0]},{"question": "How did the flight to Varennes in 1791 damage the French monarchy?","answer": "King Louis the Sixteenth tried to sneak out of France, which showed people he did not back the revolution. War and defeats in 1792 finished off the monarchy and led to the First Republic.","key_points": ["It broke trust in the king and discredited the monarchy","Louis XVI tried to flee France in June 1791","Led to the 1792 uprising and the First Republic"],"hint": "The king tried to run away, and he got caught.","fun_fact": "France ended the monarchy in September 1792 and sent Louis the Sixteenth to the guillotine four months later.","difficulty": 2,"source": 1,"id": 5,"required": [0]},{"question": "Why did Robespierre and the Jacobins believe terror was necessary?","answer": "With foreign armies invading and revolts at home, Robespierre argued that enemies of the republic were tyrants blocking the people's will. He claimed harsh terror was the only way to save the revolution.","key_points": ["The Revolution faced foreign invasion and home revolts, and enemies were seen as tyrants against the people's will","Drew on Rousseau's general will and republican virtue"],"hint": "Think about revolutionary ideals colliding with the panic of war.","fun_fact": "One historian noted that terror started as a panicked response to defeat, then turned into a tool for staying in power.","difficulty": 3,"source": 2,"id": 6,"required": [0]},{"question": "How did the French Revolution end, and what is its lasting legacy?","answer": "It ended in 1799 when Napoleon Bonaparte seized power in the coup of Eighteenth Brumaire and became First Consul. Its lasting legacy includes ideas at the heart of modern democracy, like the Rights of Man.","key_points": ["Ended when Napoleon seized power in the coup of 18 Brumaire in 1799","Its ideas, like the rights of man, helped shape modern democracy","Napoleon became First Consul"],"hint": "It did not end with another king. A general took over.","fun_fact": "The Directory lasted only four years before Napoleon pushed it aside.","difficulty": 3,"source": 1,"id": 7,"required": [0,1]}],"id": "5b28be2560d7","topic": "The French Revolution","slug": "french-revolution","difficulty": "pro","model": "zai-org/GLM-5.3","sources": [{"title": "French Revolution","url": "https://en.wikipedia.org/wiki/French_Revolution","site": "wikipedia.org"},{"title": "Reign of Terror","url": "https://en.wikipedia.org/wiki/Reign_of_Terror","site": "wikipedia.org"},{"title": "Storming of the Bastille","url": "https://en.wikipedia.org/wiki/Storming_of_the_Bastille","site": "wikipedia.org"}],"tagline": "Liberty, equality, and a lot of drama","order": 7}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192{"title": "The French Revolution","emoji": "🇫🇷","brief": "In ten stormy years, France went from an absolute king to a radical republic and then to Napoleon. Let's trace the pressures that drove each dramatic turn.","questions": [{"id": 0,"concept": "The 1789 crisis","question": "What mix of money and food crises pushed France toward revolution in 1789?","answer": "Costly foreign wars left the crown nearly bankrupt while nobles and clergy paid almost no taxes. Bad harvests then sent bread prices soaring, so ordinary families could barely feed themselves.","key_points": ["War debt pushed the crown near bankruptcy, or unfair rules let nobles and clergy skip taxes","Poor harvests made bread prices skyrocket and left ordinary people hungry","Commoners carried almost the entire tax burden while struggling to buy daily food"],"required": [0,1],"hint": "Think of an empty royal treasury, a lopsided bill dumped on workers, and growling stomachs after harsh winters.","fun_fact": "Paying for the American Revolution helped bankrupt King Louis the Sixteenth, and by early 1789 a single loaf of bread ate up most of a Parisian worker's daily pay.","difficulty": 1,"source": 1},{"id": 1,"concept": "Storming the Bastille","question": "Why did Parisians storm a nearly empty Bastille, and why did its fall shake all of France?","answer": "The crowd attacked the fortress to grab stored gunpowder for weapons against nearby royal troops. The Bastille symbolized unchecked royal power, so its fall sparked wider revolt across France. For the first time, ordinary street crowds showed they could overpower the crown.","key_points": ["Parisians stormed it to seize gunpowder for their weapons","It symbolized unchecked royal power, or its fall sparked popular revolt across France","Only seven prisoners were inside, none of them major political heroes"],"required": [0,1],"hint": "Picture citizens carrying unloaded rifles who also want to tear down the monarchy's most famous stone threat.","fun_fact": "After the fortress came down, the Marquis de Lafayette mailed its main iron key to George Washington, and it still hangs at Mount Vernon today.","difficulty": 1,"source": 1},{"id": 2,"concept": "The Tennis Court Oath","question": "How did a fight over voting rules at the Estates-General spark the Tennis Court Oath?","answer": "Each estate got one collective vote, so nobles and clergy could always outvote commoners two to one. The Third Estate demanded individual votes, broke away, and declared itself the National Assembly. When guards locked their hall, deputies gathered in a tennis court and swore to write a constitution.","key_points": ["Voting by estate let nobles and clergy outvote commoners two to one, while the Third Estate demanded one vote per person","That deadlock pushed commoners to break away and vow to stay together until they wrote a constitution","When royal guards locked their usual hall, deputies met in an indoor tennis court instead"],"required": [0,1],"hint": "Think about 98 percent of the country getting overruled by tiny privileged groups, and lawmakers refusing to go home.","fun_fact": "Out of 577 deputies in that court, just one man refused to sign, insisting he could not act without royal approval.","difficulty": 2,"source": 1},{"id": 3,"concept": "Rights of Man and its limits","question": "What big political idea did the Declaration of the Rights of Man introduce, and who did it still leave out?","answer": "It declared that sovereign power belongs to the nation, not the king. It also promised citizens equal rights under law, ending noble birth privileges. Yet it excluded women from full citizenship and left slavery intact across France's colonies.","key_points": ["Sovereignty belongs to the nation rather than the king, or citizens are born free and equal under the law","It still left out women or enslaved people in French colonies","It protected basic freedoms like speech, property, and resisting oppression"],"required": [0,1],"hint": "Ask where authority moves when a crown loses its divine claim, and notice both the narrow title and overseas sugar islands.","fun_fact": "Playwright Olympe de Gouges fired back in 1791 with her own Rights of Woman, arguing that if women could be sent to the scaffold, they deserved to speak in parliament.","difficulty": 2,"source": 2},{"id": 4,"concept": "The Flight to Varennes","question": "How did King Louis the Sixteenth's failed escape at Varennes wreck the plan for a constitutional monarchy?","answer": "Sneaking out of Paris in disguise proved the king hated the revolution and never truly accepted sharing power. He tried to reach loyal troops near the border, which looked like treason to furious citizens. Public trust collapsed overnight, turning many French people away from keeping any king at all.","key_points": ["Fleeing in disguise shattered public trust by proving the king opposed the revolution, or made him look like a traitor","A constitutional monarchy only worked if people believed the king would cooperate with elected lawmakers","The backlash boosted radical calls to abolish the throne and create a republic"],"required": [0],"hint": "Imagine signing a peace deal with a partner, then catching them climbing out the back window at midnight.","fun_fact": "A sharp-eyed village postmaster named Jean-Baptiste Drouet spotted the disguised king during a carriage stop and rode ahead to halt the royal family at Varennes.","difficulty": 2,"source": 3},{"id": 5,"concept": "War and radical split","question": "Why did France go to war in 1792, and how did battlefield crisis push the Montagnards past the Girondins?","answer": "Girondin leaders pushed for war against Austria to rally the nation and expose royal treason. Early defeats, internal revolts, and scarce food then sparked fierce anger among working-class Parisian sans-culottes. Montagnards backed harsh emergency measures to win street support, while hesitant Girondins were purged from power.","key_points": ["Girondins wanted war to unite France, spread revolutionary ideals, or expose the king's disloyalty","War defeats and revolts drove Montagnards to back harsh emergency rules and ally with angry Paris workers, overtaking moderate Girondins","Armed Parisian sans-culottes surrounded the assembly in 1793 and forced the arrest of Girondin leaders"],"required": [0,1],"hint": "Think about gambling on foreign combat to steady a shaky government, only to watch panic reward the toughest faction.","fun_fact": "Paris's militant workers took the name sans-culottes, meaning without knee breeches, because wearing long trousers marked them against silk-clad aristocrats.","difficulty": 3,"source": 1},{"id": 6,"concept": "The Reign of Terror","question": "How did Robespierre justify the Reign of Terror, and why did his own colleagues finally turn against him?","answer": "Robespierre argued that civic virtue alone was helpless in a crisis without swift terror to crush enemies. The Committee of Public Safety used that logic to arrest suspects and guillotine thousands across France. Lawmakers finally overthrew him in the Thermidorian Reaction because everyone feared his next list of traitors.","key_points": ["He claimed republican virtue needed terror behind it to defend the revolution and crush internal or foreign enemies","Fellow lawmakers overthrew him out of self-preservation because they feared being accused and executed next","His fall in July 1794 launched the Thermidorian Reaction, which dismantled the Terror and closed the Jacobin Club"],"required": [0,1],"hint": "Think about guarding pure ideals with harsh force, and what happens to a room of politicians when nobody feels secure.","fun_fact": "Despite its reputation for hunting nobles, the vast majority of the roughly 17,000 people officially executed during the Terror were ordinary commoners.","difficulty": 3,"source": 4},{"id": 7,"concept": "Directory collapse and Napoleon","question": "Why did the Directory fail to stabilize France, and what revolutionary bargain did Napoleon strike after seizing power?","answer": "The Directory faced raging inflation, rampant corruption, and constant attacks from both royalists and radical Jacobins. It survived only by canceling elections and leaning on the army, which invited Napoleon's coup in 1799. Napoleon kept major revolutionary gains like legal equality and property rights, while ending political freedom.","key_points": ["The Directory suffered from corruption, runaway inflation, or constant clashes with royalists and radicals, forcing it to rely on the army","Napoleon preserved revolutionary gains like legal equality and property rights while taking away political freedom","His takeover in the coup of 18 Brumaire replaced the Directory with the Consulate"],"required": [0,1],"hint": "Picture a battered middle hated by opposing extremes, then ask what exhausted citizens gave up to get order.","fun_fact": "Because France's revolutionary calendar named its misty autumn month Brumaire, meaning fog, Napoleon's takeover is literally remembered as the Coup of 18 Fog.","difficulty": 3,"source": 5}],"id": "5b28be2560d7","topic": "The French Revolution","slug": "french-revolution","difficulty": "pro","model": "gemini","sources": [{"title": "French Revolution","url": "https://www.britannica.com/event/French-Revolution","site": "Encyclopaedia Britannica"},{"title": "Declaration of the Rights of Man - 1789","url": "https://avalon.law.yale.edu/18th_century/rightsof.asp","site": "Yale Avalon Project"},{"title": "Flight to Varennes","url": "https://en.wikipedia.org/wiki/Flight_to_Varennes","site": "Wikipedia"},{"title": "Reign of Terror","url": "https://www.britannica.com/event/Reign-of-Terror","site": "Encyclopaedia Britannica"},{"title": "Coup of 18-19 Brumaire","url": "https://www.britannica.com/event/Coup-of-18-19-Brumaire","site": "Encyclopaedia Britannica"}],"tagline": "From bread riots to Napoleon in ten years","order": 7}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164{"title": "How LLMs Are Trained","emoji": "🧠","brief": "This quiz walks through how a raw text predictor becomes a helpful chatbot: next-word pretraining, instruction tuning, and preference tuning with RLHF or DPO.","questions": [{"question": "What objective are GPT-style language models pretrained on, before any fine-tuning happens?","answer": "They learn to guess the next word, or token, across huge amounts of text.","key_points": ["Predicting the next word or token","Trained on huge amounts of text","Done before any fine-tuning"],"hint": "Think about what the model guesses at every spot in a sentence.","fun_fact": "GPT stands for Generative Pre-trained Transformer, which literally describes this step.","difficulty": 1,"source": 1,"id": 0,"required": [0]},{"question": "After pretraining, what is instruction tuning meant to accomplish?","answer": "It trains the model to follow requests and act like a helpful assistant, instead of just continuing raw text.","key_points": ["Trains the model to follow instructions and act like a helpful assistant","A fine-tuning step after pretraining"],"hint": "A raw next-word predictor does not naturally answer questions.","fun_fact": "ChatGPT is a GPT base model fine-tuned specifically to chat as an assistant.","difficulty": 1,"source": 1,"id": 1,"required": [0]},{"question": "In fine-tuning, what does it mean to freeze layers, and why might you do it?","answer": "Freezing layers locks their weights so only the other layers change during training. This saves compute and keeps the basic skills the model already learned.","key_points": ["Frozen layers keep their weights while only the other layers update","Saves compute, or keeps the basic features learned in pretraining"],"hint": "It is about which parts of the network you let change.","fun_fact": "With LoRA, you can fine-tune a model with billions of weights by training only a few million extra ones.","difficulty": 2,"source": 3,"id": 2,"required": [0,1]},{"question": "In RLHF, how is the reward model built before the policy is trained?","answer": "People compare pairs of model replies and pick the better one. A reward model trains on those choices to score new replies for reinforcement learning.","key_points": ["People rank or compare model replies","A reward model trains on those picks to score replies"],"hint": "The score is not written by hand. It is learned from human choices.","fun_fact": "Teams often turn human comparisons into scores using Elo ratings, the same system chess uses.","difficulty": 2,"source": 2,"id": 3,"required": [0,1]},{"question": "Why is human feedback a practical training signal when the task itself is hard to specify?","answer": "Some goals are hard to write as rules, like being helpful or safe, but people can judge them right away. Comparing two replies is fast, and those picks give the model a clear target.","key_points": ["Some goals are hard to write as rules but easy for people to judge","People can compare replies fast, and those choices become the reward"],"hint": "Think about writing rules for good advice versus picking the better reply.","fun_fact": "RLHF took off in language models when OpenAI used it for InstructGPT.","difficulty": 2,"source": 2,"id": 4,"required": [0]},{"question": "How does DPO differ from the classic RLHF pipeline at a high level?","answer": "DPO drops the separate reward model and the reinforcement learning loop. It trains the model straight on human preference pairs, which is simpler and more stable.","key_points": ["Skips the separate reward model and reinforcement learning, training directly on preference pairs","Simpler and more stable"],"hint": "It cuts out the middleman between human picks and updating the model.","fun_fact": "Classic RLHF usually updates the model with PPO, an algorithm borrowed from game-playing AI.","difficulty": 2,"source": 2,"id": 5,"required": [0]},{"question": "What are the main challenges of collecting preference data for RLHF?","answer": "Good human ratings cost a lot of time and money to collect. Also, if the raters do not reflect real users, the model picks up their biases.","key_points": ["Good preference data is expensive to collect","Raters who do not represent real users can bias the model"],"hint": "The two problems are cost and who does the rating.","fun_fact": "Making the reward model bigger often helps more than just collecting more human ratings.","difficulty": 3,"source": 2,"id": 6,"required": [0,1]},{"question": "Why can fine-tuning hurt a model, and what's one way to mitigate that?","answer": "Fine-tuning can make a model worse on topics outside its new training data, or make it forget older skills. Blending the new weights back with the original model weights helps keep that balance.","key_points": ["It can get worse on unfamiliar data, or forget what it learned before","Blending with the original weights helps, as do freezing layers, a lower learning rate, or mixing in old data"],"hint": "One fix blends the fine-tuned model back toward the original one.","fun_fact": "Averaging old and new weights often keeps the new skill while winning back lost general ability.","difficulty": 3,"source": 3,"id": 7,"required": [0,1]}],"id": "4d764493914f","topic": "How large language models are trained","slug": "llm-training","difficulty": "pro","model": "zai-org/GLM-5.3","sources": [{"title": "Large language model","url": "https://en.wikipedia.org/wiki/Large_language_model","site": "wikipedia.org"},{"title": "Reinforcement learning from human feedback","url": "https://en.wikipedia.org/wiki/Reinforcement_learning_from_human_feedback","site": "wikipedia.org"},{"title": "Fine-tuning (deep learning)","url": "https://en.wikipedia.org/wiki/Fine-tuning_(deep_learning)","site": "wikipedia.org"}],"tagline": "Pretraining, fine-tuning, RLHF and DPO","order": 1}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185{"title": "How LLMs Are Trained","emoji": "🧠","brief": "Large language models start out guessing the next word, then learn to follow instructions, align with humans, and verify their own reasoning. Let's walk through the modern training stack from pretraining to scaling trade-offs.","questions": [{"id": 0,"concept": "Next-Token Pretraining","question": "Why does training a language model to predict the next word teach it real facts and grammar instead of random guessing?","answer": "Guessing the next word well across billions of sentences forces the model to learn real patterns. To predict what comes next in science, stories, or code, it must absorb facts, grammar, and logic.","key_points": ["Predicting the next word well across real text requires learning the underlying facts, grammar, or logic behind it","Training on massive amounts of diverse writing rewards deeper patterns over lucky surface guesses"],"required": [0],"hint": "Think about finishing a mystery novel or a history textbook line without knowing who did what.","fun_fact": "In an early OpenAI experiment on product reviews, simply predicting the next character made one single neuron learn to track positive or negative mood.","difficulty": 1,"source": 1},{"id": 1,"concept": "Supervised Fine-Tuning","question": "How does supervised fine-tuning change a raw pretrained language model into an assistant you can actually chat with?","answer": "A raw base model only tries to continue whatever text you type, like an advanced autocomplete. Supervised fine-tuning trains it on curated prompt and answer pairs written in a helpful style. That teaches the model to follow your instructions instead of just extending your prompt.","key_points": ["It trains the base model on curated prompt-and-answer examples showing helpful instruction following","This shifts the model away from simple text continuation toward answering user requests"],"required": [0],"hint": "Picture handing a bright student hundreds of ideal dialogue scripts so they copy the back-and-forth format.","fun_fact": "In the original InstructGPT study, human raters preferred a fine-tuned 1.3-billion-parameter model over a raw model more than 100 times larger.","difficulty": 1,"source": 1},{"id": 2,"concept": "LoRA Adapters","question": "How does LoRA fine-tune a giant language model on modest hardware without updating all of the original weights?","answer": "LoRA freezes all the original model weights so they stay untouched during training. Instead, it attaches tiny low-rank adapter matrices that learn only the needed weight updates. Training just those small adapters slashes memory needs and cuts trainable parameters sharply.","key_points": ["It trains tiny low-rank adapter matrices attached alongside the frozen original layers","The base model weights stay frozen so far fewer parameters need gradient updates","This cuts training memory needs sharply compared to updating the whole model"],"required": [0],"hint": "Think of placing thin transparent overlays on an encyclopedia rather than reprinting every single page.","fun_fact": "Once LoRA training finishes, you can merge the tiny adapter weights straight back into the frozen model so it runs with zero extra delay.","difficulty": 2,"source": 2},{"id": 3,"concept": "RLHF Reward Models","question": "How does reinforcement learning from human feedback turn human answer rankings into better responses from a language model?","answer": "First, humans compare pairs of model replies and choose the better one. Teams use those preference pairs to train a separate reward model that predicts human choices. Reinforcement learning then pushes the language model to produce replies that earn higher reward scores.","key_points": ["Human preference rankings train a separate reward model to score which replies people prefer","Reinforcement learning then updates the language model to maximize scores from that reward model","Automating feedback through the reward model lets training run across far more steps than humans could grade live"],"required": [0,1],"hint": "Picture a chef practicing nonstop for a stand-in food critic who studied past dinner reviews.","fun_fact": "OpenAI built the original InstructGPT reward model using preference rankings from a team of only about 40 human contractors.","difficulty": 2,"source": 1},{"id": 4,"concept": "Direct Preference Optimization","question": "How does Direct Preference Optimization, or DPO, simplify preference training compared to classic RLHF?","answer": "DPO removes the separate reward model and the complex reinforcement learning loop completely. Instead, it trains the language model directly on pairs of preferred and rejected replies. The update simply raises the odds of the winning answer and lowers the losing one.","key_points": ["It removes the need for a separate reward model","It trains the language model directly on preferred and rejected answer pairs","Skipping the extra reinforcement learning loop makes training simpler and steadier"],"required": [0,1],"hint": "Think about firing the middleman critic and coaching the writer straight from thumbs-up and thumbs-down comparisons.","fun_fact": "The DPO paper is subtitled Your Language Model is Secretly a Reward Model, because its math turns the model's own probabilities into an implicit score.","difficulty": 2,"source": 3},{"id": 5,"concept": "Reward Hacking and KL Penalty","question": "During RLHF, why do engineers add a KL penalty that pulls the model back toward its starting reference version?","answer": "Without that tether, the model learns to exploit blind spots in the imperfect reward model. This reward hacking can produce repetitive gibberish or flattering fluff that scores high yet fails users. The KL penalty punishes drifting too far, keeping language natural while still improving replies.","key_points": ["It stops reward hacking, where the model games flaws in the reward model or drifts into unnatural, repetitive, or unhelpful text","Keeping the model tethered preserves fluent language from the reference model while still raising quality","Any learned reward model is an imperfect stand-in for true human preferences"],"required": [0],"hint": "Imagine a dog chasing treats so eagerly that it runs off the trail when nobody holds the leash.","fun_fact": "Human preference training can also trigger sycophancy, where an assistant agrees with a user's wrong belief just to sound pleasing.","difficulty": 3,"source": 1},{"id": 6,"concept": "Verifiable Rewards for Reasoning","question": "Why does reinforcement learning with verifiable math or code checks unlock deep reasoning better than human-preference RLHF?","answer": "Automated checks test whether a final math answer or code solution actually passes. That objective signal is hard to hack, unlike human judges who can fall for smooth-sounding nonsense. Chasing real correctness teaches the model to think longer, backtrack, and fix its own mistakes.","key_points": ["Verifiable checks reward objective correctness that is hard to game, unlike subjective human ratings","Pushing for real right answers teaches the model to think longer, backtrack, and fix mistakes","Human judges can fall for smooth-sounding wrong answers, especially in long reasoning traces"],"required": [0],"hint": "Compare an unblinking lock that only opens for the exact key against a teacher swayed by polished prose.","fun_fact": "Trained with an algorithm called GRPO, DeepSeek-R1-Zero spontaneously learned to double-check its math, though it sometimes mixed English and Chinese mid-thought.","difficulty": 3,"source": 5},{"id": 7,"concept": "Chinchilla Scaling and Over-Training","question": "Chinchilla scaling balances model size and data for the lowest training cost, so why do labs now train smaller models on far more tokens?","answer": "Chinchilla scaling only minimizes the one-time compute cost of training the model. Once a model launches, serving millions of user queries costs far more over its lifetime. Over-training a smaller model reaches high quality while keeping everyday inference fast and cheap.","key_points": ["Smaller models are much faster and cheaper to run during inference across millions of user queries","Chinchilla scaling only minimizes one-time training cost and ignores long-term serving costs","Feeding a smaller model far more tokens recovers high accuracy without making it bigger at runtime"],"required": [0],"hint": "Compare the upfront sticker price of buying a car against the gas bill you pay every week for years.","fun_fact": "Meta trained its 8-billion-parameter Llama 3 model on 15 trillion tokens, more than 90 times the data the Chinchilla rule suggested.","difficulty": 3,"source": 4}],"id": "4d764493914f","topic": "How large language models are trained","slug": "llm-training","difficulty": "pro","model": "gemini","sources": [{"title": "Training language models to follow instructions with human feedback","url": "https://arxiv.org/abs/2203.02155","site": "arXiv"},{"title": "LoRA: Low-Rank Adaptation of Large Language Models","url": "https://arxiv.org/abs/2106.09685","site": "arXiv"},{"title": "Direct Preference Optimization: Your Language Model is Secretly a Reward Model","url": "https://arxiv.org/abs/2305.18290","site": "arXiv"},{"title": "Training Compute-Optimal Large Language Models","url": "https://arxiv.org/abs/2203.15556","site": "arXiv"},{"title": "DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning","url": "https://arxiv.org/abs/2501.12948","site": "arXiv"}],"tagline": "From next-word prediction to reasoning assistants","order": 1}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168{"title": "Open-source AI and Hugging Face","emoji": "🤗","brief": "This quiz covers what makes AI truly open source versus open weight, and how Hugging Face became the main hub for sharing models.","questions": [{"question": "What two things can users share on the Hugging Face online platform?","answer": "People share machine learning models and datasets on Hugging Face. It became the main place for the AI community to post and find both.","key_points": ["Machine learning models","Datasets"],"hint": "Think of the two main pieces you need to build and train an AI system.","fun_fact": "Hugging Face took its name from the emoji and started in 2016 as a teen chatbot app.","difficulty": 1,"source": 1,"id": 0,"required": [0,1]},{"question": "According to the Open Source Initiative, what four things can people do with an open-source AI system?","answer": "People must be free to use it, study it, change it, and share it. That covers the code, the weights, and the training data.","key_points": ["Use it","Study it","Modify it","Share it"],"hint": "These are the same four freedoms behind open-source software.","fun_fact": "The Open Source Initiative spent two years talking to experts before publishing its open-source AI definition in 2024.","difficulty": 1,"source": 2,"id": 1,"required": [0,1,2,3]},{"question": "What is Hugging Face's Transformers library used for?","answer": "It is an open-source library for downloading, running, and training pretrained AI models.","key_points": ["Downloading, running, and fine-tuning pretrained models","An open-source library"],"hint": "It lets developers grab and use models that others have already trained.","fun_fact": "Tools like Ollama and LM Studio pull models straight from the Hugging Face Hub too.","difficulty": 2,"source": 1,"id": 2,"required": [0]},{"question": "What is the key difference between a truly open-source model and one that is merely open-weight?","answer": "An open-weight model only shares its trained weights. A true open-source model also shares its code and training data. Calling an open-weight model open source is what critics call openwashing.","key_points": ["Open-weight shares only the trained weights, while open source also shares the code and training data","Critics call open-weight models marketed as open source openwashing"],"hint": "Think about what else you would need besides the weights to rebuild the model yourself.","fun_fact": "Artificial Analysis scored Nvidia's Nemotron family at 83 percent for openness, while many frontier open-weight models score under 50 percent.","difficulty": 2,"source": 2,"id": 3,"required": [0]},{"question": "Why has Meta's description of Llama as open-source been disputed?","answer": "Meta's license blocks some uses, and Meta never said what data trained Llama. Because of that, groups like the Open Source Initiative say it is not truly open source.","key_points": ["Its license restricts some uses, or Meta never disclosed its training data","The Open Source Initiative disputes the claim"],"hint": "Look at both the license rules and what Meta kept private about training.","fun_fact": "The first Llama model was meant for researchers only, but its weights leaked on a torrent within weeks.","difficulty": 2,"source": 3,"id": 4,"required": [0]},{"question": "What is the design goal of Hugging Face's SmolLM family of language models?","answer": "SmolLM models are small language models built to stay sharp while using little compute. SmolLM2 is made to run right on phones and laptops.","key_points": ["Small models that stay capable while using little compute","Built to run on phones and laptops"],"hint": "The name gives away what is special about their size.","fun_fact": "SmolLM3 supports reasoning and six languages even though it has only three billion parameters.","difficulty": 2,"source": 1,"id": 5,"required": [0]},{"question": "Why have Chinese companies like DeepSeek embraced open-weight AI models?","answer": "Open weights help Chinese firms avoid relying on Western software and gatekeepers, and let local industries use strong AI faster. They usually share them under open licenses like MIT or Apache.","key_points": ["To avoid relying on Western software and gatekeepers, or to give local industries faster access to strong AI","Shared under permissive licenses like MIT or Apache"],"hint": "Think about not having to depend on closed foreign tools.","fun_fact": "DeepSeek R1, released in January 2025 under the MIT license, put China's open-weight push in the spotlight.","difficulty": 3,"source": 2,"id": 6,"required": [0]},{"question": "What was the most controversial aspect of the Open Source Initiative's definition of open-source AI, and how did they resolve it?","answer": "Sharing training data was the big fight, because some data is private or restricted and cannot be posted. The final rule demands the full code, plus enough details about the data for others to rebuild the model.","key_points": ["Access to the training data was the controversy","Some training data is sensitive and cannot be released","The full code must be released","For data, only enough detail to understand and rebuild the model is required"],"hint": "The compromise sets different rules for code and for data.","fun_fact": "The final standard, OSAID 1.0, came out in 2024 after two years of debate.","difficulty": 3,"source": 2,"id": 7,"required": [0,3]}],"id": "321da162fe64","topic": "Open-source AI and Hugging Face","slug": "open-source-ai","difficulty": "pro","model": "zai-org/GLM-5.3","sources": [{"title": "Hugging Face","url": "https://en.wikipedia.org/wiki/Hugging_Face","site": "wikipedia.org"},{"title": "Open-source artificial intelligence","url": "https://en.wikipedia.org/wiki/Open-source_artificial_intelligence","site": "wikipedia.org"},{"title": "Llama (language model)","url": "https://en.wikipedia.org/wiki/Llama_(language_model)","site": "wikipedia.org"}],"tagline": "Open weights, the Hub and the community","order": 5}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186{"title": "Open-source AI and Hugging Face","emoji": "🤗","brief": "Open-weight models and community hubs like Hugging Face put powerful AI into everyone's hands. Let's test how open AI licensing, model formats, local hardware tricks, and safety trade-offs actually work.","questions": [{"id": 0,"concept": "Open weights versus open source","question": "What separates an open-weight AI model from a truly open-source AI model?","answer": "An open-weight model only gives you the finished parameters to download and run. Truly open-source AI also shares the training code and data details needed to rebuild it.","key_points": ["Open-weight models share only the trained weights, while open-source AI also shares training code and data details","Sharing code and data lets other teams study and rebuild the model from scratch"],"required": [0],"hint": "Think of the gap between tasting a baked cake and getting the full recipe with its ingredients.","fun_fact": "Many famous releases like Meta Llama are called open source in headlines even though their training datasets stay secret.","difficulty": 1,"source": 1},{"id": 1,"concept": "Hugging Face Hub","question": "Why did Hugging Face become the main gathering place for open AI builders?","answer": "It combined shared models, datasets, and live demos called Spaces into one searchable platform. Its open Transformers library also lets developers swap between models using the same simple code.","key_points": ["It gathers models, datasets, or live demos in one place, or offers shared tools like Transformers so models are easy to run","Developers can switch between community models without rewriting their code setup"],"required": [0],"hint": "Picture a single town square where creators store projects, display working prototypes, and grab one universal toolkit.","fun_fact": "Hugging Face started in 2016 as a playful teen chatbot app named after the hugging emoji.","difficulty": 1,"source": 2},{"id": 2,"concept": "Safetensors versus pickle","question": "What two big problems did the safetensors format solve compared to older Python pickle model files?","answer": "Pickle files can run hidden malicious code as you load them, while safetensors stores numbers only. Safetensors also maps weights straight into memory, loading big models faster without making extra copies.","key_points": ["It prevents arbitrary malicious code from running when you load a model file","It loads weights faster through zero-copy memory mapping instead of duplicating everything in RAM","It lets tools load only specific layers instead of the whole model at once"],"required": [0,1],"hint": "Think about trusting a stranger's download on your computer, plus how long giant checkpoints take to unpack.","fun_fact": "A safetensors header caps its metadata size at 100 megabytes to stop memory exhaustion attacks.","difficulty": 2,"source": 2},{"id": 3,"concept": "Permissive versus restricted licenses","question": "How does a permissive license like Apache or MIT differ from a custom open-weight license like Llama's?","answer": "Permissive licenses let anyone use, modify, and sell a model freely with basic credit. Custom licenses like Llama's add extra legal limits, such as user count caps or acceptable use rules.","key_points": ["Permissive licenses allow free commercial use and edits, while custom licenses add limits like user caps or usage rules","Because of these extra limits, custom-licensed weights do not qualify as true open source"],"required": [0],"hint": "Compare a no-strings gift to a complimentary pass that carries fine print for giant tech companies.","fun_fact": "Companies with over 700 million monthly active users must ask Meta for a special license to deploy Llama.","difficulty": 2,"source": 1},{"id": 4,"concept": "Quantization for local models","question": "How does 4-bit quantization let large open-weight models fit on everyday laptops and consumer GPUs?","answer": "Quantization shrinks each weight from a detailed 16-bit number down to a compact 4-bit value. That cuts memory use by about four times with only a small dip in quality.","key_points": ["It stores model weights with fewer bits and lower precision, shrinking the memory needed","Dropping from 16 bits to 4 bits cuts memory size by roughly 75 percent","Formats like GGUF pack these compact weights to run locally with only a slight quality drop"],"required": [0],"hint": "Think of rounding long decimal measurements to tiny estimates so they take far less shelf space.","fun_fact": "Developer Georgi Gerganov sparked the local AI wave by getting Meta's original Llama model running on an everyday MacBook.","difficulty": 2,"source": 3},{"id": 5,"concept": "Training data barrier in OSAID","question": "Why did the Open Source Initiative stop short of requiring raw training datasets, and what does it demand instead?","answer": "Huge training datasets often contain copyrighted works or private personal data that teams legally cannot redistribute. Instead, the definition requires detailed data information so a skilled builder can recreate a similar model.","key_points": ["Training datasets often include copyrighted material, private personal data, or licensed sources that cannot be legally shared","Instead, it requires detailed data information on sources, filtering, and access so someone can rebuild an equivalent model","This compromise keeps projects transparent without forcing teams to break copyright or privacy laws"],"required": [0,1],"hint": "Think about who owns published books and medical records, plus how a thorough map can replace handing over the actual pile.","fun_fact": "The Open Source Initiative spent two years gathering feedback from companies, lawyers, and researchers worldwide before releasing version 1.0.","difficulty": 3,"source": 1},{"id": 6,"concept": "Mixture of Experts memory bottleneck","question": "Why do Mixture of Experts models like Mixtral and DeepSeek run with low compute yet still need huge memory?","answer": "A router picks only a small slice of experts for each token, which cuts compute work sharply. Still, any token might call any expert, so your system must keep every weight loaded in memory.","key_points": ["Only a small subset of active experts runs for each token, which keeps compute low","All experts must stay loaded in RAM or GPU memory because the router can choose any expert at any step","This makes running open Mixture of Experts models memory-bound even when generation feels fast"],"required": [0,1],"hint": "Picture a big hospital where each patient sees just two specialists, yet every doctor still needs an office in the building.","fun_fact": "DeepSeek-V3 holds 671 billion total weights, yet activates only 37 billion for any single token.","difficulty": 3,"source": 4},{"id": 7,"concept": "Open-weight safety debate","question": "What is the main safety risk of releasing open model weights, and what is the strongest safety argument in favor?","answer": "Once weights go public, nobody can revoke them, and cheap fine-tuning easily strips away safety refusals. In return, open weights let independent researchers audit flaws and avoid control by a few closed labs.","key_points": ["Public weights cannot be revoked or patched, or cheap fine-tuning can strip away their safety refusals","Open weights allow independent safety audits and transparency, or prevent single-company lock-in","A U.S. NTIA government report advised monitoring open-weight risks instead of banning releases"],"required": [0,1],"hint": "Weigh a permanent leak that anyone can rewire against letting thousands of outside inspectors check the engine.","fun_fact": "Researchers showed that fine-tuning an aligned language model on just ten harmful examples can break its built-in safety refusals.","difficulty": 3,"source": 5}],"id": "321da162fe64","topic": "Open-source AI and Hugging Face","slug": "open-source-ai","difficulty": "pro","model": "gemini","sources": [{"title": "The Open Source AI Definition 1.0","url": "https://opensource.org/ai/open-source-ai-definition","site": "Open Source Initiative"},{"title": "Hugging Face Hub Documentation","url": "https://huggingface.co/docs/hub","site": "Hugging Face"},{"title": "Quantization Documentation","url": "https://huggingface.co/docs/transformers/main_classes/quantization","site": "Hugging Face"},{"title": "Mixture of Experts Explained","url": "https://huggingface.co/blog/moe","site": "Hugging Face"},{"title": "Dual-Use Foundation Models with Widely Available Model Weights","url": "https://www.ntia.gov/report/2024/dual-use-foundation-models-widely-available-model-weights","site": "NTIA"}],"tagline": "How open models share, shrink, and scale","order": 5}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169{"title": "Transformers and Self-Attention","emoji": "🤖","brief": "Transformers are the engine behind modern large language models, built around attention. This quiz covers how self-attention works, why it replaced older recurrent networks, and why the 2017 paper changed AI.","questions": [{"question": "What is the attention mechanism in machine learning, in simple terms?","answer": "Attention scores how much each word matters to the other words in a sentence. That lets the model focus on the most useful parts of the input.","key_points": ["Scores how important each part of the input is so the model can focus on what matters","Each score compares one part against the other parts"],"hint": "Think about what attention means when you listen to one friend in a noisy room.","fun_fact": "Attention was partly inspired by the cocktail party effect, first studied in hearing research in 1953.","difficulty": 1,"source": 2,"id": 0,"required": [0]},{"question": "What year was the transformer architecture introduced, and in which famous paper?","answer": "Google researchers introduced the transformer in 2017 in their paper Attention Is All You Need.","key_points": ["2017","Attention Is All You Need","Written by Google researchers"],"hint": "The paper's title plays on a famous Beatles song.","fun_fact": "The paper has over 150,000 citations, making it one of the most-cited papers of this century.","difficulty": 1,"source": 3,"id": 1,"required": [0,1]},{"question": "Why do transformers need positional encodings or positional embeddings?","answer": "Self-attention looks at all words at once and has no sense of order. Positional encodings tell the model where each word sits in the sentence.","key_points": ["Attention alone ignores word order, so position information has to be added","Without it, shuffling the words would not change the output"],"hint": "What would the model know about word order if attention treated every word the same?","fun_fact": "The 2017 paper used sine and cosine waves for position, hoping models could handle longer text than they saw in training.","difficulty": 2,"source": 1,"id": 2,"required": [0]},{"question": "Why did recurrent neural networks struggle to process long sentences, and how did LSTM help?","answer": "In a long sentence, the learning signal shrinks at every step until early words fade out. That is the vanishing gradient problem. LSTMs added gates that choose what to keep and what to drop, so early words last much longer.","key_points": ["Information from early words fades over long sequences, the vanishing gradient problem","LSTM added gates that control what to keep","LSTM reduced the problem but did not remove it completely"],"hint": "Think about what happens to a signal that passes through many steps in a row.","fun_fact": "Even with LSTMs, early translation tools worked better when you fed the input sentence backwards.","difficulty": 2,"source": 1,"id": 3,"required": [0,1]},{"question": "What is the main computational advantage transformers have over recurrent networks during training?","answer": "Transformers read all the words in a sentence at the same time instead of one by one. That parallel work runs much faster on GPUs and lets teams train bigger models.","key_points": ["Processes all tokens in parallel","Recurrent networks must go one token at a time","Runs much faster on GPUs and lets teams train bigger models"],"hint": "Can a recurrent network work on the last word before it reads the first word?","fun_fact": "This parallel speed is a big reason transformers took over almost all modern language models.","difficulty": 2,"source": 1,"id": 4,"required": [0]},{"question": "In self-attention, what are the query, key, and value vectors, and where do they come from?","answer": "All three vectors come from the same input sentence. Each word compares its query with every key to get a score, then uses those scores to blend the values.","key_points": ["Queries, keys and values all come from the same input sequence","Each query is compared with the keys to get weights","The weights combine the values"],"hint": "The word self in self-attention is a big clue about their source.","fun_fact": "Early papers called self-attention intra-attention when they first tried it inside LSTMs.","difficulty": 2,"source": 2,"id": 5,"required": [0,1,2]},{"question": "What does multi-head attention add beyond a single attention mechanism?","answer": "It runs several attention layers side by side, each with its own view of the sentence. That lets the model track different word links at the same time, like grammar and meaning.","key_points": ["Several attention heads run in parallel, each with its own view","Lets the model track different kinds of word links at the same time","The head outputs are combined at the end"],"hint": "Picture several people reading the same sentence, each looking for something different.","fun_fact": "After all the heads finish, the layer joins their outputs together and mixes them with one final projection.","difficulty": 2,"source": 3,"id": 6,"required": [1]},{"question": "What is the main computational drawback of standard self-attention as sequences get longer?","answer": "Every word looks at every other word, so both compute and memory grow with the square of the text length. Very long inputs get slow and expensive fast.","key_points": ["Cost grows quadratically with sequence length","Affects both compute and memory","The main weakness of standard self-attention"],"hint": "Count the pairs when every item connects to all the rest.","fun_fact": "Because of this quadratic cost, researchers built sliding-window attention so each word only looks at its neighbors.","difficulty": 3,"source": 1,"id": 7,"required": [0]}],"id": "7afe97751daf","topic": "Transformers and the attention mechanism","slug": "transformers","difficulty": "pro","model": "zai-org/GLM-5.3","sources": [{"title": "Transformer (deep learning)","url": "https://en.wikipedia.org/wiki/Transformer_(deep_learning)","site": "wikipedia.org"},{"title": "Attention (machine learning)","url": "https://en.wikipedia.org/wiki/Attention_(machine_learning)","site": "wikipedia.org"},{"title": "Attention Is All You Need","url": "https://en.wikipedia.org/wiki/Attention_Is_All_You_Need","site": "wikipedia.org"}],"tagline": "Queries, keys, values and why attention won","order": 0}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182{"title": "Transformers and Self-Attention","emoji": "🤖","brief": "Transformers ditched step-by-step reading so models could connect every word at once. Let's test your intuition on self-attention, positional tricks, and the memory walls behind long context.","questions": [{"id": 0,"concept": "Self-attention intuition","question": "In plain words, what does self-attention let each token in a sentence do?","answer": "Self-attention lets every token look across the whole sentence and weigh which other words matter most. Each token then blends information from those relevant words to sharpen its meaning in context. That is how a model tells a river bank apart from a savings bank.","key_points": ["Each token weighs and pulls context from other relevant tokens in the sequence","Blending neighbor information updates each token's meaning to fit the sentence"],"required": [0],"hint": "Think about how you figure out who the word she refers to while reading a story.","fun_fact": "In a real Transformer, different attention heads split up the job, with some tracking grammar while others link pronouns to nouns.","difficulty": 1,"source": 1},{"id": 1,"concept": "Parallelism and long-range links","question": "What two big advantages helped Transformers replace recurrent neural networks?","answer": "Transformers process all tokens in parallel instead of reading a sequence one word at a time. That parallelism makes training much faster on modern GPUs. They also link distant tokens directly in one step, so early context does not fade away.","key_points": ["Process all tokens in parallel instead of sequentially for much faster training","Connect distant tokens directly in one step without losing long-range context"],"required": [0,1],"hint": "Compare an assembly line moving one piece per beat against an open room where everyone talks at once.","fun_fact": "The original Transformer beat the world's best translation models after just three and a half days on eight GPUs.","difficulty": 1,"source": 1},{"id": 2,"concept": "Order blindness and position signals","question": "Why can raw self-attention not tell the difference between dog bites man and man bites dog?","answer": "Raw self-attention compares every pair of tokens symmetrically and has no built-in sense of word order. Without extra cues, shuffling a sentence gives the exact same attention scores. Models fix this with position signals, such as rotating queries and keys with rotary embeddings.","key_points": ["Self-attention compares all token pairs symmetrically and has no built-in awareness of word order","Models add positional encodings or rotary position embeddings so attention tracks position and distance"],"required": [0],"hint": "Imagine dumping puzzle pieces into a bowl and checking which ones match without looking at their spots.","fun_fact": "Rotary position embeddings rotate each query and key like hands on a clock so their dot product naturally reflects the gap between two words.","difficulty": 2,"source": 2},{"id": 3,"concept": "Scaling dot-product attention","question": "In scaled dot-product attention, why do we divide query and key scores before applying softmax?","answer": "When query and key vectors have many dimensions, their dot products grow huge. Huge scores push softmax to extremes where one token takes almost all the weight. Gradients nearly vanish there, so dividing by the square root of the key dimension keeps learning alive.","key_points": ["Stop huge dot products from saturating softmax into flat extremes where gradients nearly vanish","Dot product size grows with vector dimension, so dividing by the square root of the key dimension keeps scores balanced"],"required": [0],"hint": "Think about what happens to a steep curve when you feed it gigantic numbers and try to measure its slope.","fun_fact": "With unit-spread inputs, a dot product's variance equals the vector length, so dividing by its square root snaps the spread right back to one.","difficulty": 2,"source": 1},{"id": 4,"concept": "Causal masking","question": "Why do decoder language models apply a causal mask during training instead of letting tokens attend everywhere?","answer": "During training, the model sees the entire sentence at once to stay parallel. Without a causal mask, each token would cheat by peeking at future words it must predict. The mask blocks all later positions, unlike bidirectional encoders that read both ways for understanding.","key_points": ["Stop each token from peeking at future words it is trying to predict during parallel training","Bidirectional encoders attend in both directions because they build understanding instead of predicting left to right","Future attention scores are set to negative infinity before softmax so their weights drop to zero"],"required": [0],"hint": "Picture taking a fill-in-the-blank exam while the full solution sits uncovered beside your desk.","fun_fact": "Thanks to causal masking, one parallel pass over a thousand-word page trains the model on nearly a thousand separate next-word quizzes at once.","difficulty": 2,"source": 1},{"id": 5,"concept": "FlashAttention and memory tiling","question": "How does FlashAttention run exact long-context attention much faster with far less memory?","answer": "Standard attention slows down by shuttling a giant quadratic score matrix to slow main memory. FlashAttention splits attention into small tiles that stay inside fast on-chip memory instead. It updates softmax block by block, avoiding slow memory traffic while keeping exact math.","key_points": ["Tile queries, keys, and values into small blocks inside fast on-chip memory without writing the full attention matrix to slow memory","Update softmax incrementally across tiles so the output stays mathematically exact","Standard attention hits a memory-bandwidth wall because the full score matrix grows quadratically with sequence length"],"required": [0],"hint": "Imagine cooking from ingredients right on your cutting board instead of walking back to a distant warehouse after every chop.","fun_fact": "FlashAttention actually does extra math by recomputing attention during training, yet finishes faster because slow memory transfers cost far more than arithmetic.","difficulty": 3,"source": 3},{"id": 6,"concept": "Key-value cache and grouped-query attention","question": "During token-by-token generation, why does the key-value cache create a memory bottleneck, and how does grouped-query attention ease it?","answer": "For each new token, the chip must reload every past key and value from slow memory. Streaming that growing cache saturates memory bandwidth while the math cores sit mostly idle. Grouped-query attention lets several query heads share one key-value head, shrinking the cache to load.","key_points": ["Each new token reloads the entire stored key-value cache from memory, saturating memory bandwidth","Grouped-query attention shares one key and value head across multiple query heads to shrink the cache","Sharing heads keeps most of multi-head attention's quality while approaching single-head cache speeds"],"required": [0,1],"hint": "Picture hauling a giant filing cabinet to your desk for every word you type, then pooling one cabinet across teammates.","fun_fact": "In long conversations or busy servers, the saved key-value cache can easily grow larger than the model's own weights.","difficulty": 3,"source": 4},{"id": 7,"concept": "Pre-norm residual stability","question": "Why did modern deep Transformers move layer normalization before each sublayer instead of after the residual addition?","answer": "Normalizing before each sublayer leaves the main residual path completely untouched from start to finish. Gradients travel straight down that clean highway without blowing up or fading in deep stacks. Putting normalization after the addition causes wild early gradients and needs delicate warmup schedules.","key_points": ["Keep an unbroken residual path for smooth gradient flow or keep early gradients stable in very deep networks","Post-norm puts normalization on the main path, causing large early gradients near the output and needing fragile warmup"],"required": [0],"hint": "Think of an express lane running directly through a tall tower with no toll booths slowing down the central line.","fun_fact": "Moving layer normalization before each sublayer lets deep Transformers train smoothly even without any learning-rate warmup at all.","difficulty": 3,"source": 5}],"id": "7afe97751daf","topic": "Transformers and the attention mechanism","slug": "transformers","difficulty": "pro","model": "gemini","sources": [{"title": "Attention Is All You Need","url": "https://arxiv.org/abs/1706.03762","site": "arXiv"},{"title": "RoFormer: Enhanced Transformer with Rotary Position Embedding","url": "https://arxiv.org/abs/2104.09864","site": "arXiv"},{"title": "FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness","url": "https://arxiv.org/abs/2205.14135","site": "arXiv"},{"title": "GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints","url": "https://arxiv.org/abs/2305.13245","site": "arXiv"},{"title": "On Layer Normalization in the Transformer Architecture","url": "https://arxiv.org/abs/2002.04745","site": "arXiv"}],"tagline": "How self-attention actually works under the hood","order": 0}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176{"title": "Voice AI: STT, TTS and Voice Agents","emoji": "🎙️","brief": "This quiz covers how machines turn speech into text, turn text back into speech, and tell when someone is talking. Those three pieces power real-time voice assistants like Siri and Alexa.","questions": [{"question": "What does a speech-to-text system do, and what is another common name for this technology?","answer": "It turns spoken words into written text. People also call it automatic speech recognition, or ASR.","key_points": ["Turns spoken words into text","Also called automatic speech recognition (ASR), or speech recognition"],"hint": "Think about what happens when you dictate a message on your phone.","fun_fact": "Bell Labs built the first speech recognizer, Audrey, in 1952. It could only recognize spoken digits from one person.","difficulty": 1,"source": 1,"id": 0,"required": [0,1]},{"question": "What does a text-to-speech system do, and what two main parts is it typically composed of?","answer": "It turns written text into spoken audio. A front-end cleans the text and maps it to speech sounds, and a back-end turns those sounds into audio.","key_points": ["Turns written text into spoken audio","A front-end cleans the text and maps it to phonemes","A back-end generates the audio"],"hint": "One part prepares the text, and the other makes the sound.","fun_fact": "Researchers in Japan built the first general English text-to-speech system in 1968, and an Italian one in 1978 could even sing.","difficulty": 1,"source": 2,"id": 1,"required": [0,1,2]},{"question": "What is voice activity detection, and why is it useful in voice over internet protocol applications?","answer": "Voice activity detection checks if a person is talking in an audio clip. On internet calls, it skips sending dead air, which saves bandwidth and compute.","key_points": ["Checks whether human speech is present","Skips sending silence on internet calls, saving bandwidth and compute"],"hint": "It answers a simple yes-or-no question about the audio many times a second.","fun_fact": "Call centers use voice activity detection to guess whether a real person or voicemail picked up.","difficulty": 1,"source": 3,"id": 2,"required": [0,1]},{"question": "In a text-to-speech front-end, what is text normalization and why is it necessary?","answer": "It spells out symbols like numbers and short forms as real words. The voice model needs plain words so it knows how to say them out loud.","key_points": ["Turns numbers, abbreviations, and symbols into full words","The synthesizer needs real words to know how to say them","Also called pre-processing or tokenization"],"hint": "Think about how a reader handles the digits 42 out loud.","fun_fact": "Unix was the first operating system to ship a speech synthesizer, with its speak command in 1974.","difficulty": 2,"source": 2,"id": 3,"required": [0,1]},{"question": "Describe the typical stages of a voice activity detection algorithm.","answer": "First it can clean out background noise. Next it pulls simple features from a short slice of audio, then uses a rule or cutoff to call it speech or silence. Many systems also feed that guess back to adjust to changing room noise.","key_points": ["Optional noise cleanup first","Extracts features from a short slice of audio","Uses a rule or threshold to label it speech or silence","Can feed the decision back to adjust the threshold"],"hint": "It runs in three steps: clean the sound, measure it, then decide.","fun_fact": "Voice activity detection does not depend on language, so the same detector works for English and Japanese.","difficulty": 2,"source": 3,"id": 4,"required": [1,2]},{"question": "What fundamental trade-off must every voice activity detector make, and how do mobile phones typically handle it?","answer": "It has to balance missing real speech against mistaking noise for speech. When unsure, phone systems usually assume it is speech, because cutting off words feels worse than sending a bit of noise.","key_points": ["Balances missing real speech against mistaking noise for speech","Phones play it safe and assume speech when unsure","Cutting off speech feels worse than sending noise"],"hint": "Think about which mistake hurts a call more.","fun_fact": "The hardest case for mobile voice detection is loud streets, where background noise is louder than the speaker.","difficulty": 2,"source": 3,"id": 5,"required": [0,1]},{"question": "How did hidden Markov models change speech recognition compared to the earlier dynamic time warping approach?","answer": "Hidden Markov models put sound, word order, and grammar into one probability model instead of matching raw audio clips over time. They took over from dynamic time warping in the 1980s.","key_points": ["HMMs combine sound, language, and grammar in one probability model","They replaced dynamic time warping","Dominant starting in the 1980s"],"hint": "The older method matched audio frames directly; the new one modeled speech with probabilities.","fun_fact": "Many linguists said HMMs were far too simple for human language, yet they worked better than anything else for decades.","difficulty": 3,"source": 1,"id": 6,"required": [0]},{"question": "How do speech recognition, text-to-speech, and voice activity detection combine in a real-time voice assistant?","answer": "Voice activity detection hears when you start and stop talking. Speech recognition turns your words into text, and text-to-speech reads the reply back out loud.","key_points": ["Voice activity detection hears when the user starts and stops talking","Speech recognition turns the speech into text","Text-to-speech speaks the reply aloud","Together they make natural back-and-forth conversation possible"],"hint": "Walk through the full loop: listen, understand, and answer.","fun_fact": "Early Siri relied on speech tech from Nuance, a company whose roots go back to Dragon Systems.","difficulty": 3,"source": 3,"id": 7,"required": [0,1,2]}],"id": "b697d9a8cba6","topic": "Voice AI: speech recognition, text-to-speech and voice agents","slug": "voice-ai","difficulty": "pro","model": "zai-org/GLM-5.3","sources": [{"title": "Speech recognition","url": "https://en.wikipedia.org/wiki/Speech_recognition","site": "wikipedia.org"},{"title": "Speech synthesis","url": "https://en.wikipedia.org/wiki/Speech_synthesis","site": "wikipedia.org"},{"title": "Voice activity detection","url": "https://en.wikipedia.org/wiki/Voice_activity_detection","site": "wikipedia.org"}],"tagline": "The tech that is talking to you right now","order": 2}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191{"title": "Voice AI: STT, TTS and Voice Agents","emoji": "🎙️","brief": "You are talking to a live voice agent right now. Let's pop open the hood and see how speech models hear, think, and talk back in real time.","questions": [{"id": 0,"concept": "Cascaded voice pipeline","question": "What are the three stages in a classic cascaded voice agent from the moment you speak to when it replies?","answer": "First, a speech-to-text model turns your spoken audio into plain written words. Next, a language model reads those words and writes back a helpful reply. Finally, a text-to-speech model reads that reply out loud as audio.","key_points": ["Speech-to-text turns your spoken audio into written words","A language model generates a written reply","Text-to-speech turns that written reply back into spoken audio","Written text acts as the handoff between each stage"],"required": [0,1,2],"hint": "Think of a three-person relay race passing a handwritten note from ears to brain to mouth.","fun_fact": "Most enterprise voice agents still use this three-step chain because engineers can swap any single stage or inspect the written log.","difficulty": 1,"source": 1},{"id": 1,"concept": "Voice activity detection","question": "In a live voice call, what job does voice activity detection do on the incoming microphone stream?","answer": "Voice activity detection listens to incoming audio and separates human speech from silence or background noise. It lets the agent trigger transcription only when someone talks instead of wasting work on dead air.","key_points": ["Distinguishes human speech from silence or background noise","Saves compute by only triggering downstream processing during speech"],"required": [0],"hint": "Picture a gatekeeper guarding the line who ignores room hum and quiet gaps until a person pipes up.","fun_fact": "In phone networks, this same speech detector powers silence suppression so calls do not waste data sending quiet pauses.","difficulty": 1,"source": 1},{"id": 2,"concept": "Neural speech synthesis stages","question": "How do modern neural text-to-speech models split the work between deciding how words should sound and generating the raw audio waveform?","answer": "First, one model turns text into rhythm, pitch, and compact sound features or audio tokens. Then, a neural vocoder or codec decoder converts that compact blueprint into a raw waveform. Splitting the job avoids predicting tens of thousands of raw audio samples directly from text.","key_points": ["One stage predicts pronunciation, prosody, or compact features and audio tokens from text","A second stage like a vocoder or codec decoder builds the raw audio waveform","Splitting the task avoids predicting thousands of raw waveform samples directly from text"],"required": [0,1],"hint": "Think of a composer writing sheet music before a musician performs every vibration on a real instrument.","fun_fact": "Kyutai's Mimi codec compresses spoken audio down to just 12.5 frames per second while keeping a voice crisp and natural.","difficulty": 2,"source": 3},{"id": 3,"concept": "Streaming for low latency","question": "Why must a voice agent stream partial outputs across every stage instead of waiting for each model to finish completely?","answer": "Waiting for each stage to finish stacks up delays and creates awkward multi-second silences. Streaming sends partial transcripts, early reply words, and small audio chunks forward right away. That overlap slashes time to first audio so the agent starts talking in under a second.","key_points": ["Cuts perceived delay and time to first audio instead of stacking full delays from every stage","Overlaps speech recognition, reply generation, and audio synthesis in small chunks"],"required": [0],"hint": "Think of a kitchen serving each dish fresh from the stove rather than cooking a whole banquet before anyone eats.","fun_fact": "Across ten languages, humans leave an average gap of only 200 milliseconds between turns, so pauses past 600 milliseconds feel robotic.","difficulty": 2,"source": 1},{"id": 4,"concept": "Handling barge-in interruptions","question": "When you interrupt a voice agent mid-sentence, what must it cancel immediately and what must it fix in its conversation history?","answer": "First, the agent stops audio playback, clears queued sound buffers, and cancels ongoing text generation. Second, it trims the unsaid words out of conversation history so memory matches what you heard. Otherwise, the agent later refers to facts it generated but never actually spoke out loud.","key_points": ["Stops audio playback, flushes buffered audio, or cancels ongoing reply generation","Trims the unsaid portion from conversation history so memory only keeps what was actually spoken","Prevents the agent from referring later to things you never heard"],"required": [0,1],"hint": "Imagine a radio host cutting the broadcast mid-sentence and crossing the unread lines off their script.","fun_fact": "Smart interruption handlers also learn to ignore brief nods like uh-huh or yeah so polite listening noises do not cut the agent off.","difficulty": 2,"source": 2},{"id": 5,"concept": "Semantic turn detection","question": "Why do fixed silence timers fail at conversational turn-taking, and how does semantic turn detection do better?","answer": "Short silence timers interrupt people pausing to think, while long timers make every reply feel sluggish. Semantic turn detection runs a small fast model to judge whether your words form a complete thought. It holds back after unfinished phrases like book a flight to, then answers quickly once you finish.","key_points": ["Fixed silence timers either cut off pauses mid-thought if too short or feel sluggish if too long","Semantic turn detection checks the meaning or grammar of what was said to predict if the turn is finished","A lightweight model inspects the partial transcript or audio cues in real time"],"required": [0,1],"hint": "Compare counting empty seconds on a stopwatch against listening to whether someone reached a period or a comma.","fun_fact": "Since planning a spoken reply takes our brain about 600 milliseconds, people start predicting when a partner will finish long before silence arrives.","difficulty": 3,"source": 2},{"id": 6,"concept": "Acoustic echo cancellation","question": "What goes wrong when a voice agent runs on open speakers without echo cancellation, and how does echo cancellation fix it?","answer": "Without echo cancellation, the microphone picks up the speaker output so the agent hears and interrupts itself. Echo cancellation uses the outgoing speaker audio as a reference signal to model how sound bounces back. It subtracts that predicted echo from the microphone feed, leaving behind only the human caller's voice.","key_points": ["The microphone captures the agent's own speaker audio, making the agent interrupt itself or treat its own voice as user speech","Echo cancellation uses the outgoing audio as a reference and subtracts the returning echo from the microphone signal","An adaptive filter keeps adjusting as sound bounces around the room differently"],"required": [0,1],"hint": "Think of a studio engineer who already owns the backing track and strips that exact melody out of a live recording.","fun_fact": "Even moving your coffee mug or leaning back in your chair changes how sound bounces off the desk, forcing the echo filter to retune on the fly.","difficulty": 3,"source": 5},{"id": 7,"concept": "Native speech-to-speech trade-offs","question": "What do native speech-to-speech models gain over cascaded pipelines, and what engineering challenges get harder without an intermediate text layer?","answer": "Native speech models skip text conversion, cutting delay while keeping tone, emotion, and natural timing intact. Without a clean text middle layer, reliable tool calling, strict safety checks, and factual grounding get harder. Teams also lose an easy text audit trail, making bugs and policy slips much harder to trace.","key_points": ["Cuts latency or preserves vocal tone, emotion, and natural timing that written text loses","Makes tool calling, safety checks, factual grounding, or debugging and auditing harder without a text middle layer","Direct audio in and audio out removes the modular boundary where teams normally inspect or filter messages"],"required": [0,1],"hint": "Compare chatting face to face versus passing typed memos that a supervisor can review, stamp, and file.","fun_fact": "Kyutai's open-source Moshi model still predicts a silent inner monologue of text tokens alongside its speech so it stays smart while keeping latency near 200 milliseconds.","difficulty": 3,"source": 4}],"id": "b697d9a8cba6","topic": "Voice AI: speech recognition, text-to-speech and voice agents","slug": "voice-ai","difficulty": "pro","model": "gemini","sources": [{"title": "Voice AI & Voice Agents: An Illustrated Primer","url": "https://voiceaiandvoiceagents.com/","site": "Voice AI Primer"},{"title": "Turn Detection and Interruption Handling","url": "https://docs.livekit.io/agents/turn-detection/","site": "LiveKit Docs"},{"title": "High Fidelity Neural Audio Compression (EnCodec)","url": "https://arxiv.org/abs/2210.13438","site": "arXiv"},{"title": "Moshi: a speech-text foundation model for real-time dialogue","url": "https://arxiv.org/abs/2410.00037","site": "arXiv"},{"title": "Echo Suppression and Cancellation","url": "https://en.wikipedia.org/wiki/Echo_suppression_and_cancellation","site": "Wikipedia"}],"tagline": "How live voice agents hear, think, and speak","order": 2}
packs/ai-agents.json+130-103
packs/ai-history.json+125-106
packs/diffusion.json+124-99
packs/french-revolution.json+127-102
packs/llm-training.json+120-99
packs/open-source-ai.json+124-106
packs/transformers.json+116-103
packs/voice-ai.json+126-111